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
Write a full inventory (players, chests, etc.) to a compound list.
public static List<CompoundTag> writeInventory(ItemStack[] items, int start) { List<CompoundTag> out = new ArrayList<>(); for (int i = 0; i < items.length; i++) { ItemStack stack = items[i]; if (!InventoryUtil.isEmpty(stack)) { out.add(writeItem(stack, start + i)); } } return out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "@Override\n public void writeToNBT(NBTTagCompound nbt)\n {\n super.writeToNBT(nbt);\n nbt.setInteger(\"pokedexNb\", pokedexNb);\n nbt.setInteger(\"time\", time);\n NBTTagList itemList = new NBTTagList();\n\n for (int i = 0; i < inventory.length; i++)\n {\n ItemStack stack = inventory[i];\n\n if (stack != null)\n {\n NBTTagCompound tag = new NBTTagCompound();\n tag.setByte(\"Slot\", (byte) i);\n stack.writeToNBT(tag);\n itemList.appendTag(tag);\n }\n }\n nbt.setTag(\"Inventory\", itemList);\n }", "public void writeToNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.writeToNBT(par1NBTTagCompound);\n par1NBTTagCompound.setShort(\"Fuel\", (short)this.fuel);\n par1NBTTagCompound.setShort(\"CookTime\", (short)this.furnaceCookTime);\n par1NBTTagCompound.setShort(\"Direction\", (short)this.direction);\n par1NBTTagCompound.setShort(\"TimeBase\", (short)this.furnaceTimeBase);\n par1NBTTagCompound.setShort(\"MaxFuel\", (short)this.maxFuel);\n NBTTagList var2 = new NBTTagList();\n\n for (int var3 = 0; var3 < this.furnaceItemStacks.length; ++var3)\n {\n if (this.furnaceItemStacks[var3] != null)\n {\n NBTTagCompound var4 = new NBTTagCompound();\n var4.setByte(\"Slot\", (byte)var3);\n this.furnaceItemStacks[var3].writeToNBT(var4);\n var2.appendTag(var4);\n }\n }\n\n par1NBTTagCompound.setTag(\"Items\", var2);\n sync();\n }", "public void printInventory(){\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Inventory Stocks Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventory.get(i).getRoll().getType() + \" : \" + inventory.get(i).getStock() + \" \";\n\t\t}\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\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 }", "private static void writeToFileInventory() throws IOException {\n FileWriter write = new FileWriter(path, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Product> stock = Inventory.getStock();\n for (int i = 0; i < stock.size(); i++) {\n Product product = stock.get(i);\n String name = product.getProductName();\n String location = product.getLocation().getLocationInfo();\n int UPC = product.getUpc();\n int quantity = product.getQuantity();\n String cost = String.valueOf(product.price.getCost());\n String threshold = String.valueOf(product.getThreshold());\n String price = String.valueOf(product.price.getRegularPrice());\n String distributor = product.getDistributor();\n textLine =\n name + \",\" + location + \",\" + UPC + \",\" + quantity + \",\" + cost + \",\" + price + \",\" +\n threshold + \",\" + distributor;\n print_line.printf(\"%s\" + \"%n\", textLine);\n }\n print_line.close();\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 void fillChest(Inventory inv);", "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 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 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 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 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 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 }", "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 }", "@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 }", "Collection<Item> getInventory();", "List<InventoryItem> getInventory();", "private static void writeToSaleItems() throws IOException {\n FileWriter write = new FileWriter(path4, false);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Product> stock = Inventory.getStock();\n for (int i = 0; i < stock.size(); i++) {\n Product product = (Product) stock.get(i);\n if (product.price.isOnSale()) {\n int UPC = product.getUpc();\n float price = product.price.getSalePrice();\n String period = product.price.getSalePeriod();\n\n textLine = UPC + \" \" + price + \" \" + period;\n\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n }\n print_line.close();\n\n }", "public void withdrawAll() {\r\n for (int i = 0; i < container.capacity(); i++) {\r\n Item item = container.get(i);\r\n if (item == null) {\r\n continue;\r\n }\r\n int amount = owner.getInventory().getMaximumAdd(item);\r\n if (item.getCount() > amount) {\r\n item = new Item(item.getId(), amount);\r\n container.remove(item, false);\r\n owner.getInventory().add(item, false);\r\n } else {\r\n container.replace(null, i, false);\r\n owner.getInventory().add(item, false);\r\n }\r\n }\r\n container.update();\r\n owner.getInventory().update();\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 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 }", "List<SimpleInventory> getInventories();", "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 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 }", "void openInventory(Player player, SimpleInventory inventory);", "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 void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "public void writeFile(List<Stock>listStock) throws IOException\n {\n \t //StockImplement implement=new StockImplement();\n \t \n \t mapper.defaultPrettyPrintingWriter().writeValue(file, listStock);\n \t// mapper.writeValue(file, listStock);\n\t\t\n \t \n }", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "public Inventory(){\n this.items = new ArrayList<InventoryItem>(); \n }", "@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: */ }", "public void writeEntityToNBT(NBTTagCompound tagCompound) {\n/* 165 */ tagCompound.setInteger(\"Life\", this.fireworkAge);\n/* 166 */ tagCompound.setInteger(\"LifeTime\", this.lifetime);\n/* 167 */ ItemStack var2 = this.dataWatcher.getWatchableObjectItemStack(8);\n/* */ \n/* 169 */ if (var2 != null) {\n/* */ \n/* 171 */ NBTTagCompound var3 = new NBTTagCompound();\n/* 172 */ var2.writeToNBT(var3);\n/* 173 */ tagCompound.setTag(\"FireworksItem\", (NBTBase)var3);\n/* */ } \n/* */ }", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "public void setList(ArrayList<Item> inventory) {\r\n\t\tthis.inventory = inventory;\r\n\t}", "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}", "public abstract List<String> getInventory();", "public List<Inventory> getInventory();", "SimpleInventory getOpenedInventory(Player player);", "public void writeToNBT(NBTTagCompound nbt) {\n\t\tnbt.setInteger(\"xSize\", sizeX);\n\t\tnbt.setInteger(\"ySize\", sizeY);\n\t\tnbt.setInteger(\"zSize\", sizeZ);\n\n\n\t\tIterator<TileEntity> tileEntityIterator = tileEntities.iterator();\n\t\tNBTTagList tileList = new NBTTagList();\n\t\twhile(tileEntityIterator.hasNext()) {\n\t\t\tTileEntity tile = tileEntityIterator.next();\n\t\t\ttry {\n\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\t\t\t\ttile.writeToNBT(tileNbt);\n\t\t\t\ttileList.appendTag(tileNbt);\n\t\t\t} catch(RuntimeException e) {\n\t\t\t\tAdvancedRocketry.logger.warn(\"A tile entity has thrown an error: \" + tile.getClass().getCanonicalName());\n\t\t\t\tblocks[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = Blocks.AIR;\n\t\t\t\tmetas[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = 0;\n\t\t\t\ttileEntityIterator.remove();\n\t\t\t}\n\t\t}\n\n\t\tint[] blockId = new int[sizeX*sizeY*sizeZ];\n\t\tint[] metasId = new int[sizeX*sizeY*sizeZ];\n\t\tfor(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\t\t\t\t\tblockId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = Block.getIdFromBlock(blocks[x][y][z]);\n\t\t\t\t\tmetasId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = (int)metas[x][y][z];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tNBTTagIntArray idList = new NBTTagIntArray(blockId);\n\t\tNBTTagIntArray metaList = new NBTTagIntArray(metasId);\n\n\t\tnbt.setTag(\"idList\", idList);\n\t\tnbt.setTag(\"metaList\", metaList);\n\t\tnbt.setTag(\"tiles\", tileList);\n\n\n\t\t/*for(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\n\t\t\t\t\tidList.appendTag(new NBTTagInt(Block.getIdFromBlock(blocks[x][y][z])));\n\t\t\t\t\tmetaList.appendTag(new NBTTagInt(metas[x][y][z]));\n\n\t\t\t\t\t//NBTTagCompound tag = new NBTTagCompound();\n\t\t\t\t\ttag.setInteger(\"block\", Block.getIdFromBlock(blocks[x][y][z]));\n\t\t\t\t\ttag.setShort(\"meta\", metas[x][y][z]);\n\n\t\t\t\t\tNBTTagCompound tileNbtData = null;\n\n\t\t\t\t\tfor(TileEntity tile : tileEntities) {\n\t\t\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\n\t\t\t\t\t\ttile.writeToNBT(tileNbt);\n\n\t\t\t\t\t\tif(tileNbt.getInteger(\"x\") == x && tileNbt.getInteger(\"y\") == y && tileNbt.getInteger(\"z\") == z){\n\t\t\t\t\t\t\ttileNbtData = tileNbt;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(tileNbtData != null)\n\t\t\t\t\t\ttag.setTag(\"tile\", tileNbtData);\n\n\t\t\t\t\tnbt.setTag(String.format(\"%d.%d.%d\", x,y,z), tag);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}*/\n\t}", "@SideOnly(Side.CLIENT)\n public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n }", "@Override\n\tpublic void closeInventory() {\n\t\t\n\t}", "@Override\r\n public String toString() {\r\n String result = \"\";\r\n for (Map.Entry<Item, Integer> item : inventory.entrySet()) {\r\n if (item.getValue() == 0) {\r\n result += \"SOLD OUT\\n\";\r\n } else {\r\n result += item.getKey();\r\n }\r\n }\r\n return result;\r\n }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "private String toBase64(Inventory inventory) throws IllegalStateException {\n try {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n BukkitObjectOutputStream dataOutput = new BukkitObjectOutputStream(outputStream);\n\n // Write the size of the inventory\n dataOutput.writeInt(inventory.getSize());\n\n // Save every element in the list\n for (int i = 0; i < inventory.getSize(); i++) {\n dataOutput.writeObject(inventory.getItem(i));\n }\n\n // Serialize that array\n dataOutput.close();\n return Base64Coder.encodeLines(outputStream.toByteArray());\n } catch (Exception e) {\n throw new IllegalStateException(\"Unable to save item stacks.\", e);\n }\n }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "@SideOnly(Side.CLIENT)\r\n/* 250: */ public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List)\r\n/* 251: */ {\r\n/* 252:285 */ par3List.add(new ItemStack(par1, 1, 0));\r\n/* 253:286 */ par3List.add(new ItemStack(par1, 1, 6));\r\n/* 254:287 */ par3List.add(new ItemStack(par1, 1, 12));\r\n/* 255:288 */ par3List.add(new ItemStack(par1, 1, 13));\r\n/* 256: */ }", "public void saveFoodItems(String filename) {\n File fileout = new File(filename);\n try {\n FileWriter output = new FileWriter(fileout);\n for (FoodItem food : foodItemList) {\n output.write(food.getName());\n output.write(\",calories,\" + food.getNutrientValue(\"calories\"));\n output.write(\",carbohydrate,\" + food.getNutrientValue(\"carbohydrate\"));\n output.write(\",fat,\" + food.getNutrientValue(\"fat\"));\n output.write(\",fiber,\" + food.getNutrientValue(\"fiber\"));\n output.write(\",protein,\" + food.getNutrientValue(\"protein\") + \"\\n\");\n }\n output.close();\n } catch (IOException e) {\n System.out.println(\"Error in saving data to file\");\n }\n }", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "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 }", "protected void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 115: */ {\r\n/* 116:137 */ super.writeEntityToNBT(paramfn);\r\n/* 117: */ \r\n/* 118:139 */ fv localfv = new fv();\r\n/* 119:141 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 120:142 */ if (this.a[i] != null)\r\n/* 121: */ {\r\n/* 122:143 */ NBTTagCompound localfn = new NBTTagCompound();\r\n/* 123:144 */ localfn.setByte(\"Slot\", (byte)i);\r\n/* 124:145 */ this.a[i].writeToNBT(localfn);\r\n/* 125:146 */ localfv.a(localfn);\r\n/* 126: */ }\r\n/* 127: */ }\r\n/* 128:149 */ paramfn.setNBT(\"Items\", localfv);\r\n/* 129: */ }", "public void listAll(InventoryList inStock) {\n for (Item a : inStock.getInventoryList()) {\n if (1 >= a.getCount()) {\n console.promptForPrintPrompt(a.toString());\n }\n }\n }", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "private void drawInventory() {\n Texture highlight = createInventoryHighlight();\n InventoryComponent inventory = gameWorld.getHero().getInventory();\n\n float originX = ((VIRTUAL_HEIGHT * Gdx.graphics.getWidth() / Gdx.graphics.getHeight()) / 2) - (inventory.getSize() * ITEM_BACKGROUND_SIZE) / 2;\n\n Item[] items = inventory.getItems();\n for (int i = 0; i < inventory.getSize(); i++) {\n hudBatch.draw(background, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE);\n if (items[i] != null) {\n if (inventory.getSelectedItem() != null && items[i] == inventory.getSelectedItem()) {\n hudBatch.draw(highlight, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE / 12);\n }\n float itemOffset = ITEM_BACKGROUND_SIZE / 2 - calculateItemWidth(items[i]) / 2;\n hudBatch.draw(items[i].getTexture(), (originX + i * INVENTORY_ITEM_SIZE) + itemOffset, 0, calculateItemWidth(items[i]), INVENTORY_ITEM_SIZE);\n }\n }\n }", "public static void bankInventoryAndEquipment(Player player) {\n\t\tplayer.bankIsFullWhileUsingPreset = false;\n\t\tBankButtons.depositInventoryItems(player, false);\n\t\tBankButtons.depositWornItems(player, false, false, false);\n\t}", "protected void withdrawAll(Player player) {\n\t\tItemContainer container = this.item_containers.get(player);\n\n\t\tif (container.isEmpty()) {\n\t\t\tplayer.message(\"There is nothing in this container to withdraw!\");\n\t\t\treturn;\n\t\t}\n\t\tplayer.inventory.addAll(container);\n\t\tcontainer.clear();\n\t\tupdateOfferComponents();\n\t}", "public ArrayList<Tool> cart(Customer c, ArrayList<Tool> Inventory){\n\t\t\n\t\tArrayList<Tool> cart = new ArrayList<Tool>(); //empty cart\n\n\t Random rand = new Random();\n\n\t //randomly pick item from inventory 0 ->24\n\t int n = rand.nextInt(Inventory.size());\n \t\n\t \n\t //add item to cart\n\t cart.add(Inventory.get(n));\n\t\t//remove item from inventory\n\t Inventory.remove(n);\n\t \n\t \n\n\t\treturn cart;\n\t\t\n\t}", "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 void writeEquipment() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/equipment.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(equipment);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn inputInventory.length + outputInventory.length ;\n\t}", "@Override\n\tpublic void getSubBlocks(Item i, CreativeTabs tab, List l)\n\t{\n\t\tl.add(new ItemStack(i, 1, 0));\n\t}", "public void fillInventory(TheGroceryStore g);", "private void storePotList(){\n String tempName;\n int tempWeight;\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n int sizeOfPotList = potList.countPots();\n editor.putInt(SHAREDPREF_ITEM_POTLIST_SIZE, sizeOfPotList);\n for(int i = 0; i < potList.countPots();i++){\n tempWeight = (potList.getPot(i).getWeightInG());\n tempName = (potList.getPot(i).getName());\n editor.putString(SHAREDPREF_ITEM_POTLIST_NAME+i, tempName);\n editor.putInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, tempWeight);\n }\n editor.commit();\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 }", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn 0;\n\t}", "public void carWriter(Car car, Inventory inventory) {\n\t\tcar.setPurchased(true);\n\t\t\n\t\tArrayList<Car> update = new ArrayList<Car>(); \n\t\t\n\t\tfor(Car cars: inventory.getCarList()) {\n\t\t\tif(cars.isPurchased() == false) {\n\t\t\t\tupdate.add(cars);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//formatting the strings\n\t\tString formattedString = update.toString()\n\t\t\t .replace(\",\", \"\") //remove the commas\n\t\t\t .replace(\"[\", \"\") //remove the right bracket\n\t\t\t .replace(\"]\", \"\") //remove the left bracket\n\t\t\t .trim(); //remove extra whitespace\n\t\t\t \n\t\t\n\t\t//deleting all contents in file\n\t\tBufferedWriter writer;\n\t\ttry {\n\t\t\twriter = Files.newBufferedWriter(Paths.get(\"/Users/nicholassandy/git/car-dealership/car-dealership/src/com/dealership//cars.txt\"));\n\t\t\twriter.write(\"\");\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t\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//writing new contents in file\n\t\ttry {\n\t\t PrintWriter pw = new PrintWriter(new FileOutputStream(\"/Users/nicholassandy/git/car-dealership/car-dealership/src/com/dealership//cars.txt\"));\n\t\t \n\t\t pw.println(formattedString);\n\t\t pw.close();\n\t\t}\n\t\tcatch (IOException 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}", "@Override\r\n\tpublic void writeToParcel(Parcel out, int flags) {\n\t\tout.writeTypedList(items);\r\n\t}", "public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n //par3List.add(new ItemStack(par1, 1, 1));\n //par3List.add(new ItemStack(par1, 1, 2));\n //par3List.add(new ItemStack(par1, 1, 3));\n }", "public void useItem(OutputStreamWriter out, InputStreamReader newIn) {\r\n InputStreamReader instream = newIn;\r\n BufferedReader in = new BufferedReader(instream);\r\n boolean equipped = false;\r\n if (this.player.getInventory().isEmpty()) {\r\n try {\r\n out.write(\"You have nothing in your inventory you can use..\" + System.lineSeparator());\r\n } catch (IOException ex) {\r\n Logger.getLogger(Game.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n } else {\r\n while (!equipped) {\r\n try {\r\n out.write(this.getPlayerInventory());\r\n out.write(System.getProperty(\"line.separator\"));\r\n out.write(\"Choose an item by pressing a number: \");\r\n out.write(System.getProperty(\"line.separator\"));\r\n out.flush();\r\n try {\r\n int itemNumber = Integer.parseInt(in.readLine());\r\n if (itemNumber >= player.getInventory().size() || itemNumber < 0) {\r\n out.write(\"You do not have that item...\");\r\n out.write(System.getProperty(\"line.separator\"));\r\n out.flush();\r\n } else {\r\n if (player.getInventory().get(itemNumber).getItemType() == 3 || player.getInventory().get(itemNumber).getItemType() == 4) {\r\n out.write(player.useItem(itemNumber));\r\n equipped = true;\r\n out.write(System.getProperty(\"line.separator\"));\r\n out.flush();\r\n } else {\r\n out.write(\"Choose between slot 1 and slot 2 by pressing 1 or 2: \");\r\n out.write(System.getProperty(\"line.separator\"));\r\n out.flush();\r\n int slotNumber = Integer.parseInt(in.readLine());\r\n while (slotNumber != 1 && slotNumber != 2) {\r\n out.write(\"You have to choose between slot 1 and slot 2\" + System.lineSeparator());\r\n out.flush();\r\n slotNumber = Integer.parseInt(in.readLine());\r\n }\r\n out.write(player.equip(itemNumber, slotNumber));\r\n equipped = true;\r\n out.write(System.getProperty(\"line.separator\"));\r\n out.flush();\r\n }\r\n }\r\n } catch (NumberFormatException ex) {\r\n out.write(\"You have to enter a number. Please try again!\" + System.lineSeparator());\r\n out.write(System.getProperty(\"line.separator\"));\r\n out.flush();\r\n equipped = true;\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(Game.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n }", "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 }", "private void saveItems() {\n PrintWriter writer = null;\n try {\n FileOutputStream fos = openFileOutput(FILE_NAME, MODE_PRIVATE);\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(\n fos)));\n\n for (int idx = 0; idx < mAdapter.getItemCount(); idx++) {\n\n writer.println(mAdapter.getItem(idx));\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (null != writer) {\n writer.close();\n }\n }\n }", "private void itemEncode(Player player) {\n\t\tPlayerInventory inventory = player.getInventory();\n\t\tItemStack heldItem = inventory.getItemInMainHand();\n\t\tList<String> data = CryptoSecure.encodeItemStack(heldItem);\n\t\t\n\t\tItemStack holder = new ItemStack(Material.WRITTEN_BOOK);\n\t\tBookMeta meta = (BookMeta) holder.getItemMeta();\n\t\tmeta.setAuthor(\"WATCHBOX\");\n\t\tmeta.setTitle(\"(Placeholder)\");\n\t\tmeta.setPages(data);\n\t\tholder.setItemMeta(meta);\n\t\t\n\t\tinventory.addItem(holder);\n\t}", "default void write(ItemInventoryComponent source, CompoundTag tag, Optional<String> subtag, Optional<Range<Integer>> range) {\n\t\tif (source == null || source.getItemSize() <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (tag == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tCompoundTag stacksTag = new CompoundTag();\n\n\t\tint minimum = range.isPresent() ? range.get().getMinimum() : 0;\n\t\tint maximum = range.isPresent() ? range.get().getMaximum() : source.getItemSize();\n\n\t\tfor (int position = minimum; position < maximum; ++position) {\n\t\t\tItemStack stack = source.getStack(position);\n\n\t\t\tCompoundTag stackTag;\n\t\t\tif (stack != null && !stack.isEmpty()) {\n\t\t\t\tstackTag = source.getStack(position).toTag(new CompoundTag());\n\t\t\t} else {\n\t\t\t\tstackTag = ItemStack.EMPTY.toTag(new CompoundTag());\n\t\t\t}\n\t\t\tif (!stackTag.isEmpty()) {\n\t\t\t\tstacksTag.put(String.valueOf(position), stackTag);\n\t\t\t}\n\t\t}\n\n\t\tif (subtag.isPresent()) {\n\t\t\tCompoundTag inventoryTag = new CompoundTag();\n\n\t\t\tinventoryTag.putInt(\"size\", source.getItemSize());\n\t\t\tinventoryTag.put(\"stacks\", stacksTag);\n\n\t\t\ttag.put(subtag.get(), inventoryTag);\n\t\t} else {\n\t\t\ttag.putInt(\"size\", source.getItemSize());\n\t\t\ttag.put(\"stacks\", stacksTag);\n\t\t}\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags)\n {\n dest.writeTypedList(mItems);\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 }", "public ArrayList<Stock> getAvaiableStock (){\n\t\treturn inventory;\n\t}", "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 }", "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 }", "@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n void testWriteBoughtItemsList() {\n testWriter.write(list);\n testWriter.close();\n\n // now read them back in and verify that the accounts have the expected values\n try {\n List<Item> items = Reader.readItems(new File(TEST_FILE));\n Item numberOne = items.get(0);\n assertEquals(\"Milk\", numberOne.getName());\n assertEquals(5.99, numberOne.getPrice());\n\n Item numberTwo = items.get(1);\n assertEquals(\"Chicken Dinner\", numberTwo.getName());\n assertEquals(9.99, numberTwo.getPrice());\n\n double budget = Reader.readBudget(new File(TEST_FILE));\n assertEquals(1000, budget);\n } catch (IOException e) {\n fail(\"IOException should not have been thrown\");\n } catch (StringLengthZero | LessThanZeroE stringLengthZero) {\n stringLengthZero.printStackTrace();\n }\n\n\n }", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "public static void putCraftableItemInArrayList() {\n\n craftableItem.addItemToCraftableList(campfire);\n craftableItem.addItemToCraftableList(raft);\n craftableItem.addItemToCraftableList(axe);\n craftableItem.addItemToCraftableList(spear);\n }", "public void writeEntityToNBT(NBTTagCompound compound)\n {\n super.writeEntityToNBT(compound);\n compound.setByte(\"Profession\", (byte)this.getProfession());\n }", "public void writeEntityToNBT(NBTTagCompound tagCompound) {}", "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 List<Box> packThings (List<Thing> things){\n List<Box> boxes = new ArrayList<Box>();\r\n \r\n for (Thing thing : things){\r\n Box box = new Box(boxesVolume); //creates new box with specified volume\r\n box.addThing(thing); //adds things to the Box\r\n boxes.add(box); //adds box to list of boxes\r\n }\r\n \r\n return boxes;\r\n }", "public static void recap(ArrayList<Player> playerList){\n for (int i = 0; i < playerList.size();i++){\n System.out.println(\"Player \" + i + \" found \" + playerList.get(i).getNumEggs() + \" eggs\");\n playerList.get(i).printBasket();\n System.out.println();\n } \n }", "public static void SHOW(CS145LinkedList<BookData> inventory) {\n\n System.out.println();\n\n // Iterate through all the BookData Objects in the CSLinkedList<BookData>\n Iterator<BookData> itr = inventory.iterator();\n while( itr.hasNext() ) {\n BookData currentBKD = itr.next();\n\n // Print to Screen a statement containing all current\n // data of the book object inside the BookData Object\n currentBKD.BookInventoryStatement();\n\n // Iterate through all BackOrder objects saved inside\n // the ArrayDeque of the BookData Object if any\n for (BackOrder order : currentBKD.getBackOrders()) {\n System.out.println(\"Backorders:\");\n System.out.print(\" customer: \" + order.getCustomerNum());\n System.out.print(\", amount: \" + order.getNumOrders() + \"\\n\");\n }\n }\n System.out.println();\n }", "private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }", "public static void main (String args[]){\n\t\n\tCargoContainer test1 = new CargoContainer(\"Austin\", 800, 8000);\n\tCargoContainer test2 = new CargoContainer(\"Swathi\", 10000, 10000000);\n\tCargoItem item1 = new CargoItem(\"Toys\", 200, 10, 20, 10); //Volume= 2000\n\tCargoItem item2 = new CargoItem(\"Pens\", 50, 50, 20, 5); //Volume= 5000\n\tCargoItem item3 = new CargoItem(\"Trucks\", 5000, 500, 500, 10); //Volume= 2500000\n\t\n\tSystem.out.println(test1);\n\ttest1.addItem(item1);\n\tSystem.out.println(test1);\n\ttest1.addItem(item2);\n\tSystem.out.println(test1);\n\ttest1.addItem(item3);\n\ttest2.addItem(item3);\n\tSystem.out.println(test2);\n\ttest1.removeItem(item1);\n\tSystem.out.println(test1);\n}", "public void sendHand(ArrayList<Card> clist) {\n try {\n // Send the number of cards being sent\n sendNumCards(clist.size());\n for (Card c : clist) {\n dOut.writeObject(c);\n dOut.flush();\n }\n } catch (IOException e) {\n System.out.println(\"Could not send card objects\");\n e.printStackTrace();\n }\n }", "public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }", "public List<InventoryEntry> getInventoryEntries();", "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 void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "public ArrayList<Item> getItemList(){\n\t\treturn inventoryList;\n\t}", "public void writeToNBT(NBTTagCompound par1NBTTagCompound);" ]
[ "0.7227031", "0.70267856", "0.6298034", "0.6280265", "0.6182834", "0.6163082", "0.61322993", "0.5960756", "0.5950256", "0.58758813", "0.5858837", "0.584141", "0.5839575", "0.58350533", "0.57640874", "0.5708271", "0.5691962", "0.5682955", "0.568069", "0.5634403", "0.56314397", "0.55630684", "0.55500245", "0.55069894", "0.5499918", "0.54861796", "0.54690266", "0.5458912", "0.54524213", "0.54516643", "0.5428028", "0.5421001", "0.5408892", "0.5403223", "0.53724325", "0.53720456", "0.53689617", "0.53674906", "0.5363677", "0.5358754", "0.5339112", "0.5323652", "0.53234917", "0.5317783", "0.53149027", "0.5306749", "0.5299441", "0.52994084", "0.52825063", "0.52743924", "0.52690893", "0.5265962", "0.52643293", "0.5256567", "0.52489114", "0.5247808", "0.5244964", "0.5231102", "0.52298963", "0.5228461", "0.520979", "0.5196583", "0.5193507", "0.5191016", "0.5177959", "0.51746994", "0.5163039", "0.51588327", "0.51472384", "0.51460695", "0.511562", "0.51137865", "0.51071465", "0.5094919", "0.509478", "0.50915486", "0.5089448", "0.5085351", "0.50776523", "0.5077632", "0.50733316", "0.5070479", "0.50658953", "0.50609344", "0.5059122", "0.5044436", "0.504118", "0.5038007", "0.50365806", "0.5036409", "0.50324786", "0.50281346", "0.5025879", "0.5019018", "0.5006054", "0.49971667", "0.4993573", "0.49882436", "0.49882406", "0.49861914" ]
0.6209925
4
Attempt to resolve a world based on the contents of a compound tag.
public static World readWorld(GlowServer server, CompoundTag compound) { World world = compound .tryGetUniqueId("WorldUUIDMost", "WorldUUIDLeast") .map(server::getWorld) .orElseGet(() -> compound.tryGetString("World") .map(server::getWorld) .orElse(null)); if (world == null) { world = compound .tryGetInt("Dimension") .map(World.Environment::getEnvironment) .flatMap(env -> server.getWorlds().stream() .filter(serverWorld -> env == serverWorld.getEnvironment()) .findFirst()) .orElse(null); } return world; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public World getWorld(String worldName);", "public static Location listTagsToLocation(World world, CompoundTag tag) {\n // check for position list\n final Location[] out = {null};\n tag.readDoubleList(\"Pos\", pos -> {\n if (pos.size() == 3) {\n Location location = new Location(world, pos.get(0), pos.get(1), pos.get(2));\n\n // check for rotation\n tag.readFloatList(\"Rotation\", rot -> {\n if (rot.size() == 2) {\n location.setYaw(rot.get(0));\n location.setPitch(rot.get(1));\n }\n });\n\n out[0] = location;\n }\n });\n\n return out[0];\n }", "Place resolveLocation( Place place );", "String resolve(String placeholder, AddressTemplate template);", "public ChunkPosition findClosestStructure(World par1World, String par2Str, int par3, int i, int j)\n {\n return null;\n }", "public static World getWorld(CommandContext<?> ctx, String argName) throws CommandSyntaxException {\n if(BrigadierWrapper.useFallbackDimensionArgument()) {\n return INSTANCE.dynamicStringToWorld(ctx, argName);\n } else {\n return INSTANCE.getDimension(ctx, argName);\n }\n }", "public ChunkPosition findClosestStructure(World par1World, String par2Str, int par3, int par4, int par5)\n {\n if (\"Stronghold\".equals(par2Str))\n {\n Iterator var6 = this.field_82696_f.iterator();\n\n while (var6.hasNext())\n {\n MapGenStructure var7 = (MapGenStructure)var6.next();\n\n if (var7 instanceof MapGenStronghold)\n {\n return var7.getNearestInstance(par1World, par3, par4, par5);\n }\n }\n }\n\n return null;\n }", "ResourceLocation resolve(String path);", "WorldGenerator getForWorld(World world);", "public static void writeWorld(World world, CompoundTag compound) {\n UUID worldUuid = world.getUID();\n // world UUID used by Bukkit and code above\n compound.putLong(\"WorldUUIDMost\", worldUuid.getMostSignificantBits());\n compound.putLong(\"WorldUUIDLeast\", worldUuid.getLeastSignificantBits());\n // leave a Dimension value for possible Vanilla use\n compound.putInt(\"Dimension\", world.getEnvironment().getId());\n }", "World getWorld();", "public static World readWorld() {\n\t\treturn null;\n\t}", "Symbol resolve(String name);", "MaterialAsset resolveAsset( MaterialAsset asset );", "public interface WorldQueryService {\n\n /**\n * @param type The type of world.\n * @return The world of this type.\n */\n World getWorld(WorldType type);\n\n /**\n * @param world The world.\n * @param x The X coordinate.\n * @param y The Y coordinate.\n * @param z The Z coordinate.\n * @return The block in the given world at the specified coordinates.\n */\n Block getBlockAt(WorldType world, int x, int y, int z);\n\n /**\n * @param world The world.\n * @param vector The vector.\n * @return The block at the given vector.\n */\n Block getBlockAt(WorldType world, Vector3ic vector);\n\n /**\n * @param location The location.\n * @return The block at the location.\n */\n Block getBlockAt(BlockLocation location);\n\n /**\n * @param location The location.\n * @return The block at the location.\n */\n Block getBlockAt(Location location);\n\n /**\n * @param world The world.\n * @param x The X coordinate.\n * @param z The Y coordinate.\n * @return The highest non-air block in the given world at the specified coordinates.\n */\n Block getHighestBlockAt(WorldType world, int x, int z);\n\n /**\n * @param location The location.\n * @return The highest non-air block at the specified location.\n */\n Block getHighestBlockAt(BlockLocation location);\n\n\n}", "public World getWorld();", "public Argument worldArgument(String nodeName) {\n\t\n\t//Construct our CustomArgument that takes in a String input and returns a World object\n\treturn new CustomArgument<World>(nodeName, (input) -> {\n\t //Parse the world from our input\n\t World world = Bukkit.getWorld(input);\n\t\n\t if(world == null) {\n\t throw new CustomArgumentException(new MessageBuilder(\"Unknown world: \").appendArgInput());\n\t } else {\n\t return world;\n\t }\n\t}).overrideSuggestions(sender -> {\n\t\t//List of worlds on the server, as Strings. We use overrideSuggestions(sender -> ...)\n\t\t//since this evaluates the list of worlds when the player types the command as opposed\n\t\t//to when the plugin starts up\n\t\treturn Bukkit.getWorlds().stream().map(World::getName).toArray(String[]::new);\n\t});\n}", "public Object resolveEntity(String pubID, String sysID)\n\t\t\t\tthrows Exception {\n\t\t\tif (isVerbose()) {\n\t\t\t\tlogInfo(\"resolve\", \"\\\"\" + pubID + \"\\\" \\\"\" + sysID + \"\\\"\");\n\t\t\t}\n\n\t\t\t// By default, the result is the System ID\n\t\t\tObject result = sysID;\n\n\t\t\tif ((pubID != null) && pubID.equals(_document.getDTDPublicID())) {\n\t\t\t\tString dtd = _document.getDTD();\n\n\t\t\t\tif (dtd != null) {\n\t\t\t\t\treturn new java.io.StringReader(dtd);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ((pubID != null) && !pubID.equals(\"\")) {\n\t\t\t\t/*\n\t\t\t\t * To find the DTD from the public ID, create a DefaultBundle\n\t\t\t\t * and look up the ID in that. If it is not null, then it is an\n\t\t\t\t * input stream that the parser can use.\n\t\t\t\t */\n\t\t\t\tDefaultBundle resources = new DefaultBundle();\n\n\t\t\t\ttry {\n\t\t\t\t\tObject str = resources.getResourceAsStream(pubID);\n\n\t\t\t\t\tif (str != null) {\n\t\t\t\t\t\tresult = str;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t// if the resource is not found, then ignore.\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (isVerbose()) {\n\t\t\t\tlogInfo(\"resolve\", \"=> \" + result);\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}", "public World getWorld(String name) {\n String world = cfg.getString(name + \".World\");\n if (world != null)\n return Bukkit.getWorld(world);\n return null;\n }", "@NotNull\r\n World getWorld();", "public abstract String resolve();", "public static World getWorld(){\n Optional<World> worldOptional = Sponge.getServer().getWorld(\"world\");\n if(worldOptional.isPresent()){\n return worldOptional.get();\n }\n return null;\n }", "public org.omg.CORBA.Object resolve(String name)\n {\n NameComponent nc = new NameComponent(name, \"Object\");\n NameComponent path[] = {nc};\n org.omg.CORBA.Object objRef = null;\n try\n {\n objRef = namingContext.resolve(path);\n }\n catch (Exception e)\n {\n fatalError(\"Cound not get object with name \\\"\" + name +\n \"\\\" from NameService\", e);\n }\n return objRef;\n }", "public boolean isLoadableWorld(String worldName);", "@Override\n public ChunkPosition a(World world, String s0, int i0, int i1, int i2) {\n return null;\n }", "public Optional<SignLocation> getSignAt(Vector3D vector3D, String world) {\n for (SignLocation signLocation : signLocations) {\n if (signLocation.getLocation().equals(vector3D) && signLocation.getWorld().equals(world)) {\n return Optional.of(signLocation);\n }\n }\n return Optional.empty();\n }", "public static Document resolve(Document in) \n throws BadParseAttributeException, InclusionLoopException, \n IOException, NoIncludeLocationException, ParsingException, \n UnsupportedEncodingException, XIncludeException { \n \n Builder builder = new Builder();\n return resolve(in, builder);\n \n }", "public Object resolveObject(Object obj) throws IOException;", "public Resolution resolve(Constraint localConstraint, LocalNode localModel) throws QueryException {\n // globalize the model\n Node modelNode = globalizeNode(localModel);\n if (!(modelNode instanceof URIReference)) throw new QueryException(\"Unexpected model type in constraint: (\" + modelNode.getClass() + \")\" + modelNode.toString());\n // convert the node to a URIReferenceImpl, which includes the Value interface\n URIReferenceImpl model = makeRefImpl((URIReference)modelNode);\n \n // check if this model is really on a remote server\n URI modelUri = model.getURI();\n testForLocality(modelUri);\n \n Answer ans = getModelSession(modelUri).query(globalizedQuery(localConstraint, model));\n return new AnswerResolution(session, ans, localConstraint);\n }", "protected abstract URL resolve(NamespaceId namesapace, String resource) throws IOException;", "@Override\r\n\tpublic InputSource resolveEntity(String arg0, String arg1, String arg2,\r\n\t\t\tString arg3) throws SAXException, IOException {\n\t\tInputSource is = null;\r\n\t\tString path = map.get(arg3);\r\n\t\t// System.out.println(\"\\tresolve \" + arg3 + \" as \" + path);\r\n\t\tif (path != null) {\r\n\t\t\tis = new InputSource(baseDirectory + path + arg3);\r\n\t\t}\r\n\t\treturn is;\r\n\t}", "public PrimObject resolveObject(String name) {\n return findObject(importFor(name));\n }", "@Override\n public InputSource resolveEntity(String publicId, String systemId)\n throws SAXException, IOException {\n\n if (isReference()) {\n return getRef().resolveEntity(publicId, systemId);\n }\n\n dieOnCircularReference();\n\n log(\"resolveEntity: '\" + publicId + \"': '\" + systemId + \"'\",\n Project.MSG_DEBUG);\n\n InputSource inputSource =\n getCatalogResolver().resolveEntity(publicId, systemId);\n\n if (inputSource == null) {\n log(\"No matching catalog entry found, parser will use: '\"\n + systemId + \"'\", Project.MSG_DEBUG);\n }\n\n return inputSource;\n }", "private Object readResolve() throws ObjectStreamException {\n\t\tif (m_element.equals(AND.m_element))\n\t\t\treturn AND;\n\t\telse\n\t\t\treturn OR;\n\t}", "public abstract void resolveConstant(Constant[] pool) throws IOException;", "Association findAssociation(World w, BlockPos pos, String strategy);", "protected abstract Object resolveQualifiedOperationEntity(String namespace, String localName);", "public static void resolveInPlace(Document in) \n throws BadParseAttributeException, InclusionLoopException, \n IOException, NoIncludeLocationException, ParsingException, \n UnsupportedEncodingException, XIncludeException { \n resolveInPlace(in, new Builder());\n }", "public abstract void resolve();", "private Optional<Block> resolve(String include, Set<String> imports, IBlockWriter writer) {\n\t\t\n\t\tList<String> searchEntries=Lists.newArrayList();\n\t\tif (include.contains(\".\")) {\n\t\t\tsearchEntries.add(include);\n\t\t} else {\n\t\t\tOptional<String> fullPath = exactMatch(include, imports);\n\t\t\tif (fullPath.isPresent()) {\n\t\t\t\tsearchEntries.add(fullPath.get());\n\t\t\t} else {\n\t\t\t\tfor (String i : imports) {\n\t\t\t\t\tint idx=i.indexOf(\"*\");\n\t\t\t\t\tif (idx!=-1) {\n\t\t\t\t\t\tsearchEntries.add(i.substring(0,idx)+include);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn resolve(searchEntries,writer);\n\t}", "@Override\n\tpublic Symbol resolve(String name) {\n\t\tSymbol s = symbols.get(name);\n\t\tif (s != null)\n\t\t\treturn s;\n\t\t\n\t\t// otherwise look in the enclosing scope, if there is one\n\t\tScope sc = enclosingScope;\n\t\twhile (sc != null) {\n\t\t\tSymbol sym = enclosingScope.resolve(name);\n\t\t\tif (sym != null) {\n\t\t\t\treturn sym;\n\t\t\t}\n\t\t\tsc = sc.getEnclosingScope();\n\t\t}\n\t\t// otherwise it doesn't exist\n\t\treturn null;\n\t}", "public static void fix(World world) {\n \t\tFile regionFolder = new File(Bukkit.getWorldContainer() + File.separator + world.getName() + File.separator + \"region\");\r\n \t\tif (regionFolder.exists()) {\r\n \t\t\t// Loop through all region files of the world\r\n \t\t\tint dx, dz;\r\n \t\t\tint rx, rz;\r\n \t\t\tfor (String regionFileName : regionFolder.list()) {\r\n \t\t\t\t// Validate file\r\n \t\t\t\tFile file = new File(regionFolder + File.separator + regionFileName);\r\n \t\t\t\tif (!file.isFile() || !file.exists()) {\r\n \t\t\t\t\tcontinue;\r\n \t\t\t\t}\r\n \t\t\t\tString[] parts = regionFileName.split(\"\\\\.\");\r\n \t\t\t\tif (parts.length != 4 || !parts[0].equals(\"r\") || !parts[3].equals(\"mca\")) {\r\n \t\t\t\t\tcontinue;\r\n \t\t\t\t}\r\n \t\t\t\t// Obtain the chunk offset of this region file\r\n \t\t\t\ttry {\r\n \t\t\t\t\trx = Integer.parseInt(parts[1]) << 5;\r\n \t\t\t\t\trz = Integer.parseInt(parts[2]) << 5;\r\n \t\t\t\t} catch (Exception ex) {\r\n \t\t\t\t\tcontinue;\r\n \t\t\t\t}\r\n \r\n \t\t\t\t// Is it contained in the cache?\r\n \t\t\t\tReference<RegionFile> ref = RegionFileCacheRef.FILES.get(file);\r\n \t\t\t\tRegionFile reg = null;\r\n \t\t\t\tif (ref != null) {\r\n \t\t\t\t\treg = ref.get();\r\n \t\t\t\t}\r\n \t\t\t\tboolean closeOnFinish = false;\r\n \t\t\t\tif (reg == null) {\r\n \t\t\t\t\tcloseOnFinish = true;\r\n \t\t\t\t\t// Manually load this region file\r\n \t\t\t\t\treg = new RegionFile(file);\r\n \t\t\t\t}\r\n \t\t\t\t// Obtain all generated chunks in this region file\r\n \t\t\t\tfor (dx = 0; dx < 32; dx++) {\r\n \t\t\t\t\tfor (dz = 0; dz < 32; dz++) {\r\n \t\t\t\t\t\tif (reg.c(dx, dz)) {\r\n \t\t\t\t\t\t\t// Region file exists - add it\r\n\t\t\t\t\t\t\tfix(world, rx + dx, rz + dz, true);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif (closeOnFinish) {\r\n \t\t\t\t\t// Close the region file stream - we are done with it\r\n \t\t\t\t\treg.c();\r\n \t\t\t\t}\r\n \t\t\t}\r\n\t\t} else {\r\n\t\t\tNoLagg.plugin.log(Level.WARNING, \"Failed to fix world '\" + world.getName() + \"': Region folder is missing!\");\r\n \t\t}\r\n \t}", "public InputSource resolveEntity (String publicId, String systemId)\n throws IOException, SAXException\n {\n return null;\n }", "public static interface Resolver\n {\n Constant resolve(Constant constOrig);\n }", "public abstract World create(World world);", "public void addToWorld(World world);", "public abstract String getWorldType();", "void resolve();", "private IWorld worldCreator(){\n if (gameWorld == GameWorld.NORMAL) return\n new Normal();\n else return\n new Nether();\n }", "@Override\n\tpublic Symbol resolveMember(String name) {\n\t\tSymbol s = symbols.get(name);\n\t\tif (s != null)\n\t\t\treturn s;\n\t\t\n\t\t// don't look in the enclosing scope for this one\n\t\t\n\t\t// otherwise it doesn't exist\n\t\treturn null;\n\t}", "public File getWorldRegionFolder(String worldName);", "public String resolve(InternalActionContext ac, String branch, ContainerType edgeType, String uuid, LinkType type, String projectName,\n\t\tString... languageTags) {\n\t\treturn resolve(ac, branch, edgeType, uuid, type, projectName, false, languageTags);\n\t}", "<T> T resolve(String name, Class<T> type);", "Community getCommunityReference( byte[] pid )\r\n throws NotFound;", "default Object resolve(String name) {\n return resolve(name, Object.class);\n }", "public void removeWorld(String name){\n worlds.remove(getWorld(name));\n }", "private void loadWorld() {\n try {\n world = jsonReader.read();\n System.out.println(\"Loaded world from \" + JSON_STORE);\n } catch (IOException | InvalidDataException e) {\n System.out.println(\"Unable to read from file: \" + JSON_STORE);\n }\n }", "Variable resolve(String name) {\n Scope scope = this;\n while (scope != null) {\n if (scope.variables.containsKey(name)) {\n return scope.variables.get(name);\n }\n scope = scope.parent;\n }\n throw new IllegalArgumentException(\"Unresolved variable: \" + name);\n }", "public interface UnknownNameReferenceResolver<R, I extends IndexAddressable.NamedIndexAddressable<N>, N extends NamedSemanticRegion<T>, T extends Enum<T>> {\n\n <X> X resolve(Extraction extraction, UnknownNameReference<T> ref, ResolutionConsumer<R, I, N, T, X> c) throws IOException;\n\n default <X> Map<UnknownNameReference<T>, X> resolveAll(Extraction extraction,\n SemanticRegions<UnknownNameReference<T>> refs,\n ResolutionConsumer<R, I, N, T, X> c) throws IOException {\n Map<UnknownNameReference<T>, X> result = new HashMap<>();\n for (SemanticRegion<UnknownNameReference<T>> unk : refs) {\n X item = resolve(extraction, unk.key(), c);\n if (item != null) {\n result.put(unk.key(), item);\n }\n }\n return result;\n }\n\n Class<T> type();\n}", "public void readEntityFromNBT(NBTTagCompound tagCompund) {}", "protected Object resolve(String roleName) throws ComponentException \n\t{\n\t\treturn lookup(roleName);\n\t}", "public boolean apply(World world, BlockPos rootPos);", "@Override\r\n\tpublic InputSource resolveEntity(String publicId, String systemId)\r\n\t\t\tthrows SAXException, IOException {\n\t\treturn null;\r\n\t}", "private XMLObject resolve(byte[] xml) {\n\t\tXMLObject parsed = parse(xml);\n\t\tif (parsed != null) {\n\t\t\treturn parsed;\n\t\t}\n\t\tthrow new Saml2Exception(\"Deserialization not supported for given data set\");\n\t}", "public final EObject entryRuleWorld() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleWorld = null;\n\n\n try {\n // InternalBoundingBox.g:64:46: (iv_ruleWorld= ruleWorld EOF )\n // InternalBoundingBox.g:65:2: iv_ruleWorld= ruleWorld EOF\n {\n newCompositeNode(grammarAccess.getWorldRule()); \n pushFollow(FOLLOW_1);\n iv_ruleWorld=ruleWorld();\n\n state._fsp--;\n\n current =iv_ruleWorld; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "void process(GameData gameData, Map<String, Entity> world, Entity entity);", "public static String worldNameFromObject(Object o)\r\n\t{\r\n\t\tif (o instanceof String)\r\n\t\t{\r\n\t\t\tString string = (String)o;\r\n\t\t\tif (MUtil.isUuid(string))\r\n\t\t\t{\r\n\t\t\t\tString ret = worldNameViaPsMixin(string);\r\n\t\t\t\tif (ret != null) return ret;\r\n\t\t\t}\r\n\t\t\treturn string;\r\n\t\t}\r\n\t\t\r\n\t\tif (o instanceof PS) return ((PS)o).getWorld();\r\n\t\t\r\n\t\tWorld world = worldFromObject(o);\r\n\t\tif (world != null) return world.getName();\r\n\t\t\r\n\t\tString ret = worldNameViaPsMixin(o);\r\n\t\tif (ret != null) return ret;\r\n\r\n\t\treturn null;\r\n\t}", "public World getWorld(int dim) {\n\t\treturn DimensionManager.getWorld(dim);\n\t}", "public abstract Coordinate resolve(Coordinate c, int frame, double time);", "public static WrapperWorld getWrapperFor(World world){\r\n\t\tif(world != null){\r\n\t\t\tWrapperWorld wrapper = worldWrappers.get(world);\r\n\t\t\tif(wrapper == null || world != wrapper.world){\r\n\t\t\t\twrapper = new WrapperWorld(world);\r\n\t\t\t\tworldWrappers.put(world, wrapper);\r\n\t\t\t}\r\n\t\t\treturn wrapper;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public ThingNode getWorld()\n {\n return world;\n }", "public <M extends Declaration> M incorporatedIntoContainerType(M toBeIncorporated) throws LookupException {\n\t\treturn incorporatedInto(toBeIncorporated, lexical().nearestAncestor(Type.class));\n\t}", "public interface AlignmentResolver {\n\n AlignmentType getAlignment(Sun sun, List<Planet> planets, int days);\n\n}", "public File getWorldFolder(String worldName);", "public World getWorld ( ) {\n\t\treturn invokeSafe ( \"getWorld\" );\n\t}", "public boolean tryPlaceContainedLiquid(World world, int x, int y, int z)\n {\n if (this.isFull == Blocks.air)\n {\n return false;\n }\n else\n {\n Material material = world.getBlock(x, y, z).getMaterial();\n boolean flag = !material.isSolid();\n\n if (!world.isAirBlock(x, y, z) && !flag)\n {\n return false;\n }\n else\n {\n if (world.provider.isHellWorld && this.isFull == Blocks.flowing_water)\n {\n world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, \"random.fizz\", 0.5F, 2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F);\n\n for (int l = 0; l < 8; ++l)\n {\n world.spawnParticle(\"largesmoke\", x + Math.random(), y + Math.random(), z + Math.random(), 0.0D, 0.0D, 0.0D);\n }\n }\n else\n {\n if (!world.isRemote && flag && !material.isLiquid())\n {\n world.func_147480_a(x, y, z, true);\n }\n\n world.setBlock(x, y, z, this.isFull, 0, 3);\n }\n\n return true;\n }\n }\n }", "public void removeFromWorld(World world);", "public void readEntityFromNBT(NBTTagCompound compound)\n {\n super.readEntityFromNBT(compound);\n this.setProfession(compound.getByte(\"Profession\"));\n }", "protected abstract World _dimension(CommandContext<?> ctx, String argName);", "public void readEntityFromNBT(NBTTagCompound tagCompund) {\n/* 182 */ this.fireworkAge = tagCompund.getInteger(\"Life\");\n/* 183 */ this.lifetime = tagCompund.getInteger(\"LifeTime\");\n/* 184 */ NBTTagCompound var2 = tagCompund.getCompoundTag(\"FireworksItem\");\n/* */ \n/* 186 */ if (var2 != null) {\n/* */ \n/* 188 */ ItemStack var3 = ItemStack.loadItemStackFromNBT(var2);\n/* */ \n/* 190 */ if (var3 != null)\n/* */ {\n/* 192 */ this.dataWatcher.updateObject(8, var3);\n/* */ }\n/* */ } \n/* */ }", "private void resolveGuildOrPlayer(CommandEvent event,\n @NotNull String[] args,\n TrackChannel entity,\n Consumer<SentMessage> onResolve,\n Consumer<SentMessage> unknownGuildResolved) throws IllegalArgumentException {\n switch (entity.getType()) {\n case WAR_SPECIFIC, TERRITORY_SPECIFIC -> {\n String specified = getName(args);\n if (specified == null) {\n throw new IllegalArgumentException(\"Invalid arguments: guild name was not specified.\");\n }\n this.guildNameResolver.resolve(\n specified,\n event,\n (next, guildName, prefix) -> {\n entity.setGuildName(guildName);\n if (prefix == null) {\n unknownGuildResolved.accept(next);\n } else {\n onResolve.accept(next);\n }\n }\n );\n }\n case WAR_PLAYER -> event.reply(new EmbedBuilder().setDescription(\"Processing...\").build(), next -> {\n String playerName = getName(args);\n if (playerName == null) {\n throw new IllegalArgumentException(\"Invalid arguments: player name was not specified.\");\n }\n UUID uuid = this.mojangApi.mustGetUUIDAtTime(playerName, new Date().getTime());\n if (uuid == null) {\n throw new IllegalArgumentException(String.format(\"Failed to retrieve player UUID for `%s`... \" +\n \"Check the spelling, and make sure the player with that name exists.\", playerName));\n }\n entity.setPlayerUUID(uuid.toStringWithHyphens());\n\n onResolve.accept(next);\n });\n default -> event.reply(new EmbedBuilder().setDescription(\"Processing...\").build(), onResolve);\n }\n }", "Object3dContainer getParsedObject();", "public static void getRoomConcept(String concept)\n\t{\n\t\t\n\t}", "protected TopicMapObject identifyByVariable(JellyContext ctx)\n throws JellyTagException {\n\n // name of variable supplied?\n if (variable == null)\n return null;\n\n Object o = ctx.getVariable(variable);\n String identifier = \"Variable \" + variable;\n return getReference(o, identifier);\n\n }", "@Override\n\tpublic World getWorld() { return world; }", "T resolve();", "public final void rule__Environment__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2202:1: ( ( 'world' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2203:1: ( 'world' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2203:1: ( 'world' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2204:1: 'world'\n {\n before(grammarAccess.getEnvironmentAccess().getWorldKeyword_0()); \n match(input,23,FOLLOW_23_in_rule__Environment__Group__0__Impl4701); \n after(grammarAccess.getEnvironmentAccess().getWorldKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Container findContainerFor(String name, Container initialScope)\r\n {\r\n if (initialScope == null)\r\n throw new IllegalArgumentException(\"Initial container scope cannot be null\");\r\n\r\n if(initialScope.isRoot())\r\n return initialScope;\r\n\r\n Container c = initialScope;\r\n while (c != null)\r\n {\r\n Map<String, String> p = getPreferences(c, false);\r\n if (p != null)\r\n {\r\n if (p.containsKey(name))\r\n return c;\r\n }\r\n if (c.isRoot())\r\n break;\r\n c = c.getParent();\r\n }\r\n return null;\r\n }", "void search( RealLocalizable reference );", "public void resolve(Resolver resolver)\n {\n // get the .class structure\n byte[] ab = getBytes();\n\n // wipe any disassembled information -- we are going to go directly\n // after the constant pool portion of the binary .class structure\n if (isLoaded())\n {\n init();\n }\n\n try\n {\n ByteArrayReadBuffer in = new ByteArrayReadBuffer(ab);\n ByteArrayOutputStream out = new ByteArrayOutputStream((int) (ab.length * 1.25));\n ReadBuffer.BufferInput streamIn = in.getBufferInput();\n DataOutput streamOut = new DataOutputStream(out);\n\n // the portion of the .class structure before the pool\n int ofStart = 8;\n streamIn.setOffset(ofStart);\n out.write(ab, 0, ofStart);\n\n // the constant pool is in the middle (offset 8 bytes) of the .class\n int cConst = streamIn.readUnsignedShort();\n streamOut.writeShort(cConst);\n\n for (int i = 1; i < cConst; ++i)\n {\n Constant constant = null;\n int nTag = streamIn.readUnsignedByte();\n switch (nTag)\n {\n case CONSTANT_UTF8:\n constant = new UtfConstant();\n break;\n case CONSTANT_INTEGER:\n constant = new IntConstant();\n break;\n case CONSTANT_FLOAT:\n constant = new FloatConstant();\n break;\n case CONSTANT_LONG:\n constant = new LongConstant();\n ++i; // uses two constant slots\n break;\n case CONSTANT_DOUBLE:\n constant = new DoubleConstant();\n ++i; // uses two constant slots\n break;\n\n case CONSTANT_CLASS:\n case CONSTANT_STRING:\n case CONSTANT_METHODTYPE:\n case CONSTANT_MODULE:\n case CONSTANT_PACKAGE:\n streamOut.writeByte(nTag);\n streamOut.writeShort(streamIn.readUnsignedShort());\n break;\n\n case CONSTANT_FIELDREF:\n case CONSTANT_METHODREF:\n case CONSTANT_INTERFACEMETHODREF:\n case CONSTANT_NAMEANDTYPE:\n case CONSTANT_INVOKEDYNAMIC:\n streamOut.writeByte(nTag);\n streamOut.writeShort(streamIn.readUnsignedShort());\n streamOut.writeShort(streamIn.readUnsignedShort());\n break;\n\n case CONSTANT_METHODHANDLE:\n streamOut.writeByte(nTag);\n streamOut.writeByte(streamIn.readUnsignedByte());\n streamOut.writeShort(streamIn.readUnsignedShort());\n break;\n\n default:\n throw new IOException(\"Invalid constant tag \" + nTag);\n }\n\n if (constant != null)\n {\n constant.disassemble(streamIn, null);\n constant = resolver.resolve(constant);\n constant.assemble(streamOut, null);\n }\n }\n\n // the portion of the .class structure after the pool\n int ofStop = streamIn.getOffset();\n out.write(ab, ofStop, ab.length - ofStop);\n ab = out.toByteArray();\n }\n catch (IOException e)\n {\n throw new RuntimeException(\"Illegal .class structure!\\n\" + e.toString());\n }\n\n // store the new .class structure\n setBytes(ab);\n }", "protected Object readResolve() {\n\tlabelSet = Label.parse(labelString);\n\treturn this;\n }", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "public World getWorld() {\n return world;\n }", "public World getWorld() {\n return world;\n }", "private SymbolTableItem resolveFromImports(String id) {\n ListIterator<Imported> i = imports.listIterator(imports.size());\n while(i.hasPrevious()) {\n Imported item = i.previous();\n if (item.fullNamesOnly == false || item.fullNamesOnly && id.startsWith(item.table.unitName)) {\n SymbolTableItem resolved = item.table.resolveImmediateOnly(id);\n if (resolved != null && \n (resolved.desc.visibility == SymbolVisibility.PUBLIC ||\n (resolved.desc.visibility == SymbolVisibility.PROTECTED &&\n item.table.parentNamespace.equals(parentNamespace))))\n return resolved;\n }\n }\n return null;\n }", "public Structure load(String name) {\n \t\treturn null;\n \t}", "public static FluidIngredient read(FriendlyByteBuf buffer) {\n int count = buffer.readInt();\n FluidIngredient[] ingredients = new FluidIngredient[count];\n for (int i = 0; i < count; i++) {\n Fluid fluid = ForgeRegistries.FLUIDS.getValue(new ResourceLocation(buffer.readUtf(32767)));\n if (fluid == null) {\n fluid = Fluids.EMPTY;\n }\n int amount = buffer.readInt();\n ingredients[i] = of(fluid, amount);\n }\n // if a single ingredient, do not wrap in compound\n if (count == 1) {\n return ingredients[0];\n }\n // compound for anything else\n return of(ingredients);\n }", "public WordInfo searchWord(String word) {\n\t\tSystem.out.println(\"Dic:SearchWord: \"+word);\n\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(\"https://dictionary.cambridge.org/dictionary/english-vietnamese/\" + word).get();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\tElements elements = doc.select(\".dpos-h.di-head.normal-entry\");\n\t\tif (elements.isEmpty()) {\n\t\t\tSystem.out.println(\" not found\");\n\t\t\treturn null;\n\t\t}\n\n\t\tWordInfo wordInfo = new WordInfo(word);\n\n\t\t// Word\n\t\telements = doc.select(\".tw-bw.dhw.dpos-h_hw.di-title\");\n\n\t\tif (elements.size() == 0) {\n\t\t\tSystem.out.println(\" word not found in doc!\");\n\t\t\treturn null;\n\t\t}\n\n\t\twordInfo.setWordDictionary(elements.get(0).html());\n\n\t\t// Type\n\t\telements = doc.select(\".pos.dpos\");\n\n\t\tif(elements.size() > 0) {\n\t\t\twordInfo.setType(WordInfo.getTypeShort(elements.get(0).html()));\n//\t\t\tif (wordInfo.getTypeShort().equals(\"\"))\n//\t\t\t\tSystem.out.println(\" typemis: \"+wordInfo.getType());\n\t\t}\n\n\t\t// Pronoun\n\t\telements = doc.select(\".ipa.dipa\");\n\n\t\tif (elements.size() > 0)\n\t\t\twordInfo.setAPI(\"/\"+elements.get(0).html()+\"/\");\n\n\t\t// Trans\n\t\telements = doc.select(\".trans.dtrans\");\n\n\t\tif (elements.size() > 0)\n\t\t\twordInfo.setTrans(elements.get(0).html());\n\n\t\tSystem.out.println(\" found\");\n\t\treturn wordInfo;\n\t}", "public static ExecutionResult lookupSystemRelatioinship(Universe universe, Node person, Node system) {\n ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());\n String query = \"START p=node(\" + person.getId() + \"), s=node(\" + system.getId() + \") MATCH (p)-[r:\" + RelationshipTypes.LIVED_ON + \"]->s RETURN s.name\";\n return engine.execute(query);\n }" ]
[ "0.6014608", "0.52682006", "0.50689137", "0.49964178", "0.49864572", "0.49685648", "0.4877074", "0.487332", "0.48496693", "0.4840508", "0.47757232", "0.47033215", "0.463823", "0.46061084", "0.46000135", "0.4585842", "0.4569121", "0.4523775", "0.45160374", "0.44862166", "0.44564313", "0.4453605", "0.44357997", "0.4425643", "0.4415049", "0.4410948", "0.44056615", "0.43942243", "0.43904248", "0.43680307", "0.43482304", "0.4342558", "0.4326647", "0.43216985", "0.43210754", "0.4303404", "0.42984793", "0.42819238", "0.42795146", "0.42790374", "0.42777017", "0.4266003", "0.4251733", "0.42516166", "0.42202032", "0.42068118", "0.42051786", "0.4198919", "0.4195342", "0.41775408", "0.4174069", "0.4168043", "0.41627344", "0.41597727", "0.41524914", "0.41476017", "0.4135606", "0.41264018", "0.41207132", "0.41059986", "0.41023988", "0.40912384", "0.40898103", "0.407353", "0.40712458", "0.40676367", "0.40660807", "0.4062241", "0.4061842", "0.40591988", "0.40556678", "0.40493804", "0.40489304", "0.4047718", "0.40455627", "0.4042329", "0.4040476", "0.4039601", "0.40375513", "0.40203273", "0.40190127", "0.4016529", "0.4015454", "0.40092966", "0.40068963", "0.40031955", "0.40030158", "0.40005264", "0.39981303", "0.39924338", "0.39840642", "0.397911", "0.397911", "0.3964809", "0.3964809", "0.39612615", "0.396044", "0.39489868", "0.39452773", "0.39434502" ]
0.5288118
1
Save world identifiers (UUID and dimension) to a compound tag for later lookup.
public static void writeWorld(World world, CompoundTag compound) { UUID worldUuid = world.getUID(); // world UUID used by Bukkit and code above compound.putLong("WorldUUIDMost", worldUuid.getMostSignificantBits()); compound.putLong("WorldUUIDLeast", worldUuid.getLeastSignificantBits()); // leave a Dimension value for possible Vanilla use compound.putInt("Dimension", world.getEnvironment().getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeEntityToNBT(NBTTagCompound tagCompound) {}", "long getWorldId();", "protected void writeEntityToNBT(NBTTagCompound compound) {\n if (this.casterUuid != null) {\n compound.setUniqueId(\"OwnerUUID\", this.casterUuid);\n }\n }", "public void writeEntityToNBT(NBTTagCompound tagCompound) {\n/* 165 */ tagCompound.setInteger(\"Life\", this.fireworkAge);\n/* 166 */ tagCompound.setInteger(\"LifeTime\", this.lifetime);\n/* 167 */ ItemStack var2 = this.dataWatcher.getWatchableObjectItemStack(8);\n/* */ \n/* 169 */ if (var2 != null) {\n/* */ \n/* 171 */ NBTTagCompound var3 = new NBTTagCompound();\n/* 172 */ var2.writeToNBT(var3);\n/* 173 */ tagCompound.setTag(\"FireworksItem\", (NBTBase)var3);\n/* */ } \n/* */ }", "public void save() {\n\n\t\tint[][] rawData = new int[2][CHUNK_SIZE * CHUNK_SIZE];\n\n\t\tfor (int l = 0; l < 2; l++) {\n\t\t\tLayer layer = Layer.get(l);\n\t\t\tfor (int y = 0; y < CHUNK_SIZE; y++) {\n\t\t\t\tfor (int x = 0; x < CHUNK_SIZE; x++) {\n\t\t\t\t\trawData[l][x + y * CHUNK_SIZE] = getTileId(layer, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.saveData = new RawChunkData(rawData);\n\t}", "long getWorldid();", "long getWorldid();", "public NBTTagCompound writeToNBT(NBTTagCompound tag)\r\n/* 158: */ {\r\n/* 159:159 */ tag.setByte(\"Id\", (byte)getID());\r\n/* 160:160 */ tag.setByte(\"Amplifier\", (byte)getAmplifier());\r\n/* 161:161 */ tag.setInt(\"Duration\", getDuration());\r\n/* 162:162 */ tag.setBoolean(\"Ambient\", getAmbient());\r\n/* 163:163 */ tag.setBoolean(\"ShowParticles\", getShowParticles());\r\n/* 164:164 */ return tag;\r\n/* 165: */ }", "protected void writeEntityToNBT(NBTTagCompound var1)\n {\n var1.setTag(\"Pos\", this.newDoubleNBTList(new double[] {this.posX, this.posY + (double)this.ySize, this.posZ}));\n var1.setTag(\"Rotation\", this.newFloatNBTList(new float[] {this.rotationYaw, this.rotationPitch}));\n var1.setInteger(\"mapid\", this.mapID);\n var1.setInteger(\"facingyaw\", this.facingYaw);\n var1.setInteger(\"wallx\", this.wallPos[0]);\n var1.setInteger(\"wally\", this.wallPos[1]);\n var1.setInteger(\"wallz\", this.wallPos[2]);\n }", "public void writeEntityToNBT(NBTTagCompound compound)\n {\n super.writeEntityToNBT(compound);\n compound.setByte(\"Profession\", (byte)this.getProfession());\n }", "public byte getWorldId()\r\n\t{\r\n\t\treturn mWorldId;\r\n\t}", "public long getWorldId() {\n return worldId_;\n }", "public long getWorldId() {\n return worldId_;\n }", "@Override\n\tpublic void saveNBTData(NBTTagCompound compound)\n\t{\n\t\t// We need to create a new tag compound that will save everything for our Extended Properties\n\t\tNBTTagCompound properties = new NBTTagCompound();\n\n\t\t// Store the Authy cell number and player email\n\t\tproperties.setString(\"AuthyCell\", this.authyCell);\n\t\tproperties.setString(\"PlayerEmail\", this.playerEmail);\n\t\tproperties.setString(\"AuthyCountryCode\", this.authyCountryCode);\n\t\tproperties.setString(\"AuthyID\", this.authyID);\n\t\tproperties.setString(\"AuthyPushRequestUUID\", this.pushRequestUUID);\n\t\tproperties.setString(\"AuthyPushRequestStatus\", this.pushRequestStatus);\n\t\tproperties.setIntArray(\"AuthySecuredDoorLocation\", this.authySecuredDoorLocation);\n\t\t// Store the date as milliseconds since Jan 1st 1970 because the properties class cannot store dates.\n\t\tif (this.authySuccessDate == null) {\n\t\t\tproperties.setLong(\"AuthyLast2FASuccess\", 0);\n\t\t} else {\n\t\t\tproperties.setLong(\"AuthyLast2FASuccess\", this.authySuccessDate.getTime());\n\t\t}\t\t\n\t\tcompound.setTag(EXT_PROP_NAME, properties);\n\t}", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "@Override\n\tprotected void writeEntityToNBT(NBTTagCompound tag) {\n\t\ttag.setByte(\"Fuse\", (byte)this.fuse);\n\t\ttag.setByte(\"Variant\", (byte)this.variant);\n\t}", "public void writeToNBT(NBTTagCompound par1NBTTagCompound);", "public void write(FriendlyByteBuf buffer) {\n Collection<FluidStack> fluids = getAllFluids();\n buffer.writeInt(fluids.size());\n for (FluidStack stack : fluids) {\n buffer.writeUtf(Objects.requireNonNull(stack.getFluid().getRegistryName()).toString());\n buffer.writeInt(stack.getAmount());\n }\n }", "public void writeEntityToNBT(NBTTagCompound nbttagcompound)\n {\n super.writeEntityToNBT(nbttagcompound);\n nbttagcompound.setShort(\"Anger\", (short)angerLevel);\n nbttagcompound.setBoolean(\"BumGave\", bumgave);\n nbttagcompound.setInteger(\"TimeToPee\", timetopee);\n nbttagcompound.setFloat(\"BumRotation\", bumrotation);\n nbttagcompound.setFloat(\"ModelSize\", modelsize);\n }", "public void writeEntityToNBT(NBTTagCompound tagCompound)\n {\n super.writeEntityToNBT(tagCompound);\n\n if (this.potion != null)\n {\n tagCompound.setTag(\"Potion\", this.potion.writeToNBT(new NBTTagCompound()));\n }\n }", "@Override\n public void writeToNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.writeToNBT(par1NBTTagCompound);\n par1NBTTagCompound.setInteger(\"explosiveID\", this.explosive.ordinal());\n par1NBTTagCompound.setTag(\"data\", this.nbtData);\n }", "private static void writeWorldDimension(XMLStreamWriter xMLStreamWriter, World world) throws XMLStreamException {\n\t\t//World width node\n\t\txMLStreamWriter.writeStartElement(\"WorldWidth\");\n\t\txMLStreamWriter.writeCharacters(world.getWidth()+\"\");\n xMLStreamWriter.writeEndElement();\n\n //World width node\n xMLStreamWriter.writeStartElement(\"WorldHeight\");\n \txMLStreamWriter.writeCharacters(world.getHeight()+\"\");\n xMLStreamWriter.writeEndElement();\n\t}", "public NBTTagCompound writeToNBT(NBTTagCompound nbt)\n {\n nbt.setDouble(\"x\", this.x);\n nbt.setDouble(\"y\", this.y);\n nbt.setDouble(\"z\", this.z);\n return nbt;\n }", "public static void registerDimensions() {\n Artifice.registerDataPack(id(\"dimensions\"), (pack) -> {\n pack.setDisplayName(\"Lotr Dimensions\");\n pack.setDescription(\"Dimensions added by the Lord of the Rings Mod\");\n //Dimension Type need to be added as file to prevent server issues, so not included here\n pack.addDimension(id(\"middle_earth_classic\"), dimensionBuilder -> dimensionBuilder\n .dimensionType(id(\"middle_earth_classic\"))\n .noiseGenerator(noiseChunkGeneratorTypeBuilder -> {\n noiseChunkGeneratorTypeBuilder.multiNoiseBiomeSource(multiNoiseBiomeSourceBuilder -> {\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:shire\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.0F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.8F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:mordor\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.2F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.8F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:rohan\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.0F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.7F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:misty_mountains\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.8F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.1F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:misty_mountains_foothills\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.5F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.1F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:shire_woodlands\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.0F);\n biomeParametersBuilder.humidity(1.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.8F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:river\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(-0.3F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.0F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:trollshaws\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.2F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.5F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:blue_mountains\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.7F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.6F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:blue_mountains_foothills\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.5F);\n biomeParametersBuilder.humidity(1.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.6F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:eriador\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.15F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.2F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:lone_lands\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.1F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.2F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:ithilien\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.3F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.05F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:brown_lands\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.15F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.25F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:lothlorien\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.4F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.8F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:iron_hills\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.6F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.6F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:dunland\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.2F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.3F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:emyn_muil\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.0F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(-0.15F);\n });\n });\n multiNoiseBiomeSourceBuilder\n .addBiome(biomeBuilder -> {\n biomeBuilder.biome(\"lotr:lindon\");\n biomeBuilder.parameters(biomeParametersBuilder -> {\n biomeParametersBuilder.altitude(0.1F);\n biomeParametersBuilder.humidity(0.0F);\n biomeParametersBuilder.offset(0.0F);\n biomeParametersBuilder.temperature(-0.2F);\n biomeParametersBuilder.weirdness(0.75F);\n });\n });\n multiNoiseBiomeSourceBuilder.altitudeNoise(noiseSettings -> {\n noiseSettings.amplitudes(1.0F, 1.0F);\n noiseSettings.firstOctave(-7);\n });\n multiNoiseBiomeSourceBuilder.humidityNoise(noiseSettings -> {\n noiseSettings.amplitudes(1.0F, 1.0F);\n noiseSettings.firstOctave(-7);\n });\n multiNoiseBiomeSourceBuilder.temperatureNoise(noiseSettings -> {\n noiseSettings.amplitudes(1.0F, 1.0F);\n noiseSettings.firstOctave(-7);\n });\n multiNoiseBiomeSourceBuilder.weirdnessNoise(noiseSettings -> {\n noiseSettings.amplitudes(1.0F, 1.0F);\n noiseSettings.firstOctave(-7);\n });\n multiNoiseBiomeSourceBuilder.seed((int)(new Random().nextLong()));\n })\n .type(\"minecraft:multi_noise\");\n noiseChunkGeneratorTypeBuilder.seed((int)(new Random().nextLong()));\n noiseChunkGeneratorTypeBuilder.noiseSettings(\"minecraft:overworld\");\n noiseChunkGeneratorTypeBuilder.type(\"minecraft:noise\");\n }));\n pack.shouldOverwrite();\n });\n Registry.register(Registry.SURFACE_BUILDER, id(\"middle_earth_surface_builder\"), ME_SURFACE_CONFIG);\n //Registry.register(Registry.CHUNK_GENERATOR, id(\"middle_earth_chunk_generator\"), );\n }", "@Override\n public void writeToNBT(NBTTagCompound tag) {\n if(this.materialName!=null && !this.materialName.equals(\"\")) {\n tag.setString(Names.NBT.material, this.materialName);\n tag.setInteger(Names.NBT.materialMeta, this.materialMeta);\n }\n super.writeToNBT(tag);\n }", "public void addToWorld() {\n world().addObject(this, xPos, yPos);\n \n try{\n terrHex = MyWorld.theWorld.getObjectsAt(xPos, yPos, TerritoryHex.class).get(0);\n } catch(IndexOutOfBoundsException e){\n MessageDisplayer.showMessage(\"The new LinkIndic didn't find a TerritoryHex at this position.\");\n this.destroy();\n }\n \n }", "private void saveWorld() {\n try {\n jsonWriter.open();\n jsonWriter.write(world);\n jsonWriter.close();\n System.out.println(\"Saved world to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }", "public void writeEntityToNBT(NBTTagCompound var1)\n {\n super.writeEntityToNBT(var1);\n var1.setFloat(\"Speedy\", this.speedy);\n var1.setShort(\"MoveTimer\", (short) this.moveTimer);\n var1.setShort(\"Direction\", (short) this.direction);\n var1.setBoolean(\"GotMovement\", this.gotMovement);\n var1.setBoolean(\"Reformed\", this.isReformed());\n var1.setInteger(\"OrgX\", this.getOrgX());\n var1.setInteger(\"OrgY\", this.getOrgY());\n var1.setInteger(\"OrgZ\", this.getOrgZ());\n }", "protected void writeEntityToNBT(NBTTagCompound var1)\n {\n var1.setByte(\"Fuse\", (byte) this.fuse);\n }", "private void saveEntities(File folder) throws IOException\n {\n File file = new File(folder + \"/entities.dat\");\n\n if (!this.saveEntities)\n {\n if (file.exists()) file.delete();\n\n return;\n }\n\n AxisAlignedBB aabb = new AxisAlignedBB(this.range.min, this.range.max);\n NBTTagCompound output = new NBTTagCompound();\n List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, aabb);\n\n if (entities.isEmpty()) return;\n\n for (EntityLivingBase entity : entities)\n {\n if (entity instanceof EntityPlayer)\n {\n continue;\n }\n\n NBTTagCompound tag = entity.writeToNBT(new NBTTagCompound());\n String id = EntityList.getEntityStringFromClass(entity.getClass());\n\n tag.setString(\"id\", id);\n this.entities.appendTag(tag);\n }\n\n output.setTag(\"Entities\", this.entities);\n\n CompressedStreamTools.write(output, file);\n }", "public Builder setWorldId(long value) {\n \n worldId_ = value;\n onChanged();\n return this;\n }", "public void toNBT(NBTTagCompound tag)\n {\n tag.setString(\"Name\", this.name);\n }", "public void addToWorld(World world);", "public void writeIDs() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/ids.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(ids);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public Builder setWorldid(long value) {\n bitField0_ |= 0x00000001;\n worldid_ = value;\n onChanged();\n return this;\n }", "public Builder setWorldid(long value) {\n bitField0_ |= 0x00000001;\n worldid_ = value;\n onChanged();\n return this;\n }", "public Builder clearWorldid() {\n bitField0_ = (bitField0_ & ~0x00000001);\n worldid_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearWorldid() {\n bitField0_ = (bitField0_ & ~0x00000001);\n worldid_ = 0L;\n onChanged();\n return this;\n }", "public interface WorldSaver {\n void save(final String worldUID, final List<AbstractEntity> entities);\n}", "@Override\n public void save(NBTTagCompound nbt)\n {\n \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 setWorld(GameData world) {\r\n this.world = world;\r\n }", "public Save(Player player, String worldname) {\n\t\tthis(player.game, \"/saves/\" + worldname + \"/\");\r\n\t\t\r\n\t\twriteGame(\"Game\");\n\t\t//writePrefs(\"KeyPrefs\");\r\n\t\twriteWorld(\"Level\");\r\n\t\twritePlayer(\"Player\", player);\r\n\t\twriteInventory(\"Inventory\", player);\r\n\t\twriteEntities(\"Entities\");\r\n\t\t\r\n\t\tGame.notifications.add(\"World Saved!\");\r\n\t\tplayer.game.asTick = 0;\r\n\t\tplayer.game.saving = false;\r\n\t}", "@Override\n\tpublic void writeEntityToNBT(NBTTagCompound nbt) {\n\t\tsuper.writeEntityToNBT(nbt);\n\t\tnbt.setBoolean(NBT_SADDLED, isSaddled());\n\n\t\thelpers.values().forEach(helper -> helper.writeToNBT(nbt));\n\t}", "private static void populateOMDB() throws IOException {\n // Bucket1 FSO layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_ONE,\n BUCKET_ONE,\n VOL,\n FILE_ONE,\n KEY_ONE_OBJECT_ID,\n BUCKET_ONE_OBJECT_ID,\n BUCKET_ONE_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_ONE_SIZE,\n getFSOBucketLayout());\n\n // Bucket2 Legacy layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_TWO,\n BUCKET_TWO,\n VOL,\n FILE_TWO,\n KEY_TWO_OBJECT_ID,\n PARENT_OBJECT_ID_ZERO,\n BUCKET_TWO_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_TWO_SIZE,\n getLegacyBucketLayout());\n\n // Bucket3 OBS layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_THREE,\n BUCKET_THREE,\n VOL,\n FILE_THREE,\n KEY_THREE_OBJECT_ID,\n PARENT_OBJECT_ID_ZERO,\n BUCKET_THREE_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_THREE_SIZE,\n getOBSBucketLayout());\n }", "private Object saveGivens() {\n List<String> out = new ArrayList<>();\n for(UUID id : givenEmpty) {\n out.add(id.toString());\n }\n return out;\n }", "public String getWorldName() {\n\t\treturn world;\n\t}", "public static Location listTagsToLocation(World world, CompoundTag tag) {\n // check for position list\n final Location[] out = {null};\n tag.readDoubleList(\"Pos\", pos -> {\n if (pos.size() == 3) {\n Location location = new Location(world, pos.get(0), pos.get(1), pos.get(2));\n\n // check for rotation\n tag.readFloatList(\"Rotation\", rot -> {\n if (rot.size() == 2) {\n location.setYaw(rot.get(0));\n location.setPitch(rot.get(1));\n }\n });\n\n out[0] = location;\n }\n });\n\n return out[0];\n }", "protected void readEntityFromNBT(NBTTagCompound compound) {\n this.casterUuid = compound.getUniqueId(\"OwnerUUID\");\n }", "public void writeToNBT(NBTTagCompound nbt) {\n\t\tnbt.setInteger(\"xSize\", sizeX);\n\t\tnbt.setInteger(\"ySize\", sizeY);\n\t\tnbt.setInteger(\"zSize\", sizeZ);\n\n\n\t\tIterator<TileEntity> tileEntityIterator = tileEntities.iterator();\n\t\tNBTTagList tileList = new NBTTagList();\n\t\twhile(tileEntityIterator.hasNext()) {\n\t\t\tTileEntity tile = tileEntityIterator.next();\n\t\t\ttry {\n\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\t\t\t\ttile.writeToNBT(tileNbt);\n\t\t\t\ttileList.appendTag(tileNbt);\n\t\t\t} catch(RuntimeException e) {\n\t\t\t\tAdvancedRocketry.logger.warn(\"A tile entity has thrown an error: \" + tile.getClass().getCanonicalName());\n\t\t\t\tblocks[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = Blocks.AIR;\n\t\t\t\tmetas[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = 0;\n\t\t\t\ttileEntityIterator.remove();\n\t\t\t}\n\t\t}\n\n\t\tint[] blockId = new int[sizeX*sizeY*sizeZ];\n\t\tint[] metasId = new int[sizeX*sizeY*sizeZ];\n\t\tfor(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\t\t\t\t\tblockId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = Block.getIdFromBlock(blocks[x][y][z]);\n\t\t\t\t\tmetasId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = (int)metas[x][y][z];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tNBTTagIntArray idList = new NBTTagIntArray(blockId);\n\t\tNBTTagIntArray metaList = new NBTTagIntArray(metasId);\n\n\t\tnbt.setTag(\"idList\", idList);\n\t\tnbt.setTag(\"metaList\", metaList);\n\t\tnbt.setTag(\"tiles\", tileList);\n\n\n\t\t/*for(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\n\t\t\t\t\tidList.appendTag(new NBTTagInt(Block.getIdFromBlock(blocks[x][y][z])));\n\t\t\t\t\tmetaList.appendTag(new NBTTagInt(metas[x][y][z]));\n\n\t\t\t\t\t//NBTTagCompound tag = new NBTTagCompound();\n\t\t\t\t\ttag.setInteger(\"block\", Block.getIdFromBlock(blocks[x][y][z]));\n\t\t\t\t\ttag.setShort(\"meta\", metas[x][y][z]);\n\n\t\t\t\t\tNBTTagCompound tileNbtData = null;\n\n\t\t\t\t\tfor(TileEntity tile : tileEntities) {\n\t\t\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\n\t\t\t\t\t\ttile.writeToNBT(tileNbt);\n\n\t\t\t\t\t\tif(tileNbt.getInteger(\"x\") == x && tileNbt.getInteger(\"y\") == y && tileNbt.getInteger(\"z\") == z){\n\t\t\t\t\t\t\ttileNbtData = tileNbt;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(tileNbtData != null)\n\t\t\t\t\t\ttag.setTag(\"tile\", tileNbtData);\n\n\t\t\t\t\tnbt.setTag(String.format(\"%d.%d.%d\", x,y,z), tag);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}*/\n\t}", "@Override\n public void writeToNBT(NBTTagCompound nbtTagCompound)\n {\n super.writeToNBT(nbtTagCompound);\n nbtTagCompound.setShort(\"ProcO\", (short) this.processTimeOutput);\n nbtTagCompound.setShort(\"WholeO\", (short) this.wholeTimeOutput);\n nbtTagCompound.setDouble(\"TfP\", this.tfPooled);\n nbtTagCompound.setDouble(\"TfN\", this.tfNeeded);\n\n NBTTagCompound tag1 = this.nigariTank.writeToNBT(new NBTTagCompound());\n nbtTagCompound.setTag(\"Tank1\", tag1);\n\n NBTTagCompound tag2 = this.ingredientTank.writeToNBT(new NBTTagCompound());\n nbtTagCompound.setTag(\"Tank2\", tag2);\n }", "public boolean hasWorldid() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasWorldid() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@PersistField\n public WorldData getWorldData()\n {\n return worldData;\n }", "protected void addedToWorld(World world) \n {\n createImages();\n }", "public void writeToServer(NBTTagCompound tag)\n\t{\n\t}", "private void addMorph(World world, String name)\n {\n try\n {\n EntityMorph morph = this.factory.morphFromName(name);\n EntityLivingBase entity = (EntityLivingBase) EntityList.createEntityByIDFromName(new ResourceLocation(name), world);\n\n if (entity == null)\n {\n System.out.println(\"Couldn't add morph \" + name + \", because it's null!\");\n return;\n }\n\n NBTTagCompound data = entity.serializeNBT();\n\n morph.name = name;\n\n /* Setting up a category */\n String category = \"generic\";\n\n /* Category for third-party modded mobs */\n if (!name.startsWith(\"minecraft:\"))\n {\n category = name.substring(0, name.indexOf(\":\"));\n }\n else if (entity instanceof EntityDragon || entity instanceof EntityWither || entity instanceof EntityGiantZombie)\n {\n category = \"boss\";\n }\n else if (entity instanceof EntityAnimal || name.equals(\"minecraft:bat\") || name.equals(\"minecraft:squid\"))\n {\n category = \"animal\";\n }\n else if (entity instanceof EntityMob || name.equals(\"minecraft:ghast\") || name.equals(\"minecraft:magma_cube\") || name.equals(\"minecraft:slime\") || name.equals(\"minecraft:shulker\"))\n {\n category = \"hostile\";\n }\n\n EntityUtils.stripEntityNBT(data);\n morph.setEntityData(data);\n\n this.get(category).add(morph);\n }\n catch (Exception e)\n {\n System.out.println(\"An error occured during insertion of \" + name + \" morph!\");\n e.printStackTrace();\n }\n }", "@Override\n protected void buildWorldRepresentation() {\n java.util.List<BasicModelEntity> worldModelEntityList = spaceExplorerModel.getWorldEntityList();\n java.util.List<CSysEntity> viewWorldEntityList = new ArrayList();\n for (int i = 0; i < worldModelEntityList.size(); i++) {\n\n BasicModelEntity basicModelEntity = worldModelEntityList.get(i);\n\n CSysEntity cSysEntity = null;\n if (basicModelEntity instanceof ModelLineEntity) {\n cSysEntity = new SeCSysLineEntity(this, (ModelLineEntity) basicModelEntity);\n cSysEntity.setDrawColor(basicModelEntity.getColor());\n// addWorldEntity(cSysLineEntity);\n } else if (basicModelEntity instanceof ModelPolyLineEntity) {\n cSysEntity = new SeCSysViewPolyLineEntity(this, (ModelPolyLineEntity) basicModelEntity);\n cSysEntity.setDrawColor(basicModelEntity.getColor());\n// addWorldEntity(seCSysViewPolylineEntity);\n }\n viewWorldEntityList.add(cSysEntity);\n }\n\n createAxis(viewWorldEntityList);\n viewWorldEntityArray = viewWorldEntityList.toArray(new BasicCSysEntity[viewWorldEntityList.size()]);\n updateCSysEntList(combinedRotatingMatrix);\n }", "public void addSign(Vector3D location, String world, String[] lines) {\n dirty = true;\n if (!getSignAt(location, world).isPresent()) {\n signLocations.add(new SignLocation(location, world, server, lines));\n }\n }", "@Override\n\tpublic void writeToNBT(NBTTagCompound var1) {\n\t\tsuper.writeToNBT(var1);\n\t\tString mobID = (this.mobID != null) ?this.mobID : \"\";\n\t\tvar1.setString(\"mobID\", mobID);\n\t\tvar1.setShort(\"delay\", delay);\n\t}", "protected void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 115: */ {\r\n/* 116:137 */ super.writeEntityToNBT(paramfn);\r\n/* 117: */ \r\n/* 118:139 */ fv localfv = new fv();\r\n/* 119:141 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 120:142 */ if (this.a[i] != null)\r\n/* 121: */ {\r\n/* 122:143 */ NBTTagCompound localfn = new NBTTagCompound();\r\n/* 123:144 */ localfn.setByte(\"Slot\", (byte)i);\r\n/* 124:145 */ this.a[i].writeToNBT(localfn);\r\n/* 125:146 */ localfv.a(localfn);\r\n/* 126: */ }\r\n/* 127: */ }\r\n/* 128:149 */ paramfn.setNBT(\"Items\", localfv);\r\n/* 129: */ }", "public boolean hasWorldid() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasWorldid() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private void addToOutOfTypeSystemData(String typeName, Attributes attrs)\n throws XCASParsingException {\n if (this.outOfTypeSystemData != null) {\n FSData fsData = new FSData();\n fsData.type = typeName;\n fsData.indexRep = null; // not indexed\n String attrName, attrValue;\n for (int i = 0; i < attrs.getLength(); i++) {\n attrName = attrs.getQName(i);\n attrValue = attrs.getValue(i);\n if (attrName.startsWith(reservedAttrPrefix)) {\n if (attrName.equals(XCASSerializer.ID_ATTR_NAME)) {\n fsData.id = attrValue;\n } else if (attrName.equals(XCASSerializer.CONTENT_ATTR_NAME)) {\n this.currentContentFeat = attrValue;\n } else if (attrName.equals(XCASSerializer.INDEXED_ATTR_NAME)) {\n fsData.indexRep = attrValue;\n } else {\n fsData.featVals.put(attrName, attrValue);\n }\n } else {\n fsData.featVals.put(attrName, attrValue);\n }\n }\n this.outOfTypeSystemData.fsList.add(fsData);\n this.currentOotsFs = fsData;\n // Set the state; we're ready to accept the \"content\" feature,\n // if one is specified\n this.state = OOTS_CONTENT_STATE;\n }\n }", "public String toRaw() {\n\t\treturn new StringBuilder(world).append(\",\").append(lowPoint.getBlockX()).append(\",\").append(lowPoint.getBlockY()).append(\",\").append(lowPoint.getBlockZ()).append(\",\").append(highPoint.getBlockX()).append(\",\").append(highPoint.getBlockY()).append(\",\").append(highPoint.getBlockZ()).toString();\n\t}", "public void put(ResourceLocation name, Tag nbt) {\n data.put(name.toString(), nbt);\n }", "public void writeToDicom(DicomObject dcDo)\n {\n\t\tif (codeValue != null)\n\t\t\twriteString(dcDo, Tag.CodeValue, VR.SH, \"1C\", codeValue);\n\t\t\n\t\tif (longCodeValue != null)\n\t\t\twriteString(dcDo, TagLongCodeValue, VR.SH, \"1C\", codeValue);\n\t\t\n\t\tif (urnCodeValue != null)\n\t\t\twriteString(dcDo, TagUrnCodeValue, VR.SH, \"1C\", urnCodeValue);\n\t\t\n if (codingSchemeDesignator != null)\n\t\t\twriteString(dcDo, Tag.CodingSchemeDesignator, VR.SH, \"1C\", codingSchemeDesignator);\n \n\t\tif (codingSchemeVersion != null)\n\t\t\twriteString(dcDo, Tag.CodingSchemeVersion, VR.SH, \"1C\", codingSchemeVersion);\n\t\t\n writeString(dcDo, Tag.CodeMeaning, VR.LO, 1, codeMeaning);\n writeString(dcDo, Tag.ContextIdentifier, VR.CS, 3, contextIdentifier);\n writeString(dcDo, Tag.ContextUID, VR.UI, 3, contextUid);\n \n\t\tif (contextIdentifier != null)\n\t\t{\n\t\t\twriteString(dcDo, Tag.MappingResource, VR.CS, \"1C\", mappingResource);\n\t\t\twriteString(dcDo, Tag.ContextGroupVersion, VR.DT, \"1C\", contextGroupVersion);\n\t\t}\n\t\t\n\t\twriteString(dcDo, Tag.ContextGroupExtensionFlag, VR.CS, 3, contextGroupExtensionFlag);\n\t\t\n if (contextGroupExtensionFlag != null)\n\t\t{\n\t\t\tif (contextGroupExtensionFlag.equals(\"Y\"))\n\t\t\t{\n\t\t\t\twriteString(dcDo, Tag.ContextGroupLocalVersion, VR.DT, \"1C\", contextGroupLocalVersion);\n\t\t\t\twriteString(dcDo, Tag.ContextGroupExtensionCreatorUID, VR.UI, \"1C\", contextGroupExtensionCreatorUid);\n\t\t\t}\n\t\t}\t\t \n }", "@SuppressWarnings(\"deprecation\")\n public final void getRoomIdAndNames() {\n List<String> custom_names = getCustomRoomNames();\n TARDISARS[] ars = TARDISARS.values();\n // less non-room types\n int l = (custom_names.size() + ars.length) - 3;\n this.room_ids = new ArrayList<Integer>();\n this.room_names = new ArrayList<String>();\n for (TARDISARS a : ars) {\n if (a.getOffset() != 0) {\n this.room_ids.add(a.getId());\n this.room_names.add(a.getDescriptiveName());\n }\n }\n for (final String c : custom_names) {\n this.room_ids.add(Material.valueOf(plugin.getRoomsConfig().getString(\"rooms.\" + c + \".seed\")).getId());\n final String uc = ucfirst(c);\n this.room_names.add(uc);\n TARDISARS.addNewARS(new ARS() {\n @Override\n public int getId() {\n return Material.valueOf(plugin.getRoomsConfig().getString(\"rooms.\" + c + \".seed\")).getId();\n }\n\n @Override\n public String getActualName() {\n return c;\n }\n\n @Override\n public String getDescriptiveName() {\n return uc;\n }\n\n @Override\n public int getOffset() {\n return 1;\n }\n });\n }\n }", "void save(int Wave, Set<UUID> players);", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "public void setWorld(World world) {\n this.world = world;\n }", "private void setTrackDescriptionsAndID() {\n\t\t// Compute new definitions for all tracks\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.forEachEntry(( globalID, track ) -> {\n\t\t\ttrack.trackDoc = llahTrackingOps.createDocument(track.predicted.toList());\n\t\t\t// copy global landmarks into track so that in the next iteration the homography will be correct\n\t\t\ttrack.trackDoc.landmarks.reset();\n\t\t\ttrack.trackDoc.landmarks.copyAll(track.globalDoc.landmarks.toList(), ( src, dst ) -> dst.setTo(src));\n\t\t\ttrackId_to_globalId.put(track.trackDoc.documentID, globalID);\n\t\t\treturn true;\n\t\t});\n\t}", "@Override\n public void writeToNBT(NBTTagCompound nbt)\n {\n super.writeToNBT(nbt);\n nbt.setInteger(\"pokedexNb\", pokedexNb);\n nbt.setInteger(\"time\", time);\n NBTTagList itemList = new NBTTagList();\n\n for (int i = 0; i < inventory.length; i++)\n {\n ItemStack stack = inventory[i];\n\n if (stack != null)\n {\n NBTTagCompound tag = new NBTTagCompound();\n tag.setByte(\"Slot\", (byte) i);\n stack.writeToNBT(tag);\n itemList.appendTag(tag);\n }\n }\n nbt.setTag(\"Inventory\", itemList);\n }", "private void generateUniverse(Universe universe) throws SAXException{\n saver.addAttribute(\"version\", XmlSaver.CDATA, version+\"\");\n saver.startTag(\"universe\");\n saver.startTag(\"content\");\n generateBackground(universe);\n generateLimits(universe);\n generateLights(universe);\n generateComponents(universe);\n saver.closeTag(\"content\");\n saver.closeTag(\"universe\");\n }", "public NBT_Tag(String name) {\nthis.id = 0; //overwritten\nthis.name = name;\n}", "public void registerWorldChunkManager() {\n\t\tthis.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.sky, 0.5F, 0.0F);\n\t\tthis.dimensionId = 1;\n\t\tthis.hasNoSky = true;\n\t}", "public void save() { \n /*\n * Iterate over registry to pull box values\n * Creating new IOLoader for instance \n */\n for(UUID id : giftRegistry.keySet()) {\n GiftBox box = giftRegistry.get(id);\n\n String sId = id.toString();\n IOLoader<SecretSanta> config = new IOLoader<SecretSanta>(SecretSanta._this(), sId + \".yml\", \"Gifts\");\n\n FileConfiguration fCon = config.getCustomConfig();\n fCon.createSection(\"SecretSanta\");\n fCon.set(\"SecretSanta\", box.getConfig());\n\n try{\n fCon.save(config.getFile());\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: \" + sId + \".yml\");\n continue;\n }\n }\n //SecretSanta._this().logDebug(\"[GiftManager] Gift Registry save successful.\");\n\n IOLoader<SecretSanta> pairedConfig = new IOLoader<SecretSanta>(SecretSanta._this(), \"PairedRegistry.yml\", \"Data\");\n FileConfiguration fPaired = pairedConfig.getCustomConfig();\n fPaired.createSection(\"paired\");\n fPaired.set(\"paired\", savePairs());\n\n try{\n fPaired.save(pairedConfig.getFile());\n //SecretSanta._this().logDebug(\"[GiftManager] PairedRegistry.yml save successful.\");\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: PairedRegistry.yml\");\n }\n\n IOLoader<SecretSanta> playerConfig = new IOLoader<SecretSanta>(SecretSanta._this(), \"PlayerRegistry.yml\", \"Data\");\n FileConfiguration fPlayer = playerConfig.getCustomConfig();\n fPlayer.createSection(\"registered\");\n fPlayer.set(\"registered\", savePlayers());\n\n try{\n fPlayer.save(playerConfig.getFile());\n //SecretSanta._this().logDebug(\"[GiftManager] PlayerRegistry.yml save successful.\");\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: PlayerRegistry.yml\");\n }\n\n IOLoader<SecretSanta> givenConfig = new IOLoader<SecretSanta>(SecretSanta._this(), \"GivenEmptyRegistry.yml\", \"Data\");\n FileConfiguration fGiven = givenConfig.getCustomConfig();\n fGiven.createSection(\"given\");\n fGiven.set(\"given\", saveGivens());\n\n try{\n fGiven.save(givenConfig.getFile());\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: GivenEmptyRegistry.yml\");\n }\n\n SecretSanta._this().logDebug(\"[GiftManager] Saving complete.\");\n }", "@Override\n\tpublic void readAdditionalSaveData(CompoundNBT compound) {\n\t\tsuper.readAdditionalSaveData(compound);\n\t\tthis.readPersistentAngerSaveData((ServerWorld) this.level, compound);\n\t\tthis.setCombatTask();\n\t}", "public void saveSchematic(int dimension)\n\t{\n\t\tList<SchematicContainerTileEntity> instances = SchematicContainerWorldSaveData.forWorld(this.worldObj).getList(this.worldObj);\n\t\t// Find other end\n\t\tfor(SchematicContainerTileEntity sc : instances)\n\t\t{\n\t\t\tif(sc.schematicName.equals(this.schematicName) && sc != this)\n\t\t\t{\n\t\t\t\tint[] start = new int[3];\n\t\t\t\tint[] end = new int[3];\n\t\t\t\t\n\t\t\t\tstart[0] = this.xCoord;\n\t\t\t\tstart[1] = this.yCoord;\n\t\t\t\tstart[2] = this.zCoord;\n\t\t\t\tend[0] = sc.xCoord;\n\t\t\t\tend[1] = sc.yCoord;\n\t\t\t\tend[2] = sc.zCoord;\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.format(\"%s Coords: %d, %d, %d -> %d, %d, %d\",this.schematicName, start[0], start[1], start[2], end[0], end[1], end[2]));\n\t\t\t\tSchematic schematic = Schematics.fromWorld(this.worldObj, dimension, start, end);\n\t\t\t\tschematic.save(\"C:/Users/Doug/Desktop/\"+sc.getSchematicName()+\".schematic\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public java.lang.String generateRackID() {\n String randomString = \"\";\n String rackId = \"\";\n for (int i = 0; i < 2; i++) {\n char[] arr = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n int select = new Random().nextInt(arr.length);\n randomString += arr[select];\n }\n\n rackId = randomString.toUpperCase() + \".\" + rackCounter + \".\" + copyrightYear;\n rackCounter++;\n return rackId;\n }", "byte[] getId();", "public void saveFeatureMetadata();", "private void generateWorld() {\n\t\t// Loop through all block locations where a block needs to be generated\n\t\tfor(int x=0; x<WORLD_SIZE; x++) {\n\t\t\tfor(int z=0; z<WORLD_SIZE; z++) {\n\t\t\t\tfor(int y=0; y<WORLD_HEIGHT/2; y++) {\n\t\t\t\t\tsetBlockAt(x, y, z, BlockType.STONE);\n\t\t\t\t\tif(y > (WORLD_HEIGHT/2) - 5)\n\t\t\t\t\t\tsetBlockAt(x, y, z, BlockType.DIRT);\n\t\t\t\t\tif(y == (WORLD_HEIGHT/2) -1)\n\t\t\t\t\t\tsetBlockAt(x, y, z, BlockType.GRASS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t// Generate NUM_DIAMONDS of diamonds in random locations\n\t\tfor(int i=0; i<NUM_DIAMONDS; i++)\n\t\t\tsetBlockAt(getRandomLocation(), BlockType.DIAMOND);\t\n\t}", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}", "private BufferedImage worldToImage() {\n if (world == null) {\n return null;\n }\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\n int[] rgbWorld = new int[width * height];\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int index = twoDimIndexToOneDimIndex(x, y);\n rgbWorld[index] = world[x][y].getRgbColor();\n }\n }\n\n image.setRGB(0, 0, width, height, rgbWorld, 0, width);\n\n return image;\n }", "public interface IDs {\n\n static final String SERIES_STANDARD_ID = \"c7fb8441-d5db-4113-8af0-e4ba0c3f51fd\";\n static final String EPISODE_STANDARD_ID = \"a99a8588-93df-4811-8403-fe22c70fa00a\";\n static final String FILE_STANDARD_ID = \"c5919cbf-fbf3-4250-96e6-3fefae51ffc5\";\n static final String RECORDING_STANDARD_ID = \"4a40811d-c067-467f-8ff6-89f37eddb933\";\n static final String ZAP2IT_STANDARD_ID = \"545c4b00-5409-4d92-9cda-59a44f0ec7a9\";\n}", "public void persistCvchannelPack(CvchannelPack cvchannelPack);", "public void b(World var1, int var2, int var3, int var4, Random var5)\n {\n if (var5.nextInt(10) == 0)\n {\n var1.setRawTypeId(var2, var3, var4, this.this$0.gildedlilyId);\n }\n }", "@Model\n\tprotected void setWorld(World world) {\n\t\tthis.world = world;\n\t}", "public void writeToNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.writeToNBT(par1NBTTagCompound);\n par1NBTTagCompound.setShort(\"Fuel\", (short)this.fuel);\n par1NBTTagCompound.setShort(\"CookTime\", (short)this.furnaceCookTime);\n par1NBTTagCompound.setShort(\"Direction\", (short)this.direction);\n par1NBTTagCompound.setShort(\"TimeBase\", (short)this.furnaceTimeBase);\n par1NBTTagCompound.setShort(\"MaxFuel\", (short)this.maxFuel);\n NBTTagList var2 = new NBTTagList();\n\n for (int var3 = 0; var3 < this.furnaceItemStacks.length; ++var3)\n {\n if (this.furnaceItemStacks[var3] != null)\n {\n NBTTagCompound var4 = new NBTTagCompound();\n var4.setByte(\"Slot\", (byte)var3);\n this.furnaceItemStacks[var3].writeToNBT(var4);\n var2.appendTag(var4);\n }\n }\n\n par1NBTTagCompound.setTag(\"Items\", var2);\n sync();\n }", "@Override\n\tpublic void writeEntityToNBT(NBTTagCompound p_70014_1_)\n\t{\n\t\tp_70014_1_.setShort(\"xTile\", (short) this.xTile);\n\t\tp_70014_1_.setShort(\"yTile\", (short) this.yTile);\n\t\tp_70014_1_.setShort(\"zTile\", (short) this.zTile);\n\t\tp_70014_1_.setByte(\"inTile\", (byte) Block.getIdFromBlock(this.inTile));\n\t\tp_70014_1_.setByte(\"shake\", (byte) this.throwableShake);\n\t\tp_70014_1_.setByte(\"inGround\", (byte) (this.inGround ? 1 : 0));\n\n\t\tif (((this.throwerName == null) || (this.throwerName.length() == 0)) && (this.thrower != null) && (this.thrower instanceof EntityPlayer))\n\t\t{\n\t\t\tthis.throwerName = this.thrower.getCommandSenderEntity().getName();\n\t\t}\n\n\t\tp_70014_1_.setString(\"ownerName\", this.throwerName == null ? \"\" : this.throwerName);\n\t}", "@Override\n @PersistField(id = true, name = \"id\", readonly = true)\n public int hashCode()\n {\n int positionHash = position == null ? 0 : position.hashCode();\n int worldHash = worldData == null ? 0 : worldData.getName().hashCode();\n return positionHash ^ worldHash << 14;\n }", "public int getBlockID(IBlockAccess world)\n {\n return world.getBlockId(this.intX(), this.intY(), this.intZ());\n }", "public Builder clearWorldId() {\n \n worldId_ = 0L;\n onChanged();\n return this;\n }", "private void encodeNameIdAttributes(Encoder encoder, DataType type) throws IOException {\n\t\tif (type instanceof BuiltIn) {\n\t\t\tencoder.writeString(ATTRIB_NAME,\n\t\t\t\t((BuiltIn) type).getDecompilerDisplayName(displayLanguage));\n\t\t}\n\t\telse {\n\t\t\tencoder.writeString(ATTRIB_NAME, type.getName());\n\t\t\tlong id = progDataTypes.getID(type);\n\t\t\tif (id > 0) {\n\t\t\t\tencoder.writeUnsignedInteger(ATTRIB_ID, id);\n\t\t\t}\n\t\t}\n\t}", "void storeObject(RectangleLatLng rectangle, String id);", "@Override\n\tpublic void pasteInWorld(World world, int xCoord, int yCoord ,int zCoord) {\n\n\t\t//Set all the blocks\n\t\tfor(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\t\t\t\tfor(int y = 0; y< sizeY; y++) {\n\n\t\t\t\t\tif(blocks[x][y][z] != null) {\n\t\t\t\t\t\tworld.setBlockState(new BlockPos(xCoord + x, yCoord + y, zCoord + z), blocks[x][y][z].getStateFromMeta(metas[x][y][z]), 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Set tiles for each block\n\t\tfor(TileEntity tile : tileEntities) {\n\t\t\tNBTTagCompound nbt = new NBTTagCompound();\n\t\t\ttile.writeToNBT(nbt);\n\t\t\tint x = nbt.getInteger(\"x\");\n\t\t\tint y = nbt.getInteger(\"y\");\n\t\t\tint z = nbt.getInteger(\"z\");\n\n\t\t\tint tmpX = x + xCoord;\n\t\t\tint tmpY = y + yCoord;\n\t\t\tint tmpZ = z + zCoord;\n\n\t\t\t//Set blocks of tiles again to avoid weirdness caused by updates\n\t\t\t//world.setBlock(xCoord + x, yCoord + y, zCoord + z, blocks[x][y][z], metas[x][y][z], 2);\n\n\n\t\t\tnbt.setInteger(\"x\",tmpX);\n\t\t\tnbt.setInteger(\"y\",tmpY);\n\t\t\tnbt.setInteger(\"z\",tmpZ);\n\n\t\t\tTileEntity entity = world.getTileEntity(new BlockPos(tmpX, tmpY, tmpZ));\n\n\t\t\tif(entity != null)\n\t\t\t\tentity.readFromNBT(nbt);\n\t\t}\n\t}" ]
[ "0.5613016", "0.5540101", "0.5509991", "0.5495599", "0.5421572", "0.540771", "0.540771", "0.53734255", "0.52556866", "0.5187762", "0.5179242", "0.51759005", "0.5146043", "0.5110338", "0.5096473", "0.5096473", "0.5061429", "0.5061429", "0.49977466", "0.4922984", "0.48519802", "0.4847765", "0.4830864", "0.48155186", "0.48066312", "0.47488934", "0.47421625", "0.47416347", "0.47198546", "0.46818474", "0.4671606", "0.4654248", "0.4646382", "0.4642162", "0.46179137", "0.4593665", "0.4584204", "0.45639813", "0.45639813", "0.45490175", "0.45490175", "0.45405057", "0.4534536", "0.4531403", "0.45261458", "0.4523162", "0.4516158", "0.4511614", "0.4489565", "0.44772395", "0.44655815", "0.44639105", "0.44008002", "0.44003907", "0.4372401", "0.4372401", "0.43604138", "0.43521166", "0.43498194", "0.4346629", "0.43435088", "0.43331861", "0.43228453", "0.4318407", "0.43087578", "0.43087578", "0.4307214", "0.4302477", "0.43002304", "0.42983967", "0.42939323", "0.42918324", "0.42859274", "0.42843115", "0.4278755", "0.42745668", "0.42687201", "0.42643502", "0.42605758", "0.4256141", "0.4252301", "0.42506877", "0.4249431", "0.42473146", "0.42472216", "0.42453828", "0.4220128", "0.42154932", "0.42153093", "0.421479", "0.4207617", "0.42073187", "0.42070872", "0.42037603", "0.42023063", "0.41927594", "0.4188249", "0.41866475", "0.41852102", "0.41821516" ]
0.73151857
0
Read a Location from the "Pos" and "Rotation" children of a tag. If "Pos" is absent or invalid, null is returned. If "Rotation" is absent or invalid, it is skipped and a location without rotation is returned.
public static Location listTagsToLocation(World world, CompoundTag tag) { // check for position list final Location[] out = {null}; tag.readDoubleList("Pos", pos -> { if (pos.size() == 3) { Location location = new Location(world, pos.get(0), pos.get(1), pos.get(2)); // check for rotation tag.readFloatList("Rotation", rot -> { if (rot.size() == 2) { location.setYaw(rot.get(0)); location.setPitch(rot.get(1)); } }); out[0] = location; } }); return out[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getLocation()\n {\n if (worldData == null || position == null)\n {\n // Must have a world and position to make a location;\n return null;\n }\n\n if (orientation == null)\n {\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ());\n }\n\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ(), orientation.getYaw(), orientation.getPitch());\n }", "public Location getLocation() {\n try {\n double latitude = Double.parseDouble(fetchIfNeeded().getString(\"latitude\"));\n double longitude = Double.parseDouble(fetchIfNeeded().getString(\"longitude\"));\n Location location = new Location(TAG);\n location.setLatitude(latitude);\n location.setLongitude(longitude);\n return location;\n }\n catch(ParseException e) {\n return null;\n }\n }", "public Position receivePosition(){\t\t\n\t\ttry {\n\t\t\tPosition position = (Position) in.readObject();\n\t\t\tif (position == null) {\n\t\t\t\treceiveString();\n\t\t\t}\n\t\t\treturn position;\n\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "MapLocation getPosition(Unit unit);", "@Override\n public Optional<Position> getPosition() {\n return this.pos;\n }", "public static void locationToListTags(Location loc, CompoundTag tag) {\n tag.putDoubleList(\"Pos\", Arrays.asList(loc.getX(), loc.getY(), loc.getZ()));\n tag.putFloatList(\"Rotation\", Arrays.asList(loc.getYaw(), loc.getPitch()));\n }", "public String get_loc_and_direc() {\n try {\n Object obj = JsonUtil.getInstance().getParser().parse(this.text);\n JSONObject jsonObject = (JSONObject) obj;\n String location = (String) jsonObject.get(\"location\");\n String direction = (String) jsonObject.get(\"direction\");\n return location + \"-\" + direction;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "org.mojolang.mojo.lang.PositionOrBuilder getStartPositionOrBuilder();", "godot.wire.Wire.Vector3OrBuilder getPositionOrBuilder();", "public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}", "@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}", "protected <T> Location getLocation(FormElement<T> element) {\n\t\tLocation a = null;\n\t\tif (location != null) {\n\t\t\ta = location;\n\t\t} else {\n\t\t\tif (element.getConfig() != null) {\n\t\t\t\ta = element.getConfig().getLocation();\n\t\t\t} else {\n\t\t\t\ta = DEFAULT_LOCATION;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "@Override\n\tpublic Tag getPosTag() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Position getPosition() {\n\t\treturn null;\n\t}", "godot.wire.Wire.Vector2OrBuilder getPositionOrBuilder();", "public PVector getLoc() {\n return location;\n }", "public PVector getLoc() {\n return location;\n }", "Object getPosition();", "Position getPosition();", "Position getPosition();", "gov.nih.nlm.ncbi.www.SeqLocDocument.SeqLoc getSeqLoc();", "org.mojolang.mojo.lang.Position getStartPosition();", "public Point getLocation() {\n return pos;\n }", "@Override\n public MapLocation getLocation(XYCoord location)\n {\n if (null != location)\n return getLocation(location.xCoord, location.yCoord);\n return null;\n }", "public Point readPosition(String itemName) {\n int i;\n String pos = \"\";\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> newItem = new HashMap<>();\n newItem = inventory.get(i);\n if (itemName.equals(newItem.get(\"Name\").toString())) {\n pos = newItem.get(\"Position\").toString();\n }\n }\n\n String sx = (pos.split(\",\"))[0];\n String sy = (pos.split(\",\"))[1];\n\n sx = sx.substring(1, sx.length());\n sy = sy.substring(0, sy.length() - 1);\n\n //transfer string to int\n int row = Integer.parseInt(sx);\n int col = Integer.parseInt(sy);\n\n //System.out.println(x);\n //System.out.println(y);\n Point a = new Point();\n a.x = row;\n a.y = col;\n //System.out.println(a);\n return a;\n\n }", "@Override\n public XMLStreamLocation2 getLocation()\n {\n return new WstxInputLocation(null, // no parent\n \t\tnull, (String) null, // pub/sys ids not yet known\n \t\tmWriter.getAbsOffset(),\n \t\tmWriter.getRow(), mWriter.getColumn());\n }", "DVector3C getPosition();", "godot.wire.Wire.Vector3 getPosition();", "private void parse(String position) throws Exception {\r\n\t \r\n\t StringTokenizer tokens = new StringTokenizer(position);\r\n\t if(tokens.hasMoreTokens()){\r\n\t \r\n\t try{\r\n\t\t x = Integer.parseInt(tokens.nextToken());\r\n\t\t y = Integer.parseInt(tokens.nextToken());\r\n\t }catch(NumberFormatException ne){\r\n\t throw new Exception(\"Invalid number!!\");\r\n\t }\r\n\t direction = tokens.nextToken().getBytes()[0];\r\n\t }\r\n\t if(!verifyBounds()){\r\n\t throw new Exception(\"Invalid inital position!!!\");\r\n\t }\r\n\t}", "private void readLOC() throws java.io.IOException {\n byte locbuf[] = new byte[LOCHDR];\n ZipFile zf = this.zf;\n ZipEntry ze = this.ze;\n long offset = ze.getOffset();\n if (TRACE)\n System.out.println(this +\": reading LOC, offset=\" + offset);\n zf.read(offset, locbuf, 0, LOCHDR);\n if (ZipFile.get32(locbuf, 0) != LOCSIG) {\n throw new java.util.zip.ZipException(\n \"invalid LOC header signature\");\n }\n // Get length and position of entry data\n long count = ze.getCompressedSize();\n this.count = count;\n if (TRACE)\n System.out.println(this +\": count=\" + count);\n long pos =\n ze.getOffset()\n + LOCHDR\n + ZipFile.get16(locbuf, LOCNAM)\n + ZipFile.get16(locbuf, LOCEXT);\n this.pos = pos;\n if (TRACE)\n System.out.println(this +\": pos=\" + pos);\n long cenpos = zf.cenpos;\n if (TRACE)\n System.out.println(this +\": cenpos=\" + cenpos);\n if (pos + count > cenpos) {\n throw new java.util.zip.ZipException(\n \"invalid LOC header format\");\n }\n }", "public Location getLocation() {\n return getLocation(null);\n }", "public Coordinate getPosition();", "public URI getLocation()\r\n/* 293: */ {\r\n/* 294:441 */ String value = getFirst(\"Location\");\r\n/* 295:442 */ return value != null ? URI.create(value) : null;\r\n/* 296: */ }", "public geo_location getLocation() {\n return _pos;\n }", "public final Optional<Position> getPosition() {\n return position;\n }", "@Override\n public Position getPosition() {\n return Position.UNKNOWN;\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3OrBuilder getPositionOrBuilder() {\n return getPosition();\n }", "com.google.ads.googleads.v14.common.LocationInfoOrBuilder getLocationOrBuilder();", "public Point getLocation() { return loc; }", "public PCoordinates getCoordinates(int location) {\n getLock().getReadLock();\n try {\n if (isLineWrappingInvalid()) {\n return new PCoordinates(-1, -1);\n }\n int min = 0;\n int max = splitLines.size();\n while (max - min > 1) {\n int mid = (min + max) / 2;\n SplitLine line = getSplitLine(mid);\n if (line.containsIndex(this, location)) {\n return new PCoordinates(mid, location - line.getTextIndex(this));\n } else if (location < line.getTextIndex(this)) {\n max = mid;\n } else {\n min = mid;\n }\n }\n return new PCoordinates(min, location - getSplitLine(min).getTextIndex(this));\n } finally {\n getLock().relinquishReadLock();\n }\n }", "godot.wire.Wire.Vector2 getPosition();", "public Location getLocation(String name) {\n String world = cfg.getString(name + \".World\");\n double x = cfg.getDouble(name + \".X\");\n double y = cfg.getDouble(name + \".Y\");\n double z = cfg.getDouble(name + \".Z\");\n float yaw = (float) cfg.getDouble(name + \".Yaw\");\n float pitch = (float) cfg.getDouble(name + \".Pitch\");\n\n return new Location(getWorld(name), x, y, z, yaw, pitch);\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getPosition() {\n return position_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : position_;\n }", "public IRLocation getLocation(IRNode node);", "public Location getOffset() {\n\t\treturn pos;\n\t}", "DMatrix3C getOffsetRotation();", "public Position getPosition();", "public Position getPosition();", "public Position getPosition();", "public Coordinate getLocation();", "public ArchonLocation getArchonAtPosition(MapLocation loc) {\n for (ArchonLocation archon : archonLocations) {\n if (archon.location.equals(loc)) {\n return archon;\n }\n }\n\n return null;\n }", "public abstract Point location( Solid shape ) throws DataException, FeatureException, InvalidXMLException,\n LocationException, MountingException, ReferenceException\n ;", "phaseI.Hdfs.DataNodeLocationOrBuilder getLocationOrBuilder();", "@java.lang.Override\n public godot.wire.Wire.Vector2 getPosition() {\n return position_ == null ? godot.wire.Wire.Vector2.getDefaultInstance() : position_;\n }", "protected Location getLocation() {\r\n\t\treturn parser.getLocation();\r\n\t}", "private Vector3f calcPosition() {\r\n float y = (float) (distance * Math.sin(Math.toRadians(pitch)));\r\n float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch)));\r\n float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation)));\r\n float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation)));\r\n return new Vector3f(x + center.x, y + center.y, z + center.z);\r\n }", "@Override\n public Location getLocation(MapPoint point) {\n if (point == null) return null;\n\n World world = worlds.get(point.getWorld());\n\n float yaw = point.getYaw();\n float pitch = point.getPitch();\n\n //Account for the fact that NaN yaw/pitch indicate that they shouldn't be changed / are not present\n if (Float.isNaN(yaw)) yaw = 0;\n if (Float.isNaN(pitch)) pitch = 0;\n\n return new Location(world, point.getX(), point.getY(), point.getZ(), yaw, pitch);\n }", "Tile getPosition();", "RealLocalizable getPosition();", "public Coordinate getLocation() {\n return location;\n }", "private Coordinate getCoordinate(String sensorLocation) throws IOException,\n InterruptedException {\n String[] words = sensorLocation.split(\"\\\\.\");\n\n var locationUrl = String.format(\n \"%swords/%s/%s/%s/details.json\", this.baseUrl, words[0], words[1],\n words[2]);\n\n var response = this.gson.fromJson(this.getResponse(locationUrl), JsonObject.class);\n var coords = response.get(\"coordinates\").getAsJsonObject();\n var coordinate = new Coordinate(\n coords.get(\"lng\").getAsDouble(),\n coords.get(\"lat\").getAsDouble());\n\n return coordinate;\n }", "public Point getLocation() {\r\n\t\tint[] p = value.getIntArray();\r\n\t\tif (p.length < 2) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Location parameters must contain at least 2 values\");\r\n\t\t}\r\n\t\treturn (new Point(p[0], p[1]));\r\n\t}", "private void parseLocation(String s) {\r\n String[] parsedString = s.split(\" \");\r\n location[0] = Integer.parseInt(parsedString[0]);\r\n location[1] = Integer.parseInt(parsedString[1]);\r\n orientation = parsedString[2].charAt(0);\r\n }", "public static int getInnerLocation(int location) {\n switch (location) {\n case Mech.LOC_RT:\n case Mech.LOC_LT:\n return Mech.LOC_CT;\n case Mech.LOC_LLEG:\n case Mech.LOC_LARM:\n return Mech.LOC_LT;\n case Mech.LOC_RLEG:\n case Mech.LOC_RARM:\n return Mech.LOC_RT;\n default:\n return location;\n }\n }", "@Override\n public Location getLocation() {\n if (type == TeleportType.TPA) {\n return target.getPlayerReference(Player.class).getLocation();\n } else if (type == TeleportType.TPHERE) {\n return toTeleport.getPlayerReference(Player.class).getLocation();\n }\n\n return null;\n }", "@java.lang.Override\n public godot.wire.Wire.Vector2OrBuilder getPositionOrBuilder() {\n return getPosition();\n }", "@Override\n\tpublic Position getPosition() {\n\t\treturn this.posn;\n\t}", "@Override\n\tprotected void readImpl()\n\t{\n\t\t_x = readD();\n\t\t_y = readD();\n\t\t_z = readD();\n\t\t_heading = readD();\n\t}", "@Basic @Raw\n public double[] getPosition(){\n\t double[] result = {this.position[0], this.position[1]};\n\t return result;\n }", "public PVector getLocation()\n\t{\n\t\treturn location;\n\t}", "public static Vector3 getDeltaPositionFromRotation(float rotationYaw, float rotationPitch)\n {\n return new Vector3(rotationYaw, rotationPitch);\n }", "public Location getLocation() {\n return ((Location) tile);\n }", "public Location getLocation(Piece p)\n {\n if (p==null)\n return null;\n for (Square[] s1: squares)\n {\n for (Square s: s1)\n {\n Piece p1 = s.getPiece();\n if (p1!=null && p1.equals(p))\n return s.getLoc();\n }\n }\n return null;\n }", "public Position(TrackSession trackSession, String positionBody) {\r\n final String DELIMITER_TOKEN = \",\";\r\n\r\n // Parse positionBody\r\n String aux;\r\n StringTokenizer tk = new StringTokenizer(positionBody, DELIMITER_TOKEN);\r\n aux = tk.nextToken();\r\n String ltStr = aux.substring(0, aux.length() - 1);\r\n char cardinal = aux.charAt(aux.length() - 1);\r\n int factorLt = (cardinal == 'N' ? 1 : -1);\r\n double lt = Double.parseDouble(ltStr);\r\n int ltInt = (int) (lt / 100);\r\n double ltMinutes = lt % 100;\r\n double ltDegrees = ltInt + ltMinutes / 60;\r\n ltDegrees = ltDegrees * factorLt;\r\n aux = tk.nextToken();\r\n String lgStr = aux.substring(0, aux.length() - 1);\r\n cardinal = aux.charAt(aux.length() - 1);\r\n int factorLg = (cardinal == 'E' ? 1 : -1);\r\n double lg = Double.parseDouble(lgStr);\r\n int lgInt = (int) (lg / 100);\r\n double lgMinutes = lg % 100;\r\n double lgDegrees = lgInt + lgMinutes / 60;\r\n lgDegrees = lgDegrees * factorLg;\r\n String timeStr = tk.nextToken();\r\n int hour = Character.digit(timeStr.charAt(0), 10);\r\n hour = hour * 10 + Character.digit(timeStr.charAt(1), 10);\r\n int minute = Character.digit(timeStr.charAt(2), 10);\r\n minute = minute * 10 + Character.digit(timeStr.charAt(3), 10);\r\n int second = Character.digit(timeStr.charAt(4), 10);\r\n second = second * 10 + Character.digit(timeStr.charAt(5), 10);\r\n int secondsOfDay = hour * 60 * 60 + minute * 60 + second;\r\n Date time = new Date(secondsOfDay * 1000);\r\n //String dummy = tk.nextToken(); // Not used\r\n String altStr = tk.nextToken();\r\n double alt = Double.parseDouble(altStr);\r\n //String velStr = tk.nextToken(); // Not used\r\n String satStr = tk.nextToken();\r\n int nSat = Integer.parseInt(satStr);\r\n String hDopStr = tk.nextToken();\r\n double hDop = Double.parseDouble(hDopStr);\r\n String fixedStr = tk.nextToken();\r\n int fixed = Integer.parseInt(fixedStr);\r\n\r\n // Initialize object fields.\r\n mTrackSession = trackSession;\r\n if (mTrackSession != null)\r\n mTrackSessionId = trackSession.get_id();\r\n mLatitude = ltDegrees;\r\n mLongitude = lgDegrees;\r\n mTime = time;\r\n mAltitude = alt;\r\n mSat = nSat;\r\n mHdop = hDop;\r\n mFixed = fixed;\r\n\r\n// A inserção na base de dados é realizada fora do constructor.\r\n// // Add new Object into database\r\n// // Read GuardTracker database helper\r\n// GuardTrackerDbHelper dbHelper = new GuardTrackerDbHelper(context);\r\n// // Initialize database for write\r\n// final SQLiteDatabase db = dbHelper.getWritableDatabase();\r\n// // Prepare values to write to database\r\n// int latRaw = (int) (mLatitude * GPS_DEGREES_PRECISION);\r\n// int lngRaw = (int) (mLongitude * GPS_DEGREES_PRECISION);\r\n// int altRaw = (int) (mAltitude * GPS_ALTITUDE_PRECISION);\r\n// int hDopRaw = (int) (mHdop * GPS_HDOP_PRECISION);\r\n// int timeRaw = (int) time.getTime();\r\n// ContentValues contentValues = new ContentValues();\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_SESSION, mTrackSessionId == 0 ? null : mTrackSessionId);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_LT, latRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_LG, lngRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_TIME, timeRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_ALTITUDE, altRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_NSAT, mSat);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_HDOP, hDopRaw);\r\n// contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_FIXED, mFixed);\r\n// long pkId = db.insertOrThrow(GuardTrackerContract.PositionTable.TABLE_NAME, null, contentValues);\r\n//\r\n// _id = (int) pkId;\r\n//\r\n// db.close();\r\n\r\n }", "public void readNode(long location) throws IOException {\n //locate node to read\n file.seek(location);\n //read key\n this.offset = file.readLong();\n //read numKeys\n this.numKeys = file.readLong();\n //read children from node\n for (int i = 0; i < children.length; i++) {\n children[i] = file.readLong();\n }\n /// read key data\n long key = -1;\n int freq = -1;\n\n for (int i = 0; i < keys.length; i++){\n key = file.readLong();\n freq = file.readInt();\n if (key == -1){\n keys[i] = null;\n }\n else {\n if (keys[i] == null) {\n keys[i] = new TreeObject(key);\n }\n keys[i].frequency = freq;\n keys[i].key = key;\n }\n }\n\n }", "public final Coord getLocation() {\n return location;\n }", "@Pure\n @NonNull\n public Location getLocation() {\n return this.location;\n }", "public Location getLocation() {\n\t\treturn loc;\n\t}", "public Location getElement(){\n\t\t\treturn element;\n\t\t}", "public Object getObjectAtLocation(Point p);", "Vector2 getPosition();", "public Location getLookAtLocation(Location loc, Location lookat) {\n loc = loc.clone();\n\n // Values of change in distance (make it relative)\n double dx = lookat.getX() - loc.getX();\n double dy = lookat.getY() - loc.getY();\n double dz = lookat.getZ() - loc.getZ();\n\n // Set yaw\n if (dx != 0) {\n // Set yaw start value based on dx\n if (dx < 0) {\n loc.setYaw((float) (1.5 * Math.PI));\n } else {\n loc.setYaw((float) (0.5 * Math.PI));\n }\n loc.setYaw(loc.getYaw() - (float) Math.atan(dz / dx));\n } else if (dz < 0) {\n loc.setYaw((float) Math.PI);\n }\n\n // Get the distance from dx/dz\n double dxz = Math.sqrt(Math.pow(dx, 2) + Math.pow(dz, 2));\n\n // Set pitch\n loc.setPitch((float) -Math.atan(dy / dxz));\n\n // Set values, convert to degrees (invert the yaw since Bukkit uses a different yaw dimension format)\n loc.setYaw(-loc.getYaw() * 180f / (float) Math.PI);\n loc.setPitch(loc.getPitch() * 180f / (float) Math.PI);\n\n return loc;\n }", "public Location getLocation() {\n return loc;\n }", "public Location getLocation() {\n return loc;\n }", "public ChunkPosition findClosestStructure(World par1World, String par2Str, int par3, int i, int j)\n {\n return null;\n }", "public java.util.List getPosition()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(POSITION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getListValue();\n }\n }", "public Location getLocation() {\n return name.getLocation();\n }", "@Override\n\tpublic Vec3 getRotationData(IBlockState state) {\n\t\treturn null;\n\t}", "public Vector2f getLocation() {\r\n\t\treturn location.getLocation();\r\n\t}", "private void extractLatLongAndRelativeLocation(Buoy buoy, String value)\n {\n String regexp = \"^(.+?)or\";\n Pattern pat = Pattern.compile(regexp);\n Matcher match = pat.matcher(value);\n\n String latLong = \"\";\n String relativePos = \"\";\n\n if (match.find())\n {\n latLong = match.group(0);\n relativePos = value.substring(value.\n lastIndexOf(latLong) + latLong.length(), value.length()).trim(); \n \n latLong = latLong.replace(\"or\", \"\").trim();\n\n\n } else\n {\n latLong = \"\";\n relativePos = value;\n }\n\n buoy.setLatlong(latLong);\n buoy.setRelativeLocation(relativePos);\n }", "@Override\n public double getPosition()\n {\n final String funcName = \"getPosition\";\n double pos = getMotorPosition() - zeroPosition;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", pos);\n }\n\n return pos;\n }", "public abstract Position getPosition();", "public LocationData(final World world, final double x, final double y, final double z, final float yaw, final float pitch)\n {\n position = new BlockVector(x, y, z);\n worldData = getPersistence().get(world.getName(), WorldData.class);\n orientation = new Orientation(yaw, pitch);\n }", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "@Override\n public PointF getLocation() {\n return location;\n }", "public Vector3f getPhysicsLocation(Vector3f location) {\n if (location == null) {\n location = new Vector3f();\n }\n rBody.getCenterOfMassTransform(tempTrans);\n return Converter.convert(tempTrans.origin, location);\n }", "DVector3C getOffsetPosition();", "Location getLocation();", "Location getLocation();", "Location getLocation();" ]
[ "0.54107654", "0.50595963", "0.50088364", "0.49739027", "0.49515733", "0.4949175", "0.49420854", "0.49264184", "0.4846402", "0.48280886", "0.47792888", "0.47781882", "0.47768274", "0.47661182", "0.47653228", "0.47324544", "0.47324544", "0.47315767", "0.4720549", "0.4720549", "0.47180697", "0.46929067", "0.46896765", "0.46737334", "0.46693438", "0.46591577", "0.46423352", "0.4637439", "0.46368322", "0.4627554", "0.46231556", "0.46224442", "0.45912528", "0.45878488", "0.4586899", "0.45842084", "0.45824388", "0.45787024", "0.45780167", "0.45741245", "0.4571728", "0.45639476", "0.4550498", "0.45500124", "0.4548408", "0.45415732", "0.45361686", "0.45361686", "0.45361686", "0.45247656", "0.45199183", "0.45099524", "0.4507797", "0.4504628", "0.45019725", "0.44923127", "0.44876632", "0.44841397", "0.4475294", "0.44655284", "0.44535422", "0.4448667", "0.44378257", "0.44315976", "0.44283053", "0.4417933", "0.4416999", "0.44162053", "0.4410971", "0.43964508", "0.43949902", "0.4393309", "0.4388676", "0.43861538", "0.43751666", "0.43708163", "0.43687263", "0.4361447", "0.43460828", "0.43397576", "0.43383458", "0.4334284", "0.43250147", "0.43250147", "0.43202364", "0.43182346", "0.43162996", "0.43107507", "0.4305676", "0.43042862", "0.43031228", "0.43017057", "0.42954335", "0.42950958", "0.4294883", "0.42898935", "0.42874184", "0.42873022", "0.42873022", "0.42873022" ]
0.6124393
0
Write a Location to the "Pos" and "Rotation" children of a tag. Does not save world information, use writeWorld instead.
public static void locationToListTags(Location loc, CompoundTag tag) { tag.putDoubleList("Pos", Arrays.asList(loc.getX(), loc.getY(), loc.getZ())); tag.putFloatList("Rotation", Arrays.asList(loc.getYaw(), loc.getPitch())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void writeLoc(IPositionable loc)\n\t{\n\t\twriteD(loc.getX());\n\t\twriteD(loc.getY());\n\t\twriteD(loc.getZ());\n\t}", "private void writeActualLocation(Location location)\n {\n //textLat.setText( \"Lat: \" + location.getLatitude() );\n //textLong.setText( \"Long: \" + location.getLongitude() );\n //T.t(MapsActivity.this, \"\" + \"Lat: \" + location.getLatitude() + \"\" + \"Long: \" + location.getLongitude());\n markerLocation(new LatLng(location.getLatitude(), location.getLongitude()));\n }", "public abstract void saveLocationXml(Location location);", "public static void writeWorld(World world, CompoundTag compound) {\n UUID worldUuid = world.getUID();\n // world UUID used by Bukkit and code above\n compound.putLong(\"WorldUUIDMost\", worldUuid.getMostSignificantBits());\n compound.putLong(\"WorldUUIDLeast\", worldUuid.getLeastSignificantBits());\n // leave a Dimension value for possible Vanilla use\n compound.putInt(\"Dimension\", world.getEnvironment().getId());\n }", "public static Location listTagsToLocation(World world, CompoundTag tag) {\n // check for position list\n final Location[] out = {null};\n tag.readDoubleList(\"Pos\", pos -> {\n if (pos.size() == 3) {\n Location location = new Location(world, pos.get(0), pos.get(1), pos.get(2));\n\n // check for rotation\n tag.readFloatList(\"Rotation\", rot -> {\n if (rot.size() == 2) {\n location.setYaw(rot.get(0));\n location.setPitch(rot.get(1));\n }\n });\n\n out[0] = location;\n }\n });\n\n return out[0];\n }", "private static void writeLocations(XMLStreamWriter w, RepositoryConnection con) throws XMLStreamException {\n\t\tint nr = 0;\n\n\t\ttry (RepositoryResult<Statement> res = con.getStatements(null, RDF.TYPE, DCTERMS.LOCATION)) {\n\t\t\twhile (res.hasNext()) {\n\t\t\t\tIRI iri = (IRI) res.next().getSubject();\n\n\t\t\t\tValue bbox = null;\n\t\t\t\tRepositoryResult<Statement> bboxes = con.getStatements(iri, DCAT.BBOX, null);\n\t\t\t\twhile (bboxes.hasNext()) {\n\t\t\t\t\tValue val = bboxes.next().getObject();\n\t\t\t\t\tif (val.stringValue().startsWith(\"POLYGON\")) {\n\t\t\t\t\t\tbbox = val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (bbox != null) {\n\t\t\t\t\tnr++;\n\t\t\t\t\tw.writeStartElement(\"dct:Location\");\n\t\t\t\t\tw.writeAttribute(\"rdf:about\", iri.toString());\n\t\t\t\t\twriteLiteral(w, \"dcat:bbox\", bbox);\n\t\t\t\t\tw.writeEndElement();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLOG.info(\"Wrote {} locations\", nr);\n\t}", "protected void writeEntityToNBT(NBTTagCompound var1)\n {\n var1.setTag(\"Pos\", this.newDoubleNBTList(new double[] {this.posX, this.posY + (double)this.ySize, this.posZ}));\n var1.setTag(\"Rotation\", this.newFloatNBTList(new float[] {this.rotationYaw, this.rotationPitch}));\n var1.setInteger(\"mapid\", this.mapID);\n var1.setInteger(\"facingyaw\", this.facingYaw);\n var1.setInteger(\"wallx\", this.wallPos[0]);\n var1.setInteger(\"wally\", this.wallPos[1]);\n var1.setInteger(\"wallz\", this.wallPos[2]);\n }", "public void addSign(Vector3D location, String world, String[] lines) {\n dirty = true;\n if (!getSignAt(location, world).isPresent()) {\n signLocations.add(new SignLocation(location, world, server, lines));\n }\n }", "public NBTTagCompound writeToNBT(NBTTagCompound nbt)\n {\n nbt.setDouble(\"x\", this.x);\n nbt.setDouble(\"y\", this.y);\n nbt.setDouble(\"z\", this.z);\n return nbt;\n }", "@Override\n\t\t\t\tpublic void onLocationChanged(Location location)\n\t\t\t\t\t{\n\t\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\tspeed = location.getSpeed();\n\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twriter.write(System.currentTimeMillis() + \",\" + latitude\n\t\t\t\t\t\t\t\t\t\t+ \",\" + longitude + \",\" + speed + \",\" + \"\\n\");\n\t\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IOException e)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "@Override\n public void setLocation(Point location) {\n pos = location;\n try {\n if (TerraGen.window != null && TerraGen.window.getClient() != null)\n TerraGen.window.getClient().pushGameChange(TerraGen.window.game.getMap().getTokens().indexOf(this), NetworkType.TOKEN, this);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void setSpawnLocation(Object packet, Vector location, String xName, String yName, String zName) {\n ReflectUtils.setField(packet, xName, location.getX());\n ReflectUtils.setField(packet, yName, location.getY());\n ReflectUtils.setField(packet, zName, location.getZ());\n }", "private static void writeRoom(XMLStreamWriter xMLStreamWriter, World world, int roomRow, int roomCol) throws XMLStreamException {\n\t\tRoom room = world.getRoom(roomRow, roomCol);\n\n\t\t/*\n\t\t * Creating a room tag\n\t\t */\n\t\txMLStreamWriter.writeStartElement(\"Room\");\n\n\t\t/*\n\t\t * Creating tags for the fields of the room (width, height, isDark)\n\t\t */\n\t\txMLStreamWriter.writeStartElement(\"RoomWidth\");\n\t\txMLStreamWriter.writeCharacters(room.getWidth()+\"\");\n\t\txMLStreamWriter.writeEndElement();\n\n\t\txMLStreamWriter.writeStartElement(\"RoomHeight\");\n\t\txMLStreamWriter.writeCharacters(room.getHeight()+\"\");\n\t\txMLStreamWriter.writeEndElement();\n\n\t\txMLStreamWriter.writeStartElement(\"IsDark\");\n\t\txMLStreamWriter.writeCharacters(room.isDark()+\"\");\n\t\txMLStreamWriter.writeEndElement();\n\n\t\t/*\n\t\t * Serliasing the tiles in the room\n\t\t */\n\t\tfor(int row = 0; row < room.getHeight(); row++) {\n\t\t\tfor(int col = 0; col < room.getWidth(); col++) {\n\t\t\t\twriteTile(xMLStreamWriter, room, row, col);\n\t\t\t}\n\t\t}\n\n\t\txMLStreamWriter.writeEndElement();\n\t}", "public void guardar(PrintWriter writer) {\n writer.println(posX);\n writer.println(posY);\n }", "public void updateOrientation(Location loc)\n {\n orientation = new Orientation(loc);\n }", "public void write(int location, ByteBuffer data)\n throws DataOrderingException;", "private void createLocationObject() \r\n\t{\r\n\t locationArray = new Vector();\r\n\t\tLocationObject saveLocation = new LocationObject(0, xLocation, yLocation, locationTitle, description, finalimage);\r\n\t\t\r\n\t\t//save the object to a vector\r\n\t\tif (saveLocation != null)\r\n\t\t{\r\n\t\t\tlocationArray.add(saveLocation);\r\n\t\t}\r\n\t\t\t\t\t\r\n\t}", "@Override\n public void writeTilePositions(BufferedRandomAccessFile braf) throws IOException {\n braf.leWriteInt(row0);\n braf.leWriteInt(col0);\n braf.leWriteInt(nRows);\n braf.leWriteInt(nCols);\n if (nCols > 0) {\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n braf.leWriteLong(offsets[i][j]);\n }\n }\n }\n }", "private void writeRawRoomData(Room e) throws IOException\n {\n\t// Setup the file for output\n\tFile root = Environment.getExternalStorageDirectory();\n\tif (root.canWrite())\n\t{\n\t File outFile = new File(new File(root, \"NavPalSaves/\"), \"floor_\" + (MainInterface.CURRENTMAPLOAD + 1) + \"_\" + e.getLabel() + \"_RoomObj.txt\");\n\t if (!outFile.exists())\n\t {\n\t\ttry\n\t\t{\n\t\t outFile.createNewFile();\n\t\t}\n\t\tcatch (IOException e3)\n\t\t{\n\t\t e3.printStackTrace();\n\t\t}\n\t }\n\n\t FileWriter mapwriter = new FileWriter(outFile);\n\t BufferedWriter out = new BufferedWriter(mapwriter);\n\t String writeString = \"\" + e.getColor() + \"\\n\";\n\t writeString += \"Style: \" + e.getType() + \"\\n\";\n\t writeString += \"d: \" + e.getd() + \"\\n\";\n\t writeString += \"Label: \" + e.getLabel() + \"\\n\";\n\t writeString += \"Transform: \" + e.getTransform() + \"\\n\";\n\n\t out.write(writeString);\n\t out.close();\n\t}\n }", "@Override\r\n public String toString() {\r\n return \"Location:: xPos: \" + xPos + \" yPos: \" + yPos + \"\\nBoundingBox: \" + boundingBox;\r\n }", "private static void writeWorldDimension(XMLStreamWriter xMLStreamWriter, World world) throws XMLStreamException {\n\t\t//World width node\n\t\txMLStreamWriter.writeStartElement(\"WorldWidth\");\n\t\txMLStreamWriter.writeCharacters(world.getWidth()+\"\");\n xMLStreamWriter.writeEndElement();\n\n //World width node\n xMLStreamWriter.writeStartElement(\"WorldHeight\");\n \txMLStreamWriter.writeCharacters(world.getHeight()+\"\");\n xMLStreamWriter.writeEndElement();\n\t}", "public void setLocation(Planet location) {\r\n this.location = location;\r\n }", "public void setLocation(String name, Location loc) {\n cfg.set(name.replace(\".\", \"\") + \".name\", name);\n if (loc.getWorld() != null) cfg.set(name.replace(\".\", \"\") + \".World\", loc.getWorld().getName());\n cfg.set(name.replace(\".\", \"\") + \".X\", loc.getX());\n cfg.set(name.replace(\".\", \"\") + \".Y\", loc.getY());\n cfg.set(name.replace(\".\", \"\") + \".Z\", loc.getZ());\n cfg.set(name.replace(\".\", \"\") + \".Yaw\", loc.getYaw());\n cfg.set(name.replace(\".\", \"\") + \".Pitch\", loc.getPitch());\n this.save();\n }", "void setPosition(Unit unit, MapLocation position);", "public void setLocation(Vector location);", "public interface IWorldPositionWriter extends IWorldPosition, IOpenScenarioElementWriter {\n\n // Setters for all attributes\n\n /**\n * From OpenSCENARIO class model specification: The x coordinate value.\n *\n * @param x value of model property x\n */\n public void setX(Double x);\n /**\n * From OpenSCENARIO class model specification: The y coordinate value.\n *\n * @param y value of model property y\n */\n public void setY(Double y);\n /**\n * From OpenSCENARIO class model specification: The z coordinate value.\n *\n * @param z value of model property z\n */\n public void setZ(Double z);\n /**\n * From OpenSCENARIO class model specification: The heading angle of the object, defining a\n * mathematically positive rotation about the z-axis (see ISO 8855:2011).\n *\n * @param h value of model property h\n */\n public void setH(Double h);\n /**\n * From OpenSCENARIO class model specification: The pitch angle of the object, defining a\n * mathematically positive rotation about the y-axis (see ISO 8855:2011).\n *\n * @param p value of model property p\n */\n public void setP(Double p);\n /**\n * From OpenSCENARIO class model specification: The roll angle of the object, defining a\n * mathematically positive rotation about the x-axis (see ISO 8855:2011).\n *\n * @param r value of model property r\n */\n public void setR(Double r);\n\n /**\n * Set a parameter for the attribute x\n *\n * @param parameterName the name of the parameter (without $)\n */\n public void writeParameterToX(String parameterName);\n /**\n * Set a parameter for the attribute y\n *\n * @param parameterName the name of the parameter (without $)\n */\n public void writeParameterToY(String parameterName);\n /**\n * Set a parameter for the attribute z\n *\n * @param parameterName the name of the parameter (without $)\n */\n public void writeParameterToZ(String parameterName);\n /**\n * Set a parameter for the attribute h\n *\n * @param parameterName the name of the parameter (without $)\n */\n public void writeParameterToH(String parameterName);\n /**\n * Set a parameter for the attribute p\n *\n * @param parameterName the name of the parameter (without $)\n */\n public void writeParameterToP(String parameterName);\n /**\n * Set a parameter for the attribute r\n *\n * @param parameterName the name of the parameter (without $)\n */\n public void writeParameterToR(String parameterName);\n\n /**\n * Get the parameter for the attribute x\n *\n * @return the name of the parameter (without $). Null if not parameter set or if attribute is\n * empty.\n */\n public String getParameterFromX();\n /**\n * Get the parameter for the attribute y\n *\n * @return the name of the parameter (without $). Null if not parameter set or if attribute is\n * empty.\n */\n public String getParameterFromY();\n /**\n * Get the parameter for the attribute z\n *\n * @return the name of the parameter (without $). Null if not parameter set or if attribute is\n * empty.\n */\n public String getParameterFromZ();\n /**\n * Get the parameter for the attribute h\n *\n * @return the name of the parameter (without $). Null if not parameter set or if attribute is\n * empty.\n */\n public String getParameterFromH();\n /**\n * Get the parameter for the attribute p\n *\n * @return the name of the parameter (without $). Null if not parameter set or if attribute is\n * empty.\n */\n public String getParameterFromP();\n /**\n * Get the parameter for the attribute r\n *\n * @return the name of the parameter (without $). Null if not parameter set or if attribute is\n * empty.\n */\n public String getParameterFromR();\n\n /**\n * Retrieves whether the attribute x is parametrized.\n *\n * @return true if ${property.name.toMemberName()} is paramterized.\n */\n public boolean isXParameterized();\n /**\n * Retrieves whether the attribute y is parametrized.\n *\n * @return true if ${property.name.toMemberName()} is paramterized.\n */\n public boolean isYParameterized();\n /**\n * Retrieves whether the attribute z is parametrized.\n *\n * @return true if ${property.name.toMemberName()} is paramterized.\n */\n public boolean isZParameterized();\n /**\n * Retrieves whether the attribute h is parametrized.\n *\n * @return true if ${property.name.toMemberName()} is paramterized.\n */\n public boolean isHParameterized();\n /**\n * Retrieves whether the attribute p is parametrized.\n *\n * @return true if ${property.name.toMemberName()} is paramterized.\n */\n public boolean isPParameterized();\n /**\n * Retrieves whether the attribute r is parametrized.\n *\n * @return true if ${property.name.toMemberName()} is paramterized.\n */\n public boolean isRParameterized();\n\n // children\n\n}", "public abstract void updateLocationXml(Location location, String newLocationName, int newLocationCapacity);", "public void saveLocation(Location newLocation) {\n FileOutputStream outputStream = null;\n Log.d(\"debugMode\", \"writing new location to memory\");\n byte[] writeLine = (\"\\n\"+ newLocation.returnFull()).getBytes();\n try {\n outputStream = openFileOutput(\"Locations.txt\", MODE_APPEND);\n outputStream.write(writeLine);\n outputStream.close();\n Log.d(\"debugMode\", \"New location saved\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void writeTile(XMLStreamWriter xMLStreamWriter, Room room, int row, int col) throws XMLStreamException {\n\t\tTile tile = room.getTile(row, col);\n\n\t\t/*\n\t\t * Creating a tile tag\n\t\t */\n\t\txMLStreamWriter.writeStartElement(\"Tile\");\n\n\t\t/*\n\t\t * This is fields that the tile has.\n\t\t */\n\t\txMLStreamWriter.writeStartElement(\"DisplayType\");\n\t\txMLStreamWriter.writeCharacters(tile.getDisplayType());\n\t\txMLStreamWriter.writeEndElement();\n\n\t\txMLStreamWriter.writeStartElement(\"Height\");\n\t\txMLStreamWriter.writeCharacters(tile.getHeight()+\"\");\n\t\txMLStreamWriter.writeEndElement();\n\n\t\tif(tile.getEntity() != null) {\n\t\t\twriteEntity(xMLStreamWriter, tile.getEntity());\n\t\t}\n\n\t\txMLStreamWriter.writeEndElement();\n\t}", "private void saveWorld() {\n try {\n jsonWriter.open();\n jsonWriter.write(world);\n jsonWriter.close();\n System.out.println(\"Saved world to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }", "@Override\n public void encode(DataOutputStream ostream) throws IOException {\n\n ostream.writeInt(this.location.getWorldMapID());\n ostream.writeInt(this.location.getTownMapID());\n ostream.writeInt(this.location.getBuildingID());\n ostream.writeInt(this.location.getInteriorMapID());\n ostream.writeInt(this.location.getRoomID());\n ostream.writeInt(this.location.getTileMapID());\n\n ostream.writeInt(this.roomLinkIDs.length);\n\n for (int i = 0; i < this.roomLinkIDs.length; i++) {\n ostream.writeInt(this.roomLinkIDs[i]);\n ostream.writeBoolean(this.isOpened[i]);\n }\n }", "public void spawn(Location location) {\r\n Packet<?>[] packets = {\r\n new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER),\r\n new PacketPlayOutNamedEntitySpawn(),\r\n new PacketPlayOutEntityHeadRotation()\r\n };\r\n\r\n setFieldCastValue(packets[0], \"b\", Collections.singletonList(this.getPlayerInfoData((PacketPlayOutPlayerInfo) packets[0])));\r\n\r\n setFieldValue(packets[1], \"a\", this.entityId); // Just change entity id to prevent client-side problems\r\n setFieldValue(packets[1], \"b\", this.profile.getId());\r\n setFieldValue(packets[1], \"c\", location.getX());\r\n setFieldValue(packets[1], \"d\", location.getY());\r\n setFieldValue(packets[1], \"e\", location.getZ());\r\n setFieldValue(packets[1], \"f\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"g\", (byte) (location.getPitch() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"h\", this.player.getPlayer().getHandle().getDataWatcher());\r\n\r\n setFieldValue(packets[2], \"a\", this.entityId);\r\n setFieldValue(packets[2], \"b\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n\r\n for (GamePlayer player : this.plugin.getGameManager().getAllPlayers())\r\n for (Packet<?> packet : packets)\r\n player.sendPacket(packet);\r\n }", "public String locationToString(Location loc) {\n return loc.getWorld().getName() + \"|\" + loc.getBlockX() + \"|\" + loc.getBlockY() + \"|\" + loc.getBlockZ();\n }", "public static String locationToString(Location location) {\n\n return location.getWorld().getName() + \",\" + location.getX() + \",\" + location.getY() + \",\" + location.getZ() + \",\" + location.getYaw() + \",\" + location.getPitch();\n\n }", "public void writeToNBT(NBTTagCompound par1NBTTagCompound);", "public LocationData(final World world, final double x, final double y, final double z, final float yaw, final float pitch)\n {\n position = new BlockVector(x, y, z);\n worldData = getPersistence().get(world.getName(), WorldData.class);\n orientation = new Orientation(yaw, pitch);\n }", "@Override\n\tpublic void updateLocation(String roomLocation, String sideLocation) {\n\t\tthis.room = roomLocation;\n\t\tthis.side = sideLocation;\n\t}", "public void writeState(float timer, float xPos, float yPos, Float killCount, Float pHealth, Float level, Float gravity) throws IOException {\n boolean append = false;\n FileWriter writer = null;\n try {\n writer = new FileWriter(fileName, append);\n writer.write(timer + \",\" + xPos + \",\"+ yPos + \",\" + killCount + \",\" + pHealth + \",\" + level + \",\" + gravity + \"\\n\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }", "private void writeInode(BuilderContext context) {\n fillCommonInodeData(context);\n inode.type = InodeType.Directory;\n setInodeRef(context.getInodeWriter().getPosition());\n inode.writeTo(context.getIoBuffer(), 0);\n context.getInodeWriter().write(context.getIoBuffer(), 0, inode.size());\n }", "public final void setLocation(Coord location) {\n this.location = location;\n }", "private Object writeReplace() throws ObjectStreamException {\n return new SerialProxy(locationNode.getNodeNumber());\n }", "public static String LocationToString(Location location){\n StringBuilder sb = new StringBuilder();\n sb.append(\"( \").append(location.getBlockX()).append(\", \").append(location.getBlockY()).append(\", \").append(location.getBlockZ()).append(\" )\");\n return sb.toString();\n }", "public void write() {\n\t\tint xDist, yDist;\r\n\t\ttry {\r\n\t\t\tif (Pipes.getPipes().get(0).getX() - b.getX() < 0) { // check if pipes are behind bird\r\n\t\t\t\txDist = Pipes.getPipes().get(1).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(1).getY() - b.getY() + Pipes.height;\r\n\t\t\t} else {\r\n\t\t\t\txDist = Pipes.getPipes().get(0).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(0).getY() - b.getY() + Pipes.height;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\txDist = -6969;\r\n\t\t\tyDist = -6969;\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Pipe out of bounds\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"DATA.txt\");\r\n\t\t\tFileWriter fr = new FileWriter(file, true);\r\n\t\t\tfr.write(xDist + \",\" + yDist + \",\" + b.getYVel() + \",\" + didJump);\r\n\t\t\tfr.write(System.getProperty(\"line.separator\")); // makes a new line\r\n\t\t\tfr.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Wtrie file error\");\r\n\t\t}\r\n\t}", "void setPlayerLocation(@Nonnull Location location);", "public abstract boolean setLocation(World world, int coords[]);", "@Test\n\tpublic void testLocation() {\n\t\tString location = \"A-3\";\n\t\tString notes = \"vetran\";\n\t\tPlot plot = new Plot();\n\t\t\n\t\tplot.setLocation(location);\n\t\tassertEquals(plot.getLocation(), \"A-3\");\n\t\t\n\t\tplot.setNotes(\"vetran\");\n\t\tassertEquals(plot.getNotes(), notes);\n\t\t\n\t\tSystem.out.println(\"Location, notes were successsful.\");\n\t}", "public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }", "private void createLocation() throws CoreException {\n \t\tFile file = location.append(F_META_AREA).toFile();\n \t\ttry {\n \t\t\tfile.mkdirs();\n \t\t} catch (Exception e) {\n \t\t\tString message = NLS.bind(CommonMessages.meta_couldNotCreate, file.getAbsolutePath());\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, e));\n \t\t}\n \t\tif (!file.canWrite()) {\n \t\t\tString message = NLS.bind(CommonMessages.meta_readonly, file.getAbsolutePath());\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, null));\n \t\t}\n \t\t// set the log file location now that we created the data area\n \t\tIPath logPath = location.append(F_META_AREA).append(F_LOG);\n \t\ttry {\n \t\t\tActivator activator = Activator.getDefault();\n \t\t\tif (activator != null) {\n \t\t\t\tFrameworkLog log = activator.getFrameworkLog();\n \t\t\t\tif (log != null)\n \t\t\t\t\tlog.setFile(logPath.toFile(), true);\n \t\t\t\telse if (debug())\n \t\t\t\t\tSystem.out.println(\"ERROR: Unable to acquire log service. Application will proceed, but logging will be disabled.\"); //$NON-NLS-1$\n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \n \t\t// set the trace file location now that we created the data area\n \t\tIPath tracePath = location.append(F_META_AREA).append(F_TRACE);\n \t\tActivator activator = Activator.getDefault();\n \t\tif (activator != null) {\n \t\t\tDebugOptions debugOptions = activator.getDebugOptions();\n \t\t\tif (debugOptions != null) {\n \t\t\t\tdebugOptions.setFile(tracePath.toFile());\n \t\t\t} else {\n \t\t\t\tSystem.out.println(\"ERROR: Unable to acquire debug service. Application will proceed, but debugging will be disabled.\"); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(locationID);\n dest.writeDouble(longitude);\n dest.writeDouble(altitude);\n dest.writeDouble(latitude);\n dest.writeFloat(speed);\n dest.writeLong(time);\n\n }", "private void writeObject(final ObjectOutputStream out) throws IOException {\n try {\n if (location == null) location = IOHelper.serializeData(object);\n IOHelper.writeData(location, new StreamOutputDestination(out));\n } catch (final IOException e) {\n throw e;\n } catch (final Exception e) {\n throw new IOException(e);\n }\n }", "public void alignLocation();", "Location createLocation();", "Location createLocation();", "Location createLocation();", "public interface Location \n{\n /**\n * Returns the x-coordinate of the location of the object.\n * @return an integer that represents the x-coordinate of the object.\n * @author Richard Dong\n */\n public int getXPos();\n \n /**\n * Returns the y-coordinate of the location of the object.\n * @return an integer that represents the y-coordinate of the object.\n * @author Richard Dong\n */\n public int getYPos();\n \n \n /**\n * Returns the vertical width of the size of the object.\n * @return an integer that represents the x-coordinate of the object.\n * @author Richard Dong\n */\n public int getWidth();\n \n /**\n * Returns the horizontal length of the size of the object.\n * @return an integer that represents the x-coordinate of the object.\n * @author Richard Dong\n */\n public int getLength();\n \n /**\n * Draws the object in the specified Graphics context.\n * @param window the specified Graphics context.\n * @author Richard Dong\n */\n public void draw(Graphics window);\n}", "public void convertToLocation() {\r\n\t\tdouble longitude = Double.MIN_VALUE;\r\n\t\tdouble latitude = Double.MIN_VALUE;\r\n\r\n\t\tdistance += 0.75;\r\n\t\tsteps = meter.getSteps();\r\n\r\n\t\tDataLogger.getInstance().setCurrDistance(distance);\r\n\r\n\t\tlatitude = 0.75 * Math.cos(orientation) * 0.000009\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLatitude();\r\n\t\tlongitude = 0.75 * Math.sin(orientation) * 0.0000136\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLongitude();\r\n\r\n\t\tDataLogger.getInstance().addLocation(latitude, longitude,\r\n\t\t\t\tjava.lang.System.currentTimeMillis());\r\n\r\n\t\tLog.d(TAG, \"Called convertToLocation\");\r\n\t}", "static public String toString(WorldLocation loc)\r\n {\r\n String res = toStringLat(loc.getLat(), true) + \" \" + toStringLong(loc.getLong(), true);\r\n\r\n return res;\r\n }", "public void update(Location location)\n {\n updatePosition(location);\n updateOrientation(location);\n updateWorld(location);\n }", "public void writeEntityToNBT(NBTTagCompound var1)\n {\n super.writeEntityToNBT(var1);\n var1.setFloat(\"Speedy\", this.speedy);\n var1.setShort(\"MoveTimer\", (short) this.moveTimer);\n var1.setShort(\"Direction\", (short) this.direction);\n var1.setBoolean(\"GotMovement\", this.gotMovement);\n var1.setBoolean(\"Reformed\", this.isReformed());\n var1.setInteger(\"OrgX\", this.getOrgX());\n var1.setInteger(\"OrgY\", this.getOrgY());\n var1.setInteger(\"OrgZ\", this.getOrgZ());\n }", "@Override\n public void writeToNBT(NBTTagCompound nbtTagCompound)\n {\n super.writeToNBT(nbtTagCompound);\n nbtTagCompound.setShort(\"ProcO\", (short) this.processTimeOutput);\n nbtTagCompound.setShort(\"WholeO\", (short) this.wholeTimeOutput);\n nbtTagCompound.setDouble(\"TfP\", this.tfPooled);\n nbtTagCompound.setDouble(\"TfN\", this.tfNeeded);\n\n NBTTagCompound tag1 = this.nigariTank.writeToNBT(new NBTTagCompound());\n nbtTagCompound.setTag(\"Tank1\", tag1);\n\n NBTTagCompound tag2 = this.ingredientTank.writeToNBT(new NBTTagCompound());\n nbtTagCompound.setTag(\"Tank2\", tag2);\n }", "private void readLocations(List<Element> locationElements,\n Model model)\n throws ObjectExistsException {\n // Add the locations.\n for (int i = 0; i < locationElements.size(); i++) {\n Element curLocationElement = locationElements.get(i);\n Integer locID;\n try {\n locID = Integer.valueOf(curLocationElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n locID = null;\n }\n String typeName = curLocationElement.getAttributeValue(\"type\");\n if (typeName == null || typeName.isEmpty()) {\n typeName = \"LocationType\" + i + \"Unknown\";\n }\n TCSObjectReference<LocationType> typeRef\n = model.getLocationType(typeName).getReference();\n Location curLocation = model.createLocation(locID, typeRef);\n TCSObjectReference<Location> locRef = curLocation.getReference();\n String locName = curLocationElement.getAttributeValue(\"name\");\n if (locName == null || locName.isEmpty()) {\n locName = \"LocationName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(locRef, locName);\n // Set position.\n Triple position = new Triple();\n String attrVal;\n attrVal = curLocationElement.getAttributeValue(\"xPosition\");\n if (attrVal != null) {\n position.setX(Long.parseLong(attrVal));\n }\n attrVal = curLocationElement.getAttributeValue(\"yPosition\");\n if (attrVal != null) {\n position.setY(Long.parseLong(attrVal));\n }\n attrVal = curLocationElement.getAttributeValue(\"zPosition\");\n if (attrVal != null) {\n position.setZ(Long.parseLong(attrVal));\n }\n model.setLocationPosition(locRef, position);\n // Add links.\n List<Element> linkElements = curLocationElement.getChildren(\"link\");\n for (int j = 0; j < linkElements.size(); j++) {\n Element curLinkElement = linkElements.get(j);\n String pointName = curLinkElement.getAttributeValue(\"point\");\n if (pointName == null || pointName.isEmpty()) {\n pointName = \"PointName\" + j + \"Unknown\";\n }\n TCSObjectReference<Point> pointRef\n = model.getPoint(pointName).getReference();\n model.connectLocationToPoint(locRef, pointRef);\n List<Element> allowedOpElements\n = curLinkElement.getChildren(\"allowedOperation\");\n for (Element curOpElement : allowedOpElements) {\n String allowedOp = curOpElement.getAttributeValue(\"name\", \"NOP\");\n model.addLocationLinkAllowedOperation(locRef, pointRef, allowedOp);\n }\n }\n List<Element> properties = curLocationElement.getChildren(\"property\");\n for (int m = 0; m < properties.size(); m++) {\n Element curPropElement = properties.get(m);\n String curKey = curPropElement.getAttributeValue(\"name\");\n if (curKey == null || curKey.isEmpty()) {\n curKey = \"Key\" + m + \"Unknown\";\n }\n String curValue = curPropElement.getAttributeValue(\"value\");\n if (curValue == null || curValue.isEmpty()) {\n curValue = \"Value\" + m + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(locRef, curKey, curValue);\n }\n }\n\n }", "public void setLocation(Location loc) {\n this.location = loc;\n }", "private String makeEventLocation(String location) {\n return \"LOCATION:\" + location + \"\\n\";\n }", "public final void setLocation(Tile location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public static void save() throws IOException {\n String output = Main.currentUser.toString();\n output += DatabaseTranslator.getUserLocations(currentUser.getName());\n DatabaseTranslator.storeUserData(currentUser.getName(), output);\n }", "private void update_location() throws Exception {\r\n\t\tif (children.size() == 1) {\r\n\t\t\tCLocation bloc = children.get(0).get_location();\r\n\t\t\tthis.location = bloc.get_source().get_location(bloc.get_bias(), bloc.get_length());\r\n\t\t} else if (children.size() > 1) {\r\n\t\t\tCLocation eloc = children.get(children.size() - 1).get_location();\r\n\t\t\tint beg = this.location.get_bias(), end = eloc.get_bias() + eloc.get_length();\r\n\t\t\tthis.location.set_location(beg, end - beg);\r\n\t\t}\r\n\t}", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "public void writeEntityToNBT(NBTTagCompound tagCompound) {}", "public void setObjectLocation(WotlasLocation objectLocation) { this.objectLocation=objectLocation; }", "public void draw(WorldLocation coord){\n \n }", "private void createLocations( int numLocation, double offset, double sceneX, double sceneY, Random rand) {\n\n for (int k = 0; k < numLocation; k++) {\n int tmpOffSetX = (int) sceneX - ((int) offset * 2);\n int tmpOffsetY = (int) sceneY - ((int) offset * 2);\n double x = rand.nextInt(tmpOffSetX - 300);\n double y = rand.nextInt(tmpOffsetY);\n for (Location lo : locations)\n if (lo.intersects(new BoundingBox(x, y, offset * 2, offset * 2))) {\n x = rand.nextInt(tmpOffSetX - 300);\n y = rand.nextInt(tmpOffsetY);\n }\n if (x < offset) x += (offset + 10); // Attempts to buffer location from being placed off-screen.\n if (y < offset) y += (offset + 10);\n if (y > sceneY - offset) y -= (offset + 10);\n if (x > sceneX - offset) x -= (offset + 10);\n locations.add(new Location(x, y, offset, \"Location \" + k)); // adds new locations\n this.getChildren().add(locations.get(k));\n this.getChildren().add(new Text(\n locations.get(k).getCenterX() - offset,\n locations.get(k).getCenterY() + (offset * 2),\n locations.get(k).getName()));\n locations.get(k).setOnMouseClicked(locationEvent);\n }\n\n }", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void writeToNBT(NBTTagCompound tag) {\n if(this.materialName!=null && !this.materialName.equals(\"\")) {\n tag.setString(Names.NBT.material, this.materialName);\n tag.setInteger(Names.NBT.materialMeta, this.materialMeta);\n }\n super.writeToNBT(tag);\n }", "public void setLocation(String location);", "private void AddLocation () {\n Location mLocation = new Location();\n mLocation.SetId(1);\n mLocation.SetName(\"Corner Bar\");\n mLocation.SetEmail(\"contact.email.com\");\n mLocation.SetAddress1(\"1234 1st Street\");\n mLocation.SetAddress2(\"\");\n mLocation.SetCity(\"Minneapolis\");\n mLocation.SetState(\"MN\");\n mLocation.SetZip(\"55441\");\n mLocation.SetPhone(\"612-123-4567\");\n mLocation.SetUrl(\"www.cornerbar.com\");\n\n ParseACL acl = new ParseACL();\n\n // Give public read access\n acl.setPublicReadAccess(true);\n mLocation.setACL(acl);\n\n // Save the post\n mLocation.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n\n }\n });\n }", "public int saveLocation(Location location){\n return 0;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "private void setLocation() {\n switch (getKey()) {\n case UP:\n this.y_location = -136.8 - 6;\n this.y_tile = -1;\n this.positive = false;\n break;\n case DOWN:\n this.y_location = 136.8 + 6;\n this.y_tile = 1;\n break;\n case LEFT:\n this.x_location = -140.6 - 6;\n this.x_tile = -1;\n this.positive = false;\n break;\n case RIGHT:\n this.x_location = 140.6 + 6;\n this.x_tile = 1;\n break;\n default:\n break;\n }\n }", "protected void writeEntityToNBT(NBTTagCompound compound) {\n if (this.casterUuid != null) {\n compound.setUniqueId(\"OwnerUUID\", this.casterUuid);\n }\n }", "public void setLocation(Vec2f loc) {\n\t\tsuper.setLocation(loc);\n\t\tif (_shape != null) _shape.setLocation(loc);\n\t}", "@Override\n\tprotected void writeEntityToNBT(NBTTagCompound tag) {\n\t\ttag.setByte(\"Fuse\", (byte)this.fuse);\n\t\ttag.setByte(\"Variant\", (byte)this.variant);\n\t}", "public void setLocation(Point loc){\n\t\tthis.location = loc;\n\t}", "@Override\n public void setLocation(Point3D loc) throws InvalidDataException {\n myMovable.setLocation(loc);\n }", "@Override\n public void setLocation(geo_location p) {\n this.location.setX(p.x());\n this.location.setY(p.y());\n this.location.setZ(p.z());\n }", "public void write(Map<Integer,List<Field>> tags)\r\n throws IOException {\n final byte[] nlcr = {13,10};\r\n final byte[] eor = \"*****\".getBytes();\r\n for(Map.Entry<Integer,List<Field>> e:tags.entrySet()) {\r\n int tag = e.getKey();\r\n for(Field f:e.getValue()) {\r\n raf.write((\"#\"+tag+\": \").getBytes());\r\n raf.write(f.get().getBytes(charset));\r\n raf.write(nlcr);\r\n }\r\n }\r\n raf.write(eor);\r\n raf.write(nlcr);\r\n }", "public void setLocation(String location)\n {\n this.location = location;\n }", "private void dumpLocation(Location location) {\n if (location == null)\n log(\"Location[unknown]\");\n else\n log(location.toString());\n }", "@DISPID(1611005996) //= 0x6006002c. The runtime will prefer the VTID if present\n @VTID(72)\n void surfaceElementsLocation(\n CatPartSurfaceElementsLocation oLocation);", "@Override\n \tpublic void writeSpawnData(ByteArrayDataOutput data) {\n \t\tdata.writeUTF(type.shortName);\n \t\tdata.writeInt(direction);\n \t\tdata.writeInt(blockX);\n \t\tdata.writeInt(blockY);\n \t\tdata.writeInt(blockZ);\n \t}", "public LocationData(final World world, final double x, final double y, final double z)\n {\n position = new BlockVector(x, y, z);\n worldData = getPersistence().get(world.getName(), WorldData.class);\n orientation = null;\n }", "public Location getLocation()\n {\n if (worldData == null || position == null)\n {\n // Must have a world and position to make a location;\n return null;\n }\n\n if (orientation == null)\n {\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ());\n }\n\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ(), orientation.getYaw(), orientation.getPitch());\n }", "public final void setPosition(Vector3d location, Vector3d dir, Vector3d up, GeographicPosition geoPos)\n {\n setPosition(location, dir, up);\n myGeoPosition = geoPos;\n }", "@Override\r\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(mFile.toString());\r\n\t\tdest.writeDouble(mLatitude);\r\n\t\tdest.writeDouble(mLongitude);\r\n\t}", "abstract protected void writeTuple(Tuple tuple) throws IOException;", "public static void DumpLocationCoordinatestoKMLRevised(Places places) throws IOException{\n\n String filen = folder_path+\"loc2kmlRevised.txt\";\n File file = new File(filen);\n if (!file.exists()) {\n file.createNewFile();\n }\n BufferedWriter output = new BufferedWriter(new FileWriter(file));\n\n for(int i=0;i<places.places.size();i++){\n LocationCluster locationcls=places.places.get(i);\n output.write(locationcls.placeID+\"~\");\n\n List<UserPhoto> sublist=locationcls.getIdenticalsubLocations();\n if(sublist.size()>2){\n\n for(int j=0;j<sublist.size()-1;j++){\n\n output.write(sublist.get(j).geotag.lat+\",\"+sublist.get(j).geotag.lng);\n if(j<sublist.size()-2){\n output.write(\"|\");\n }\n }\n\n }\n else{\n\n GeoTag center =locationcls.GetCentriod();\n output.write(center.lat+\",\"+center.lng);\n }\n\n\n output.write(\"\\n\");\n\n\n\n\n }\noutput.flush();\n\n }", "public void setLocation(String location) {\r\n this.location = location;\r\n }" ]
[ "0.627463", "0.56775594", "0.5562638", "0.54289174", "0.5407792", "0.53520197", "0.52037627", "0.5171238", "0.51101744", "0.50896615", "0.5018152", "0.5011513", "0.49768856", "0.49669385", "0.49159616", "0.49149385", "0.48975855", "0.48611572", "0.485739", "0.48326653", "0.4820605", "0.48164454", "0.47936282", "0.4792197", "0.4785759", "0.47672376", "0.47341952", "0.4730552", "0.4709193", "0.4706615", "0.4699389", "0.46992266", "0.46976328", "0.46956393", "0.46773398", "0.46734646", "0.46721935", "0.46643418", "0.46499357", "0.46459866", "0.46411112", "0.46407467", "0.46301517", "0.46061862", "0.45948258", "0.45938334", "0.45906374", "0.45877713", "0.45821568", "0.45801634", "0.45748714", "0.45640582", "0.45640582", "0.45640582", "0.4555877", "0.4548935", "0.45337006", "0.45202968", "0.45048907", "0.4502389", "0.4501863", "0.45013145", "0.44963953", "0.44898605", "0.4485283", "0.4485283", "0.4485283", "0.44808456", "0.44770226", "0.44646388", "0.44646388", "0.44638398", "0.44569224", "0.44523597", "0.4447496", "0.44465283", "0.4443653", "0.44418857", "0.44386938", "0.44368732", "0.44348016", "0.44344878", "0.44336018", "0.44313902", "0.442887", "0.44288066", "0.44224185", "0.44203433", "0.44201085", "0.44176173", "0.44134238", "0.44033384", "0.44026804", "0.44006753", "0.44002208", "0.43980592", "0.43927243", "0.43905756", "0.4388551", "0.43868294" ]
0.6036864
1
Create a Vector from a list of doubles. If the list is invalid, a zero vector is returned.
public static Vector listToVector(List<Double> list) { if (list.size() == 3) { return new Vector(list.get(0), list.get(1), list.get(2)); } return new Vector(0, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector(double... elems) {\n\t\tthis(false, elems);\n\t}", "@SuppressWarnings( { \"rawtypes\", \"unchecked\" } )\n\tprotected static Vector toVector( List list )\n\t{\n\t\tVector v = new Vector( );\n\t\tfor ( Object o : list )\n\t\t{\n\t\t\tv.add( o );\n\t\t}\n\t\treturn v;\n\t}", "public DocumentVector(double[] data) {\n\t\tthis(DSUtil.toDoubleList(data));\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Vector(boolean useGiven, double... elems) {\n\t\tif (useGiven) {\n\t\t\tthis.elements = elems;\n\t\t} else {\n\t\t\tthis.elements = new double[elems.length];\n\t\t\tfor (int i = elems.length - 1; i >= 0; i--) {\n\t\t\t\tthis.elements[i] = elems[i];\n\t\t\t}\n\t\t}\n\t\tdimensions = elems.length;\n\t}", "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}", "private VectorArit VectorToDouble(VectorArit v) {\r\n LinkedList<Object> l = new LinkedList<>();\r\n for (int i = 0; i < v.getTamanio(); i++) {\r\n Object o = v.Acceder(i);\r\n if (o instanceof Double) {\r\n l.add(o);\r\n } else {\r\n l.add((o instanceof Integer) ? ((Integer) o).doubleValue() : (((Boolean) o) ? 1.0 : 0.0));\r\n }\r\n }\r\n return new VectorArit(TipoPrimitivo.NUMERIC, l);\r\n }", "public DocumentVector(Collection<Double> data) {\n\t\tinit(data);\n\t}", "public static List<Double> vectorToList(Vector vec) {\n return Arrays.asList(vec.getX(), vec.getY(), vec.getZ());\n }", "public F64Vector(double[] values, int offset, int length) {\n this(length);\n System.arraycopy(values, offset, data, 0, length);\n }", "public static List<TwoDPoint> ofDoubles(double @NotNull ... coordinates) throws IllegalArgumentException {\n if (coordinates.length % 2 != 0) {\n throw new IllegalArgumentException(\"number of coordinates must be even.\");\n } else if (coordinates.length == 0){\n return new ArrayList<>(0);\n } else {\n List<TwoDPoint> l = new ArrayList<>(coordinates.length);\n l.add(new TwoDPoint(coordinates[0], coordinates[1]));\n l.addAll(ofDoubles(Arrays.copyOfRange(coordinates,2, coordinates.length)));\n return l;\n }\n }", "public ListOfDouble(int size) {\n\t\telements = new double[size];\n\t\tpointer = 0;\n\t}", "public void learnVector(final Calendar when, final List<Double> vals);", "@NonNull\n static DoubleConsList<Double> doubleList(@NonNull double... elements) {\n DoubleConsList<Double> cons = nil();\n for (int i = elements.length - 1; i >= 0; i--) {\n cons = new DoubleConsListImpl(elements[i], cons);\n }\n return cons;\n }", "public Vector(double x, double y, double z, double w) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { w }\n });\n }", "public Vector3 (double[] values) {\n set(values);\n }", "public List<Vector<Double>> createFeatureVectors(List<List<RecordBean>> splittedRecordBeansList){\n\n List<Vector<Double>> featureVectorList = new ArrayList<>();\n for(int i = 0; i < splittedRecordBeansList.size(); i++){\n Vector<Double> featureVector = new Vector<>(5);\n featureVector.add(averagePacketsperRequest(splittedRecordBeansList.get(i)));\n featureVector.add(averageBytesperRequest(splittedRecordBeansList.get(i)));\n featureVector.add(getPacketEntropyDistribution(splittedRecordBeansList.get(i)));\n featureVector.add(getByteEntropyDistribution(splittedRecordBeansList.get(i)));\n featureVector.addAll((getProtocolRatios(splittedRecordBeansList.get(i))));\n featureVector.add(getLabel(splittedRecordBeansList.get(i)));\n featureVectorList.add(featureVector);\n }\n\n return featureVectorList;\n }", "public static double[] readDoubleVector(DataInputStream input) throws IOException {\n int length = input.readInt();\n\n double[] ret = new double[length];\n\n for (int i = 0; i < length; i++) {\n double value = input.readDouble();\n ret[i] = value;\n }\n\n return ret;\n }", "public static double getArrayListDoubleVariance(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "static public DoubleList readVector(BufferedReader reader) throws IOException {\r\n int dim = Integer.parseInt(reader.readLine());\r\n DoubleList vector = new DoubleArrayList(dim);\r\n for (int i = 0; i < dim; i++) {\r\n double v = Double.parseDouble(reader.readLine());\r\n vector.add(v);\r\n }\r\n return vector;\r\n }", "public TemperatureDifferenceCalculator(double[] list)\n {\n data = list;\n }", "public Vector(double x, double y, double z) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { 1 }\n });\n }", "public Registro(List<Double> d) \n { \n\t this.setContenido((ArrayList<Double>) d);\n }", "public double[] getDoubleList();", "public F64Vector(double[] data) {\n this.data = data;\n }", "public void learnVector(final Calendar when, final List<Double> vals) {\n throw new UnsupportedOperationException(\"Don't know what to do....\");\n }", "public Vector createVector(String line) throws VectorException {\r\n\t\tVector vector = new Vector();\r\n\t\tString[] arr = line.split(\",\");\r\n\t\t\r\n\t\tfor(String s : arr) {\r\n\t\t\ttry {\r\n\t\t\t\tvalidateInteger(line);\r\n\t\t\t\tInteger i = Integer.parseInt(s);\r\n\t\t\t\tvector.addItem(i);\r\n\t\t\t\t\r\n\t\t\t}catch(NumberFormatException e) {\r\n\t\t\t\tthrow new VectorException(\"Value must be an number of Integer type\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn vector;\r\n\t}", "public static DoubleStream generateStreamFromList(List<Double> list)\n\t{\n\t\tDoubleStream.Builder builder = DoubleStream.builder();\n\t\tfor (double n : list)\n\t\t{\n\t\t\tbuilder.add(n);\n\t\t}\n\t\treturn builder.build();\n\t}", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "public SparseDoubleVector(double firstElement, double[] arr) {\n this(arr.length + 1);\n set(0, firstElement);\n for (int i = 0; i < arr.length; i++) {\n set(i + 1, arr[i]);\n }\n }", "public Vector3 set (double[] values) {\n return set(values[0], values[1], values[2]);\n }", "public static List<Double> asList(double[] array) {\n\t\treturn new DoubleArrayList(array);\n\t}", "public static Double[] convertirTableau(ArrayList<Double> valeurs) {\n\t\tDouble[] tab = new Double[valeurs.size()];\n\t\tfor(int i = 0; i <valeurs.size(); i++) {\n\t\t\ttab[i] = valeurs.get(i);\n\t\t}\n\t\treturn tab;\n\t}", "public VectorLinearList(int initialCapacity)\n {\n if (initialCapacity < 1)\n throw new IllegalArgumentException\n (\"VectorLinearList.constructor: \" +\n \"initialCapacity must be >= 1\");\n element = new Vector(initialCapacity);\n }", "public static double getArrayListDoubleMin(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "static double[] unitVector(double[] vector) {\n if (vector.length != 3)\n throw new IllegalArgumentException(\"Argument not a 3-D vector <dim=\" + vector.length + \">.\");\n double magnitude = vectorMagnitude(vector);\n\n return (new double[] {vector[0] / magnitude, vector[1] / magnitude, vector[2] / magnitude});\n }", "public static final double[] normalize(final double[] V)\n {\n double []vec = new double[periodNum];\t\n\t//Vector vec = new Vector(periodNum);\n\t//Double zero = new Double(0);\n\t//for(int i=0;i<periodNum;i++)\n\t// vec.insertElementAt(zero,i);\n\n\tdouble sum =0;\n\t\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t\tsum += V[i];\n\t\t//sum += ((Double)V.elementAt(i)).doubleValue();\n\t}\n\t// if sum is 0, can't divide using it\n\tif(sum ==0)\n\t return V;\n\n\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t double d = V[i];//((Double)V.elementAt(i)).doubleValue();\n\t double dd = d/sum;\n\n\t vec[i] = dd;\n\t //vec.addElement(new Double(dd));\n\t}\n\t \n\treturn vec;\n }", "public List<Double> getAsDoubleList(String itemName, List<Double> defaultValue);", "public Vector4d set(double[] src) throws IndexOutOfBoundsException{\n\t\treturn set(src, 0);\n\t}", "public ColladaFloatVector(Collada collada) {\n super(collada);\n }", "public void learnVector(final Calendar when, final double[] vals);", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "public VectorFloat(int numElements) {\n this(numElements, new float[numElements]);\n }", "public Vector(double x, double y){\n this.x=x;\n this.y=y;\n }", "public void vector(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of Vector\");\r\n\t\tEnumeration<Student> enumeration = Collections.enumeration(list);\r\n\t\twhile (enumeration.hasMoreElements()) \r\n\t\t\tSystem.out.println(enumeration.nextElement()); \r\n\t}", "public SearchIndex(List<Double> elements) {\n sequence = new ArrayList<Double>(elements);\n Collections.sort(sequence);\n }", "private List<Double> double2List(final double[] array) {\n\t\tList<Double> result = new ArrayList<Double>();\n\t\tfor (double n : array) {\n\t\t\tresult.add(new Double(n));\n\t\t}\n\t\treturn result;\n\t}", "public SparseDoubleVector(double[] array, double lastValue) {\n this(array.length + 1);\n for (int i = 0; i < array.length; i++) {\n set(i, array[i]);\n }\n set(array.length, lastValue);\n }", "public static List<Double> toList(final double[] array) {\n List<Double> list = new ArrayList<Double>(array.length);\n for (int i = 0; i < array.length; i++) {\n list.add(array[i]);\n }\n return list;\n }", "public Vector(double x1, double y1, double z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "public static ListaVinculada<Double> stringtodoublearray(ListaVinculada<String> coleccion){\n ListaVinculada<Double> coleccionD = new ListaVinculada<>();\n for (String dato : coleccion) {\n coleccionD.add(Double.parseDouble(dato));\n }\n return coleccionD;\n }", "public Vector(double x, double y, double z){\n double longueur = Math.sqrt(sqr(x) + sqr(y) + sqr(z));\n\n this.x = longueur > 0 ? x/longueur : this.x;\n this.y = longueur > 0 ? y/longueur : this.y;\n this.z = longueur > 0 ? z/longueur : this.z;\n \n }", "public Vector(double x, double y, double z) {\n this(new Point3D(x, y, z));\n }", "static Nda<Double> of( double... value ) { return Tensor.of( Double.class, Shape.of( value.length ), value ); }", "public ColladaFloatVector() {\n super();\n }", "@Test\r\n\tpublic void testEmptyConstructor() {\r\n\t\tDoubleList sample = new DoubleList();\r\n\t\tAssert.assertNull(sample.getFirst());\r\n\t}", "public static void setVector(double[] v, double c0, double c1, double c2) {\n v[0] = c0;\n v[1] = c1;\n v[2] = c2;\n }", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "public Vector() {\n construct();\n }", "public double[] makeDouble(String[] vals){\n try {\n double[] result = new double[vals.length - 1];\n\n for (int i = 0; i < vals.length - 1; i++) {\n vals[i] = vals[i].replace(\",\", \".\");\n result[i] = Double.parseDouble(vals[i]);\n }\n return result;\n }catch (Exception e){\n System.out.println(e);\n }\n return null;\n }", "Vec(double x, double y) {\n this.x = x; this.y = y;\n }", "public void learnVector(final Calendar when, final double[] vals) {\n throw new UnsupportedOperationException(\"Don't know what to do....\");\n }", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "public Vector(double s, double d){\n\t\tthis.magnitude = s;\n\t\tthis.direction = d;\n\t\tthis.dX = this.magnitude * Math.cos(Math.toRadians(d));\n\t\tthis.dY = this.magnitude * Math.sin(Math.toRadians(d));\n\t\t\n\t}", "public static Instance createElement(Object[] vector) {\n List<Value> values = new Vector<Value>();\n for (Object value : vector) {\n values.add(createValue(value));\n }\n return new Instance(values);\n }", "public static Double[][] simulerUniforme(ArrayList<Double> listValeurs, Double repetition) {\n\t\tDouble[] tab = convertirTableau(listValeurs);\n\t\tUniforme loi = new Uniforme(tab);\n\t\treturn loi.simuler(repetition);\n\t}", "@Test //test normalize\n public void testNormalize() {\n double[] tempDoubleA = new double[]{3.1, 4.1};\n MyVector actualDoubleNorm = (new MyVector(tempDoubleA)).normalize();\n double normal = sqrt(3.1 * 3.1 + 4.1 * 4.1);\n MyVector expectDoubleNorm = new MyVector(new double[]{(3.1 / normal), (4.1 / normal)});\n\n assertTrue(actualDoubleNorm.equal(expectDoubleNorm), \"test int v mult int\");\n\n int[] tempIntA = new int[]{3, 4};\n MyVector actualIntNorm = (new MyVector(tempIntA)).normalize();\n MyVector expectIntNorm = new MyVector(new double[]{3 / (double) 5, 4 / (double) 5});\n assertTrue(actualIntNorm.equal(expectIntNorm), \"test int v mult int\");\n\n MyVector emptyNorm = EMPTYVECTOR.normalize();\n assertTrue(EMPTYVECTOR.equal(emptyNorm), \"test on empty vector normalization\");\n }", "public double[] readVector(String line, int index) {\n\n String[] list = line.split(\" \");\n int numColumns = Integer.parseInt(list[index]);\n double[] res = new double[numColumns];\n\n int num = index + 1;\n for (int j = 0; j < numColumns; j++) {\n res[j] = Double.parseDouble(list[num]);\n num++;\n }\n return res;\n }", "static <T> Nda<T> of( List<T> values ) { return TensorImpl._of(values); }", "public static Stats of(double... values) {\n/* 122 */ StatsAccumulator acummulator = new StatsAccumulator();\n/* 123 */ acummulator.addAll(values);\n/* 124 */ return acummulator.snapshot();\n/* */ }", "public VectorLinearList()\n {// use default capacity of 10\n this(10);\n }", "public static double getArrayListDoubleMax(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "private static double[][] populateXMatrix(ArrayList<Double> _xValues)\n {\n // convert from Double to double\n xInputValues = new double[_xValues.size()];\n Iterator<Double> iterator = _xValues.iterator();\n int i = 0;\n while(iterator.hasNext())\n {\n xInputValues[i] = iterator.next().doubleValue();\n i++;\n }\n\n // double[][] to use to construct Matrix Object\n double[][] XArray = new double[d+1][d+1];\n for(int c = 0; c < XArray.length; c++)\n {\n for(int r = c; r < XArray[c].length; r++) // Using r = c doubles efficiency\n {\n XArray[r][c] = XArray[c][r] = SumX(2*d-r-c, xInputValues);\n }\n }\n return XArray;\n }", "public abstract T fromDouble(Double d);", "public Object[] getScriptOfValuesAsDouble() {\r\n\t\tArrayList valueDouble;\r\n\t\tvalueDouble = new ArrayList<Double>();\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (var.getType().equals(\"double\") || var.getType().equals(\"int\")) {\r\n\r\n\t\t\t\tif (var.getValue() != null && !var.getValue().equals(\"\") && !var.getValue().equals(\"NaN\")) {\r\n\r\n\t\t\t\t\tvalueDouble.add(var.getValue());\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvalueDouble.add(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tObject[] values = new Object[valueDouble.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Object d : valueDouble) {\r\n\t\t\tif (d == null) {\r\n\t\t\t\td = 0.0;\r\n\t\t\t}\r\n\r\n\t\t\tvalues[i] = d;\r\n\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn values;\r\n\r\n\t}", "public DocumentVector(int dim, double initValue) {\n\t\tinit(DSUtil.initDoubleList(dim, initValue));\n\t}", "public static double getArrayListDoubleMode(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "private static double[] toArray(ArrayList<Double> dbls) {\n double[] r = new double[dbls.size()];\n int i = 0;\n for( double d:dbls ) r[i++] = d;\n return r;\n }", "public VectorFloat(float[] storage) {\n this(storage.length / elementSize, storage);\n }", "public static double[] stateless(double[] v1) {\n Validate.notNull(v1);\n double[] r = Arrays.copyOf(v1, v1.length);\n inPlace(r);\n return r;\n }", "VectorType11 getVector();", "public static Spliterator.OfDouble spliterator(double[] paramArrayOfdouble, int paramInt1, int paramInt2, int paramInt3) {\n/* 371 */ checkFromToBounds(((double[])Objects.requireNonNull((T)paramArrayOfdouble)).length, paramInt1, paramInt2);\n/* 372 */ return new DoubleArraySpliterator(paramArrayOfdouble, paramInt1, paramInt2, paramInt3);\n/* */ }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public static void add(List<Double> vector, List<Double> toAdd) {\n for (int i = 0; i < vector.size(); i++) {\n double sum = vector.get(i) + toAdd.get(i);\n vector.set(i, sum);\n }\n }", "public Vector(float[] axis){ this.axis = axis;}", "public Coordinates unitVector(Coordinates vector);", "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 }", "Vector getZeroVector();", "public static Vector fromCartesian(double x, double y){\n return new Vector(x, y);\n }", "private double min(double[] vector){\n if (vector.length == 0)\n throw new IllegalStateException();\n double min = Double.MAX_VALUE;\n for(double e : vector){\n if(!Double.isNaN(e) && e < min)\n min = e;\n }\n return min;\n }", "public Vector2f (float[] values)\n {\n set(values);\n }", "public List<List<Double>> referenceToBeamlineColumnVector(List<List<Double>> reference) {\n\t\tif (isValidColumnVector(reference).equals(false)) {\n\t\t\tthrow new IllegalArgumentException(\"non-valid input vector\");\n\t\t}\n\n\t\tSimpleMatrix referenceVector = Maths.listOfListsToSimpleMatrix(reference);\n\t\treturn referenceToBeamlineColumnVector(referenceVector);\n\t}", "public Stat (double[] d){\r\n\t\t//create real copy (not shallow copy) of d\r\n\t\tdata = new double[d.length];\r\n\t\t\r\n\t\t//fill with d values\r\n\t\tfor (int i = 0; i < d.length; i++){\r\n\t\t\tdata[i] = d[i];\r\n\t\t}\r\n\t}", "public VOIVector() {\r\n super();\r\n }", "private static List<Double> parse_line_double(String line, int d) throws Exception {\n\t List<Double> ans = new ArrayList<Double>();\n\t StringTokenizer st = new StringTokenizer(line, \" \");\n\t if (st.countTokens() != d) {\n\t throw new Exception(\"Bad line: [\" + line + \"]\");\n\t }\n\t while (st.hasMoreElements()) {\n\t String s = st.nextToken();\n\t try {\n\t ans.add(Double.parseDouble(s));\n\t } catch (Exception ex) {\n\t throw new Exception(\"Bad Integer in \" + \"[\" + line + \"]. \" + ex.getMessage());\n\t }\n\t }\n\t return ans;\n\t }", "private static void caso4(ArrayList<Float> listaValores) {\n \n }", "public Vector4d(double x, double y, double z, double w) {\n\t\tset(x, y, z, w);\n\t}", "protected void init(Collection<Double> data) {\n\t\tList<Attribute> attList = Util.newList();\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tAttribute att = new Attribute(\"w\" + i, Type.real);\n\t\t\tattList.add(att);\n\t\t}\n\t\tsetAttRef(AttributeList.create(attList));\n\t\t\n\t\tint i = 0;\n\t\tfor (double value : data) {\n\t\t\tsetValue(i, value);\n\t\t\ti++;\n\t\t}\n\t}", "public static double getArrayListDoubleMean(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "public abstract double[] getVector(int[] location);" ]
[ "0.6794395", "0.6199841", "0.60955113", "0.60767394", "0.6022175", "0.6015106", "0.6007291", "0.59841603", "0.5858422", "0.58495456", "0.5781724", "0.5778561", "0.57618004", "0.57320553", "0.5667501", "0.5642133", "0.56350684", "0.5608889", "0.5608507", "0.56068355", "0.55867094", "0.5585515", "0.55259377", "0.550332", "0.54860556", "0.548034", "0.54777765", "0.54748654", "0.5399172", "0.53761524", "0.53596", "0.53537816", "0.53477484", "0.5345282", "0.5339303", "0.52847487", "0.52632916", "0.52104384", "0.51928085", "0.5187174", "0.51590145", "0.51558554", "0.51525545", "0.5146899", "0.5143823", "0.5142992", "0.5136563", "0.5133796", "0.51153374", "0.5107754", "0.51050085", "0.5095935", "0.5088855", "0.5086103", "0.50736123", "0.5071889", "0.50676817", "0.5058439", "0.50360525", "0.5032154", "0.502773", "0.5001511", "0.5000559", "0.49875075", "0.49837688", "0.4979832", "0.49623975", "0.4949909", "0.4947456", "0.49442887", "0.4944073", "0.492723", "0.49175397", "0.4913589", "0.49093205", "0.48872522", "0.48767373", "0.48621377", "0.4859618", "0.4844237", "0.48423976", "0.4841936", "0.48306948", "0.48276526", "0.48199353", "0.48174357", "0.48142928", "0.48107687", "0.48103935", "0.477612", "0.47698572", "0.4767796", "0.4729072", "0.47288856", "0.47225243", "0.47173613", "0.4717132", "0.47111052", "0.47092816", "0.46989822" ]
0.80048454
0
Create a list of doubles from a Vector.
public static List<Double> vectorToList(Vector vec) { return Arrays.asList(vec.getX(), vec.getY(), vec.getZ()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private VectorArit VectorToDouble(VectorArit v) {\r\n LinkedList<Object> l = new LinkedList<>();\r\n for (int i = 0; i < v.getTamanio(); i++) {\r\n Object o = v.Acceder(i);\r\n if (o instanceof Double) {\r\n l.add(o);\r\n } else {\r\n l.add((o instanceof Integer) ? ((Integer) o).doubleValue() : (((Boolean) o) ? 1.0 : 0.0));\r\n }\r\n }\r\n return new VectorArit(TipoPrimitivo.NUMERIC, l);\r\n }", "public static Vector listToVector(List<Double> list) {\n if (list.size() == 3) {\n return new Vector(list.get(0), list.get(1), list.get(2));\n }\n return new Vector(0, 0, 0);\n }", "public static double[] readDoubleVector(DataInputStream input) throws IOException {\n int length = input.readInt();\n\n double[] ret = new double[length];\n\n for (int i = 0; i < length; i++) {\n double value = input.readDouble();\n ret[i] = value;\n }\n\n return ret;\n }", "public double[] getDoubleList();", "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}", "public static Double[] convertirTableau(ArrayList<Double> valeurs) {\n\t\tDouble[] tab = new Double[valeurs.size()];\n\t\tfor(int i = 0; i <valeurs.size(); i++) {\n\t\t\ttab[i] = valeurs.get(i);\n\t\t}\n\t\treturn tab;\n\t}", "public Vector(double... elems) {\n\t\tthis(false, elems);\n\t}", "static double[] unitVector(double[] vector) {\n if (vector.length != 3)\n throw new IllegalArgumentException(\"Argument not a 3-D vector <dim=\" + vector.length + \">.\");\n double magnitude = vectorMagnitude(vector);\n\n return (new double[] {vector[0] / magnitude, vector[1] / magnitude, vector[2] / magnitude});\n }", "public static void add(List<Double> vector, List<Double> toAdd) {\n for (int i = 0; i < vector.size(); i++) {\n double sum = vector.get(i) + toAdd.get(i);\n vector.set(i, sum);\n }\n }", "public static final double[] normalize(final double[] V)\n {\n double []vec = new double[periodNum];\t\n\t//Vector vec = new Vector(periodNum);\n\t//Double zero = new Double(0);\n\t//for(int i=0;i<periodNum;i++)\n\t// vec.insertElementAt(zero,i);\n\n\tdouble sum =0;\n\t\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t\tsum += V[i];\n\t\t//sum += ((Double)V.elementAt(i)).doubleValue();\n\t}\n\t// if sum is 0, can't divide using it\n\tif(sum ==0)\n\t return V;\n\n\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t double d = V[i];//((Double)V.elementAt(i)).doubleValue();\n\t double dd = d/sum;\n\n\t vec[i] = dd;\n\t //vec.addElement(new Double(dd));\n\t}\n\t \n\treturn vec;\n }", "static public DoubleList readVector(BufferedReader reader) throws IOException {\r\n int dim = Integer.parseInt(reader.readLine());\r\n DoubleList vector = new DoubleArrayList(dim);\r\n for (int i = 0; i < dim; i++) {\r\n double v = Double.parseDouble(reader.readLine());\r\n vector.add(v);\r\n }\r\n return vector;\r\n }", "public List<Double> getAsDoubleList(String itemName, List<Double> defaultValue);", "public Object[] getScriptOfValuesAsDouble() {\r\n\t\tArrayList valueDouble;\r\n\t\tvalueDouble = new ArrayList<Double>();\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (var.getType().equals(\"double\") || var.getType().equals(\"int\")) {\r\n\r\n\t\t\t\tif (var.getValue() != null && !var.getValue().equals(\"\") && !var.getValue().equals(\"NaN\")) {\r\n\r\n\t\t\t\t\tvalueDouble.add(var.getValue());\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvalueDouble.add(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tObject[] values = new Object[valueDouble.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Object d : valueDouble) {\r\n\t\t\tif (d == null) {\r\n\t\t\t\td = 0.0;\r\n\t\t\t}\r\n\r\n\t\t\tvalues[i] = d;\r\n\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn values;\r\n\r\n\t}", "public void learnVector(final Calendar when, final List<Double> vals);", "public ListOfDouble(int size) {\n\t\telements = new double[size];\n\t\tpointer = 0;\n\t}", "public List<Double> getDoubleList(final String key) {\n return getDoubleList(key, new ArrayList<>());\n }", "public DocumentVector(Collection<Double> data) {\n\t\tinit(data);\n\t}", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "private static double[] toArray(ArrayList<Double> dbls) {\n double[] r = new double[dbls.size()];\n int i = 0;\n for( double d:dbls ) r[i++] = d;\n return r;\n }", "@NonNull\n static DoubleConsList<Double> doubleList(@NonNull double... elements) {\n DoubleConsList<Double> cons = nil();\n for (int i = elements.length - 1; i >= 0; i--) {\n cons = new DoubleConsListImpl(elements[i], cons);\n }\n return cons;\n }", "public DocumentVector(double[] data) {\n\t\tthis(DSUtil.toDoubleList(data));\n\t\t// TODO Auto-generated constructor stub\n\t}", "@SuppressWarnings( { \"rawtypes\", \"unchecked\" } )\n\tprotected static Vector toVector( List list )\n\t{\n\t\tVector v = new Vector( );\n\t\tfor ( Object o : list )\n\t\t{\n\t\t\tv.add( o );\n\t\t}\n\t\treturn v;\n\t}", "public static List<Double> getList(long seed, int size) {\r\n\t\treturn new Random(seed).doubles(size).boxed().collect(Collectors.toList());\r\n\t}", "public List<List<Double>> referenceToBeamlineColumnVector(SimpleMatrix referenceVector) {\n\t\tif (isValidColumnMatrix(referenceVector).equals(false)) {\n\t\t\tthrow new IllegalArgumentException(\"non-valid input vector\");\n\t\t}\n\n\t\tSimpleMatrix beamlineVector = beamlineToReferenceTransform.invert().mult(referenceVector);\n\t\treturn Maths.simpleMatrixToListOfLists(beamlineVector);\n\t}", "public static List<TwoDPoint> ofDoubles(double @NotNull ... coordinates) throws IllegalArgumentException {\n if (coordinates.length % 2 != 0) {\n throw new IllegalArgumentException(\"number of coordinates must be even.\");\n } else if (coordinates.length == 0){\n return new ArrayList<>(0);\n } else {\n List<TwoDPoint> l = new ArrayList<>(coordinates.length);\n l.add(new TwoDPoint(coordinates[0], coordinates[1]));\n l.addAll(ofDoubles(Arrays.copyOfRange(coordinates,2, coordinates.length)));\n return l;\n }\n }", "public Vector toVector(){\r\n\t\tVector v = new Vector();\r\n\r\n\t\t// ATTENTION l'ordre est très important !!\r\n\t\t// l'ordre doit être :\r\n\t\t// id, id localisation, adresse, code postal, ville, telephone\r\n\r\n\t\tv.add(id);\r\n\t\tv.add(localisation.getId());\r\n\t\tv.add(localisation.getAdresse());\r\n\t\tv.add(localisation.getCodePostal());\r\n\t\tv.add(localisation.getVille());\r\n\t\tv.add(telephone);\r\n\r\n\t\treturn v;\r\n\t}", "private List<Double> double2List(final double[] array) {\n\t\tList<Double> result = new ArrayList<Double>();\n\t\tfor (double n : array) {\n\t\t\tresult.add(new Double(n));\n\t\t}\n\t\treturn result;\n\t}", "public double[] readVector(String line, int index) {\n\n String[] list = line.split(\" \");\n int numColumns = Integer.parseInt(list[index]);\n double[] res = new double[numColumns];\n\n int num = index + 1;\n for (int j = 0; j < numColumns; j++) {\n res[j] = Double.parseDouble(list[num]);\n num++;\n }\n return res;\n }", "public static ListaVinculada<Double> stringtodoublearray(ListaVinculada<String> coleccion){\n ListaVinculada<Double> coleccionD = new ListaVinculada<>();\n for (String dato : coleccion) {\n coleccionD.add(Double.parseDouble(dato));\n }\n return coleccionD;\n }", "public double[] getDoubles()\r\n {\r\n return resultDoubles;\r\n }", "public static List<Double> toList(final double[] array) {\n List<Double> list = new ArrayList<Double>(array.length);\n for (int i = 0; i < array.length; i++) {\n list.add(array[i]);\n }\n return list;\n }", "public static List<Double> asList(double[] array) {\n\t\treturn new DoubleArrayList(array);\n\t}", "public Vector(boolean useGiven, double... elems) {\n\t\tif (useGiven) {\n\t\t\tthis.elements = elems;\n\t\t} else {\n\t\t\tthis.elements = new double[elems.length];\n\t\t\tfor (int i = elems.length - 1; i >= 0; i--) {\n\t\t\t\tthis.elements[i] = elems[i];\n\t\t\t}\n\t\t}\n\t\tdimensions = elems.length;\n\t}", "VectorType11 getVector();", "public Vec2double add(Vec2double v) {\n\t\treturn new Vec2double(this.x + v.x, this.y + v.y);\n\t}", "Vector<Vector<Object>> getDataVector();", "public static PVector toServos( PVector in ){\n\t\tfloat x = in.x * 180;\n\t\tfloat y = in.y * 180;\n\t\treturn new PVector( x, y );\n\t}", "public Coordinates unitVector(Coordinates vector);", "void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }", "public Iterable<Double> getDoubles(String key);", "public void learnVector(final Calendar when, final List<Double> vals) {\n throw new UnsupportedOperationException(\"Don't know what to do....\");\n }", "public abstract double[] toDoubleArray();", "public static Double[][] simulerUniforme(ArrayList<Double> listValeurs, Double repetition) {\n\t\tDouble[] tab = convertirTableau(listValeurs);\n\t\tUniforme loi = new Uniforme(tab);\n\t\treturn loi.simuler(repetition);\n\t}", "public static final double[] cumulate(double[] V){\n\t\n \tdouble[]vec = new double[periodNum];\t\n\t//Vector vec = new Vector(periodNum);\n\t//\tfor(int i=0;i<periodNum;i++)\n\t// vec.insertElementAt((new Double(0)),i);\n\t\n\tdouble sum =0;\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t sum += V[i];//((Double)V.elementAt(i)).doubleValue();\n\t vec[i] = sum;\n\t //vec.addElement(new Double(sum));\n\t}\n\t\n\treturn vec;\n }", "private static List<Double> parse_line_double(String line, int d) throws Exception {\n\t List<Double> ans = new ArrayList<Double>();\n\t StringTokenizer st = new StringTokenizer(line, \" \");\n\t if (st.countTokens() != d) {\n\t throw new Exception(\"Bad line: [\" + line + \"]\");\n\t }\n\t while (st.hasMoreElements()) {\n\t String s = st.nextToken();\n\t try {\n\t ans.add(Double.parseDouble(s));\n\t } catch (Exception ex) {\n\t throw new Exception(\"Bad Integer in \" + \"[\" + line + \"]. \" + ex.getMessage());\n\t }\n\t }\n\t return ans;\n\t }", "public Vector at ( float x ) { return A.add(D.prod(x)); }", "public List<Double> getDoubleList(final String key, final List<Double> defaultValue) {\n return getList(Double.class, key, defaultValue);\n }", "public void learnVector(final Calendar when, final double[] vals);", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "public static double[] normalize(double[] v) {\n double[] tmp = new double[3];\n tmp[0] = v[0] / VectorMath.length(v); \n tmp[1] = v[1] / VectorMath.length(v); \n tmp[2] = v[2] / VectorMath.length(v); \n return tmp; \n }", "public Vector add(Vector v, double dt){\n return new Vector(this.getX()+v.getX()*dt, this.getY()+v.getY()*dt, this.getZ()+v.getZ()*dt);\n }", "public double[] getAsDoubles() {\n return (double[])data;\n }", "double[][] asDouble();", "public double distance(double[] vector, InputDatum datum) throws MetricException;", "public F64Vector(double[] values, int offset, int length) {\n this(length);\n System.arraycopy(values, offset, data, 0, length);\n }", "public List<Vector<Double>> createFeatureVectors(List<List<RecordBean>> splittedRecordBeansList){\n\n List<Vector<Double>> featureVectorList = new ArrayList<>();\n for(int i = 0; i < splittedRecordBeansList.size(); i++){\n Vector<Double> featureVector = new Vector<>(5);\n featureVector.add(averagePacketsperRequest(splittedRecordBeansList.get(i)));\n featureVector.add(averageBytesperRequest(splittedRecordBeansList.get(i)));\n featureVector.add(getPacketEntropyDistribution(splittedRecordBeansList.get(i)));\n featureVector.add(getByteEntropyDistribution(splittedRecordBeansList.get(i)));\n featureVector.addAll((getProtocolRatios(splittedRecordBeansList.get(i))));\n featureVector.add(getLabel(splittedRecordBeansList.get(i)));\n featureVectorList.add(featureVector);\n }\n\n return featureVectorList;\n }", "public static Vector normalize(Vector v) {\r\n Vector w = new Vector(v);\r\n w.normalize();\r\n return w;\r\n }", "public Coordinates scaleVector(Coordinates vector, double factor);", "public static Double[][] simulerDiscrete(ArrayList<Double> listValeurs, ArrayList<Double> listProbabilite,Double nbRep) {\n\t\tDiscrete loi = new Discrete(listValeurs,listProbabilite);\n\t\treturn loi.simuler(nbRep);\n\t}", "public Vector toVector()\n\t{\n\t\tVector listeners = new Vector();\n\t\tlisteners.addElement(this);\n\n\t\treturn listeners;\n\t}", "public abstract double[] getVector(int[] location);", "public float[] getVector() {\r\n\t\t\r\n\t\tfloat array[]=new float[12];\r\n\t\tint index=-1;\r\n\t\t\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\t++index;\r\n\t\t\t\tarray[index]=thecounts[i][j]; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "public List<List<Double>> referenceToBeamlineColumnVector(List<List<Double>> reference) {\n\t\tif (isValidColumnVector(reference).equals(false)) {\n\t\t\tthrow new IllegalArgumentException(\"non-valid input vector\");\n\t\t}\n\n\t\tSimpleMatrix referenceVector = Maths.listOfListsToSimpleMatrix(reference);\n\t\treturn referenceToBeamlineColumnVector(referenceVector);\n\t}", "public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);", "private Point2D.Double calcUnitVec(Point2D.Double vec)\n\t{\n\t\tdouble mag = Math.sqrt((vec.getX() * vec.getX()) + (vec.getY() * vec.getY()));\n\n\t\treturn new Point2D.Double((vec.getX() / mag), (vec.getY() / mag));\n\n\t}", "public ArrayList<ArrayList<Double>> parseVertices() {\n\t\tArrayList<ArrayList<Double>> ret = new ArrayList<ArrayList<Double>>();\n\t\tString file = getFilepath();\n\t\ttry {\n\t\t\tFile myObj = new File(file);\n\t\t\tScanner myReader = new Scanner(myObj);\n\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\tString data = myReader.nextLine();\n\t\t\t\tif (data.length() > 2 && data.substring(0,2).equals(\"v \")) {\n\t\t\t\t\tString[] s = data.split(\" \");\n\t\t\t\t\tArrayList<Double> v = new ArrayList<Double>();\n\t\t\t\t\tv.add(Double.parseDouble(s[1]));\n\t\t\t\t\tv.add(Double.parseDouble(s[2]));\n\t\t\t\t\tv.add(Double.parseDouble(s[3]));\n\t\t\t\t\tret.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyReader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"An error occurred.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn ret;\n\n\t}", "public void vector(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of Vector\");\r\n\t\tEnumeration<Student> enumeration = Collections.enumeration(list);\r\n\t\twhile (enumeration.hasMoreElements()) \r\n\t\t\tSystem.out.println(enumeration.nextElement()); \r\n\t}", "static SibillaValue of(double v) {\n return new SibillaDouble(v);\n }", "public static void add(Double[] vector, Double adder) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] + adder;\r\n }\r\n }", "private Vector returnRelevantVector(Vector segVectorList){\n\t\tVector segPts = new Vector();\n\t\tIterator iter = segVectorList.iterator();\n\t\tVector element = (Vector) iter.next();\n\t\tIterator iterator = element.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tInteger obj = (Integer) iterator.next();\n\t\t\tint index = obj.intValue();\n\t\t\tsegPts.add(new Integer(index));\n\t\t}\n\t\n\t\treturn segPts;\n\t}", "public Vector div(double d){\n return new Vector(this.getX()/d, this.getY()/d, this.getZ()/d);\n }", "public static double[] produitVectoriel(double U[],double V[]){\r\n\t\tdouble[] produitVect;\r\n\t\tproduitVect = new double[3];\r\n\t\tproduitVect[0] = U[1]*V[2] - U[2]*V[1];\r\n\t\tproduitVect[1] = U[2]*V[0] - U[0]*V[2];\r\n\t\tproduitVect[2] = U[0]*V[1] - U[1]*V[0];\r\n\t\t//double n = norme(produitVect);\r\n\t\treturn\t produitVect;\t\r\n\t}", "public static void printVector(Vector v) {\n double[] vector = v.getData();\n for(int row = 0; row < vector.length; row++) {\n System.out.print(vector[row] + \" \");\n }\n System.out.println(\"\");\n }", "public Registro(List<Double> d) \n { \n\t this.setContenido((ArrayList<Double>) d);\n }", "public Vector(double x, double y){\n this.x=x;\n this.y=y;\n }", "public Vector3 multLocal (double v) {\n return mult(v, this);\n }", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public double[] partialV(double u, double v) {\n return null;\n }", "public static void multiply(Double[] vector, Double multiplier) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] * multiplier;\r\n }\r\n }", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "public List<Double> getData( ) {\r\n return data;\r\n }", "public static double getArrayListDoubleVariance(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "public F64Vector(double[] data) {\n this.data = data;\n }", "private double norm(IDictionary<String, Double> vector) {\n\t\t double output = 0.0;\n\t\t for (KVPair<String, Double> pair : vector) {\n\t\t\t double score = pair.getValue();\n\t\t output = output + (score * score);\n\t\t }\n\t return Math.sqrt(output);\t \n }", "public static void divide(Double[] vector, Double divider) {\r\n for(int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] / divider;\r\n }\r\n }", "public static Stats of(double... values) {\n/* 122 */ StatsAccumulator acummulator = new StatsAccumulator();\n/* 123 */ acummulator.addAll(values);\n/* 124 */ return acummulator.snapshot();\n/* */ }", "public static double[] readDoubles() {\n return readAllDoubles();\n }", "public double distance(InputDatum datum, double[] vector) throws MetricException;", "public static void printVector(double[] vector) {\r\n\r\n if (vector == null) {\r\n return;\r\n }\r\n\r\n System.out.println();\r\n System.out.print(\"Loesungsvektor ist: (\");\r\n\r\n for (int i = 0; i < vector.length; i++) {\r\n\r\n if (i != 0) {\r\n System.out.print(\",\");\r\n }\r\n System.out.print(vector[i]);\r\n }\r\n\r\n System.out.println(\")^T\");\r\n }", "protected List<StringDoublePair> getSimilar(float[] vector, QueryConfig qc) {\n\t qc = setQueryConfig(qc);\n\t\tList<StringDoublePair> distances = this.selector.getNearestNeighbours(Config.getRetrieverConfig().getMaxResultsPerModule(), vector, \"feature\", qc);\n\t\tif(distances == null){\n\t\t\treturn new ArrayList<>(1);\n\t\t}\n\t\tfor(StringDoublePair sdp : distances){\n\t\t\tdouble dist = sdp.value;\n\t\t\tsdp.value = MathHelper.getScore(dist, maxDist);\n\t\t}\n\t\treturn distances;\n\t}", "public List<Double> getmasseslist(){return masses;}", "public double[] obtenerDistancias (List<NaveDTO> naveDTOS){\n logger.debug(\"MensajeService::obtenerDistancias()\");\n double[] array = new double[naveDTOS.size()];\n for (int i = 0; i<naveDTOS.size(); i++){\n array[i] = naveDTOS.get(i).getDistance();\n }\n return array;\n }", "@NonNull\n static DoubleConsList<Double> doubleCons(double head, @NonNull Collection<Double> tail) {\n return new DoubleConsListImpl(head, doubleConsList(tail));\n }", "public double[][] asDoubleArray() {\r\n\r\n double returnList[][] = new double[getRowCount()][getLogicalColumnCount()];\r\n for (int i = 0; i < getRowCount(); i++) {\r\n for (int j = 0; j < getLogicalColumnCount(); j++) {\r\n returnList[i][j] = this.getLogicalValueAt(i, j);\r\n }\r\n }\r\n return returnList;\r\n }", "public double[] ds() {\n double rval[] = new double[size()];\n for (int i = 0; i < rval.length; i++) {\n rval[i] = get(i) == null ? Double.NaN : get(i).doubleValue();\n }\n\n return rval;\n }", "List<double[]> getVerticalDoors();", "@Override\n public LinkedList<Double> call() {\n for (int string = 0; string < line.length; string++) {\n String numberString = super.cleanTextContent(line[string]);\n try {\n double number = Double.parseDouble(numberString);\n values.add(number);\n } catch (NumberFormatException numberFormatException) {\n numberFormatException.printStackTrace();\n }\n }\n Collections.sort(values);\n while (values.size() > valuesToKeep) {\n values.removeLast();\n }\n return values;\n }", "public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}", "public double[] getValues() {\n return values.clone();\n }" ]
[ "0.74826974", "0.65862393", "0.63890594", "0.62783986", "0.61233306", "0.61134994", "0.60390097", "0.6014532", "0.59740853", "0.5913459", "0.5887348", "0.584761", "0.57741094", "0.5773698", "0.57326657", "0.57112455", "0.56998575", "0.56794846", "0.5658091", "0.5629575", "0.5559414", "0.5557004", "0.5537023", "0.5527592", "0.5519226", "0.5459348", "0.54435253", "0.5443182", "0.54386944", "0.5428419", "0.5425302", "0.54123396", "0.54031765", "0.53716326", "0.53714013", "0.53690624", "0.53499734", "0.53440297", "0.53302175", "0.5316162", "0.5310877", "0.53054136", "0.5300582", "0.5291951", "0.5291854", "0.5289045", "0.52830696", "0.5264634", "0.5240939", "0.52262133", "0.5206693", "0.5193141", "0.51873255", "0.5163924", "0.5150526", "0.51386374", "0.5133931", "0.51320046", "0.51285315", "0.51112026", "0.5101859", "0.50972396", "0.5081974", "0.50706065", "0.50468653", "0.5034639", "0.50322163", "0.50304526", "0.5027017", "0.502034", "0.5019045", "0.50150836", "0.501332", "0.50066644", "0.5006653", "0.5003332", "0.49936384", "0.49936315", "0.49835134", "0.49830934", "0.497853", "0.49740687", "0.49721664", "0.4960714", "0.4958648", "0.4953984", "0.49476898", "0.49437368", "0.49431297", "0.4939644", "0.49395266", "0.49251267", "0.49202126", "0.4915496", "0.48989895", "0.48953342", "0.4894044", "0.48872527", "0.48832577", "0.48815453" ]
0.7899013
0
If pause, just return src result
public int processTexture(int srcTextureId, BytedEffectConstants.TextureFormat textureFormat, int srcTextureWidth, int srcTextureHeight, ImageQualityResult result) { if (mPause){ result.texture = srcTextureId; result.width = srcTextureWidth; result.height = srcTextureHeight; return 0; } if (mEnableVideoSr){ if (mVideoSRTask != null){ // This step to judge if the resolution larger than 720p, if true, we release the task, and disable it { if ((srcTextureWidth * srcTextureHeight) > 1280 * 720){ mEnableVideoSr = false; mVideoSRTask.release(); mVideoSRTask = null; ((Activity) mContext).runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(mContext, R.string.video_sr_resolution_not_support, Toast.LENGTH_SHORT).show(); } }); return 0; } } LogTimerRecord.RECORD("video_sr"); BefVideoSRInfo videoSrResult = mVideoSRTask.process(srcTextureId, srcTextureWidth, srcTextureHeight); if (videoSrResult == null){ return BytedEffectConstants.BytedResultCode.BEF_RESULT_FAIL; } LogTimerRecord.STOP("video_sr"); result.height = srcTextureHeight * 2; result.width = srcTextureWidth * 2; result.texture = videoSrResult.getDestTextureId(); return BytedEffectConstants.BytedResultCode.BEF_RESULT_SUC; } }else if (mEnableNightScene){ if (mNightSceneTask != null){ Integer destTextureId = new Integer(0); LogTimerRecord.RECORD("night_scene"); int ret = mNightSceneTask.process(srcTextureId, destTextureId, srcTextureWidth, srcTextureHeight); if (ret != BytedEffectConstants.BytedResultCode.BEF_RESULT_SUC){ return ret; } LogTimerRecord.STOP("night_scene"); result.height = srcTextureHeight; result.width = srcTextureWidth; result.texture = destTextureId.intValue(); return ret; } } return BytedEffectConstants.BytedResultCode.BEF_RESULT_SUC; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Source getSrc();", "java.lang.String getSrc();", "String getSrc();", "public void getToSource() {\r\n\t \r\n\t while(!closeEnough){\r\n\t getCloser(40);\r\n\t }\r\n\t \r\n\t Sound.beep();\r\n\t try {\r\n\t\tThread.sleep(2000);\r\n\t} catch (InterruptedException e) {\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "int pauseSample() {\n return 0;\n }", "public String pause();", "public String getSrc() {\r\n\t\treturn src;\r\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.maltiSpeedPlayPrevious();\r\n\r\n\t\t\t\t\t}", "@Override\n T pause();", "int unpauseSample() {\n return 0;\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playNext();\r\n\r\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}", "boolean hasSrc();", "public void run() \r\n\t\t{\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tsourcedata.play();\r\n\t\t\t\t//sourcedata.load();\r\n\t\t\t}\r\n\t\t\tcatch ( Exception e )\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}//end catch\r\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.maltiSpeedPlayNext();\r\n\r\n\t\t\t\t\t}", "@Override\n\tpublic Pair call() {\n\t\tlong curTime = _curTTime.getCurrentTestTime();\n\n\t\ttry {\n\t\t\tStopwatch timer = Stopwatch.createStarted();\n\t\t\tString doc = (String) BrowU.get(_url, true);\n\t\t\t// _doc = Jsoup.parse(doc);\n\t\t\t// Logger.debug(_doc.text());\n\n\t\t\t// accessJS();\n\t\t\t// accessStyles();\n\t\t\t// accessAssets();\n\t\t\ttimer.stop();\n\t\t\tDuration dur = timer.elapsed();\n\t\t\ttry {\n\t\t\t\tThread.sleep(2);// 'think time' pause;\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tPair p = Pair.of(curTime, dur.toMillis());\n\t\t\treturn p;\n\t\t} catch (Throwable e) {\n\t\t\tlogger.warn(e.getMessage());\n\t\t\tPair p = Pair.of(curTime, Long.MAX_VALUE);\n\t\t\treturn p;\n\t\t} // t\n\n\t}", "boolean play();", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmVideoContrl.seekTo((int) time);\r\n\r\n\t\t\t\t\t\t}", "public void run() {\n //Request the HTML\n try {\n MediaPlayer mPlayer = new MediaPlayer();\n mPlayer.setDataSource(\"http://www.vocalware.com/tts/gen.php?EID=3&LID=1&VID=3&TXT=Hello%2C+I+am+Aai+ra.+Please+let+me+know+your+requirement&EXT=mp3&FX_TYPE=&FX_LEVEL=&ACC=5463643&API=2458605&SESSION=&HTTP_ERR=&CS=3d6cc3b337f4f96a08ed260c90782c3b\");\n mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mPlayer.prepare();\n mPlayer.start();\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public abstract String playMedia ();", "public int getSrc() {\n\t\treturn src;\n\t}", "public void run() {\n /*\n r6 = this;\n java.lang.String r0 = \"ruomiz\"\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"bitmap--getNetWorkThumImage: --\"\n r1.append(r2)\n java.lang.String r2 = r3\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n android.util.Log.i(r0, r1)\n java.lang.String r0 = r4\n boolean r0 = android.text.TextUtils.isEmpty(r0)\n if (r0 != 0) goto L_0x012b\n java.lang.String r0 = r3\n boolean r0 = android.text.TextUtils.isEmpty(r0)\n if (r0 == 0) goto L_0x002a\n goto L_0x012b\n L_0x002a:\n java.lang.String r0 = r4\n java.lang.String r1 = \"http://\"\n boolean r0 = r0.startsWith(r1)\n if (r0 != 0) goto L_0x003f\n java.lang.String r0 = r4\n java.lang.String r1 = \"https://\"\n boolean r0 = r0.startsWith(r1)\n if (r0 != 0) goto L_0x003f\n return\n L_0x003f:\n r0 = 0\n com.introvd.template.component.videofetcher.utils.i r1 = com.introvd.template.component.videofetcher.utils.C5492i.this\n com.introvd.template.component.videofetcher.utils.h r1 = r1.cmD\n if (r1 == 0) goto L_0x007b\n com.introvd.template.component.videofetcher.utils.i r1 = com.introvd.template.component.videofetcher.utils.C5492i.this\n com.introvd.template.component.videofetcher.utils.h r1 = r1.cmD\n java.lang.String r2 = r3\n android.graphics.Bitmap r1 = r1.getBitmapFromMemCache(r2)\n if (r1 == 0) goto L_0x007b\n java.lang.String r0 = \"ruomiz\"\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"bitmap==getNetWorkThumImage: --mLruCacheHelper-222-\"\n r1.append(r2)\n java.lang.String r2 = r3\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n android.util.Log.d(r0, r1)\n com.introvd.template.component.videofetcher.utils.i r0 = com.introvd.template.component.videofetcher.utils.C5492i.this\n com.introvd.template.component.videofetcher.utils.h r0 = r0.cmD\n java.lang.String r1 = r3\n android.graphics.Bitmap r0 = r0.getBitmapFromMemCache(r1)\n goto L_0x00c0\n L_0x007b:\n android.media.MediaMetadataRetriever r1 = new android.media.MediaMetadataRetriever\n r1.<init>()\n java.lang.String r2 = r4 // Catch:{ Exception -> 0x00b9 }\n java.util.Hashtable r3 = new java.util.Hashtable // Catch:{ Exception -> 0x00b9 }\n r3.<init>() // Catch:{ Exception -> 0x00b9 }\n r1.setDataSource(r2, r3) // Catch:{ Exception -> 0x00b9 }\n r2 = 17\n java.lang.String r2 = r1.extractMetadata(r2) // Catch:{ Exception -> 0x00b9 }\n java.lang.String r3 = \"ruomiz\"\n java.lang.String r4 = \"bitmap--getNetWorkThumImage: --mLruCacheHelper-hasVideo-\"\n android.util.Log.d(r3, r4) // Catch:{ Exception -> 0x00b9 }\n java.lang.String r3 = \"yes\"\n boolean r2 = r3.equals(r2) // Catch:{ Exception -> 0x00b9 }\n if (r2 == 0) goto L_0x00bd\n r2 = -1\n android.graphics.Bitmap r2 = r1.getFrameAtTime(r2) // Catch:{ Exception -> 0x00b9 }\n com.introvd.template.component.videofetcher.utils.i r0 = com.introvd.template.component.videofetcher.utils.C5492i.this // Catch:{ Exception -> 0x00b2 }\n com.introvd.template.component.videofetcher.utils.h r0 = r0.cmD // Catch:{ Exception -> 0x00b2 }\n java.lang.String r3 = r3 // Catch:{ Exception -> 0x00b2 }\n r0.mo27173b(r3, r2) // Catch:{ Exception -> 0x00b2 }\n r0 = r2\n goto L_0x00bd\n L_0x00b2:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x00ba\n L_0x00b7:\n r0 = move-exception\n goto L_0x0127\n L_0x00b9:\n r2 = move-exception\n L_0x00ba:\n r2.printStackTrace() // Catch:{ all -> 0x00b7 }\n L_0x00bd:\n r1.release()\n L_0x00c0:\n java.lang.String r1 = r3\n boolean r1 = android.text.TextUtils.isEmpty(r1)\n if (r1 != 0) goto L_0x00ec\n java.lang.String r1 = r3\n java.lang.String r2 = \".\"\n boolean r1 = r1.contains(r2)\n if (r1 == 0) goto L_0x00ec\n java.lang.String r1 = r3\n java.lang.String r1 = com.introvd.template.component.videofetcher.utils.C5485c.m14892fM(r1)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r2.append(r1)\n java.lang.String r1 = com.introvd.template.component.videofetcher.utils.C5492i.cmF\n r2.append(r1)\n java.lang.String r1 = r2.toString()\n goto L_0x0101\n L_0x00ec:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = r3\n r1.append(r2)\n java.lang.String r2 = com.introvd.template.component.videofetcher.utils.C5492i.cmF\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n L_0x0101:\n if (r0 == 0) goto L_0x0126\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = com.introvd.template.component.videofetcher.utils.C5492i.cmE\n r2.append(r3)\n r2.append(r1)\n java.lang.String r2 = r2.toString()\n boolean r2 = com.introvd.template.component.videofetcher.utils.C5488f.m14899fN(r2)\n if (r2 != 0) goto L_0x0126\n com.introvd.template.component.videofetcher.utils.i r2 = com.introvd.template.component.videofetcher.utils.C5492i.this // Catch:{ IOException -> 0x0122 }\n java.lang.String r3 = com.introvd.template.component.videofetcher.utils.C5492i.cmE // Catch:{ IOException -> 0x0122 }\n r2.m14909a(r0, r3, r1) // Catch:{ IOException -> 0x0122 }\n goto L_0x0126\n L_0x0122:\n r0 = move-exception\n r0.printStackTrace()\n L_0x0126:\n return\n L_0x0127:\n r1.release()\n throw r0\n L_0x012b:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.component.videofetcher.utils.C5492i.C54953.run():void\");\n }", "public void continueSound() {\n\t\tclip.start();\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tbm = getBitmap(url);\n\t\t\tdownLoaderListenner.onDownLoadSuccess(bm,url);\n\t\t}", "int stopSample() {\n// This will tell thread to stop reading and writing\n // reload with old URL\n // reloadSample\n if (debugFlag)\n debugPrint(\"JSChannel: stopSample must be overridden\");\n startTime = 0;\n return 0;\n }", "@Override\n\t\t\tpublic void onLoadVideo(String result) {\n\t\t\t}", "public long getSource()\r\n { return src; }", "private void resume() { player.resume();}", "public void play() {\n executor.submit(new Runnable() {\n public void run() {\n resume = true;\n notifyStatus();\n }\n });\n }", "@Override\n\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t}", "public String resume();", "public void play() { player.resume();}", "public void play() throws IOException\n\t{\n\t\tmState = State.Retrieving;\n\t\tmDelegateHandler.onRadioPlayerBuffering(MP3RadioStreamPlayer.this);\n\t\tdoStop = false;\n\t\tbufIndexCheck = 0;\n\t\tlastInputBufIndex = -1;\n\t\t\n\t\tmyTimerTask= new CheckProgressTimerTask();\n\t\tmyTimer = new Timer();\n\t\tmyTimer.scheduleAtFixedRate(myTimerTask, 0, 1000); //(timertask,delay,period)\n\t\t\n\t\tnew DecodeOperation().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n\t\t\n\t}", "public boolean pause();", "public boolean pause();", "public static play() {\n\t\t\n\t}", "public PGraphics getSrcBuffer() {\n\t\treturn this.src;\n\t}", "@Override\r\n public void pause() {}", "@Override // com.google.android.exoplayer2.upstream.DataReader\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int read(byte[] r9, int r10, int r11) throws java.io.IOException {\n /*\n r8 = this;\n int r0 = r8.e\n r1 = -1\n if (r0 != 0) goto L_0x004e\n com.google.android.exoplayer2.upstream.DataSource r0 = r8.a\n byte[] r2 = r8.d\n r3 = 1\n r4 = 0\n int r0 = r0.read(r2, r4, r3)\n if (r0 != r1) goto L_0x0013\n L_0x0011:\n r3 = 0\n goto L_0x0046\n L_0x0013:\n byte[] r0 = r8.d\n byte r0 = r0[r4]\n r0 = r0 & 255(0xff, float:3.57E-43)\n int r0 = r0 << 4\n if (r0 != 0) goto L_0x001e\n goto L_0x0046\n L_0x001e:\n byte[] r2 = new byte[r0]\n r5 = r0\n r6 = 0\n L_0x0022:\n if (r5 <= 0) goto L_0x0030\n com.google.android.exoplayer2.upstream.DataSource r7 = r8.a\n int r7 = r7.read(r2, r6, r5)\n if (r7 != r1) goto L_0x002d\n goto L_0x0011\n L_0x002d:\n int r6 = r6 + r7\n int r5 = r5 - r7\n goto L_0x0022\n L_0x0030:\n if (r0 <= 0) goto L_0x003a\n int r4 = r0 + -1\n byte r5 = r2[r4]\n if (r5 != 0) goto L_0x003a\n r0 = r4\n goto L_0x0030\n L_0x003a:\n if (r0 <= 0) goto L_0x0046\n com.google.android.exoplayer2.source.IcyDataSource$Listener r4 = r8.c\n com.google.android.exoplayer2.util.ParsableByteArray r5 = new com.google.android.exoplayer2.util.ParsableByteArray\n r5.<init>(r2, r0)\n r4.onIcyMetadata(r5)\n L_0x0046:\n if (r3 == 0) goto L_0x004d\n int r0 = r8.b\n r8.e = r0\n goto L_0x004e\n L_0x004d:\n return r1\n L_0x004e:\n com.google.android.exoplayer2.upstream.DataSource r0 = r8.a\n int r2 = r8.e\n int r11 = java.lang.Math.min(r2, r11)\n int r9 = r0.read(r9, r10, r11)\n if (r9 == r1) goto L_0x0061\n int r10 = r8.e\n int r10 = r10 - r9\n r8.e = r10\n L_0x0061:\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.source.IcyDataSource.read(byte[], int, int):int\");\n }", "public void pause() {}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tBitmap bitmap = getImageFromLocal(imgPath);\n\t\t\t\tif (bitmap == null) {\n\t\t\t\t\tloadImgByNet(handler, imgUrl, imgPath);\n\t\t\t\t} else {\n\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\tmsg.obj = bitmap;\n\t\t\t\t\tmsg.what = IMG_FROM_LOCAL;\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t}\n\t\t\t}", "int pauseSamples() {\n return 0;\n }", "@Override\n public String getSource() {\n return this.src;\n }", "void getHTML(String req) {\n html = \"\";\n int r;\n BufferedInputStream in = null;\n BufferedInputStream imgIn = null;\n boolean retry;\n Vector imageRd = new Vector(0);\n/*\n do {\n retry = false;\n try {\n\tin = new BufferedInputStream(url.openStream(), 4096);\n\t//\t System.out.println(\"DoneOpening input stream\");\n }\n catch (IOException ioe) {\n\trbe.stats.error(\"Unable to open URL.\" , url.toExternalForm());\n\tioe.printStackTrace();\n\tretry=true;\n System.err.println(\"Set retry=true, then continue...\");\n\tcontinue;\n }\n try {\n\t \n\t //\t while(in.available() == 0){\n\t // System.out.println(\"Nothing available on input stream!\");\n\t //}\n \n\t while ((r = in.read(buffer, 0, buffer.length))!=-1) {\n\t if (r>0) {\n\t\t html = html + new String(buffer, 0, r);\n\t }\n\t //\t System.out.print(\".\");\n\t }\n\t \n }\n catch (IOException ioe) {\n\trbe.stats.error(\"Unable to read HTML from URL.\" , \n\t\t\turl.toExternalForm());\n\tretry=true;\n\tcontinue;\n }\n\n if (retry) {\n\t try {\n\t if (waitKey) {\n\t\t rbe.getKey();\n\t }\n\t else {\n\t\t sleep(1000L);\n\t }\n\t }\n\t catch (InterruptedException inte) {\n\t System.out.println(\"In getHTML, caught interrupted exception!\");\n\t return;\n\t }\t \n }\n } while (retry);\n \n try {\n in.close();\n }\n catch (IOException ioe) {\n rbe.stats.error(\"Unable to close URL.\" , url.toExternalForm());\n }\n*/\n long startTime = System.currentTimeMillis();\n byte[] res = this.clientProxy.getHTMLText(req);\n long endTime = System.currentTimeMillis();\n this.html = new String(res);\n\n //System.out.println(html);\n\n /******\n html =\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"JIGSAW-SESSION-ID=kjfljelejl_343434223_32\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=563 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=534 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=564 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"I_ID=568 \" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\" +\n \"<HTML> AA HTM IM AA HTM IM AA HTM IM AA HTM IM </HTML>\";\n ****/\n\n // Scan for image requests, and request those.\n int cur = 0;\n\n // Suppress image requests.\n if (!RBE.getImage) return;\n\n URL url = null;\n try {\n url = new URL(req);\n } catch (MalformedURLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n findImg(html, url, imgPat, srcPat, quotePat, imageRd);\n findImg(html, url, inputPat, srcPat, quotePat, imageRd);\n\n if (DEBUG > 2) {\n System.out.println(\"Found \" + imageRd.size() + \" images.\");\n }\n while (imageRd.size() > 0) {\n int max = imageRd.size();\n int min = Math.max(max - rbe.maxImageRd, 0);\n int i;\n try {\n for (i = min; i < max; i++) {\n ImageReader rd = (ImageReader) imageRd.elementAt(i);\n //\tSystem.out.println(\"EB #\" + sessionID+ \"reading image: \" + rd.imgURLStr);\n // TODO TODO FETCHING IMAGES IS BUGGY !!!!!!!\n if (!rd.readImage()) {\n if (DEBUG > 2) {\n System.out.println(\"Read \" + rd.tot + \" bytes from \" +\n rd.imgURLStr);\n }\n imageRd.removeElementAt(i);\n i--;\n max--;\n }\n }\n } catch (Exception inte) {\n System.out.println(\"In getHTML, caught exception!\");\n return;\n }\n }\n }", "private void play() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(1, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twhile(!(gst.done&&gpt.done));\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}", "protected abstract boolean pause();", "void play();", "public Result execute() {\r\n\t\tresponse = ServletActionContext.getResponse();\r\n\t\tresponse.setContentType(\"audio/ogg\");\r\n\r\n\t\ttry {\r\n\t\t\tbios = new ByteArrayInOutputStream();\r\n\t\t\tMediaPlayer.getInstance().addStreamer(this);\r\n\r\n\t\t\tThread.sleep(1000); // Buffer for 5 seconds before starting.\r\n\t\t\tstreamOgg();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// An exception will be thrown when the stream is closed.\r\n\t\t} finally {\r\n\t\t\tMediaPlayer.getInstance().removeStreamer(this);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static Bitmap downloadImageTask(String src) {\n try {\n URL url = new URL(src);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap myBitmap = BitmapFactory.decodeStream(input);\n Log.i(LOG_TAG, \"won: \" + myBitmap);\n return myBitmap;\n } catch (IOException e) {\n Log.e(LOG_TAG, \"error while making book cover\", e);\n e.printStackTrace();\n return null;\n }\n }", "public void continueRun() {\n pause = false;\n }", "protected void pause(){}", "@Override\n\tpublic void play() {\n\t\t\n\t}", "public int getVideoDscp();", "public void play() {\n\t\t\r\n\t}", "public void play(){\n\t\t\n\t}", "public void pause();", "public void pause();", "public void pause();", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "@Override\n T resume();", "@Test\n public void testAnonymousSource() throws WavCreationException, InterruptedException\n {\n LWJGLJoalWav wav = new LWJGLJoalWav(res.getInputStream(\"FancyPants.wav\"));\n wav.start(0);\n Thread.sleep(5000);\n wav.stop(); \n }", "@Override\n \tpublic void pause() {\n \t}", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void play() {\n\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmVideoContrl.seekTo(mpos);\r\n\r\n\t\t\t\t}", "@Override\n protected Void doInBackground(Void... ignore)\n {\n while (!isCancelled())\n {\n SystemClock.sleep(100);\n long totalPlayDuration = mPrefCropTime * 1000;\n long totalDuration = totalPlayDuration + mPrefFadeOutTime * 1000;\n long currentDuration;\n //boolean wait = false;\n\n if (mPlayer.isPlaying())\n {\n mPauseCnt = 0;\n currentDuration = mPlayer.getCurrentPosition();\n\n if (currentDuration >= totalPlayDuration) // TODO!!\n {\n if(!mPaused)\n {\n // wait for x seconds\n pause(mPrefFadeOutTime);\n waitFor(mPrefPauseTime);\n }\n\n //publishProgress(0L, totalDuration, currentDuration);\n //SystemClock.sleep(mPrefPauseTime * 1000);\n //nextSong = true;\n }\n\n publishProgress(totalDuration, currentDuration);\n }\n }\n return null;\n }", "public void pauseFile() {\n Packet packet = new Packet(address, port);\n packet.setPauseFlag();\n \n Random random = new Random(); \n int sequenceNumber = random.nextInt();\n packet.setSeqNumber(sequenceNumber);\n \n sender = new ReliableSender(packet.makePacket(), sendQueue, sequenceNumber);\n sender.start();\n }", "private native void nativePlay();", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "void resume();", "void resume();", "void resume();", "@Override\r\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}" ]
[ "0.6046569", "0.60343313", "0.5880597", "0.5736548", "0.5660693", "0.54730034", "0.54462266", "0.53912234", "0.53699404", "0.53577715", "0.534428", "0.5324007", "0.53040636", "0.525723", "0.5217176", "0.5212994", "0.52055156", "0.5177462", "0.51406467", "0.5124224", "0.51089656", "0.51079977", "0.509454", "0.50924075", "0.5091986", "0.5089282", "0.5083184", "0.506995", "0.5069555", "0.50687695", "0.50654095", "0.5061686", "0.5056886", "0.50499064", "0.5019937", "0.5015282", "0.5015282", "0.50132173", "0.50047576", "0.50011003", "0.49921125", "0.49758095", "0.49721333", "0.4969881", "0.49679375", "0.49403855", "0.49324757", "0.4931644", "0.49196985", "0.4916754", "0.4915957", "0.49099648", "0.4905987", "0.49020332", "0.48802936", "0.48728788", "0.48641995", "0.48625526", "0.4850654", "0.4850654", "0.4850654", "0.4845399", "0.48402318", "0.4839287", "0.48362982", "0.48341763", "0.48331103", "0.4822778", "0.48208594", "0.4820427", "0.48163682", "0.48077592", "0.48077592", "0.48077592", "0.48077592", "0.48077592", "0.48077592", "0.48077592", "0.48077592", "0.48077592", "0.4805332", "0.4805332", "0.4805332", "0.48050782", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755", "0.48043755" ]
0.0
-1
this may be unnecessary, but who knows what tests run before us.
@Before public void setUp() { InternalDataSerializer.reinitialize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runBeforeTest() {}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@Override\n public void runTest() {\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "public void onTestSkipped() {}", "private void test() {\n\n\t}", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunch() throws Throwable {\n\t}", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic void runTest() throws Throwable {}", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "protected TestBench() {}", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLauncherIsWhereExpected() throws Throwable {\n\t}", "@Before\n\t public void setUp() {\n\t }", "@Test\n\tpublic void test4() {\n\t}", "protected void runAfterTest() {}", "@Test\r\n\tpublic void test() {\r\n\t}", "@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}", "@Test\n\tpublic void getWorksTest() throws Exception {\n\t}", "@Test\n public void testNextWaiting() {\n }", "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "@Before public void setUp() { }", "@Test\n\tpublic void test04() throws Throwable {\n\t}", "@Override\n public void setUp() throws Exception {}", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "@Test\n\tpublic void test() {\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Override\n\tpublic void testEngine() {\n\t\t\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}", "@Before\n public void setUp()\n {\n summary = \"\";\n allPassed = true;\n firstFailExpected = null;\n firstFailRun = null;\n captureSummary = \"\";\n captureRun = null;\n }", "@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}", "@Test\n\tpublic void something() {\n\t}", "@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "public void testLoadOrder() throws Exception {\n }", "@Test\n public void doTest4() {\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@Test\r\n\tpublic void testOrderPerform() {\n\t}", "@Test\n public void verifyPathsInSequence() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n testGetCompanyHome();\n testGetCabinetFolder();\n testGetCaseFolder();\n testGetDocumentLibraryFolder();\n testEvidenceBankFolder();\n\n }", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "@Test\n\tpublic void testMain() {\n\t}", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "public void testMain() throws Throwable {\n\r\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "public void testDumbJUnit() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Before\n\tpublic void setUp() {\n\t}", "protected void setUp() throws Exception {\n \n }", "@Before\r\n\tpublic void setUp() {\n\t}", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "abstract void setUp() throws Exception;", "@Override\n public void setUp() {\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Test\n\tfinal void test() {\n\t}", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "protected void setUp() {\n\t}", "@Before\n public void setUp () {\n }", "@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}", "@Before\n\tpublic void setUp() throws Exception\n\t{\n\t}", "@Override\n public void test() {\n \n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Test\n public void someTest() {\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "public void setUp() {\n\n\t}", "public void testSoThatTestsDoNotFail() {\n\n }", "@Before\n public final void setUp() throws Exception\n {\n // Empty\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "protected void setUp() throws Exception {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n @Before\n public void setUp() throws IOException {\n }", "protected TeststepRunner() {}", "@Test\n public void doTest3() {\n }", "@Before\n public void setUp() throws Exception {\n\n }", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "@Test\r\n\tpublic void testFrontTimes() {\r\n//\t\tassertEquals(\"ChoCho\", WarmUpTwo.frontTimes)\r\n\t\tfail(\"Not yet implemented\");\r\n\t\t\r\n\t}", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }" ]
[ "0.71338165", "0.7055063", "0.68462867", "0.6834174", "0.6823441", "0.6778286", "0.6765121", "0.6736692", "0.67312086", "0.67034924", "0.6628211", "0.6621385", "0.661401", "0.66123617", "0.6598513", "0.65944767", "0.6591934", "0.658964", "0.6587358", "0.65783834", "0.655977", "0.65506494", "0.6539204", "0.6531447", "0.6518384", "0.651422", "0.6512792", "0.65035", "0.64967465", "0.6495082", "0.6495082", "0.64940345", "0.6486752", "0.64834785", "0.6479168", "0.6478132", "0.6476476", "0.6459738", "0.6457762", "0.6457725", "0.6456562", "0.6456562", "0.6448222", "0.64410657", "0.6440661", "0.6440085", "0.64355904", "0.64351094", "0.64304423", "0.64284426", "0.64274675", "0.64274675", "0.6426358", "0.6425169", "0.6421261", "0.6414973", "0.6414015", "0.6404597", "0.6402044", "0.6402044", "0.6397261", "0.63953966", "0.63902485", "0.63902485", "0.63821286", "0.6379055", "0.6376332", "0.637538", "0.63713497", "0.63692045", "0.63692045", "0.6368556", "0.6366096", "0.6366096", "0.6366096", "0.6366096", "0.63615024", "0.6358428", "0.6355643", "0.6348848", "0.63479346", "0.63467133", "0.63467133", "0.63467133", "0.63467133", "0.63467133", "0.6345216", "0.63446707", "0.63444734", "0.63444734", "0.6343541", "0.63424563", "0.63424087", "0.6338012", "0.63362026", "0.6329598", "0.6326579", "0.63257605", "0.63257605", "0.63257605", "0.63257605" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { ReusableMethods m = new ReusableMethods(); m.launchApp(); m.closeApp(); m.launchAppWithArguments("http://facebook.com"); m.elementAvaialble("email", true); m.elementAvaialble("pass", false); m.elementAvaialble("day", true); m.elementAvaialble("month", false); m.elementsCount("a", 50); m.elementsCount("img", 5); m.elementsCount("select", 3); m.closeApp(); m.launchAppWithArguments("http://yahoo.com"); m.elementsCount("img", 5); m.closeApp(); }
{ "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
rotate counterclockwise 0 = left 1 = up 2 = right 3 = down
static void changeDirectionBackwards() { if(--direction == -1) direction = 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "void rotate();", "private void rotate(int direction){\n\t\t//Gdx.app.debug(TAG, \"rotating, this.x: \" + this.x + \", this.y: \" + this.y);\n\t\tif (direction == 1 || direction == -1){\n\t\t\tthis.orientation = (this.orientation + (direction*-1) + 4) % 4;\n\t\t\t//this.orientation = (this.orientation + direction) % 4;\n\t\t} else{\n\t\t\tthrow new RuntimeException(\"Tile invalid direction\");\n\t\t}\n\t}", "void rotatePiece() {\n boolean temp = this.left;\n boolean temp2 = this.up;\n boolean temp3 = this.right;\n boolean temp4 = this.down;\n this.left = temp4;\n this.up = temp;\n this.right = temp2;\n this.down = temp3;\n }", "public void zRotate() {\n\t\t\n\t}", "private static <K, V> Node<K, V> rotateCounterclockwise(Node<K, V> current) {\n Node<K, V> crossoverNode = current.right.left;\n Node<K, V> newLeft =\n new Node<>(current.getKey(), current.getValue(), current.left, crossoverNode, Node.RED);\n return new Node<>(\n current.right.getKey(),\n current.right.getValue(),\n newLeft,\n current.right.right,\n current.getColor());\n }", "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "public void rotateCCW(){\n rotState = (rotState + 3) % 4;\n for (int i = 0; i < tiles.length; ++i){\n tiles[i] = new Point(tiles[i].y , -tiles[i].x);\n }\n }", "public abstract void rotate();", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "public abstract void rotateLeft();", "public void rotate(boolean clockwise) \n\t{\n\t\tcircular_shift(connections, clockwise);\n\t\torientation = next(orientation, clockwise);\n\t}", "void rotateTurtle(int turtleIndex, double degrees);", "public abstract void rotateRight();", "public void rotate180 (View view){\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(180f).setDuration(50); //turn toy robot AROUND (180')\n\n rotateRight += 2; //counter to determine orientation\n System.out.println(\"rotateRight \" + rotateRight);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight));\n\n } else errorMessage(\"Please place toy robot\");\n }", "private void rotateRight() {\r\n\t switch(direction){\r\n\t case Constants.DIRECTION_NORTH:\r\n\t direction = Constants.DIRECTION_EAST;\r\n\t break;\r\n\t case Constants.DIRECTION_EAST:\r\n\t direction = Constants.DIRECTION_SOUTH;\r\n\t break;\r\n\t case Constants.DIRECTION_SOUTH:\r\n\t direction = Constants.DIRECTION_WEST;\r\n\t break;\r\n\t case Constants.DIRECTION_WEST:\r\n\t direction = Constants.DIRECTION_NORTH;\r\n\t break;\r\n\t }\r\n\t }", "void rotate () {\n final int rows = currentPiece.height;\n final int columns = currentPiece.width;\n int[][] rotated = new int[columns][rows];\n\n for (int i = 0; i < rows; i++)\n for (int j = 0; j < columns; j++)\n rotated[j][i] = currentPiece.blocks[i][columns - 1 - j];\n\n Piece rotatedPiece = new Piece(currentPiece.color, rotated);\n int kicks[][] = {\n {0, 0},\n {0, 1},\n {0, -1},\n //{0, -2},\n //{0, 2},\n {1, 0},\n //{-1, 0},\n {1, 1},\n //{-1, 1},\n {1, -1},\n //{-1, -1},\n };\n for (int kick[] : kicks) {\n if (canMove(currentRow + kick[0], currentColumn + kick[1], rotatedPiece)) {\n //System.out.println(\"Kicking \" + kick[0] + \", \" + kick[1]);\n currentPiece = rotatedPiece;\n currentRow += kick[0];\n currentColumn += kick[1];\n updateView();\n break;\n }\n }\n }", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "public void rotate(float angle);", "@Override\r\n\tpublic void rotateRight() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir + THETA);\r\n\t\t\r\n\t}", "public void updateAngle(){\n\t\tif (turnUp && (angle < 180) ){\n\t\t\tangle+=1;\n\t\t}\n\t\tif (turnDown && (angle > 0)){\n\t\t\tangle-=1;\n\t\t}\n\t}", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "public void rotateY90() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x_ = vertexX[v];\n\t\t\tvertexX[v] = vertexZ[v];\n\t\t\tvertexZ[v] = -x_;\n\t\t}\n\t}", "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "public void rotateClockWise() {\r\n\r\n transpose();\r\n\r\n // swap columns\r\n for (int col = 0; col < pixels[0].length / 2; col++) {\r\n for (int row = 0; row < pixels.length; row++) {\r\n int tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][pixels[0].length - 1 - col];\r\n pixels[row][pixels[0].length - 1 - col] = tmp;\r\n }\r\n }\r\n\r\n this.pix2img();\r\n }", "void rotateInv() {\n startAnimation(allSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n rotateCubeSwap();\n rotateCubeSwap();\n rotateCubeSwap();\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tint hieght=this.getHeight();\n\t\tint width=this.getWidth();\n\t\tcanvas.rotate(direction, width/2,hieght/2);\n\t\t\n\t\tsuper.onDraw(canvas);\n\t\t\n\t\t\n\t}", "public void rotateLeft (View view){ //onClick for LEFT Button\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(-90f).setDuration(50); //turn toy robot LEFT\n\n rotateLeft--; //counter to determine orientation\n System.out.println(\"rotateLeft \" + rotateLeft);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight)); //chk params in Logs\n\n } else errorMessage(\"Please place toy robot\");\n }", "@Override\n public void rotate(Command command) {\n switch (command){\n case UP:\n setOrientation(Orientation.UP);\n break;\n\n case DOWN:\n setOrientation(Orientation.DOWN);\n break;\n\n case LEFT:\n setOrientation(Orientation.LEFT);\n break;\n\n case RIGHT:\n setOrientation(Orientation.RIGHT);\n break;\n\n default:\n }\n }", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "public Orientation rotate(int amount) {\r\n\t\tint newValue = (value + amount) % 4;\r\n\r\n\t\tif (newValue == 0) {\r\n\t\t\treturn North;\r\n\t\t} else if (newValue == 1) {\r\n\t\t\treturn East;\r\n\t\t} else if (newValue == 2) {\r\n\t\t\treturn South;\r\n\t\t} else {\r\n\t\t\treturn West;\r\n\t\t}\r\n\t}", "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n //log rotation\n LogEvent(\"rotate\");\n\t\t}", "public void rotateY180() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tvertexZ[v] = -vertexZ[v];\n\t\t}\n\t\tfor (int f = 0; f < faceCount; f++) {\n\t\t\tint a = faceVertexA[f];\n\t\t\tfaceVertexA[f] = faceVertexC[f];\n\t\t\tfaceVertexC[f] = a;\n\t\t}\n\t}", "@Override\r\n\tpublic void rotateLeft() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir - THETA);\r\n\t\t\r\n\t}", "private void turnClockwise() {\n\t\torientation = TurnAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(orientation);\n\t}", "public void degrees() throws InterruptedException{\n\n\t\tif(keyPressed){\n\t\t\twhile(deg < 90){\n\t\t\t\tdeg += 15;\n\t\t\t\tSystem.out.println(\"Rotating UP \" + opcode);\n\t\t\t}\n\t\t}\n\t\telse if(!keyPressed){\n\t\t\twhile(deg > 0){\n\t\t\t\tdeg -= 15;\n\t\t\t\tSystem.out.println(\"Rotating Down \" + opcode);\n\t\t\t}\n\t\t}\n\t}", "public abstract Vector4fc rotateAbout(float angle, float x, float y, float z);", "public Direction rotate180() {\n return values()[r180index];\n }", "public void increaseRotation(float dx, float dy, float dz);", "public void rotate(double deg) {\n deg = deg % 360;\n// System.out.println(\"Stopni:\" + deg);\n double e = 0;\n double f = 0;\n\n// for(int i = 0; i < pixels.length; i++) {\n// for(int j = 0; j < pixels[i].length; j++) {\n// e += pixels[i][j].getX();\n// f += pixels[i][j].getY();\n// }\n// }\n //e = e / (pixels.length * 2);\n //f = f / (pixels[0].length * 2);\n e = pixels.length / 2;\n f = pixels[0].length / 2;\n System.out.println(e);\n System.out.println(f);\n\n// System.out.println(e + \":\" + f);\n Matrix affineTransform;\n Matrix translateMinus = Matrix.translateRotate(-e, -f);\n Matrix translatePlus = Matrix.translateRotate(e, f);\n Matrix movedTransform = Matrix.multiply(translateMinus, Matrix.rotate(deg));\n //movedTransform.display();\n affineTransform = Matrix.multiply(movedTransform, translatePlus);\n //affineTransform.display();\n\n for(int i = 0; i < pixels.length; i++) {\n for(int j = 0; j < pixels[i].length; j++) {\n double[][] posMatrix1 = {{pixels[i][j].getX()}, {pixels[i][j].getY()}, {1}};\n Matrix m1 = new Matrix(posMatrix1);\n Matrix result1;\n result1 = Matrix.multiply(Matrix.transpose(affineTransform.v), m1);\n\n pixels[i][j].setX(Math.round(result1.v[0][0]));\n pixels[i][j].setY(Math.round(result1.v[1][0]));\n }\n }\n\n\n }", "private void rightRotate(WAVLNode x) {\n\t WAVLNode a=x.left;\r\n\t WAVLNode b=x.right;\r\n\t WAVLNode y=x.parent;\r\n\t WAVLNode c=y.right;\r\n\t x.right=y;\r\n\t y.left=b;\r\n\t if (y.parent!=null) {\r\n\t\t WAVLNode d=y.parent;\r\n\t\t String side=parentside(d,y);\r\n\r\n\t\t if (side.equals(\"right\")) {\r\n\t\t\t d.right=x;\r\n\t\t\t x.parent=d;\r\n\t\t }\r\n\t\t else {\r\n\t\t\t d.left=x;\r\n\t\t\t x.parent=d;\r\n\t\t }\r\n\t }\r\n\t else {\r\n\t\t x.parent=null;\r\n\t\t this.root=x;\r\n\t }\r\n\t y.parent=x;\r\n\t b.parent=y;\r\n\t y.rank=y.rank-1;\r\n\t \r\n\t y.sizen=b.sizen+c.sizen+1;\r\n\t x.sizen=a.sizen+y.sizen+1;\r\n\t \r\n }", "private void turnClockwise(){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\tfacingDirection = Direction.EAST;\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tfacingDirection = Direction.WEST;\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tfacingDirection = Direction.NORTH;\n\t\t\tbreak;\n\t\tcase EAST:\n\t\t\tfacingDirection = Direction.SOUTH;\n\t\t}\n\t}", "public static int rotateLeft(int dir) {\n return (dir + 1) & 3;\n }", "public void rotateClockwise(int[][] matrix) {\n int n = matrix.length;\n\n // 1. Transpose matrix , change row to column, could use XOR operator to remove temp dependency\n for (int i = 0; i < n; i++) {\n for (int j = i; j < n; j++) {\n int temp = matrix[j][i];\n matrix[j][i] = matrix[i][j];\n matrix[i][j] = temp;\n }\n }\n\n // 2. Reverse elements of matrix\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n / 2; j++) {\n int temp = matrix[i][j];\n matrix[i][j] = matrix[i][n - j - 1];\n matrix[i][n - j - 1] = temp;\n }\n }\n }", "public void xRotate() {\n\t\t\n\t}", "public double getRotation();", "public static void waltz() {\n //test code written by bokun: self rotation\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n leftMotor.forward();\n rightMotor.backward();\n }", "private static <K, V> Node<K, V> rotateClockwise(Node<K, V> current) {\n Node<K, V> crossOverNode = current.left.right;\n Node<K, V> newRight =\n new Node<>(current.getKey(), current.getValue(), crossOverNode, current.right, Node.RED);\n return new Node<>(\n current.left.getKey(),\n current.left.getValue(),\n current.left.left,\n newRight,\n current.getColor());\n }", "@Override\r\n public void rotateClockwise() {\r\n super.rotateClockwise(); //To change body of generated methods, choose Tools | Templates.\r\n // TODO: Fix me\r\n undo.push('c');\r\n redo = new LinkedListStack();\r\n }", "@Override\n\tpublic void rotateRight(int degrees) {\n\t\t\n\t}", "@Override\n\tpublic void rotate() {\n\t}", "private void rotateRight() {\n robot.leftBack.setPower(TURN_POWER);\n robot.leftFront.setPower(TURN_POWER);\n robot.rightBack.setPower(-TURN_POWER);\n robot.rightFront.setPower(-TURN_POWER);\n }", "void testRotatePiece(Tester t) {\n initData();\n gamePiece1.left = true;\n gamePiece1.rotatePiece();\n t.checkExpect(gamePiece1.left, false);\n t.checkExpect(gamePiece1.up, true);\n gamePiece1.down = true;\n gamePiece1.rotatePiece();\n t.checkExpect(gamePiece1.up, false);\n t.checkExpect(gamePiece1.down, false);\n t.checkExpect(gamePiece1.left, true);\n t.checkExpect(gamePiece1.right, true);\n gamePiece2.right = true;\n gamePiece2.left = true;\n gamePiece2.up = true;\n gamePiece2.rotatePiece();\n t.checkExpect(gamePiece2.down, true);\n t.checkExpect(gamePiece2.up, true);\n t.checkExpect(gamePiece2.left, false);\n t.checkExpect(gamePiece2.right, true);\n }", "void turnToDir(float angle) { \n float radian = radians(angle);\n _rotVector.set(cos(radian), sin(radian));\n _rotVector.setMag(1);\n }", "public void RotateActionPerformed(java.awt.event.ActionEvent evt) { \r\n degree = degree + 90;\r\n drawingPanel.setDegree(degree); \r\n }", "void rotate(float x, float y, float z) {\n target_angle[0] += x;\n target_angle[1] += y;\n target_angle[2] += z;\n postSetAngle();\n }", "public void turnClockWise90(){\n int tmp = this.front;\n this.front = this.right;\n this.right = this.back;\n this.back = this.left;\n this.left = tmp;\n }", "public static int rotateRight(int dir) {\n return (dir - 1) & 3;\n }", "private void RLRotation(IAVLNode node)\r\n\t{\r\n\t\tLLRotation(node.getRight());\r\n\t\tRRRotation(node);\r\n\t}", "private static void rotate(int[][] a, start, end){\n for (int current = 0; start+current < end; current++){\n int temp = a[start][start+current]; // save the top \n a[start][start+current] = a[end-current][start]; // left to top moveing left elemnt to top\n a[end-current][start] = a[end][end-current]; // bottom element to left \n a[end][end-current] = a[start+current][end]; // right element to bottom \n a[start+current][end] = temp; // top elemrnt to right\n }\n}", "public void rotateRight (View view){\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(90f).setDuration(50); //turn toy robot LEFT\n\n rotateRight++; //counter to determine orientation\n System.out.println(\"rotateRight \" + rotateRight);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight));\n\n } else errorMessage(\"Please place toy robot\");\n }", "public void rotate() \n {\n \tint[] rotatedState = new int[state.length];\n \tfor (int i = 0; i < state.length; ++i)\n \t\trotatedState[(i+7)%14] = state[i];\n \tstate = rotatedState;\n }", "void reverseDirection();", "public void rotate(){\n\t\t\n\t\tfor(Vertex v : vertices){\n\n\t\t\tMatrix m = ViewSettings.getRotationMatrix4().multiply(v);\n\n\t\t\tv.setX(m.getValue(0, 0));\n\t\t\tv.setY(m.getValue(1, 0));\n\t\t\tv.setZ(m.getValue(2, 0));\n\t\t\tv.setW(m.getValue(3, 0));\n\t\t}\n\t}", "public void rotate (int row) {\n\t\tif ( row < n / 2)\n\t\t\trotate(row + 1);\n\t\telse\n\t\t\treturn;\n\t\t//rotate the outter most row and col\n\t\trotateRow(row);\n\t}", "private static void rotate(int[][] matrix) {\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = i; j < matrix[0].length; j++) {\r\n\t\t\t\tint temp = 0;\r\n\t\t\t\ttemp = matrix[i][j];\r\n\t\t\t\tmatrix[i][j] = matrix[j][i];//转置,第i行变成第i列\r\n\t\t\t\tmatrix[j][i] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = 0; j < matrix.length / 2; j++) {\r\n\t\t\t\tint temp = 0;\r\n\t\t\t\ttemp = matrix[i][j];\r\n\t\t\t\tmatrix[i][j] = matrix[i][matrix.length - 1 - j];\r\n\t\t\t\tmatrix[i][matrix.length - 1 - j] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void rotate() {\n\t\tSystem.out.println(\"Triangle is Rotateing in \"+ Rotatable.DIRECTION + \"Direction\");\n\t}", "public void rotate(int[][] matrix) {\n int temp, len = matrix.length;\n\n int left = 0, top = 0, right = len-1, bottom = len-1;\n\n while(left < right) {\n for(int i = left; i < right; i++) {\n temp = matrix[top][i];\n matrix[top][i] = matrix[len-1-i][left];\n matrix[len-1-i][left] = matrix[bottom][len-1-i];\n matrix[bottom][len-1-i] = matrix[i][right];\n matrix[i][right] = temp;\n }\n left++;\n right--;\n top++;\n bottom--;\n }\n }", "public void rotation(double degrees) {\r\n \tdegrees = checkDegrees(degrees);\r\n \tsetFacingDirection(degrees);\r\n \trotation = (degrees * flipValue) * Math.PI / 180;\r\n }", "public void rotateLeft() {\n\t\tthis.direction = this.direction.rotateLeft();\n\t}", "public Direction rotate90() {\n return values()[r90index];\n }", "public void rotateLeft() {\n // I fucked up? Rotations are reversed, just gonna switch em\n// tileLogic = getRotateLeft();\n tileLogic = getRotateRight();\n// rotateLeftTex();\n rotateRightTex();\n }", "@Test\n public void rotateCommand() {\n ICommand cmd = Commands.getComand(\"rotate\");\n Robot robot = new Robot(0, 0);\n Vector2Di dir = robot.getDir();\n int rot_amount = 90;\n double orig_angle = dir.angle();\n cmd.exec(rot_amount, robot, null);\n assertEquals(orig_angle + rot_amount, dir.angle(), 0.1);\n }", "public void rotateRight() {\n\t\tthis.direction = this.direction.rotateRight();\n\t}", "static PT RotateCCW90(PT p) {\r\n\t\treturn new PT(-p.y, p.x);\r\n\t}", "public void calculateRotation() {\r\n float x = this.getX();\r\n float y = this.getY();\r\n\r\n float mouseX = ((float) Mouse.getX() - 960) / (400.0f / 26.0f);\r\n float mouseY = ((float) Mouse.getY() - 540) / (400.0f / 23.0f);\r\n\r\n float b = mouseX - x;\r\n float a = mouseY - y;\r\n\r\n rotationZ = (float) Math.toDegrees(Math.atan2(a, b)) + 90;\r\n\r\n forwardX = (float) Math.sin(Math.toRadians(rotationZ));\r\n forwardY = (float) -Math.cos(Math.toRadians(rotationZ));\r\n }", "static void rotate(int[][] matrix) {\n int n = matrix.length;\n for (int i = 0; i < (n + 1) / 2; i++) {\n for (int j = 0; j < n / 2; j++) {\n int temp = matrix[n - 1 - j][i];\n matrix[n - 1 - j][i] = matrix[n - 1 - i][n - j - 1];\n matrix[n - 1 - i][n - j - 1] = matrix[j][n - 1 - i];\n matrix[j][n - 1 - i] = matrix[i][j];\n matrix[i][j] = temp;\n }\n }\n }", "public void rotateRight(int numberOfTurns);", "public abstract Vector4fc rotateZ(float angle);", "public int getRotations();", "public void rotate(int depth){\n \trotateNotes(depth);\n }", "void turn(float degrees) {\n _rotVector.rotate(radians(degrees));\n }", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "void orientation(double xOrientation, double yOrientation, double zOrientation);", "public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}", "@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}", "@Override\n \t\t\t\tpublic void doRotateX() {\n \n \t\t\t\t}", "public Direction rotate180(Node node) {\n node.setRotate(values()[r180index].getDegree());\n return values()[r180index];\n }", "@Override\n\tpublic void rotateLeft(int degrees) {\n\t\t\n\t}", "public static byte[][] rotate(byte[][] toRotate, byte direction){\n byte[][] newMatrix = {{-1, -1, -1},{-1, -1, -1},{-1, -1, -1}};\n //iterating throug each element of the matrix and placing them to the right spot\n //only works for 3x3 matrixes\n for(byte y = 0; y < 3; y ++){\n for(byte x = 0; x < 3; x ++){\n if(direction == 1){\n newMatrix[x][2-y] = toRotate[y][x];\n }\n else{\n newMatrix[2-x][y] = toRotate[y][x];\n }\n \n }\n }\n return newMatrix;\n }", "public TextRotation getRotationRelativity();", "@Override\n \t\t\t\tpublic void doRotateY() {\n \n \t\t\t\t}", "public static void rotate90CCWGrid(char[][] grid) {\r\n\t\tchar tmp = grid[0][0];\r\n\t\tgrid[0][0] = grid[0][2];\r\n\t\tgrid[0][2] = grid[2][2];\r\n\t\tgrid[2][2] = grid[2][0];\r\n\t\tgrid[2][0] = tmp;\r\n\r\n\t\ttmp = grid[0][1];\r\n\t\tgrid[0][1] = grid[1][2];\r\n\t\tgrid[1][2] = grid[2][1];\r\n\t\tgrid[2][1] = grid[1][0];\r\n\t\tgrid[1][0] = tmp;\r\n\t}", "public void rotate(float val){\n\t\trot = val % 360;\n\t\tif(w>0){\n\t\t\tinvalidate();\t\n\t\t}\n\t\t\n\t\t\n\t}", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "LocalMaterialData rotate();", "@Override\n\tpublic void rotate90() {\n\n\t\tint[][] rotate = new int[this.frame[0].length][this.frame.length];\n\n\t\tfor (int x = 0; x < rotate[0].length; x++) {\n\t\t\tfor (int y = 0; y < rotate.length; y++) {\n\t\t\t\trotate[y][x] = this.frame[this.frame.length - x - 1][y];\n\t\t\t}\n\t\t} \n\n\t\tthis.frame = rotate;\n\n\t}", "public void onRightPressed(){\n player.setRotation(player.getRotation()+3);\n\n }", "private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rightBack.setPower(TURN_POWER);\n robot.rightFront.setPower(TURN_POWER);\n }", "private void rotateLeftDel (WAVLNode z) {\n\t WAVLNode y = z.right;\r\n\t WAVLNode a = y.left;\r\n\t y.parent=z.parent;\r\n\t if(z.parent!=null) {\r\n\t\t if(parentside(z.parent, z).equals(\"left\")) {\r\n\t\t\t z.parent.left=y;\r\n\r\n\t }\r\n\t else {\r\n\t\t\t z.parent.right=y;\r\n\r\n\t }\r\n\t }\r\n\r\n\t else {\r\n\t\t this.root=y;\r\n\t }\r\n\t \r\n\t y.left = z;\r\n\t y.rank++;\r\n\t z.parent=y;\r\n\t z.right = a;\r\n\t z.rank--;\r\n\t if(a.rank>=0) {\r\n\t\t a.parent=z; \r\n\t }\r\n\t if(z.left==EXT_NODE&&z.right==EXT_NODE&&z.rank!=0) {\r\n\t\t z.rank--;\r\n\t }\r\n\t z.sizen = z.left.sizen+a.sizen+1;\r\n\t y.sizen = z.sizen+y.right.sizen+1;\r\n }", "private void rotateRightDel (WAVLNode z) {\n\t WAVLNode x = z.left;\r\n\t WAVLNode d = x.right;\r\n\t x.parent=z.parent;\r\n\t if(z.parent!=null) {\r\n\t\t if(parentside(z.parent, z).equals(\"left\")) {\r\n\t\t\t z.parent.left=x;\r\n\r\n\t }\r\n\t else {\r\n\t\t\t z.parent.right=x;\r\n\r\n\t }\r\n\t }\r\n\r\n\t else {\r\n\t\t this.root=x;\r\n\t }\r\n\t x.right = z;\r\n\t x.rank++;\r\n\t z.parent=x;\r\n\t z.left = d;\r\n\t z.rank--;\r\n\t if(d.rank>=0) {\r\n\t\t d.parent=z; \r\n\t }\r\n\t if(z.left==EXT_NODE&&z.right==EXT_NODE&&z.rank!=0) {\r\n\t\t z.rank--;\r\n\t }\r\n\t z.sizen = z.right.sizen+d.sizen+1;\r\n\t x.sizen = z.sizen+x.left.sizen+1;\r\n }" ]
[ "0.75299287", "0.7164311", "0.68009746", "0.66018265", "0.6586518", "0.65737605", "0.65207875", "0.6454987", "0.64529276", "0.6447467", "0.6433934", "0.64201003", "0.6400693", "0.6375078", "0.634201", "0.6238752", "0.622589", "0.6224172", "0.61898386", "0.613296", "0.6128194", "0.61072433", "0.60921454", "0.6088225", "0.606861", "0.6065454", "0.6063852", "0.6062334", "0.60598433", "0.6044629", "0.60416186", "0.6039731", "0.6032995", "0.59936297", "0.5982834", "0.5975034", "0.5962896", "0.59325016", "0.59284794", "0.58999306", "0.5894504", "0.5894303", "0.5893674", "0.5892155", "0.5883552", "0.5870408", "0.58702964", "0.5851255", "0.5846175", "0.5844087", "0.5842703", "0.58291364", "0.58278054", "0.5807215", "0.57980573", "0.5797184", "0.5790072", "0.5786999", "0.57783055", "0.576964", "0.57654184", "0.57649416", "0.57633454", "0.5761306", "0.5760774", "0.5740337", "0.571987", "0.57195836", "0.57160056", "0.5713889", "0.57089406", "0.570885", "0.5706345", "0.57038754", "0.57028013", "0.5697583", "0.5695652", "0.569373", "0.5689603", "0.5688115", "0.56825835", "0.56624085", "0.56617934", "0.56586397", "0.565618", "0.56451815", "0.5636143", "0.5632929", "0.5626678", "0.5626059", "0.5620599", "0.56189454", "0.5616812", "0.56148386", "0.55931234", "0.55904466", "0.5586144", "0.5584083", "0.558359", "0.5575632", "0.5573609" ]
0.0
-1
This method is used to print speak
@Override public void speak() { System.out.printf("i'm %s. I am a DINOSAURRRRR....!\n",this.name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void speak() {\n System.out.println(\"I'm an Aardvark, I make grunting sounds most of the time.\");\n }", "public void speak(){\n System.out.println(\"Smile and wave boys. Smile and wave.\");\n }", "@Override\n\tpublic void speak() {\n\t\tSystem.out.println(\"tik tik.......\");\n\t}", "public void speak() {\r\n\t\tSystem.out.print(\"This Tiger speaks\");\r\n\t}", "public void speak(){\n System.out.println(\"Shark bait oooh ha haa!\");\n }", "public void speak() {\r\n\t\tSystem.out.print(\"This Goose speaks\");\r\n\t}", "void speak() {\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tSystem.out.println(\"My name is \" + name + \" and I am \" + age + \" years old.\");\n\n\t\t}\n\t}", "public void speak() {\r\n\t\tSystem.out.print(\"This animal speaks\");\r\n\t}", "public void speak()\n\t {\n\t \tSystem.out.printf(\"%s chants: Four legs good, Two legs BETTER\\n\", this.getName());\n\t }", "public void speak(){\n System.out.println(\"Hi my name is \" + name + \".\\n\" +\n \"I am \" + age + \"years old and \" + height + \" feet tall.\");\n }", "@Override\n public String speak()\n {\n return \"peep\";\n }", "void speak() {\n\t\tSystem.out.println(\"저의 이름은 \" + name + \"이고 \" + \"혈액형은 \" + booldType +\"형 입니다\");\n\t}", "@Override\n public String speak()\n {\n return \"Neigh\";\n }", "public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }", "@Override\n\tpublic void talk() {\n\t\tSystem.out.println(\"黄种人-说\");\n\t}", "private void speakOut() {\n\n tts.speak(\"Hello I am jessie\", TextToSpeech.QUEUE_FLUSH, null);\n tts.setLanguage(Locale.ENGLISH);\n //tts.setPitch(9);\n tts.setSpeechRate(1);\n }", "public void voice() {\n System.out.println(\"My name is \"+ this.name + \",\" +\n \"I'm a smart dog and I'm \" + this.age + \"!\" + \" I'm \" + this.color + \".\"); //Task 19\n }", "@Override\n\tpublic String speak() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void call() {\n\t\tSystem.out.println(\"通过语音打电话\");\r\n\t}", "public void speak(String text);", "public void talk(){\n\t\tSystem.out.println(this.name+\"が話す\");\n\t}", "@Override\n\tpublic void speak() {\n\t\tsuper.speak();\n\t\tSystem.out.println(\"I am a cat.\");\n\t}", "public void speak(String outputSpeak) \n {\n speaker.speaker(outputSpeak);\n }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public void speakName(){\n\t\t\n\t\tSystem.out.println(\"My name is \" + myName);\n\t\t\n\t}", "@Override\n\tpublic void speak() {\n\t\tSystem.out.println(\"Hello I override the default method\");\n\t}", "public void printVictoryMessage() { //main playing method\r\n System.out.println(\"Congrats \" + name + \" you won!!!\");\r\n }", "public void sounding() {\n\t\tSystem.out.println(\"Hello,I am your MobilePhone!\");\n\t}", "private void speakOut() {\n\n tts.speak(dialogue, TextToSpeech.QUEUE_FLUSH, null);\n }", "public String speak() {\n return \"WOOF\";\n }", "public void talk() {\n\n\t}", "private void speakout(String cname) \n{\n\t{t1.speak(cname,TextToSpeech.QUEUE_FLUSH,null);\n\tt1.setLanguage(Locale.ENGLISH);\n\t}\n}", "private void speak() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM) ;\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Speak the Item\");\n\n startActivityForResult(intent, SPEECH_REQUEST_CODE);\n\n }", "public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }", "@Override\n\tpublic void play() {\n\t\tSystem.out.println(\"We played Snokker today\");\n\t\t\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n text_to_speech = set_voice(text_to_speech);\n int len = ar.length;\n for (int i = 0; i < len; i++){\n speak(text_to_speech,ar[i]);\n }\n }", "public static synchronized void speakBlock (String name) {\n\t\tSystem.out.println(name+\": WOOOO\");\r\n\t\tSystem.out.println(name+\": WAOAH\");\r\n\t\tSystem.out.println(name+\": WHEEE\");\r\n\t\tSystem.out.println(\"------------------\");\r\n\t}", "static void speak(String words) {\n\t\ttry {\n\t\t\tRuntime.getRuntime().exec(\"say \" + words).waitFor();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void botSpeak(String sentence) {\n printDivider();\n System.out.println(sentence);\n printDivider();\n }", "void playSpeech(String rawText);", "private void speak() {\n if(textToSpeech != null && textToSpeech.isSpeaking()) {\n textToSpeech.stop();\n }else{\n textToSpeech = new TextToSpeech(activity, this);\n }\n }", "@Override\n\tpublic void canSpeak() {\n\t\t\n\t}", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "@Override\r\n public String speak(){\r\n System.out.println(\"Breed: \" + this.Breed + \"\\nName: \"+ super.name + \"\\nPrimary Color: \" +this.PrimaryColor + \"\\nSize: \" + this.Size);\r\n return \"Bork Bark\";\r\n\r\n }", "@Override\n\tpublic void say() {\n\t\tSystem.out.println(\"¸Û¸Û\");\n\n\t}", "private void speakout(String cname) \n\t\t\t{\n\t\t\t\t{t1.speak(cname,TextToSpeech.QUEUE_FLUSH,null);\n\t\t\t\tt1.setLanguage(Locale.ENGLISH);\n\t\t\t\t}\n\t\t\t}", "public void monsterSound(){\n System.out.println(\"\\n\\nYou hear gutteral moans and the shambling of a creature nearby.\\n\\n\");\n }", "private void sayHello() {\n\n\t\tmTts.speak(translatedText, TextToSpeech.QUEUE_FLUSH, // Drop allpending\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// entries in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the playback\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// queue.\n\t\t\t\tnull);\n\t}", "public Speak()\r\n {\r\n super( \"Speak\", \"Begin a conversation.\", \"p\" );\r\n }", "@Override\n\tpublic void Say() {\n\t\tSystem.out.println(\"I am a teacher\");\n\t}", "public void print() {\n\t\tSystem.out.println(\"针式打印机打印了\");\n\t\t\n\t}", "@Override\r\n\tpublic void mesage() {\n\t\tSystem.out.println(\"通过语音发短信\");\r\n\t}", "public void cowSound() {\n System.out.println(\"The cow sounds : meeee\");\n }", "@Override\n\tpublic void say() {\n\t\tSystem.out.println(\"产品A\");\n\t}", "public String speak(){\n speechOutput.clear();\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Just speak normally into your phone\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n try {\n startActivityForResult(intent, VOICE_RECOGNITION);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n\n\n return speechResult;\n }", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "private void speakOut(String text) {\n\n tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);\n }", "public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }", "@Override\n public void play(Puppy puppy) {\n System.out.println(\"The puppy is asleep enjoying its wonderful dreams, it currently does not have the desire to play with you right now.\");\n }", "@Override\r\n\tpublic void sound() {\r\n\t\tsuper.sound();\r\n\t\tSystem.out.println(\"SportsCar sound: Vutututututu\");\r\n\t}", "public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}", "public void speakOut(final String text){\n\t\tif (listener != null){\n\t\t\thandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistener.speakOut(text.trim());\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void look() {\n\t\tthis.print((this.observe().get(0)).toString());\n\t\t\n\t}", "private void print(String text) {\n\t\tSystem.out.println(text);\n\t}", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(\"ÎÒÊÇÒ»Ö»\"+this.getStrain()+\"È®.\");\n\t}", "public boolean speak(String text) {\n\treturn speak(new FreeTTSSpeakableImpl(text));\n }", "private void display() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n// Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n }", "public void printQuestion() {\n\t\tSystem.out.println(question);\n\t}", "public void playSnare() {\n\t\tSystem.out.println(\"bang bang ba-bang\");\n\t\t\n\t}", "public void playTopHat() {\n\t\tSystem.out.println(\"ding ding da-ding\");\n\t\t\n\t}", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}", "@Override\n public void onClick(View v) {\n HashMap<String, String> hash = new HashMap<String, String>();\n hash.put(\n TextToSpeech.Engine.KEY_PARAM_STREAM,\n String.valueOf(AudioManager.STREAM_NOTIFICATION));\n textToSpeach.speak(questionText.getText().toString(), TextToSpeech.QUEUE_ADD, hash);\n }", "void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}", "@Override\n\tpublic void print() {\n\t\t\n\t}", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n private void speakWords(String speech) {\n myTTS.speak (speech, TextToSpeech.QUEUE_FLUSH, null,\"1\");\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"你在干嘛\");\n\t\t\t}", "@Override\n public void interact() {\n System.out.print(\"Halo aku ikan di bawah laut dalam lho, aku punya lampu supaya aku\" \n + \"bisa tetap melihat di kegelapan\");\n }", "private void speakInternal(int resId, Object... formatArgs) {\n final ScreenSpeakService service = ScreenSpeakService.getInstance();\n if (service == null) {\n LogUtils.log(Log.ERROR, \"Failed to get ScreenSpeakService instance.\");\n return;\n }\n\n final SpeechController speechController = service.getSpeechController();\n final String text = getString(resId, formatArgs);\n speechController.speak(text, null, null, 0, 0, SpeechController.UTTERANCE_GROUP_DEFAULT,\n null, null, mUtteranceCompleteRunnable);\n }", "@Override\n\tpublic void talk(String s) {\n\t\tString[] stuff=s.split(\" \");\n\t\tString talkString=\"\";\n\t\tfor (String string : stuff) {\n\t\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\t\tif(i<string.length()/2) {\n\t\t\t\t\ttalkString+=\"o\";\n\t\t\t\t}else {\n\t\t\t\ttalkString+=\"i\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttalkString+=\"nk \";\n\t\t}\n\t\tSystem.out.println(talkString);\n\t}", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "@Override\n\tpublic void eat() {\n\t\tsuper.eat();\n\t\tSystem.out.println(\"喝奶.......\");\n\t}", "private void speak() {\n String s = textArea.getText();\n String s5=\"images\\\\\";\n String s4=\".jpeg\";\n String obj=s5+s+s4;\n ImageIcon ic1=new ImageIcon(obj);\n Image image1=ic1.getImage().getScaledInstance(image.getWidth(),image.getHeight(),Image.SCALE_AREA_AVERAGING);\n ImageIcon icon1=new ImageIcon(image1);\n image.setIcon(icon1);\n int i = textArea.getCaretPosition();\n int k = s.length();\n for (int j = i; j <= k - 1; j++) {\n char c = s.charAt(j);\n String s3 = Character.toString(c);\n s2 = s2 + s3;\n }\n VoiceManager voiceManager = VoiceManager.getInstance();\n helloVoice = voiceManager.getVoice(\"kevin16\");\n helloVoice.allocate();\n helloVoice.speak(s2);\n helloVoice.deallocate();\n playB.setText(\"PLAY\");\n }", "@Override\n\tpublic void print() {\n\n\t}", "@Override\n\tpublic void describe(String speech) {\n\t\t\n\t}", "public void soundPressed() {\n // display\n TextLCD.print(SOUND);\n // sound\n Sound.beep();\n }", "private void printOut(String s)\n {\n outVideo.println(s);\n outVideo.flush();\n }", "@Override\r\n\tpublic void print() {\n\t}", "public static void printOut(Talkable p) {\n System.out.println(p.getName() + \" says=\" + p.talk());\n outFile.fileWrite(p.getName() + \"|\" + p.talk());\n }", "public void print();", "public void print();", "public void print();", "public void print();", "public void howToPlay() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"Step 1: Have no life. \\nStep 2: Deal cards\\nStep 3: Cry yourself to sleep.\");\r\n }", "private void displaySpeechRecognizer() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n // Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, Constants.SPEECH_REQUEST_CODE);\n }", "private void speak(String s, String text) {\n if (Utility.getInstance().isOnline(mContext)) {\n try {\n float pitch = (float) 0.62;\n float speed = (float) 0.86;\n textToSpeech.setSpeechRate(speed);\n textToSpeech.setPitch(pitch);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Bundle bundle = new Bundle();\n bundle.putInt(TextToSpeech.Engine.KEY_PARAM_STREAM, AudioManager.STREAM_MUSIC);\n textToSpeech.speak(s, TextToSpeech.QUEUE_FLUSH, bundle, null);\n textToSpeech.speak(text, TextToSpeech.QUEUE_ADD, bundle, null);\n } else {\n HashMap<String, String> param = new HashMap<>();\n param.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_MUSIC));\n textToSpeech.speak(s, TextToSpeech.QUEUE_FLUSH, param);\n textToSpeech.speak(text, TextToSpeech.QUEUE_ADD, param);\n }\n } catch (Exception ae) {\n ae.printStackTrace();\n }\n } else {\n Toast.makeText(mContext, getString(R.string.please_check_internet), Toast.LENGTH_SHORT).show();\n }\n }", "public void sentence(){\n \n System.out.println(\"Your first boyfriend's name was \" + getName() + \".\\n\");\n }", "public void play() {\n\t\tSystem.out.println(\"playing \"+title);\r\n\t}", "@Override\n\tpublic void juxing() {\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t}" ]
[ "0.822601", "0.8159363", "0.81258583", "0.7966852", "0.788892", "0.7794152", "0.7751776", "0.77394956", "0.7711402", "0.7679073", "0.76509917", "0.757217", "0.73624456", "0.7328223", "0.7298158", "0.7290429", "0.72335386", "0.7162936", "0.71412843", "0.71374", "0.7135614", "0.71120113", "0.70066446", "0.69628847", "0.68817997", "0.68759274", "0.68123615", "0.6811121", "0.6793837", "0.6761613", "0.67573595", "0.67170835", "0.6706573", "0.66897863", "0.6688706", "0.6678665", "0.6641301", "0.6633734", "0.6633589", "0.6601359", "0.65920717", "0.6589304", "0.6588873", "0.65864503", "0.65655035", "0.6526879", "0.64835244", "0.6479259", "0.64594495", "0.645235", "0.6446622", "0.64404285", "0.64231855", "0.6386854", "0.6377661", "0.63673735", "0.6355073", "0.634664", "0.6336639", "0.6316127", "0.631585", "0.6308018", "0.62862456", "0.6278266", "0.6275628", "0.62726915", "0.62700003", "0.62653714", "0.6265055", "0.62616295", "0.6256849", "0.6249457", "0.62443197", "0.6243373", "0.62337035", "0.62329715", "0.6230222", "0.6224556", "0.6220246", "0.6215938", "0.62136185", "0.62121457", "0.62070537", "0.61935854", "0.619112", "0.61868024", "0.61821204", "0.6177675", "0.6174099", "0.6171948", "0.617129", "0.617129", "0.617129", "0.617129", "0.61707425", "0.61661685", "0.61542", "0.6149084", "0.6144228", "0.6143508" ]
0.8049894
3
This method is used to print move
@Override public void move() { System.out.println("I roam here and there"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void printMove(Position princessPos, int x, int y) {\r\n\t\tint diffX = princessPos.x - x;\r\n\t\tint diffY = princessPos.y - y;\r\n\t\t\r\n\t\tif (diffX < 0) {\r\n\t\t\tSystem.out.println(LEFT);\r\n\t\t}\r\n\t\telse if (diffX > 0) {\r\n\t\t\tSystem.out.println(RIGHT);\r\n\t\t}\r\n\t\telse if (diffY < 0) {\r\n\t\t\tSystem.out.println(UP);\r\n\t\t}\r\n\t\telse if (diffY > 0) {\r\n\t\t\tSystem.out.println(DOWN);\r\n\t\t}\r\n\t}", "private void printMove(int row, int column)\n\t{\n\t\tSystem.out.println(toRowChar(row) + toColChar(column));\n\t}", "public void printMoveList(){\n\t\tString body = \"\";\n\t\tfor (int i = 0; i < moveList.size(); i++) {\n\t\t\tif (i % 2 == 0)\n\t\t\t\tbody += \"\\n\" + Integer.toString(i / 2 + 1) + \" \";\n\n\t\t\tbody += moveList.get(i).algebraicNotationPrint() + \" \";\n\t\t}\n\t\tSystem.out.println(body);\n\t}", "public void printMoveList() {\n \tint x = 1;\n \tfor(int i = 0; i < moveList.size(); ++i) {\n \t\tif(i%2 == 0) {\n \t\t\tSystem.out.print(\"\" + x + \". \" + moveList.get(i));\n \t\t\tx++;\n \t\t}\n \t\telse {\n \t\t\tSystem.out.print(\" \"+moveList.get(i));\n \t\t\tSystem.out.println();\n \t\t}\n \t}\n }", "void showmove() {\n\t\tint oldblock = blocklen[printoldline];\n\t\tint newother = newinfo.other[printnewline];\n\t\tint newblock = blocklen[newother];\n\n\t\tif (newblock < 0)\n\t\t\tskipnew(); // already printed.\n\t\telse if (oldblock >= newblock) { // assume new's blk moved.\n\t\t\tblocklen[newother] = -1; // stamp block as \"printed\".\n\t\t\tprintln(\">>>> \" + newother + \" THRU \" + (newother + newblock - 1)\n\t\t\t\t\t+ \" MOVED TO BEFORE \" + printoldline + \"<br/>\");\n\t\t\tfor (; newblock > 0; newblock--, printnewline++)\n\t\t\t{\n\t\t\t\toutput+=newinfo.symbol[printnewline].showSymbol();\n\t\t\t\toutput+=\"<br/>\";\n\t\t\t}\n\t\t\tanyprinted = true;\n\t\t\tprintstatus = idle;\n\n\t\t} else\n\t\t\t/* assume old's block moved */\n\t\t\tskipold(); /* target line# not known, display later */\n\t}", "public void printMoves() {\n\t\tprintMovesHelper(this);\n\t\twhile (!outputStack.isEmpty()) {\n\t\t\tSystem.out.println(outputStack.pop());\n\t\t}\n\t}", "public int printMoveTrace() {\r\n\t\toutputStack = new Stack<String>();\r\n\t\tprintMoveTraceHelper(this);\r\n\t\tint rtn = outputStack.size();\r\n\t\twhile (!outputStack.isEmpty()) {\r\n\t\t\tSystem.out.println(outputStack.pop());\r\n\t\t}\r\n\t\treturn rtn;\r\n\t}", "@Override\r\n\tpublic void move() {\n\t\tSystem.out.println(name+\"fly in the sky\");\r\n\t}", "public void move() {\r\n\t\tSystem.out.print(\"This Tiger moves forward\");\r\n\t}", "@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"하늘을 날다\");\n\t}", "@Override\n public void move() {\n System.out.println(\"diagonally\");\n }", "@Override\n public void move()\n {\n System.out.println(\"tightrope walking\");\n }", "@Override\n public void move(int type) {\n System.out.println(\"本次乘坐豪华型交通工具出行\");\n }", "public void printBoard() {\n printStream.println(\n \" \" + positions.get(0) + \"| \" + positions.get(1) + \" |\" + positions.get(2) + \"\\n\" +\n \"---------\\n\" +\n \" \" + positions.get(3) + \"| \" + positions.get(4) + \" |\" + positions.get(5) + \"\\n\" +\n \"---------\\n\" +\n \" \" + positions.get(6) + \"| \" + positions.get(7) + \" |\" + positions.get(8) + \"\\n\");\n }", "public void printValidMoves(){\r\n Iterator itr = this.validMoves.iterator();\r\n System.out.print(\"Next Spaces: \");\r\n while(itr.hasNext()){\r\n Point next = (Point)itr.next();\r\n System.out.print(\"(\" + (int)next.getX() + \" \" + (int)next.getY()+\")\");\r\n }\r\n }", "public void move() {\r\n\t\tSystem.out.print(\"This animal moves forward\");\r\n\t}", "public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "void printPos() {\n\n System.out.println(\"\\nMoving vehicles....\\n\");\n for (int v = 0; v < roads.size(); v++) {\n System.out.println(\"\\n__________________ Vehicles on Road: \" + v + \"______________________________\");\n if (roads.get(v).lightAtStart()) {\n if (roads.get(v).getStartLight().isGreen()) {\n System.out.println(\"|Start light is green|\\n\");\n } else System.out.println(\"|Start light red|\\n\");\n\n } else if (roads.get(v).lightAtEnd()) {\n if (roads.get(v).getEndLight().isGreen()) {\n System.out.println(\"|End light green|\\n\");\n } else System.out.println(\"|End light red|\\n\");\n }\n\n if (roads.get(v).vehicles.size() == 0) {\n System.out.println(\"No vehicles are currently on this road...\");\n }\n for (int x = 0; x < roads.get(v).vehicles.size(); x++) {\n if (roads.get(v).vehicles.get(x).getType().equals(\"Motorbike\")) {\n System.out.println(\"Type: \" + roads.get(v).vehicles.get(x).getType() + \" |Direction: \" +\n roads.get(v).vehicles.get(x).getDirection()\n + \" |X Position: \" + roads.get(v).vehicles.get(x).getXpos() + \" |Y Position: \"\n + roads.get(v).vehicles.get(x).getYpos() + \" |Speed: \" + roads.get(v).vehicles.get(x).getSpeed());\n\n\n } else {\n\n System.out.println(\"Type: \" + roads.get(v).vehicles.get(x).getType() + \" |Direction: \" +\n roads.get(v).vehicles.get(x).getDirection()\n + \" |X Position: \" + roads.get(v).vehicles.get(x).getXpos() + \" |Y Position: \"\n + roads.get(v).vehicles.get(x).getYpos() + \" |Speed: \" + roads.get(v).vehicles.get(x).getSpeed());\n }\n }\n\n }\n }", "public void print()\r\n\t{\r\n\r\n\t\t for(int i = 0; i < 20; i++)\r\n\t\t {\r\n\t\t\t for(int j = 0; j < 20; j++)\r\n\t\t\t {\r\n\t\t\t\t if(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX() && sTalker.getY() == i && sTalker.getX() == j)\r\n\t\t\t\t \tSystem.out.print(\"x\");\r\n\r\n\t\t\t\t else if (i == randomer.getY() && j == randomer.getX())\r\n\t\t\t\t \tSystem.out.print(\"o\");\r\n\r\n\t\t\t\t else if (i == sTalker.getY() && j == sTalker.getX())\r\n\t\t\t\t \tSystem.out.print(\"*\");\r\n\r\n\t\t\t\t else\r\n\t\t\t\t \tSystem.out.print(\"-\");\r\n\t\t\t }\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tif(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX())\r\n\t\t{\r\n\t\t \tSystem.out.println(\"The stalker has caught the walker!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\trandomer.move();\r\n\t\tsTalker.move(randomer);\r\n\t}", "public void print(){\n for(int i=0; i<maze.length;i+=1) {\n for (int j = 0; j < maze[0].length; j += 1){\n if(i == start.getRowIndex() && j == start.getColumnIndex())\n System.out.print('S');\n else if(i == goal.getRowIndex() && j == goal.getColumnIndex())\n System.out.print('E');\n else if(maze[i][j]==1)\n System.out.print(\"█\");\n else if(maze[i][j]==0)\n System.out.print(\" \");\n\n\n }\n System.out.println();\n }\n }", "private void showTheMove() {\n\r\n updateTicTacToeShape();\r\n for (int ii=0; ii<5; ii++) {\r\n System.out.println(ticTacToeShape[ii]);\r\n }\r\n }", "public void report() {\n if (!canMove) {\n return;\n }\n System.out.println(this);\n }", "public void print(){\n for (int i = 0; i < rows; i++)\n {\n for (int j = 0; j < cols; j++)\n {\n if (start.getCol()==j&&start.getRow()==i)\n System.out.print('S');\n else if (end.getCol()==j&&end.getRow()==i)\n System.out.print('E');\n else if (maze[i][j]==1)\n System.out.print('\\u2588');\n else if (maze[i][j]==0)\n System.out.print('\\u2591');\n if (j!=cols-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n //System.out.println(\"-------\");\n }", "public void Print(Board b, int turn, int[] moves);", "@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"fly\");\n\n\t}", "public void addMove() {\n\t\tmove = \"mv \" + posX + \" \" + posY;\n\t}", "public void getMove(){\n\t\t\n\t}", "public void moveRefused()\n {\n printOut(printerMaker.moveRefused());\n }", "private static void printMoveTraceHelper(SolveFringeElement root) {\r\n\t\twhile (root != null) {\r\n\t\t\tif (root.oldBlockPosition != null && root.newBlockPosition != null) {\r\n\t\t\t\toutputStack.push(root.oldBlockPosition.toString() + \" \"\r\n\t\t\t\t\t\t+ root.newBlockPosition.toString());\r\n\t\t\t}\r\n\t\t\troot = root.parent;\r\n\t\t}\r\n\t}", "protected void printMove(GameStatus status, int index) {\n System.out.println(name + \" chose \" + index + \" \" + status.remainingCandidates.get(index).name\n + \"(\" + status.remainingCandidates.get(index).score(compatibilityScoreSet) + \")\\n\");\n }", "@Override\n public void move() {\n System.out.println(\"I like to burrow around in the ground and avoid rocky areas.\");\n }", "public void printBoard() {\n System.out.println(\"---+---+---\");\n for (int x = 0; x < boardLength; x++) {\n for (int y = 0; y < boardWidth; y++) {\n char currentPlace = getFromCoordinates(x, y);\n System.out.print(String.format(\" %s \", currentPlace));\n\n if (y != 2) {\n System.out.print(\"|\");\n }\n }\n System.out.println();\n System.out.println(\"---+---+---\");\n }\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getIndentation() + \"(turn \" + this.getDirection().toString() + \")\";\r\n\t}", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "public String move()\n {\n return \"Vehicle is moving \";\n }", "void moving() {\n\t\tSystem.out.println(\"Moving the car\");\r\n\t}", "public void moveAccepted()\n {\n printOut(printerMaker.moveAccepted());\n }", "@Override\n public String toString() {\n return String.valueOf(position.getX() + \" \" + position.getY() + \" \" + visible + \" \" + speed.getX() + \"\\n\");\n }", "public void move(){\n\t\t\n\t}", "protected int getMove() \t\t\t\t{\treturn move;\t\t}", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected boolean moveRobot(boolean printEachStep) {\n\t\tboolean move=true;\n\t\tint incOrDecR = destRow > curRow ? 1 : -1, \n\t\t\tincOrDecC = destCol > curCol ? 1 : -1, \n\t\t\tcount = diagonalCount();\n\t\t\t// Move diagonally as close to the destination it can get to\n\t\t\tfor(int i=0; i<count; ++i) {\n\t\t\t\tif(move=grid.moveFromTo(this, curRow, curCol, \n\t\t\t\t\t\tblockedRow=curRow+incOrDecR, \n\t\t\t\t\t\tblockedCol=curCol+incOrDecC)) { \n\t\t\t\t\tcurRow+=incOrDecR; \n\t\t\t\t\tcurCol+=incOrDecC;\n\t\t\t\t\t--energyUnits;\n\t\t\t\t\tif(printEachStep)\n\t\t\t\t\t\tgrid.printGrid();\n\t\t\t\t} else {\n\t\t\t\t\treturn move; \n\t\t\t\t}\n\t\t\t}\n\t\tmove=super.moveRobot(printEachStep);\n\t\treturn move;\n\t}", "public static void printMoves(int[][] possibleMoves) {\r\n\t\tfor (int i = 0; i < 4; i = i+1) {\r\n\t\t\tfor (int j = 0; j < possibleMoves.length; j = j+1)\r\n\t\t\t\tSystem.out.print(\" \" + possibleMoves[j][i]);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "public void printStatus(){\n System.out.println();\n System.out.println(\"Status: \");\n System.out.println(currentRoom.getLongDescription());\n currentRoom.printItems();\n System.out.println(\"You have made \" + moves + \" moves so far.\");\n }", "private void processMove(int row, int col) {\n\n System.out.println(controller.processMove(row, col));\n }", "public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }", "public void print()\n\t{\n\t\tDNode tem=first;\n\t\tSystem.out.print(tem.distance+\" \");\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\ttem=tem.nextDNode;\n\t\t\tSystem.out.print(tem.distance+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void printIllegalMove(Pole fromPole, Pole toPole)\n\t{\n\t\tSystem.out.println(\"Illegal move\");\n\t\tSystem.out.println(\"From \"+fromPole);\n\t\tSystem.out.println(\"To \"+toPole);\n\t}", "public void print(){\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ~ THREE ROOM DUNGEON GAME ~ \");\n\t\tfor(int i = 0; i < this.area.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(int p = 0 ; p < this.area.length; p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tSystem.out.print(\":( \");\n\t\t\t\t}\n\t\t\t\telse if(this.Ari[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" ? \");\n\t\t\t\t}\n\t\t\t\telse if(this.position[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" + \");\n\t\t\t\t}\n\t\t\t\telse if(this.Items[i][p] != null){\n\t\t\t\t\tSystem.out.print(\"<$>\");\n\t\t\t\t}\n\t\t\t\telse if(this.Door[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" D \");\n\t\t\t\t}\n\t\t\t\telse if(this.Stairs[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" S \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(this.area[i][p]);\n\t\t\t\t}\n\t\t\t}//end of inner for print\n\t\t}//end of outter for print\n\n\t}", "@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"Driving a airplane!\");\n\t}", "public void move() {\n\r\n\t}", "public String position() {\n\t\t\treturn \"\\n\"\n\t\t\t+ \"Player 1 owns: \"\n\t\t\t+ printSet(moves1)\n\t\t\t+ \"Player 2 owns: \"\n\t\t\t+ printSet(moves2)\n\t\t\t+ (isGameOver() ? \"Game is over.\\n\" : \"Player \"\n\t\t\t\t\t+ whoseTurn() + \" moves next.\\n\");\n\t\t}", "private void moveToNewLocation() {\r\n System.out.println(\"\\nThis is the move to a new location option\");\r\n }", "public void position() {\n System.out.println(this.position.getX()+\",\"+this.position.getY()+\",\"+this.position.getDirection());\n }", "public void printCarPark(){\n carPark.setPosition(0);\n while (carPark.hasNext())\n System.out.println(carPark.next());\n }", "public void print() {\r\n System.out.print( getPlayer1Id() + \", \" );\r\n System.out.print( getPlayer2Id() + \", \");\r\n System.out.print(getDateYear() + \"-\" + getDateMonth() + \"-\" + getDateDay() + \", \");\r\n System.out.print( getTournament() + \", \");\r\n System.out.print(score + \", \");\r\n System.out.print(\"Winner: \" + winner);\r\n System.out.println();\r\n }", "public void PrintBoard() {\n\tSystem.out.println(\"printing from class\");\n\t\tString[][] a = this.piece;\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 <- X axis\");\n\t\tSystem.out.println(\" +----------------+ \");\n\t\t\n\t\tfor (int i=0; i<8 ;i++) {\n\t\t\tSystem.out.print(i + \" |\");\n\t\t\tfor (int j=0; j<8;j++) {\n\t\t\t\t\n\t\tSystem.out.print(\"\" + a[i] [j] + \" \");\n\t\t\t\t\t} \n\t\t\tSystem.out.println(\"|\");\n\t\t}\n\t\tSystem.out.println(\" +----------------+ \");\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 \");\n\t\n\t}", "@Override\n\tprotected void 关上冰箱门() {\n\t\tSystem.out.println(\"我是张飞,我叫喊着粗鲁的把冰箱门关上\");\n\t}", "void printMove(int move,String character){\n int x,y;\n //gets the size of the display window\n Point size = new Point();\n Display display = getWindowManager().getDefaultDisplay();\n\n display.getSize(size);\n int width = size.x;\n int height = size.y;\n //switch statement for each move\n switch (move){\n case 0:\n x = (int) (width * .15);\n y = (int) (height * .30);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView1);\n else\n drawO(x,y,imageView1);\n break;\n case 1:\n x = (int) (width * .50);\n y = (int) (height * .30);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView2);\n else\n drawO(x,y,imageView2);\n break;\n case 2:\n x = (int) (width * .85);\n y = (int) (height * .30);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView3);\n else\n drawO(x,y,imageView3);\n break;\n case 3:\n x = (int) (width * .15);\n y =(int) (height * .54);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView4);\n else\n drawO(x,y,imageView4);\n break;\n case 4:\n x = (int) (width *.50);\n y = (int) (height * .54);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView5);\n else\n drawO(x,y,imageView5);\n break;\n case 5:\n x = (int) (width * .85);\n y = (int) (height * .54);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView6);\n else\n drawO(x,y,imageView6);\n break;\n case 6:\n x = (int) (width * .15);\n y = (int) (height * .77);\n\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView7);\n else\n drawO(x,y,imageView7);\n break;\n case 7:\n x = (int) (width * .50);\n y = (int) (height * .77);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView8);\n else\n drawO(x,y,imageView8);\n break;\n case 8:\n x =(int) (width * .85);\n y = (int) (height * .77);\n if (character.equals(\"X\"))\n drawX(x-100,y-100,x+100,y+100,x+100,y-100,x-100,y+100,imageView9);\n else\n drawO(x,y,imageView9);\n break;\n }\n }", "void printout() {\n\t\tprintstatus = idle;\n\t\tanyprinted = false;\n\t\tfor (printoldline = printnewline = 1;;) {\n\t\t\tif (printoldline > oldinfo.maxLine) {\n\t\t\t\tnewconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (printnewline > newinfo.maxLine) {\n\t\t\t\toldconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (newinfo.other[printnewline] < 0) {\n\t\t\t\tif (oldinfo.other[printoldline] < 0)\n\t\t\t\t\tshowchange();\n\t\t\t\telse\n\t\t\t\t\tshowinsert();\n\t\t\t} else if (oldinfo.other[printoldline] < 0)\n\t\t\t\tshowdelete();\n\t\t\telse if (blocklen[printoldline] < 0)\n\t\t\t\tskipold();\n\t\t\telse if (oldinfo.other[printoldline] == printnewline)\n\t\t\t\tshowsame();\n\t\t\telse\n\t\t\t\tshowmove();\n\t\t}\n\t\tif (anyprinted == true)\n\t\t\tprintln(\">>>> End of differences.\");\n\t\telse\n\t\t\tprintln(\">>>> Files are identical.\");\n\t}", "public void printPath(){\n\t\tListIterator<Path> listIterator =temp.listIterator();\n\t\twhile(listIterator.hasNext()){\n\t\t\tSystem.out.print(listIterator.next().getPos()+\" \");\n\t\t}\n\t}", "public void print() {\n\t\tNetwork.netPrintln(\"`direction ID: \" + this.ID);\n\t\tNetwork.netPrintln(\"DirType: \" + dir);\n\t}", "public void printSteps() {\n\t\tfor (int y = 0; y < idNode.length; y++) {\r\n\t\t\tint x=y;\r\n\t\t\tString steps = \"\" + x;\r\n\t\t\twhile (idNode[x] != x) {\r\n\t\t\t\tx = idNode[x];\r\n\t\t\t\tsteps += \"->\" + x;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(steps);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void move() {\n\t\t\n\t}", "public void outputPossibleMoves() {\n\t\tSystem.out.println(\"###########POSSIBLE MOVES ####################\");\n\t\tfor(Move move: AIPossibleMoves) {\n\t\t\tSystem.out.println(move.toString());\n\t\t}\n\t\tSystem.out.println(\"#############################################\");\n\t}", "private void report() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n System.out.println(currentPosition.getX() + \", \"\n + currentPosition.getY() + \", \"\n + currentPosition.getDirection());\n }", "void print() {\n for (int i = 0; i < 8; i--) {\n System.out.print(\" \");\n for (int j = 0; j < 8; j++) {\n System.out.print(_pieces[i][j].textName());\n }\n System.out.print(\"\\n\");\n }\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tboolean isRobotPlaced = this.posX != -1 && this.posY != -1 && this.direction != null;\r\n\t\tif (!isRobotPlaced) {\r\n\t\t\treturn \"Output: ROBOT MISSING\";\r\n\t\t}\r\n\t\treturn \"Output: \" + this.posX + \", \" + this.posY + \", \" + this.direction;\r\n\t}", "@Override\n\tpublic void move() {\n\n\t}", "public static void print() {\r\n\t\tSystem.out.println(\"1: Push\");\r\n\t\tSystem.out.println(\"2: Pop\");\r\n\t\tSystem.out.println(\"3: Peek\");\r\n\t\tSystem.out.println(\"4: Get size\");\r\n\t\tSystem.out.println(\"5: Check if empty\");\r\n\t\tSystem.out.println(\"6: Exit\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t}", "public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}", "public void update() {\n System.out.println(\"\\n\\n Board: \\n\");\n System.out.println(\" \" + pos1 + \" | \" + pos2 + \" | \" + pos3 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos4 + \" | \" + pos5 + \" | \" + pos6 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos7 + \" | \" + pos8 + \" | \" + pos9 + \" \");\n }", "public void moveAll()\n\t{\n\t\tmoveOutput = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\triver[i].move(i);\n\t\t\t}\n\t\t}\n\t}", "@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}", "public void print() {\n\t\tSystem.out.println(\"针式打印机打印了\");\n\t\t\n\t}", "@Override\n\tpublic String move() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic void print() {\n\n\t\t}", "public void print() {\n System.out.print(\"\\033[H\\033[2J\");\n for(int y = 0; y < this.height; y++) {\n for (int x = 0; x < this.width; x++) {\n ColoredCharacter character = characterLocations.get(new Coordinate(x , y));\n if (character == null) {\n System.out.print(\" \");\n } else {\n System.out.print(character);\n }\n }\n System.out.print(\"\\n\");\n }\n }", "public void display()\n {\n if(corner == 1)\n {\n moveTo(new Location(0,0));\n setDirection(135);\n }\n else if(corner == 2)\n {\n moveTo(new Location(0,9));\n setDirection(225);\n }\n else if(corner == 3)\n {\n moveTo(new Location(9,9));\n setDirection(315);\n }\n else if(corner == 4)\n {\n moveTo(new Location(9,0));\n setDirection(45);\n }\n }", "@Override\n public void walks(String movement){\n System.out.println(\"The dog \"+movement);\n }", "public void print()\n {\n System.out.println(\"------------------------------------------------------------------\");\n System.out.println(this.letters);\n System.out.println();\n for(int row=0; row<8; row++)\n {\n System.out.print((row)+\"\t\");\n for(int col=0; col<8; col++)\n {\n switch (gameboard[row][col])\n {\n case B:\n System.out.print(\"B \");\n break;\n case W:\n System.out.print(\"W \");\n break;\n case EMPTY:\n System.out.print(\"- \");\n break;\n default:\n break;\n }\n if(col < 7)\n {\n System.out.print('\\t');\n }\n\n }\n System.out.println();\n }\n System.out.println(\"------------------------------------------------------------------\");\n }", "public String getMove() {\n\t\treturn move;\n\t}", "private String printRoute(Rota r) {\n StringBuilder s = new StringBuilder();\n\n for (String d : r.getPontos()) {\n s.append(d + \"->\");\n }\n s = s.replace(s.length() - 2, s.length(), \".\");\n\n return s.toString();\n }", "private void show() {\n System.out.println(\"...................................................................................................................................................................\");\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n for(int i = 0; i < players.size(); i++) {\n if (state.getTurn() == i) {\n System.out.print(Color.PURPLE.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n else {\n System.out.print(Color.CYAN.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n }\n System.out.println();\n System.out.print(\"Direction: \");\n if (state.getDirection() == +1) {\n System.out.println(Color.PURPLE.getPrintColor() + \"clockwise ↻\");\n }\n else {\n System.out.println(Color.PURPLE.getPrintColor() + \"anticlockwise ↺\");\n }\n System.out.println(Color.RESET.getPrintColor() + \"Turn: \" + Color.PURPLE.getPrintColor() + players.get(state.getTurn()).getName() + Color.RESET.getPrintColor());\n System.out.println(currentCard.currToString());\n if (controls.get(state.getTurn()) instanceof PcControl) {\n System.out.print(players.get(state.getTurn()).backHandToString() + Color.RESET.getPrintColor());\n }\n else {\n System.out.print(players.get(state.getTurn()).handToString() + Color.RESET.getPrintColor());\n }\n }", "public void printMaze(Position p){\r\n for (int i = 0; i < mazeData[i].length; i++) {\r\n for (int j = 0; j < mazeData.length; j++) {\r\n if(p.getX()==j&&p.getY()==i)\r\n System.out.print(\"X\");\r\n else\r\n System.out.print(mazeData[j][i]);\r\n }\r\n System.out.print(\"\\n\");\r\n }\r\n }", "public void printTurn() {\r\n\t\tSystem.out.println(this.getName() + \" turn\");\r\n\t}", "public void print() {\n\t\t\tfor (int i = 0; i < nowLength; i++) {\n\t\t\t\tSystem.out.print(ray[i] + \" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "public static <T extends Node> void printMoveDetails(T Node) {\n System.out.println(Arrays.deepToString(Node.stateOfPuzzle)\n .replace(\"[\", \"\").replace(\"], \", \"\\n\").replace(\"[[\", \"\")\n .replace(\"]]\", \"\").replace(\", \", \"\\t\"));\n System.out.println(\"\\ng(n) = \" + Node.level);\n System.out.println(\"h(n) = \" + Node.heuristicDistance);\n System.out.println(\"f(n) = \" + Node.aStarDistance + \"\\n\");\n }", "static void printBoard() \r\n {\r\n \tSystem.out.println(\"/---|---|---\\\\\");\r\n \tSystem.out.println(\"| \" + board[0][0] + \" | \" + board[0][1] + \" | \" + \r\n \tboard[0][2] + \" |\");\r\n \tSystem.out.println(\"|-----------|\");\r\n \tSystem.out.println(\"| \" + board[1][0] + \" | \" + board[1][1] + \" | \" + \r\n \tboard[1][2] + \" |\");\r\n \tSystem.out.println(\"|-----------|\");\r\n \tSystem.out.println(\"| \" + board[2][0] + \" | \" + board[2][1] + \" | \" + \r\n \tboard[2][2] + \" |\");\r\n \tSystem.out.println(\"\\\\---|---|---/\");\r\n }", "@Override\r\n\tpublic void move() {\n\r\n\t}", "private void moveDisk(int start,int end){\n\n System.out.println(\"Move disk from \"+start+ \" to \"+end);\n }", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "public void print()\n\t{\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t\tSystem.out.println(\"[Lives: \" + lives + \"][Score: \" + score + \n\t\t\t\t\t\t\t\"][Time: \" + gameTime + \"]\");\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t}else\n\t\t\tSystem.out.println(\"Spawn a player ship to view game info\");\n\t}", "@Override\n\tpublic void move() {\n\t}", "public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }", "public void move(int x, int y) {\n \tint xOld = this.x;\n \tint yOld = this.y;\n \tthis.x = x;\n \tthis.y = y;\n \tSystem.out.print (\"point moved from (\" + xOld + \",\" + yOld + \") to (\" + this.x + \",\" + this.y + \")\");\n }", "private String mediumMove() {\n int a = getBestMoveForBlack(FORESEEN_MOVES * 2);\n System.out.println(\"Moving \" + a);\n return super.makeAMove(a);\n }", "public void printBoard() {\n\t\tSystem.out.print(\"\\r\\n\");\n\t\tSystem.out.println(\" A | B | C | D | E | F | G | H\");\n\t\tfor(int i = BOARD_SIZE ; i > 0 ; i--) {\n\t\t\tSystem.out.println(\" ___ ___ ___ ___ ___ ___ ___ ___\");\n\t\t\tfor(int j = 0; j < BOARD_SIZE ; j++) {\n\t\t\t\tif(j == 0) {\n\t\t\t\t\tSystem.out.print(i + \" |\");\n\t\t\t\t} \n\t\t\t\tif(this.tiles.get(i).get(j).getPiece() != null) {\n\t\t\t\t\tif(this.tiles.get(i).get(j).getPiece().getColor() == PrimaryColor.BLACK) {\n\t\t\t\t\t\tif(this.tiles.get(i).get(j).getPiece() instanceof Soldier)\n\t\t\t\t\t\t\tSystem.out.print(\" B |\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\"B Q|\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(this.tiles.get(i).get(j).getPiece() instanceof Soldier)\n\t\t\t\t\t\t\tSystem.out.print(\" W |\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\"W Q|\");\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(\" |\");\n\t\t\t\t}\n\n\t\t\t\tif(j==BOARD_SIZE-1) {\n\t\t\t\t\tSystem.out.print(\" \" + i); \n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\" ___ ___ ___ ___ ___ ___ ___ ___\");\n\t\tSystem.out.println(\" A | B | C | D | E | F | G | H\\r\\n\");\n\n\t}" ]
[ "0.80657685", "0.7900476", "0.77593255", "0.75796854", "0.75662225", "0.74352056", "0.7344991", "0.7265863", "0.7160944", "0.7151053", "0.71276283", "0.7110715", "0.71017796", "0.7027136", "0.70220596", "0.69911015", "0.6962771", "0.68498814", "0.6848854", "0.68410707", "0.6831266", "0.6824551", "0.6756893", "0.6705387", "0.6701259", "0.6688584", "0.6673205", "0.66426486", "0.6641661", "0.6622276", "0.66051275", "0.65871483", "0.6586031", "0.65738195", "0.6572139", "0.6570293", "0.6556956", "0.65445244", "0.6501706", "0.6499235", "0.64901173", "0.6489017", "0.64876676", "0.6482657", "0.6467432", "0.6462596", "0.64538085", "0.6445735", "0.6433107", "0.6431609", "0.64213395", "0.64088774", "0.6393266", "0.6387168", "0.6384698", "0.63813305", "0.6379161", "0.63746583", "0.6372287", "0.6366243", "0.63652647", "0.6361803", "0.6350515", "0.6348257", "0.6340424", "0.6340125", "0.63393587", "0.6331194", "0.63300395", "0.632475", "0.6312702", "0.6309446", "0.6303607", "0.6302206", "0.629637", "0.6269783", "0.6268662", "0.6267262", "0.62621504", "0.62612385", "0.6257819", "0.6255061", "0.62498593", "0.62493145", "0.6243467", "0.62394816", "0.6231189", "0.62209874", "0.6220737", "0.621249", "0.621172", "0.62107235", "0.6209999", "0.6208432", "0.62083894", "0.620295", "0.62013507", "0.6198749", "0.6197267", "0.6188412" ]
0.6917835
17
icon = new ImageIcon(("C.jpg"));
public static void secondOne() { Object[] option = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "reset" }; elipse = JOptionPane.showOptionDialog(frame, "are these doors to a farm? or are you just high?", "be prepared", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, icon, option, option[9]); highDoors(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BufferedImage iconMaker(String s){\n BufferedImage buttonIcon;\n try{\n buttonIcon = ImageIO.read(new File(FILE_PATH + s));\n }catch(IOException e){\n buttonIcon = null;\n System.out.println(\"BooHOO\");\n }\n return buttonIcon;\n }", "Icon createIcon();", "String getIcon();", "String getIcon();", "public void setIcon(Image i) {icon = i;}", "public ImageIcon getImage();", "private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }", "Icon getIcon();", "private ImageIcon openImageIcon(String name){\n return new ImageIcon(\n getClass().getResource(name)\n );\n }", "private ImageIcon createIcon(String path) {\r\n\t\tInputStream is = this.getClass().getResourceAsStream(path);\r\n\t\tif (is == null) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\tByteArrayOutputStream buffer = new ByteArrayOutputStream();\r\n\t\t\r\n\t\tint n;\r\n\t\tbyte[] data = new byte[4096];\r\n\t\ttry {\r\n\t\t\twhile ((n = is.read(data, 0, data.length)) != -1) {\r\n\t\t\t\tbuffer.write(data, 0, n);\r\n\t\t\t}\r\n\t\t\tis.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\t\r\n\t\treturn new ImageIcon(buffer.toByteArray());\r\n\t\t\r\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Icono.png\"));\n return retValue;\n}", "String getIconFile();", "public abstract ImageIcon getIcon(int size);", "private ImageIcon createIcon(String path) {\n\t\tbyte[] bytes = null;\n\t\ttry(InputStream is = JNotepadPP.class.getResourceAsStream(path)){\n\t\t\tif (is==null) throw new IllegalArgumentException(\"Wrong path to the image given.\");\n\t\t\tbytes = is.readAllBytes();\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn new ImageIcon(bytes);\n\t}", "public void setIcon(char c) {\r\n\ticon = c;\r\n\t}", "java.lang.String getIcon();", "java.lang.String getIcon();", "public static ImageIcon getIcon(String x) {\n ImageIcon defaultIcon = new ImageIcon(ClassLoader.getSystemResource(x));\n return defaultIcon;\n }", "protected static ImageIcon createImageIcon(String path) {\r\n java.net.URL imgURL = SplitPaneDemo.class.getResource(path);\r\n if (imgURL != null) {\r\n return new ImageIcon(imgURL);\r\n } else {\r\n System.err.println(\"Couldn't find file: \" + path);\r\n return null;\r\n }\r\n }", "protected static ImageIcon createImageIcon(String path) {\r\n java.net.URL imgURL = FileChooser.class.getResource(path);\r\n if (imgURL != null) {\r\n return new ImageIcon(imgURL);\r\n } else {\r\n System.err.println(\"Couldn't find file: \" + path);\r\n return null;\r\n }\r\n \r\n\t\t\r\n\t}", "private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "String getImage();", "protected ImageIcon createImageIcon(String path) {\n \t\tjava.net.URL imgURL = Buttons.class.getResource(path);\n \t\tif (imgURL != null) {\n \t\t\tImageIcon icon = new ImageIcon(imgURL);\n \t\t\tImage img = icon.getImage();\n \t\t\tImage newimg = img.getScaledInstance(25, 25, java.awt.Image.SCALE_SMOOTH);\n \t\t\treturn new ImageIcon(newimg);\n \t\t} else {\n \t\t\tSystem.err.println(\"Couldn't find file : \" + path);\n \t\t\treturn null;\n \t\t}\n \t}", "public static ImageIcon create(String filename) {\r\n ImageIcon icon = null;\r\n URL imageURL = MoGridImage.class.getResource(MOGRID_IMAGE + filename);\r\n if (imageURL != null) {\r\n icon = new ImageIcon(imageURL);\r\n } \r\n return icon;\r\n }", "@Source(\"create.gif\")\n\tpublic ImageResource createIcon();", "public abstract String getIconPath();", "public abstract String getIconString();", "protected static ImageIcon createImageIcon(String path) {\r\n\tjava.net.URL imgURL = TabbedPaneLayout.class.getResource(path);\r\n\tif (imgURL != null) {\r\n\t return new ImageIcon(imgURL);\r\n\t} else {\r\n\t System.err.println(\"Couldn't find file: \" + path);\r\n\t return null;\r\n\t}\r\n }", "public Icon getIcon();", "private ImageIcon loadImage(String filename) {\r\n\t\tImageIcon MyImage = new ImageIcon (filename);\r\n\t\tImage img = MyImage.getImage();\r\n\r\n\t\tImage newImg = img.getScaledInstance(800,800, Image.SCALE_SMOOTH);\r\n\t\tImageIcon image = new ImageIcon(newImg);\r\n\t\treturn image;\r\n\r\n }", "public static ImageIcon getIconImage(String filename){\t\r\n\t\tImageIcon image = new ImageIcon(ServerMain.RUTA+\"img/\"+filename);\r\n\t\tif(image.getImageLoadStatus()==4) return null;\r\n\t\treturn image;\r\n\t}", "private ImageIcon getMyImageIcon(String name) {\n\t\tString fullName = \"/images\" + '/' + name + \".gif\";\n\t\treturn getMyImage(fullName);\n\t}", "private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }", "protected static ImageIcon createImageIcon(String path) {\r\n if (path != null) {\r\n return new ImageIcon(path);\r\n } else {\r\n System.err.println(\"Couldn't find file: \" + path);\r\n return null;\r\n }\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n ImageIcon dog = new ImageIcon(\"dog.jpg\");\n File file = new File(\"dog.jpg\");\n System.out.println(file.getAbsolutePath());\n label.setIcon(dog);\n label.setText(null);\n System.out.println(\"눌러따\");\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }", "IMG createIMG();", "public abstract ImageDescriptor getIcon();", "void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }", "protected static ImageIcon createImageIcon(String path) {\n java.net.URL imgURL = MenuTamu.class.getResource(path);\n if (imgURL != null) {\n return new ImageIcon(imgURL);\n } else {\n System.err.println(\"Couldn't find file: \" + path);\n return null;\n }\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "public SearchFlight() {\n initComponents();\n Icon img1=new ImageIcon(\"Images\\\\click.jpg\");\n Icon img2=new ImageIcon(\"Images\\\\279844-alexfas01.jpg\");\n jButton2.setIcon(img1);\n jLabel8.setIcon(img2);\n }", "public static Image getImage(String string) {\n\t Bundle bundle = FrameworkUtil.getBundle(Activator.class);\n\t URL url = FileLocator.find(bundle, new Path(\"icons/\" + string), null);\n\t ImageDescriptor image = ImageDescriptor.createFromURL(url);\n\t return image.createImage();\n\t}", "public ImageDescriptor getIcon();", "java.lang.String getImage();", "protected static ImageIcon createImageIcon(String path,\n String description) {\n // yes, this is supposed to say \"RoombaCommTest\"\n java.net.URL imgURL = RoombaCommPanel.class.getResource(path);\n if (imgURL != null) {\n return new ImageIcon(imgURL, description);\n } else {\n System.err.println(\"Couldn't find file: \" + path);\n return null;\n }\n }", "public void setJFile(int type){\n String jFileName;\n\n switch(type){\n case 0: jFileName = \"playerj.gif\";break;\n case 1: jFileName = \"player2j.gif\";break;\n case 2: jFileName = \"zombiedanielj.gif\";break;\n case 3: jFileName = \"zombieharrisonj.gif\";break;\n case 4: jFileName = \"zombiecodyj.gif\";break;\n case 5: jFileName = \"zombiebrianj.gif\";break;\n case 6: jFileName = \"zombiecourtneyj.gif\";break;\n default: jFileName = \"playerj.gif\"; break;\n }\n /*try {\n jumpingImg = ImageIO.read(new File(jFileName));\n } catch (IOException e) {}*/\n try{\n jumpingImg = javax.imageio.ImageIO.read(new java.net.URL\n (getClass().getResource(jFileName), jFileName));\n }\n catch (Exception e) { /*handled in paintComponent()*/ }\n }", "protected static ImageIcon createImageIcon(String path) {\n java.net.URL imgURL = ButtonDemo.class.getResource(path);\n if (imgURL != null) {\n return new ImageIcon(imgURL);\n } else {\n System.err.println(\"Couldn't find file: \" + path);\n return null;\n }\n }", "private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }", "@Source(\"create.gif\")\n\tpublic DataResource createIconResource();", "private ImageIcon getJLFImageIcon(String name) {\n\t\tString imgLocation = \"/toolbarButtonGraphics/\" + name + \"24.gif\";\n\t\treturn getMyImage(imgLocation);\n\t}", "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public ImageIcon getImage(String type) {\n if (type.equals(\"Ant\"))\n return AntImage.getInstance();\n else if (type.equals(\"Bug\"))\n return BugImage.getInstance();\n return null;\n }", "Icon getIcon(URI activityType);", "@Test\n public void testGetIcon() throws Exception {\n assert ResourceManager.getIcon(\"/images/card_00.png\") instanceof ImageIcon;\n }", "Image createImage();", "public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }", "protected static ImageIcon createImageIcon(String path,\r\n String description) {\r\n java.net.URL imgURL = MainGUI.class.getResource(path);\r\n if (imgURL != null) {\r\n return new ImageIcon(imgURL, description);\r\n } else {\r\n System.err.println(\"Couldn't find file: \" + path);\r\n return null;\r\n }\r\n }", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "private Image loadImage (String path) {\n\t\tImageIcon imageicon = new ImageIcon (path);\r\n\t\tImage newImage = imageicon.getImage();\r\n\t\treturn newImage;\r\n\t}", "public abstract String typeIcon();", "public void\r DisplayIcon(CType display_context, int x, int y, int icon_number);", "public Icon loadIcon(String fileName){\n\t\tURL imageURL = getClass().getResource(fileName);\n\t\tIcon icon = null;\n\t\t\n\t\tif (imageURL != null) { \n\t icon = new ImageIcon(imageURL);\n\t } else { \n\t System.err.println(\"Resource not found: \" + fileName);\n\t }\n\n\t\treturn icon;\n\t}", "private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }", "public void loadImage() {\r\n // creates a new image icon with the characters array and the count as a file path\r\n ImageIcon ii = new ImageIcon(game.characters[count]);\r\n // load the image\r\n image = ii.getImage(); \r\n \r\n // sets width\r\n w = image.getWidth(null);\r\n // sets height\r\n h = image.getHeight(null);\r\n }", "protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }", "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }", "public abstract String getIcon(int current_turn);", "public static ImageIcon get(String name) {\n return get(\"\", name);\n }", "public ImageIcon getIcon(String path) {\n\t\t\treturn new ImageIcon(VisualConstants.class.getResource(path));\n\t\t}", "public void mostrarAyudaCM() {\n try {\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"res/help_maker.png\")));\n }\n catch (Exception e) {}\n }", "protected static ImageIcon readImageIcon(String filename) {\r\n URL url = Main.class.getResource(\"resources/images/\" + filename);\r\n return new ImageIcon(url);\r\n }", "public void mostrarImagen(Image img){\n ImageIcon icono = new ImageIcon(img);\n jlImagen.setIcon(icono);\n }", "public void addIcons(String iconPath) {\n ImageIcon background = new ImageIcon(iconPath);\n Image img = background.getImage();\n img = img.getScaledInstance(30,30,Image.SCALE_SMOOTH);\n background = new ImageIcon(img);\n\n JLabel icon = new JLabel(background);\n icon.setBounds(50,y_Axis,30,30);\n icon.setLayout(null);\n mainBody.add(icon);\n y_Axis += 50;\n }", "private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "public int getIconImageNumber(){return iconImageNumber;}", "public ImageIcon getIcon(Location loc){\r\n return loc.getImage(pointer);\r\n }", "Texture getIcon();", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public abstract ImageIcon getButtonIcon();", "public GUICell(ImageIcon img){\n\t\tsuper(img);\n\t}", "public void mostraImagem(BufferedImage i) {\n ImageIcon imagem = new ImageIcon(i);\n JFrame j = new JFrame();\n JLabel l = new JLabel(imagem);\n j.setSize(300, 300);\n j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n j.setLocationRelativeTo(null);\n j.setVisible(true);\n\n j.add(l);\n }", "private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }", "public String getIcon(int current_turn){\r\n if(isBlue()){\r\n return \"BluePlus.png\";\r\n }\r\n return \"RedPlus.png\";\r\n }", "static ImageIcon getImageIcon(String path, String description) {\n // Check path is valid\n if (path == null || path.trim().length() == 0) {\n throw new IllegalArgumentException(\"Invalid file path: \" + path);\n }\n \n URL imgURL = ClassLoader.getSystemResource(path);\n if (imgURL != null) {\n return new ImageIcon(imgURL, description);\n }\n \n throw new IllegalArgumentException(\"Couldn't find file: \" + path);\n }", "public YourImage() {\n initComponents();\n }", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "private Images() {}", "public ImageIcon getHeaderIcon();", "public abstract Drawable getIcon();", "public ImageIcon getHandlerImageIcon();" ]
[ "0.7087301", "0.70611477", "0.7039701", "0.7039701", "0.70393276", "0.6984713", "0.6822534", "0.67563933", "0.6750238", "0.67156863", "0.66847277", "0.667329", "0.66548705", "0.6648084", "0.66131014", "0.6577679", "0.6577679", "0.65481865", "0.65375257", "0.653288", "0.6526428", "0.6523024", "0.6509268", "0.650589", "0.64909875", "0.6466099", "0.6423352", "0.64188516", "0.64144075", "0.6388921", "0.63686514", "0.636632", "0.63027793", "0.6300124", "0.6295719", "0.6292275", "0.62850374", "0.62773937", "0.62627226", "0.6260711", "0.62402445", "0.62366205", "0.6233368", "0.6218959", "0.6205852", "0.6199233", "0.61954004", "0.6193266", "0.6185631", "0.6173334", "0.61713207", "0.6159522", "0.61476386", "0.6143998", "0.6129199", "0.6118701", "0.61163235", "0.60921854", "0.60846996", "0.6078409", "0.6074142", "0.6072509", "0.60657537", "0.60632765", "0.6059178", "0.605079", "0.6049371", "0.6042379", "0.60415983", "0.6025945", "0.6019384", "0.6013947", "0.6007724", "0.60059595", "0.6002373", "0.59962523", "0.59938574", "0.59879833", "0.5979742", "0.59772897", "0.59705627", "0.5957359", "0.59541315", "0.59535474", "0.5946482", "0.59440535", "0.5924064", "0.5923089", "0.59122217", "0.5911659", "0.59033334", "0.5902356", "0.59000677", "0.58965564", "0.5874256", "0.5870051", "0.5853272", "0.58521295", "0.584115", "0.5821748", "0.5815708" ]
0.0
-1
following is with MediaPlayer
@Override public void onCompletion(MediaPlayer mp) { mp.reset(); nextMusic(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void forward(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "@Override\r\n\tpublic void finished(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n }", "@Override\n public void onSeekComplete(MediaPlayer player) {\n \n }", "public void next() {\n\t\tint currentPosition = songList.indexOf(song);\n\t\tif (currentPosition < songList.size() && currentPosition != songList.size() - 1) {\n\t\t\tsong = songList.get(currentPosition + 1);\n\t\t\tplayMedia();\n\t\t} else if (MainActivity.mPlayer.isLooping()) {\n\t\t\tsong = songList.get(0);\n\t\t\tplayMedia();\n\t\t}\n\t}", "@Override\n public void onCompletion(MediaPlayer mp) {\n int newPosition = mTrackPos++;\n// mMediaPlayer.setNextMediaPlayer(mp);\n// initMediaPlayer(newPosition);\n startCurrentTrack(newPosition, true);\n // to stop the service.\n stopSelf();\n }", "public void onPlayerNext() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tsetCurrentTrack();\n\t\t\t}\n\t\t});\n\t}", "public static void next(){\n \n mediaPlayer.stop();\n \n if(nowPlayingIndex < currentPlayingList.size() - 1){\n Song songToPlay = currentPlayingList.get(nowPlayingIndex + 1);\n String songFile = new File(songToPlay.getLocation()).toURI().toString();\n \n Media media = new Media(songFile);\n MusicPlayer.mediaPlayer = new MediaPlayer(media);\n MusicPlayer.mediaPlayer.play();\n \n MusicPlayer.setNowPlaying(songToPlay);\n \n addProgressListener();\n }\n //Play song at top of list, since were at the end\n else{\n Song songToPlay = currentPlayingList.get(0);\n String songFile = new File(songToPlay.getLocation()).toURI().toString();\n \n Media media = new Media(songFile);\n MusicPlayer.mediaPlayer = new MediaPlayer(media);\n MusicPlayer.mediaPlayer.play();\n \n MusicPlayer.setNowPlaying(songToPlay);\n \n addProgressListener();\n }\n mainController.nowPlayingArtist.setText(MusicPlayer.getPlayingSong().getArtist());\n mainController.nowPlayingSong.setText(MusicPlayer.getPlayingSong().getTitle());\n mainController.timeRemaining.setText(MusicPlayer.getPlayingSong().getLength());\n }", "@Override\n public void onPrepared(MediaPlayer mediaPlayer) {\n\n }", "@Override\n public void onSeekComplete(MediaPlayer mp) {\n }", "@Override\n public void onSeekComplete(MediaPlayer mp) {\n }", "@Override\n\tpublic void nowPlaying() {\n\t}", "@Override\n public void handle(ForwardEvent event) {\n if (isPlayerAlive()) {\n player.dispose();\n }\n playlist.next();\n player = new MediaPlayer(playlist.getCurrentMedia());\n initPlay();\n }", "@Override\n public void handle(RewindEvent event) {\n if (isPlayerAlive()) {\n player.dispose();\n }\n playlist.prev();\n player = new MediaPlayer(playlist.getCurrentMedia());\n initPlay();\n }", "private void next() {\n if (position < tracks.size()) {\n Player.getInstance().stop();\n\n // Set a new position:\n ++position;\n\n ibSkipPreviousTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_previous_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == tracks.size() - 1) {\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_off));\n }\n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n mSongPosition = (mSongPosition + 1) % mSongs.size();\n updateCurrentSong();\n }", "public void next() {\n addTracksToQueue();\n player.skipToNext();\n }", "@Override\r\n\tpublic void newMedia(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "@Override\n\tpublic void onCompletion(MediaPlayer arg0) {\n\t}", "public static void next() {\r\n if (nextMusic_ == INVALID_NUMBER) {\r\n return;\r\n }\r\n currentMusic_ = nextMusic_;\r\n nextMusic_ = INVALID_NUMBER;\r\n MediaPlayer p = players_.get(currentMusic_);\r\n if (p != null) {\r\n if (!p.isPlaying()) {\r\n p.setLooping(true);\r\n p.setOnCompletionListener(null);\r\n p.start();\r\n }\r\n }\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tplaytwo.setVisibility(View.GONE);\n\t\t\t\tpausetwo.setVisibility(View.VISIBLE);\n\t\t\t\tfollow.setVisibility(View.GONE);\n\t\t\t\tfollowme.setVisibility(View.VISIBLE);\n\n\t\t\t\tmediaFileLengthInMilliseconds = mediaPlayer.getDuration();\n\t\t\t\tmediaPlayer.seekTo(currentDuration);\n\t\t\t\tprimarySeekBarProgressUpdater();\n\t\t\t\tgetActivity().startService(\n\t\t\t\t\t\tnew Intent(StreamSongService.ACTION_PLAY));\n\n\t\t\t\t/*\n\t\t\t\t * if (!mediaPlayer.isPlaying()) {\n\t\t\t\t * mediaPlayer.seekTo(currentDuration); //mediaPlayer.start();\n\t\t\t\t * primarySeekBarProgressUpdater(); }\n\t\t\t\t */\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void onCompletion (MediaPlayer theMediaPlayer) \r\n\t\t\t\t{\n\t\t\t\t\t// 11/03/2017 ECU check if any looping is needed\r\n\t\t\t\t\t// -------------------------------------------------------------\r\n\t\t\t\t\tif (loopCounter <= 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 11/03/2017 ECU everything done so just check on the global \r\n\t\t\t\t\t\t// media player\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 10/03/2017 ECU check if the global media player needs to be\r\n\t\t\t\t\t\t// 'resumed'\r\n\t\t\t\t\t\t// 15/03/2019 ECU whether there is a 'paused' media or not\r\n\t\t\t\t\t\t// it is necessary to release the resources\r\n\t\t\t\t\t\t// used in this class\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tif (mediaPlayerPaused)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// -----------------------------------------------------\r\n\t\t\t\t\t\t\t// 10/03/2017 ECU the global media player needs to be resumed\r\n\t\t\t\t\t\t\t// -----------------------------------------------------\r\n\t\t\t\t\t\t\tMusicPlayer.playOrPause (true);\r\n\t\t\t\t\t\t\t// -----------------------------------------------------\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 04/09/2017 ECU make sure the resources are released\r\n\t\t\t\t\t\t// 05/09/2017 ECU changed to use the local method\r\n\t\t\t\t\t\t// 15/03/2019 ECU changed to always release resources\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tstop ();\r\n\t\t\t\t\t\t// ---------------------------------------------------------\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\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 11/03/2017 ECU check about loops\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tmediaPlayer.seekTo (theLoopPosition);\r\n\t\t\t\t\t\tmediaPlayer.start ();\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 11/03/2017 ECU decrement the loop counter\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tloopCounter--;\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// -------------------------------------------------------------\r\n\t\t\t\t}", "@Override\n public void onCompletion(MediaPlayer mp) {\n setViewOnFinish();\n log(\"Playing completed\");\n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n stopMusic();\n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n releaseMediaPlayer();\n }", "@Override\r\n\tpublic void endOfSubItems(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "@Override\r\n\tpublic void paused(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "void seeked(MediaElementPlayer player);", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfollow.setVisibility(View.GONE);\n\t\t\t\tfollowme.setVisibility(View.VISIBLE);\n\t\t\t\tplaytwo.setVisibility(View.GONE);\n\t\t\t\tpausetwo.setVisibility(View.VISIBLE);\n\n\t\t\t\tmediaFileLengthInMilliseconds = mediaPlayer.getDuration();\n\t\t\t\tmediaPlayer.seekTo(currentDuration);\n\t\t\t\tprimarySeekBarProgressUpdater();\n\t\t\t\tgetActivity().startService(\n\t\t\t\t\t\tnew Intent(StreamSongService.ACTION_PLAY));\n\n\t\t\t}", "@Override\n public void onCompletion(MediaPlayer mp){\n Intent retorno = new Intent(Activity_ayuda.this, Activity_Menu_Principal.class);\n startActivity(retorno);\n finish();\n }", "private void playNext(){\n musicSrv.playNext();\n updateTrackInfo();\n if(playbackPaused){ //if music is paused and user hits next button, next song is played\n playbackPaused = false;\n }\n }", "@Override\n protected void onPause() {\n super.onPause();\n if(mediaPlayer != null)\n {\n mediaPlayer.stop();\n if(isFinishing())\n {\n mediaPlayer.stop();\n mediaPlayer.release();\n }\n }\n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n mVideoView.seekTo(0);\n mVideoView.start();\n }", "@Override\n public void onPrepared(MediaPlayer mp) {\n playMedia();\n }", "@Override\n public void playEnd() {\n }", "public void playNext() {\n if(mPosition < mMyTracks.size() - 1) {\n mPosition++;\n } else {\n mPosition = ++mPosition % mMyTracks.size();\n }\n prepareTrack();\n }", "public void onPrepared(MediaPlayer player) {\n //player.start();\n }", "private void startNextPlayer() {\n if(flag.equals(\"player1\")){\n p2Handler.post(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n Message msg = maHandler.obtainMessage(2);\n maHandler.sendMessage(msg);\n }\n });\n }\n if(flag.equals(\"player2\")){\n p1Handler.post(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n Message msg = maHandler.obtainMessage(1);\n maHandler.sendMessage(msg);\n }\n });\n }\n }", "@Override\r\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tmMediaPlaer.start();\r\n\t\t\t}", "@Override\r\n\tpublic void backward(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "@Override\r\n\tpublic void onCompletion(MediaPlayer mp) {\n\t\tLog.v(LOGTAG, \"onCompletion Called\");\r\n\t\tfinish();\r\n\t}", "public void playMedia() {\n\t\tif (MainActivity.mPlayer == null) {\n\t\t\tMainActivity.mPlayer = new MediaPlayer();\n\t\t\tMainActivity.mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t}\n\t\tif (!MainActivity.currentSong.getTitleKey().equals(song.getTitleKey())) {\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t\tMainActivity.mPlayer.reset();\n\t\t}\n\n\t\ttitle = song.getTitle();\n\t\talbumTitle = album.getAlbum();\n\t\talbumArt = album.getAlbumArt();\n\n\t\ttry {\n\t\t\tMainActivity.mPlayer.setDataSource(this, song.getUri());\n\t\t\tMainActivity.mPlayer.prepare();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalStateException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\tMainActivity.mPlayer.setOnPreparedListener(new OnPreparedListener() {\n\t\t\t@Override\n\t\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\t\tmp.start();\n\t\t\t}\n\t\t});\n\t\tMainActivity.mPlayer.setOnCompletionListener(new OnCompletionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tnext();\n\t\t\t}\n\n\t\t});\n\n\t\tnew Handler(getMainLooper()).post(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tupdateMainActivity();\n\t\t\t\tupdateNowPlaying();\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfollow.setVisibility(View.VISIBLE);\n\t\t\t\tfollowme.setVisibility(View.GONE);\n\t\t\t\tplaytwo.setVisibility(View.VISIBLE);\n\t\t\t\tpausetwo.setVisibility(View.GONE);\n\t\t\t\tgetActivity().startService(\n\t\t\t\t\t\tnew Intent(StreamSongService.ACTION_PAUSE));\n\t\t\t\tcurrentDuration = mediaPlayer.getCurrentPosition();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfollow.setVisibility(View.VISIBLE);\n\t\t\t\tfollowme.setVisibility(View.GONE);\n\t\t\t\tplaytwo.setVisibility(View.VISIBLE);\n\t\t\t\tpausetwo.setVisibility(View.GONE);\n\n\t\t\t\tgetActivity().startService(\n\t\t\t\t\t\tnew Intent(StreamSongService.ACTION_PAUSE));\n\t\t\t\tcurrentDuration = mediaPlayer.getCurrentPosition();\n\t\t\t}", "public void onPlayStart(){\n\n\t}", "@Override\r\n\tpublic void pause() {\n\t\tif (mediaPlayer.isPlaying()) {\r\n\t\t\tmediaPlayer.pause();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void stopped(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "public void onCompletion(MediaPlayer mp) {\n\t\t\t\tvideoindex ++;\n\t\t\t\tif (videoindex >= videofile.length) videoindex = 0;\n\t\t\t\tplayVideo();\n\t\t\t}", "@Override\n protected void onPause() {\n super.onPause();\n if(mediaPlayer!=null)\n {\n mediaPlayer.pause();\n\n }\n }", "@Override\n protected void onStop() {\n mediaPlayer.release();\n super.onStop();\n }", "@Override\r\n public void getNextSongAndPlaySuccess(SyncListenerSongInfo syncListenerSongInfo) {\n }", "private void resume() { player.resume();}", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}", "@Override\r\n\tpublic void mediaFreed(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "public void play() { player.resume();}", "@Override\n public void specificPlayerReplayMedia(long currentAudioPosition) {\n exoPlayer.seekTo(currentAudioPosition);\n // switchAudioToVocal(); // removed on 2022-01-03\n exoPlayer.prepare(); // replace exoPlayer.retry();\n //\n exoPlayer.setPlayWhenReady(true);\n Log.d(TAG, \"specificPlayerReplayMedia.exoPlayer.seekTo(currentAudioPosition).\");\n }", "public void resumeStreaming() {\n\t\tif (!((MPDApplication) getApplication()).getApplicationState().streamingMode)\n\t\t\treturn;\n\t\t\n\t\tneedStoppedNotification = false;\n\t\tisPaused = false;\n\t\tbuffering = true;\n\t\t// MPDApplication app = (MPDApplication) getApplication();\n\t\t// MPD mpd = app.oMPDAsyncHelper.oMPD;\n\t\tregisterMediaButtonEvent();\n\t\tregisterRemoteControlClient();\n\t\t/*\n\t\t * if (isPaused == true) { try { String state = mpd.getStatus().getState(); if (state.equals(MPDStatus.MPD_STATE_PAUSED)) {\n\t\t * mpd.pause(); } isPaused = false; } catch (MPDServerException e) {\n\t\t * \n\t\t * } }\n\t\t */\n\t\tif (mediaPlayer == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tmediaPlayer.reset();\n\t\t\tmediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\t\t\tmediaPlayer.setDataSource(streamSource);\n\t\t\tmediaPlayer.prepareAsync();\n\t\t\tshowNotification(true);\n\t\t} catch (IOException e) {\n\t\t\t// Error ? Notify the user ! (Another day)\n\t\t\tbuffering = false; // Obviously if it failed we are not buffering.\n\t\t\tisPlaying = false;\n\t\t} catch (IllegalStateException e) {\n\t\t\t// wtf what state ?\n\t\t\t// Toast.makeText(this, \"Error IllegalStateException isPlaying : \"+mediaPlayer.isPlaying(), Toast.LENGTH_SHORT).show();\n\t\t\tisPlaying = false;\n\t\t}\n\t}", "public void onPrepared(MediaPlayer player) {\n player.start(); \n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n if(mediaPlayer!=null){\n mediaPlayer.release();\n mediaPlayer=null;\n }\n }", "@Override\r\n\tpublic void onSeekComplete(MediaPlayer mp) {\n\t\tLog.v(LOGTAG, \"onSeekComplete Called\");\r\n\t}", "@Override\n\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t\t\tif (onFinishListen!=null) {\n\t\t\t\t\t\t\tonFinishListen.onFinish();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void pause(){\n Log.d(TAG, \"pause: called\");\n if(mMediaPlayer!=null){\n mMediaPlayer.pause();\n seekHandler.removeCallbacksAndMessages(null);\n }\n }", "@Override\n public void onReceive(Context arg0, Intent arg1) {\n\n String action=arg1.getAction();\n if(action.equals(\"com.example.musicplayer.play\"))\n {\n mp.start();\n control_functions(PLAY);\n }\n else if(action.equals(\"com.example.musicplayer.pause\"))\n {\n mp.pause();\n control_functions(PAUSE);\n }\n else if(action.equals(\"com.example.musicplayer.next\"))\n {\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(name);//Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();seek.setMax(mp.getDuration());\n }catch (Exception e) {\n // TODO: handle exception\n }\n }\n else if(action.equals(\"com.example.musicplayer.previous\"))\n {\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(name);//Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();\n seek.setMax(mp.getDuration());\n }catch (Exception e) {\n // TODO: handle exception\n }\n }\n\n else if(action.equals(\"com.example.musicplayer.frmList\"))\n {\n //Toast.makeText(SongService.this, \"previous\", 1).show();\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(name);//Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n filePath=uri.getPath();\n //Toast.makeText(getApplicationContext(),name,1).show();\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();\n seek.setMax(mp.getDuration());\n seek.setOnSeekBarChangeListener((SeekBar.OnSeekBarChangeListener) arg0);\n control_functions(NEW);\n new sendSong().execute();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n else if(action.equals(\"com.example.musicplayer.frwd\"))\n {\n if(mp.getDuration()-mp.getCurrentPosition()>1250)\n {\n mp.seekTo(mp.getCurrentPosition()+1250);\n }\n else\n {\n mp.seekTo(mp.getDuration());\n }\n }\n else if(action.equals(\"com.example.musicplayer.rvrse\"))\n {\n if(mp.getCurrentPosition()>1250)\n {\n mp.seekTo(mp.getCurrentPosition()-1250);\n }\n else\n {\n mp.seekTo(0);\n }\n }\n else if(action.equals(\"com.example.musicplayer.jststarted\"))\n {\n if(mp.isPlaying())\n {\n CreateGroup.play_pause.setText(\"PAUSE\");\n }\n }\n else if(action.equals(\"com.example.musicplayer.seekBar\"))\n {\n seek=CreateGroup.seek;\n seek.setMax(mp.getDuration());\n seek.setOnSeekBarChangeListener((SeekBar.OnSeekBarChangeListener) arg0);\n //seek.setProgress(0);\n }\n else if(action.equals(\"com.example.musicplayer.addlist\"))\n {\n ArrayList<MusicData> list=arg1.getParcelableArrayListExtra(\"list\");\n }\n else if(action.equals(\"com.example.musicplayer.seekBarComp\"))\n {\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();seek.setMax(mp.getDuration());\n }catch (Exception e) {\n // TODO: handle exception\n }\n }\n }", "public void play() {\n\n final ArrayList<File> mySongs = findSong(Environment.getExternalStorageDirectory());\n\n\n sname = mySongs.get(position).getName().toString();\n textView.setEllipsize(TextUtils.TruncateAt.MARQUEE);\n textView.setText(sname);\n\n pause.setBackgroundResource(R.drawable.pause);\n Uri uri = Uri.parse(mySongs.get(position).toString());\n mediaPlayer = MediaPlayer.create(getApplicationContext(), uri);\n pause.setBackgroundResource(R.drawable.play);\n\n\n forward.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mediaPlayer.stop();\n mediaPlayer.release();\n position = ((position+1)%mySongs.size());\n\n Uri uri = Uri.parse(mySongs.get(position).toString());\n\n mediaPlayer = MediaPlayer.create(getApplicationContext(), uri);\n\n sname = mySongs.get(position).getName().toString();\n textView.setText(sname);\n pause.setBackgroundResource(R.drawable.pause);\n mediaPlayer.start();\n }\n });\n\n backward.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n\n mediaPlayer.stop();\n mediaPlayer.release();\n\n position = ((position - 1) < 0) ? (mySongs.size() - 1) : (position - 1);\n Uri uri = Uri.parse(mySongs.get(position).toString());\n mediaPlayer = MediaPlayer.create(getApplicationContext(), uri);\n\n\n sname = mySongs.get(position).getName().toString();\n textView.setText(sname);\n pause.setBackgroundResource(R.drawable.pause);\n mediaPlayer.start();\n }\n });\n\n pause.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n if(mediaPlayer.isPlaying()){\n pause.setBackgroundResource(R.drawable.play);\n mediaPlayer.pause();\n }\n else{\n pause.setBackgroundResource(R.drawable.pause);\n mediaPlayer.start();\n }\n }\n });\n }", "@Override\n public void onPrepared(MediaPlayer mp) {\n Log.d(TAG, \"onPrepared: GOTTING CALLED\");\n playMedia();\n }", "private void transport_nextSong() {\n if (thisSong.getTrackNumber() != thisAlbum.size()) {\n thisSong = thisAlbum.get(thisSong.getTrackNumber());\n timerStop();\n setViewsForCurrentSong();\n setStyle_ofTransportControls();\n transport_play();\n }\n }", "@Override\r\n\tpublic void start() {\n\t\tmediaPlayer.start();\r\n\t}", "private void prepareMediaPlayerFromPoint(int progress) {\n MediaPlayerClient.get().startPlaying(item.getFilePath(), new MediaPlayerClient.OnPlayerCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n stopPlaying();\n }\n });\n mBinding.seekbar.setMax(MediaPlayerClient.get().getDuration());\n\n //keep screen on while playing audio\n getActivity().getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }", "private void next() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n if (currentWindowIndex < currentTimeline.getWindowCount() - 1) {\n player.seekTo(currentWindowIndex + 1, C.TIME_UNSET);\n } else if (currentTimeline.getWindow(currentWindowIndex, new Timeline.Window(), false).isDynamic) {\n player.seekTo(currentWindowIndex, C.TIME_UNSET);\n }\n }", "@Override\n\t\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t\t\t\tplayer.release();\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playNext();\r\n\r\n\t\t\t\t\t\t\t}", "@Override\r\n\tpublic void mediaMetaChanged(MediaPlayer mediaPlayer, int metaType)\r\n\t{\n\r\n\t}", "public void resume()\n\t{\n\t\tEditText et = (EditText) findViewById(R.id.editText1);\n\t\tet.setVisibility(View.INVISIBLE);\n\t\tImageButton speakButton = (ImageButton) findViewById(R.id.speakButton);\n\t\tspeakButton.setVisibility(View.INVISIBLE);\n\t\ttry {\n\t\t\tThread.sleep(30);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(20);\n\t\t} catch (InterruptedException e) {\n\t\t\t// \n\t\t\te.printStackTrace();\n\t\t}\n\t\tgifView2.setBackgroundColor(0x00000000);\n\t\ttry {\n\t\t\tThread.sleep(15);\n\t\t} catch (InterruptedException e) {\n\t\t\t// \n\t\t\te.printStackTrace();\n\t\t}\n\t\tcorrect_main = MediaPlayer.create(this, sound.get(counter));\n\t\tcorrect_main.start();\n\t\there = MediaPlayer.create(this, hereSound.get(counter));\n\t\tend = MediaPlayer.create(this, endSound.get(counter));\n\t\tHandler handler=new Handler();\n\t\tfinal Runnable r = new Runnable()\n\t\t{\n\t\t public void run() \n\t\t { \n\t\t \tend.start();\n\t\t\t\tRelativeLayout relativeLayout=(RelativeLayout) findViewById(R.id.rl1);\n\t\t \tmoveViewOut(relativeLayout);\n\t\t \tLinearLayout linearLayout=(LinearLayout) findViewById(R.id.here_left);\n\t\t \tlinearLayout.setVisibility(View.INVISIBLE);\n\t\t \tend.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\t\t\t\t public void onCompletion(MediaPlayer mp) {\n\t\t\t\t \tif(counter<4){\n\t\t\t\t\t \tcounter++;\n\t\t\t\t\t \tloadActivity();\n\t\t\t\t \t}\n\t\t\t\t \telse\n\t\t\t\t \t{\n\t\t\t\t \t\tonBackPressed();\n\t\t\t\t \t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t \t\n\t\t }\n\t\t};\n\t\thandler.postDelayed(r, 7950);\n\t\t\n\t\tHandler handler2=new Handler();\n\t\tfinal Runnable r2 = new Runnable()\n\t\t{\n\t\t public void run() \n\t\t { \n\t\t \there.start();\n\t\t \tLinearLayout linearLayout=(LinearLayout) findViewById(R.id.here_left);\n\t\t\t\tgifView_here.setBackgroundColor(0x00000000);\n\t\t\t\tgifView_here.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);\n\t\t\t\tlinearLayout.setBackgroundColor(Color.TRANSPARENT);\t\t\t\n\t\t\t\tlinearLayout.addView(gifView_here);\n\t\t }\n\t\t};\n\t\thandler2.postDelayed(r2, 2350);\t\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tmFiles = DataSourceManager.getSongFileList(currentAlbumPath);\n\t\t\tif (mFiles == null || mFiles.length == 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (mPlayPos < 0 || mPlayPos > mFiles.length -1) {\n\t\t\t\tmPlayPos = 0;\n\t\t\t}\n\t\t\t/*Message msg = mMediaplayerHandler.obtainMessage(PREPARE_PLAY);\n\t\t\tif (msg == null) {\n\t\t\t\tmsg = new Message();\n\t\t\t\tmsg.what = PREPARE_PLAY;\n\t\t\t\t\n\t\t\t}\n\t\t\tBundle data = new Bundle();\n\t\t\tdata.putString(MSG_PLAY_PATH, mFiles[mPlayPos]);\n\t\t\tdata.putInt(MSG_PLAY_POSITION, mSeek);\n\t\t\tmsg.setData(data);\n\t\t\tmMediaplayerHandler.sendMessage(msg);*/\n\t\t\t\n\t\t\tsendHandlerInitialized(mFiles[mPlayPos], false);\n\t\t}", "public void pause()\n {\n if (mediaPlayer.getStatus() == PLAYING)\n {\n\n mediaPlayer.pause();\n\n }\n if (mediaPlayer.getStatus() == PAUSED)\n {\n\n mediaPlayer.play();\n }\n mediaPlayer.pause();\n }", "private void to(){\n\tmediaPlayer = new android.media.MediaPlayer();\n\ttry{\n\t mediaPlayer.setDataSource(sdPath);\n\t mediaPlayer.prepare();\n\t mediaPlayer.start();\n\t Thread.sleep(1000);\n\t}\n\tcatch(Exception e){}\n }", "private int nextSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(2);\n }\n serviceBound = false;\n player.stopMedia();\n int size = audioList.size();\n if (currentSong < size) {\n currentSong++;\n } else {\n currentSong = 0;\n }\n return currentSong;\n }", "public void play() {\n\t\t\r\n\t}", "public void onPlayerPlay() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tplay.setVisibility(View.GONE);\n\t\t\t\tpause.setVisibility(View.VISIBLE);\n\t\t\t\tsetCurrentTrack();\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic void opening(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "@Override\r\n\tpublic void seekTo(int pos) {\n\t\tmediaPlayer.seekTo(pos);\r\n\t}", "@Override\r\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\r\n\t\t\t\tmPlaying = false;\r\n\t\t\t\tstatus.setText(\"Stop Play\");\r\n\t\t\t}", "@Override\n public void playStop() {\n }", "@Override\r\n\tpublic void pausableChanged(MediaPlayer mediaPlayer, int newSeekable)\r\n\t{\n\r\n\t}", "@Override\n\t\t\t\tpublic void onPrepared(MediaPlayer arg0) {\n\t\t\t\t\tToast toast = Toast.makeText(Profile.this,\n\t \t \"ok\",\n\t \t Toast.LENGTH_SHORT);\n\t\t\t\t\tbuffer.setVisibility(View.INVISIBLE);\n\t \t toast.setGravity(Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL, 0, 0);\n\t \t toast.show();\n\t\t\t\t}", "@Override\n\tpublic void play() {\n\n\t}", "@Override\r\n\tpublic void mediaParsedChanged(MediaPlayer mediaPlayer, int newStatus)\r\n\t{\n\r\n\t}", "@Override\r\n public void handleMediaEvent(MediaEvent event) {\r\n if(running){\r\n try {\r\n Media media = event.getSource();\r\n String pluginName = media.getPluginName();\r\n Map<String,Object> location = SharedLocationService.getLocation(media.getPluginLocationId());\r\n switch(event.getEventType()){\r\n case PLAYER_PLAY:\r\n Map<String,Object> playerData = media.getNowPlayingData();\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"type\",((MediaPlugin.ItemType)playerData.get(\"ItemType\")).toString().toLowerCase());\r\n if ((MediaPlugin.ItemType)playerData.get(\"ItemType\") == MediaPlugin.ItemType.AUDIO) {\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title artist\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE_ARTIST.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"album\",(String)playerData.get(MediaPlugin.ItemDetails.ALBUM.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"album artist\",(String)playerData.get(MediaPlugin.ItemDetails.ALBUM_ARTIST.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"duration\",playerData.get(MediaPlugin.ItemDetails.DURATION.toString()).toString());\r\n } else {\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"duration\",playerData.get(MediaPlugin.ItemDetails.DURATION.toString()).toString());\r\n }\r\n break;\r\n case PLAYER_PAUSE:\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n break;\r\n case PLAYER_STOP:\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n break;\r\n }\r\n } catch (Exception ex) {\r\n LOG.error(\"Could not publish to broker: {}\", ex.getMessage(), ex);\r\n }\r\n }\r\n }", "@Override\n\tpublic void play() {\n\t\t\n\t}", "@Override\n public void run() {\n if (playAfterConnect!=null){\n if (playAfterConnect.getMimeType().equalsIgnoreCase(\"application/x-mpegURL\") ||\n playAfterConnect.getMimeType().equalsIgnoreCase(\"application/vnd.apple.mpegURL\")) {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n if(playAfterConnect.isproxy() ==false)\n playAfterConnect.setUrl(Utils.getRedirect(playAfterConnect.getUrl()));\n sendCastMessage(playAfterConnect);\n }\n });\n thread.start();\n } else {\n if (mediaRouteMenuItem != null && mediaRouteMenuItem.isVisible() == true) {\n // logger.debug(\"Choosed item with index: \" + selectedVideo);\n if (ChromecastApp.Instance().mCastContext.getCastState() == CastState.CONNECTED) {\n // logger.debug(\"Cast video\");\n if (playAfterConnect.getUrl().startsWith(\"http\")) {\n Cast(playAfterConnect.getUrl().toString(), playAfterConnect.getUrl(), playAfterConnect.getMimeType());\n } else if (playAfterConnect.getUrl().startsWith(\"file\")) {\n LocalCast(playAfterConnect);\n }\n } else {\n\n ChromecastApp.currentVideo = playAfterConnect;\n ActionProvider provider = MenuItemCompat.getActionProvider(mediaRouteMenuItem);\n provider.onPerformDefaultAction();\n // Toast.makeText(WebViewActivity.this,getString(R.string.not_connected),Toast.LENGTH_LONG).show();\n }\n } else {\n if (!((Activity) MainActivity.this).isFinishing()) {\n Toast.makeText(MainActivity.this, getString(R.string.not_device), Toast.LENGTH_LONG).show();\n }\n }\n }\n\n }\n }", "@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}", "public void onCompletion(MediaPlayer mp) {\n\t\tif (toolbar != null && !toolbar.isShowing()) {\n\t\t\ttitle.showAtLocation(mVideoView, Gravity.TOP, 0, 0);\n\t\t\ttitle.update(height - 50, 0, width, 50);\n\t\t\ttoolbar.showAtLocation(mVideoView, Gravity.BOTTOM, 0, 0);\n\t\t\ttoolbar.update(0, 0, width, 220);\n\t\t}\n\t\tif (playbtn != null) {\n\t\t\t// 换图片\n\t\t\tplaybtn.setBackgroundResource(R.drawable.play_button);\n\t\t\tplaybtn.setImageResource(R.drawable.player_play);\n\t\t\tseekbar.setProgress(0);\n\t\t\tcurrentTime.setText(\"00:00\");\n\t\t}\n\t}", "public void playPrevious() {\n if(mPosition > 0) {\n mPosition--;\n } else {\n mPosition = (--mPosition + mMyTracks.size()) % mMyTracks.size();\n }\n prepareTrack();\n }", "void onUserAttentionAvailable() {\n if (!isPlaying()) {\n seekTo(mPauseTime);\n super.start();\n }\n }", "@Override\n\tpublic void onPrepared(MediaPlayer mp) {\n\t\tthis.mMediaPlayer.seekTo((int) (this.mOffsetInto * 100));\n\t\tthis.subject.notifyDoneBuffering();\n\t\tLog.e(\"AUDIO\", \"I'm done buffering and ready to play!\");\n\t}", "@Override\n public void playStart() {\n }", "@Override\n protected void onStop() {\n super.onStop();\n releaseMediaPlayer();\n }", "@Override\n public void run() {\n vPauseImageViewEntertainingFactActivity.setVisibility(View.INVISIBLE);\n vPlayImageViewEntertainingFactActivity.setVisibility(View.VISIBLE);\n mediaPlayer.start();\n }", "private void pause()\n\t\t{\n\t\t\tif (mMediaPlayer != null)\n\t\t\t\tmMediaPlayer.pause();\n\t\t}", "@Override\r\n public void play()\r\n {\n\r\n }" ]
[ "0.76307124", "0.7182488", "0.7163904", "0.71477914", "0.70249707", "0.69824654", "0.69782186", "0.69763124", "0.6916995", "0.6907356", "0.6907356", "0.69057006", "0.68898326", "0.68523526", "0.6796133", "0.6779364", "0.6755156", "0.6752031", "0.67144996", "0.6702062", "0.66970944", "0.6635918", "0.6603481", "0.6600926", "0.65848386", "0.65819025", "0.6576099", "0.65757966", "0.6569201", "0.6564815", "0.6563903", "0.656158", "0.65603584", "0.6549148", "0.6545434", "0.6529929", "0.6517988", "0.65172464", "0.6517026", "0.6514171", "0.65008676", "0.6498575", "0.6492026", "0.645019", "0.6448376", "0.6432869", "0.64324963", "0.6428789", "0.6428544", "0.64238524", "0.6405154", "0.6384497", "0.63819635", "0.63813245", "0.6378545", "0.63769734", "0.63663316", "0.63648796", "0.63525707", "0.6348593", "0.63440245", "0.63377696", "0.6325135", "0.6319161", "0.63147753", "0.63128483", "0.62908554", "0.62841713", "0.6275881", "0.6274373", "0.6261048", "0.6258112", "0.62395066", "0.6238575", "0.62369794", "0.62337255", "0.6232837", "0.62285405", "0.6228417", "0.6228166", "0.62275666", "0.62267876", "0.6225057", "0.6224653", "0.6221689", "0.6217498", "0.62080216", "0.6204373", "0.62029094", "0.61988604", "0.6198531", "0.61905897", "0.61882406", "0.6186713", "0.6177818", "0.6155948", "0.61474013", "0.61344403", "0.6132214", "0.6128084" ]
0.6575361
28
Cancel crop trample event if leather boots are worn by the entity
public static void preventCropTrample(Cancellable event, LivingEntity entity) { ItemStack boots = entity.getEquipment().getBoots(); if (boots == null) { return; } else if (boots.getType() == Material.LEATHER_BOOTS) { event.setCancelled(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void cancel() {\n HologramHandler.despawnHologram(hologram);\n if (!mseEntity.isTamed())\n mseEntity.setCustomName(mseEntity.getDefaultName());\n threadCurrentlyRunning = false;\n super.cancel();\n }", "public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }", "void cancelOriginal();", "private void startCropImage() {\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tmoving = false;\n\t\t}", "private void onCancel() {\n cancelDisposalProcess();\n }", "public void killTarea() {\r\n\t\tsuper.cancel();\r\n\t}", "public void abortOptimizedBurstShot() {\n this.mCameraDevice.abortBurstShot();\n if (1 != this.mAppController.getSupportedHardwarelevel(this.mCameraId)) {\n lightlyRestartPreview();\n }\n }", "public void cancel(){\n cancelled = true;\n }", "protected void onPdCancel(){\r\r\t}", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void stopIntake(){\n\t\tintake.set(0);\n }", "private void cancelHeavyLifting()\n {\n }", "@Override\n\tprotected void takeOff(){\n\t\tgvh.log.i(TAG, \"Drone taking off\");\n\t\tsetControlInput(0, 0, 0, 1);\n\t}", "@Override\n protected void interrupted() {\n drivetrain.cancelMotionProfile();\n drivetrain.clearOldMotionProfiles();\n }", "@EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled = true)\n\tpublic void onCropGrow(BlockGrowEvent e) {\n\t\tBlock block = e.getNewState().getBlock();\n\n\t\tBukkit.getServer().getScheduler().runTaskAsynchronously(CropControl.getPlugin(), new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tWorldChunk chunk = CropControl.getDAO().getChunk(block.getChunk());\n\t\t\t\tint x = block.getX();\n\t\t\t\tint y = block.getY();\n\t\t\t\tint z = block.getZ();\n\t\t\t\tCrop crop = chunk.getCrop(x, y, z);\n\t\t\t\tif (crop != null) {\n\t\t\t\t\tcrop.setCropState(getCropState(e.getNewState()));\n\t\t\t\t} else {\n\t\t\t\t\tif (block.getType() == Material.MELON || block.getType() == Material.PUMPKIN) {\n\t\t\t\t\t\tfor (BlockFace blockFace : CropControlEventHandler.directions) {\n\t\t\t\t\t\t\tBlock otherBlock = block.getRelative(blockFace);\n\t\t\t\t\t\t\tWorldChunk otherChunk = CropControl.getDAO().getChunk(otherBlock.getChunk());\n\t\t\t\t\t\t\tint otherX = otherBlock.getX();\n\t\t\t\t\t\t\tint otherY = otherBlock.getY();\n\t\t\t\t\t\t\tint otherZ = otherBlock.getZ();\n\t\t\t\t\t\t\tCrop otherCrop = otherChunk.getCrop(otherX, otherY, otherZ);\n\t\t\t\t\t\t\tif (otherCrop != null) {\n\t\t\t\t\t\t\t\tUUID placerUUID = otherCrop.getPlacer();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tCrop.create(chunk, x,y,z, block.getType().toString(), null,\n\t\t\t\t\t\t\t\t\t\tplacerUUID, System.currentTimeMillis(), true);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (block.getType() == Material.CACTUS || block.getType() == Material.SUGAR_CANE) {\n\t\t\t\t\t\tBlock otherBlock = block.getRelative(BlockFace.DOWN);\n\t\t\t\t\t\tint otherX = otherBlock.getX();\n\t\t\t\t\t\tint otherY = otherBlock.getY();\n\t\t\t\t\t\tint otherZ = otherBlock.getZ();\n\t\t\t\t\t\tCrop otherCrop = chunk.getCrop(otherX, otherY, otherZ);\n\t\t\t\t\t\tif (otherCrop != null) {\n\t\t\t\t\t\t\tUUID placerUUID = otherCrop.getPlacer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tCrop.create(chunk, x,y,z, block.getType().toString(), null,\n\t\t\t\t\t\t\t\t\tplacerUUID, System.currentTimeMillis(), true);\n\t\t\t\t\t\t} else { // go one lower, might have been async out of order ..\n\t\t\t\t\t\t\tBlock finalCheck = otherBlock.getRelative(BlockFace.DOWN);\n\t\t\t\t\t\t\tif (block.getType().equals(finalCheck.getType())) { // same ballpark\n\t\t\t\t\t\t\t\tCrop finalCrop = chunk.getCrop(finalCheck.getX(), finalCheck.getY(), finalCheck.getZ());\n\t\t\t\t\t\t\t\tif (finalCrop != null) {\n\t\t\t\t\t\t\t\t\tUUID placerUUID = finalCrop.getPlacer();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tCrop.create(chunk, x,y,z, block.getType().toString(), null,\n\t\t\t\t\t\t\t\t\t\t\tplacerUUID, System.currentTimeMillis(), true);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "private void vetoedCancelled(VetoedTriggerKey vetoedkey) {\n\t\tlogger.info(\"cancelled wainting job:\" + vetoedkey.getKey().toString() + \"\");\n\t\tJobReceiverImpl receiver = (JobReceiverImpl) jobFacade.getJobReceiver(vetoedkey.getKey().getName());\n\t\treceiver.putEvent(vetoedkey.getKey().getName(), TRIGGEREVENT.MISFIRED, new Date());\n\t\tint ilast = receiver.resultCount() - 1;\n\t\tif (ilast >= 0) {\n\t\t\tJobResultImpl result = (JobResultImpl) receiver.getJobResult(ilast);\n\t\t\tresult.setWaitexpiredAt(new Date());\n\t\t}\n\t}", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "void cancelProduction();", "private void cancelMoveTask2(boolean shouldNotifySector) {\n if (_movementTask != null && !_movementTask.isDone()) {\n _movementTask.cancel(true);\n\n if (shouldNotifySector) {\n notifySector(false);\n }\n }\n }", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "public void onCancel() {\n\t\tif ( !getEnabled() || !isOpened() ) return;\n\t\tif ( mCurrentEffect == null ) throw new IllegalStateException( \"there is no current effect active in the context\" );\n\t\tif ( !mCurrentEffect.onCancel() ) {\n\t\t\tcancel();\n\t\t}\n\t}", "@Override\n protected void doCheckEffect ()\n {\n // check all the stationary spells in the location of the projectile for a Colloportus\n List<O2StationarySpell> inside = new ArrayList<>();\n for (O2StationarySpell spell : Ollivanders2API.getStationarySpells(p).getStationarySpellsAtLocation(location))\n {\n if (spell instanceof COLLOPORTUS)\n {\n inside.add(spell);\n }\n }\n\n // remove the colloportus spells found\n if (inside.size() > 0)\n {\n for (O2StationarySpell spell : inside)\n {\n spell.kill();\n spell.flair(10);\n }\n\n kill();\n }\n\n // if the spell has hit a solid block, the projectile is stopped and wont go further so kill the spell\n if (hasHitTarget())\n kill();\n }", "public void cancel() {\n\t\tcancelled = true;\n\t}", "@EventHandler(priority = EventPriority.NORMAL)\n public void onEntityTarget(EntityTargetEvent event) {\n if (event.isCancelled() || !event.getEntity().hasMetadata(\"docile\")) {\n return;\n }\n\n if (event.getReason() == EntityTargetEvent.TargetReason.CLOSEST_PLAYER ) {\n event.setCancelled(true);\n }\n }", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "public void cancelCheckLongPress() {\n this.checkingForLongPress = false;\n CheckForLongPress checkForLongPress = this.pendingCheckForLongPress;\n if (checkForLongPress != null) {\n removeCallbacks(checkForLongPress);\n }\n CheckForTap checkForTap = this.pendingCheckForTap;\n if (checkForTap != null) {\n removeCallbacks(checkForTap);\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "@Override\n protected void interrupted() {\n Robot.drive.setCoastMode();\n Robot.tapeAlignSys.disable();\n Robot.lidarAlignSys.disable();\n }", "@Override\r\n\tpublic void onDeath() {\n\t\tplaySound(Sound.BLOCK_CONDUIT_DEACTIVATE,caster.getLocation(),5,1F);\r\n\t}", "public void notifyCancel() {\n Player senderPlayer = this.getToTeleport().getPlayerReference(Player.class),\n targetPlayer = this.getTarget().getPlayerReference(Player.class);\n\n if (senderPlayer == null || targetPlayer == null) {\n return;\n }\n\n MainData.getIns().getMessageManager().getMessage(\"TPA_CANCELLED\").sendTo(senderPlayer);\n MainData.getIns().getMessageManager().getMessage(\"TPA_SELF_CANCELLED\").sendTo(targetPlayer);\n\n }", "public void duelmode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n if(e.getEnergy() <= 20) {\r\n //shoot things\r\n engage(e);\r\n } runaway(e);\r\n }", "@Override\n public void cancel() {\n\n }", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "private void onMakeCoffeeFail(){\n\t\t// ui\n\t\tmMakeCoffeeProgress.setVisibility(View.INVISIBLE);\n\t\tmMakeCoffeeSuccess.setVisibility(View.INVISIBLE);\n\t\tmMakeCoffeeProgressTip.setText(getString(R.string.make_coffee_failed));\n\t\tmMakeCoffeeFailed.setVisibility(View.VISIBLE);\n\t\tmMakeCoffeeRetry.setVisibility(View.INVISIBLE);\n\t\t// sound tip\n\t\tAudioPlayer.getInstance().play(this, R.raw.sound_coffee_make_fail);\n\t}", "public void onCutScene() {\n\t\tAnimation src = getSourceAnimation();\n\t\tif( src != null ) {\n\t\t\tcutScene(src, vm.cutInfo.getStart(), vm.cutInfo.getEnd(), buildUniqueName(vm.scenes));\n\t\t\tlog.info(\"cutting out scene from {}\", vm.cutInfo);\n\t\t\tvm.cutInfo.reset();\n\t\t\tvm.setMarkStartEnabled(true);\n\t\t}\n\t\t\n\t}", "public boolean onGestureCancelled(MotionEvent event, int policyFlags);", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "@Override\r\n protected void onCancel() {\n if (getOwner().getFacing() != null) {\r\n getOwner().face(getOwner().getFacing().getPosition());\r\n }\r\n }", "@Override\n\tpublic void eventCancelled() {\n\t\tstatus=EventCancelled;\n\t}", "public void cancel() {\r\n\t\tbStop = true;\r\n\t}", "void cancelIdleStoryCountdown() {\n\n idleSaveStoryToArchiveHandler.removeCallbacksAndMessages(null);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(Platform arg0, int arg1) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }", "@Override\n\tpublic void dragAborted () {\n\t}", "public void onImpact() {\n die();\r\n this.getArrow().remove();\r\n }", "public void cancelRoadLength() {\n \t\troadLength = 0;\n \t}", "@Override\n public void stop() {\n detector.disable();\n }", "public void onCancelled() {\n this.cancelled = true;\n }", "protected void finalAction(){\n Robot.stop();\n requestOpModeStop();\n }", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "public void onCancel() {\r\n parentController.switchView();\r\n }", "@Override\n public void cancel() {\n }", "@Override\n public void onCancel(Platform arg0, int arg1) {\n }", "@Override\n public void onCancel(Platform arg0, int arg1) {\n }", "private void onCancelButtonPressed() {\r\n disposeDialogAndCreateNewGame(); // Reset board,\r\n game.setCanPlaceMarks(false); // But don't start a new game.\r\n }", "private void attemptClaimDrag() {\n if (getParent() != null) {\n getParent().requestDisallowInterceptTouchEvent(true);\n }\n }", "private void attemptClaimDrag() {\n if (getParent() != null) {\n getParent().requestDisallowInterceptTouchEvent(true);\n }\n }", "public void stopShoot(){\n\t\tshoot.set(0);\n\t}", "@Override\n public void onCancel(Platform arg0, int arg1) {\n\n }", "@Override\n protected void end() {\n Robot.hatchIntake.hatchOFF();\n }", "@Override\n protected void onPreExecute() {\n cancellationSignal.setOnCancelListener(\n new CancellationSignal.OnCancelListener() {\n @Override\n public void onCancel() { // on different thread\n cancelLoad();\n cancel(false);\n }\n });\n }", "@Override\n public void cancelAutoFocus() {\n mCameraDevice.cancelAutoFocus();\n if (mCameraState != SELFTIMER_COUNTING\n && mCameraState != SNAPSHOT_IN_PROGRESS) {\n setCameraState(IDLE);\n }\n setCameraParameters(UPDATE_PARAM_PREFERENCE);\n isTouchCalled = false;\n }", "@Override\n\t\t\t\t\tpublic void onCancel(Platform arg0, int arg1) {\n\t\t\t\t\t\tLog.i(\"tag\", \"onCancel\");\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public void performCancel(Action action) {\n String key = action.getKey();\n BitmapHunter bitmapHunter = this.hunterMap.get(key);\n if (bitmapHunter != null) {\n bitmapHunter.detach(action);\n if (bitmapHunter.cancel()) {\n this.hunterMap.remove(key);\n if (action.getPicasso().loggingEnabled) {\n Utils.log(DISPATCHER_THREAD_NAME, \"canceled\", action.getRequest().logId());\n }\n }\n }\n if (this.pausedTags.contains(action.getTag())) {\n this.pausedActions.remove(action.getTarget());\n if (action.getPicasso().loggingEnabled) {\n Utils.log(DISPATCHER_THREAD_NAME, \"canceled\", action.getRequest().logId(), \"because paused request got canceled\");\n }\n }\n Action remove = this.failedActions.remove(action.getTarget());\n if (remove != null && remove.getPicasso().loggingEnabled) {\n Utils.log(DISPATCHER_THREAD_NAME, \"canceled\", remove.getRequest().logId(), \"from replaying\");\n }\n }", "public void onCancel() {\n\t\t\t\t\t}", "@Override\n public void cancel() {\n }", "public void stopShooting() {\n\t\tgetWeapon().releaseMain();\n\t\tsetShooting(false);\n\t}", "public default void doEffectCancel(SpellData data, World world, Side onSide){ doEffect(data, world, getDuration(data.casterLevel()), onSide); }", "public void stopTrainingMode() {\n\t\t\r\n\t}", "public void interactWhenLeaving() {\r\n\t\t\r\n\t}", "public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public void turnStrobeOff(){\n Intent stop_strobe_intent = new Intent(FlareConstants.STOP_STROBE);\n stop_strobe_intent.putExtra(FlareConstants.STOP_STROBE, FlareConstants.STOP_STROBE);\n LocalBroadcastManager.getInstance(this).sendBroadcast(stop_strobe_intent);\n Log.d(TAG, \"Sent stop strobe intent broadcast\");\n }", "@Override\n public void abort() {\n giocoinesecuzione = null;\n }", "protected void end() {\n\t\tcrossLine.cancel();\n\t\tapproachSwitch.cancel();\n\t\tdriveToSwitch.cancel();\n\t\tdriveToScale.cancel();\n\t\tapproachScale.cancel();\n\t\tturnTowardsSwitchOrScale.cancel();\n\t\t\n\t\tdrivetrain.stop();\n\t}", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}", "public void cancel(){\n\t\tstartTime = -1;\n\t\tplayersFinished = new ArrayList<>();\n\t\tplayersFinishedMarked = new ArrayList<Player>();\n\t\tDNFs = new ArrayList<>();\n\t\ttempNumber = 0;\n\t\tmarkedNum = 0;\n\t\t//normally we'd mark started racers as such, but we are don't know how many started.\n\t}", "private void m3388c() {\n if (this.f2668a != null) {\n this.f2668a.cancel();\n }\n }", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void m9978e() {\n if (this.f8226a != null) {\n this.f8226a.cancel();\n }\n }", "@Override\n public void onCancel(Platform arg0, int arg1)\n {\n\n }", "private void cancelEvent(Event.NativePreviewEvent event) {\n NativeEvent ne = event.getNativeEvent();\n ne.preventDefault();\n ne.stopPropagation();\n event.cancel();\n }", "@EventHandler\r\n\tpublic void onBlockExplode(BlockExplodeEvent event) {\r\n\t\tevent.setCancelled(true);\r\n\t}", "@Override\n public void onStop() {\n Object object = this.mw;\n synchronized (object) {\n if (this.tV != null) {\n this.tV.cancel(true);\n }\n return;\n }\n }", "@Override\n protected void onCancelled() {\n if (this.mListener != null) {\n this.mListener.onCapsulePingCancelled();\n }\n }", "@Override\n public void onCancel(Platform arg0, int arg1)\n {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tInvoker.getInstance().executeCommand(\n\t\t\t\t\tnew GraphicElementEditCancelCommand(model, dialog.getGraphicElement(), previousShapes));\n\t\t\tGraphicElementInvoker.getInstance().abortSession();\n\t\t\tdialog.setVisible(false);\n\t\t}", "public void mo42332a() {\n this.f36204P.cancel();\n mo42330e();\n }", "@Override\r\n\t\tpublic void onCancel(Platform arg0, int arg1) {\n\r\n\t\t}" ]
[ "0.5858333", "0.5755257", "0.5566561", "0.55527467", "0.54930097", "0.5477237", "0.54741037", "0.5465665", "0.5452169", "0.5396552", "0.5358316", "0.53320366", "0.53262293", "0.5325623", "0.53075755", "0.5278277", "0.5271684", "0.52482015", "0.52177113", "0.5214529", "0.52099216", "0.5198489", "0.5179285", "0.51788557", "0.5174563", "0.5167202", "0.5163704", "0.51374394", "0.51290655", "0.5118215", "0.5117093", "0.5106194", "0.51050377", "0.5099696", "0.50945204", "0.5090661", "0.50708014", "0.5068582", "0.50654715", "0.5065398", "0.5064618", "0.506108", "0.5047943", "0.5042772", "0.50372815", "0.5034975", "0.5034639", "0.503366", "0.5031161", "0.5023579", "0.50231326", "0.5022364", "0.5020814", "0.501257", "0.501257", "0.50112045", "0.500493", "0.500493", "0.500493", "0.49996904", "0.49951902", "0.4987889", "0.49850446", "0.49850446", "0.49735656", "0.49712265", "0.49712265", "0.495787", "0.49577856", "0.49474207", "0.49450234", "0.49433577", "0.4940409", "0.49388942", "0.49374884", "0.4936939", "0.4933608", "0.49326193", "0.4932477", "0.4930933", "0.49299476", "0.49292195", "0.49285632", "0.4924195", "0.49226156", "0.49192944", "0.49171335", "0.49095038", "0.4908374", "0.49036962", "0.4903509", "0.4901706", "0.49013183", "0.49011478", "0.4900086", "0.4894994", "0.48947197", "0.48906195", "0.4889202", "0.48866707" ]
0.7334546
0
Eat event for special food from farming levels that applies boons based on item desc.
@EventHandler() public void onPlayerItemConsume(PlayerItemConsumeEvent event){ List<String> item_desc = event.getItem().getLore(); if (item_desc != null){ Player target = event.getPlayer(); for (String line : item_desc ) { if (line.contains("Hunger")) { int value = Integer.parseInt(line.substring(line.lastIndexOf(" ") + 1)); target.setFoodLevel(target.getFoodLevel() + value ); } else if (line.contains("Saturation")) { int value = Integer.parseInt(line.substring(line.lastIndexOf(" ") + 1)); target.setSaturation(target.getSaturation() + value ); } else if (line.contains("Effect")) { String effect_full = line.substring(line.lastIndexOf(": ") + 2, line.lastIndexOf("- ")); // Get the first number in the desc, which will be the strength of the effect by splitting the string at the number. String[] strength_effect = effect_full.split("(?<=\\D)(?=\\d)"); String effect = strength_effect[0]; String strength = strength_effect[1]; String duration_mins = line.substring(line.lastIndexOf("- ") + 2, line.lastIndexOf(":")); String duration_secs = line.substring(line.lastIndexOf(":") + 1, line.lastIndexOf(" min")); int amplifier = Integer.parseInt(strength.trim()) - 1; // Here we have to convert mins to seconds and also multiply the entire duration by the tick rate, which is default 20. int duration = (Integer.parseInt(duration_mins.trim()) * 60 + Integer.parseInt(duration_secs.trim())) * 20; PotionEffectType pot_effect = PotionEffectType.getByName(effect.trim()); PotionEffect food_effect = new PotionEffect(pot_effect, duration , amplifier); target.addPotionEffect(food_effect); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eatCorpse(Corpse corpse) {\n if (corpse.getSpecies().equals(\"Agilisaurus\")) {\n raiseFoodLevel(20);\n } else {\n raiseFoodLevel(50);\n }\n }", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public boolean animalFood(Entity e, Material item){\r\n\t\t\r\n\t\tif(e instanceof Cow || e instanceof Horse || e instanceof Pig || e instanceof Sheep ){\r\n\t\t\tif(item == Material.HAY_BLOCK){\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 if(e instanceof Chicken){\r\n\t\t\tif(item == Material.SEEDS){\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 if( e instanceof Wolf){\r\n\t\t\tif(item == Material.ROTTEN_FLESH || item == Material.RAW_BEEF || item == Material.PORK){\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 if(e instanceof Ocelot){\r\n\t\t\tif(item == Material.RAW_FISH){\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\t\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void eatItem(Command command) {\n if (!command.hasSecondWord()) { // check if there's a second word\n System.out.println(\"Eat what?\");\n return;\n }\n String itemToBeEaten = command.getSecondWord();\n List<Item> playerInventory = player.getPlayerInventory(); // load the inventory of the player\n\n boolean somethingToUse = false;\n int notThisItem = 0;\n int loop;\n\n for (loop = 0; loop < playerInventory.size(); loop++) { // loop through the player inventory\n Item currentItem = playerInventory.get(loop); // set currentitem on the item that is currently in the loop\n if (itemToBeEaten.equals(currentItem.getItemName()) ){ // get the item name, then check if that matches the secondWord\n if (currentItem.getItemCategory().equals(\"food\")){ // check if the item used is an item in the \"food\" category\n if((player.getHealth())<(20)) { // check if the player's health is full\n player.addHealth(currentItem.getHealAmount()); // heal the player\n player.removeItemFromInventory(currentItem); // remove item from inventory\n System.out.println(\"You eat the \" + itemToBeEaten + \". It heals for \" + currentItem.getHealAmount()+\".\");\n } else { // the player's health is full\n System.out.println(\"Your are at full health!\");\n }\n } else { // item is not a food item\n System.out.println(\"You can't eat that item!\");\n }\n } else { // the item did not match the player provided name\n notThisItem++;\n }\n somethingToUse = true;\n }\n\n //errors afvangen\n if (!somethingToUse) { // the item is not found in the player inventory\n System.out.println(\"You can't eat that!\");\n }\n\n if (loop == notThisItem) { // the player has nothing to burn secondWord with\n //ThisItem is the same amount as loop. Then the player put something in that is not in the room\n System.out.println(\"You cannot eat \" + itemToBeEaten + \" because you don't have it in your inventory!\");\n }\n }", "@Test\n public void useEffect() {\n \t//should normally run useItem method, but for testing it is not needed here.\n \tHealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0);\n \tbombEff.applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP - 700);\n \tSpecial heal = new Special(SpecialType.HEALTHBLESS);\n \theal.getEffect().get(0).applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP);\n }", "@Override\r\n\t\t \t public void eat(String item) {\n\t\t \t\t System.out.println(\"Penguin eats fish\");\r\n\t\t \t\t\r\n\t\t }", "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "protected void handleFeeding(AbstractHorse abstractHorse, SavedHorse savedHorse, Player player) {\n // Handle health training only if the event was not cancelled.\n ItemStack foodItem = player.getEquipment().getItemInMainHand();\n int nuggetValue = getNuggetValue(foodItem);\n if (CONFIG.DEBUG_EVENTS && savedHorse.isDebug()) {\n getLogger().info(\"Nugget value: \" + nuggetValue);\n }\n\n if (nuggetValue > 0) {\n // For undead horses, they take the food right away.\n if (Util.isUndeadHorse(abstractHorse)) {\n foodItem.setAmount(foodItem.getAmount() - 1);\n player.getEquipment().setItemInMainHand(foodItem);\n consumeGoldenFood(savedHorse, abstractHorse, nuggetValue, player);\n\n // And let's simulate healing with golden food too.\n // Golden apples (both types) heal (10); carrots heal 4.\n int foodValue = (foodItem.getType() == Material.GOLDEN_APPLE) ? 10 : 4;\n AttributeInstance maxHealth = abstractHorse.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n abstractHorse.setHealth(Math.min(maxHealth.getValue(), abstractHorse.getHealth() + foodValue));\n\n } else {\n // For other types of horses, detect whether the food\n // was consumed by running a task in the next tick.\n Bukkit.getScheduler().runTaskLater(this, new GoldConsumerTask(\n player, abstractHorse, foodItem, nuggetValue, player.getInventory().getHeldItemSlot()), 0);\n }\n } else if (foodItem != null && foodItem.getType() == Material.WATER_BUCKET) {\n // Handle rehydration.\n if (!savedHorse.isFullyHydrated()) {\n player.getEquipment().setItemInMainHand(new ItemStack(Material.BUCKET, 1));\n savedHorse.setHydration(savedHorse.getHydration() + EasyRider.CONFIG.BUCKET_HYDRATION);\n Location loc = abstractHorse.getLocation();\n loc.getWorld().playSound(loc, Sound.ENTITY_GENERIC_DRINK, SoundCategory.NEUTRAL, 2.0f, 1.0f);\n }\n\n if (savedHorse.isFullyHydrated()) {\n player.sendMessage(ChatColor.GOLD + savedHorse.getMessageName() + \" is no longer thirsty.\");\n } else {\n player.sendMessage(ChatColor.GOLD + savedHorse.getMessageName() + \" is still thirsty.\");\n }\n }\n }", "public void eatEgg(Egg egg) {\n raiseFoodLevel(10);\n }", "@EventHandler (priority = EventPriority.HIGHEST)\n \tpublic void onCrafting(CraftItemEvent event){\n \t\tif(event.isCancelled())\n \t\t\treturn;\n \n \t\tHumanEntity he = event.getWhoClicked();\n \t\tif((he instanceof Player)){\n \t\t\tPlayer player = (Player) he;\n \t\t\tAlertType type = AlertType.ILLEGAL;\n \t\t\tif(player.getGameMode() == GameMode.CREATIVE){\n \t\t\t\tif(plugin.isBlocked(player, PermissionNodes.MAKE_ANYTHING, player.getWorld())){\n \t\t\t\t\ttype = AlertType.LEGAL;\n \t\t\t\t}\n \t\t\t\tASRegion region = plugin.getRegionManager().getRegion(player.getLocation());\n \t\t\t\tif(region != null){\n \t\t\t\t\tif(!region.getConfig().isBlocked(event.getRecipe().getResult().getType(), ListType.CRAFTING)){\n \t\t\t\t\t\ttype = AlertType.LEGAL;\n \t\t\t\t\t}\n \t\t\t\t}else{\n \t\t\t\t\tif(config.get(player.getWorld()).isBlocked(event.getRecipe().getResult().getType(), ListType.CRAFTING)){\n \t\t\t\t\t\ttype = AlertType.LEGAL;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}else{\n \t\t\t\ttype = AlertType.LEGAL;\n \t\t\t}\n \t\t\tString message = ChatColor.YELLOW + player.getName() + ChatColor.WHITE + (type == AlertType.ILLEGAL ? \" tried to craft an item\" : \" crafted an item\");\n \t\t\tString playerMessage = plugin.getMessage(\"blocked-action.crafting\");\n \t\t\tplugin.getAlerts().alert(message, player, playerMessage, type, AlertTrigger.CRAFTING);\n \t\t\tif(type == AlertType.ILLEGAL){\n \t\t\t\tevent.setCancelled(true);\n \t\t\t}\n \t\t}\n \t}", "private void reactToEnemyDefeat(BasicEnemy enemy) {\n // react to character defeating an enemy\n // item rewards\n triggerDropItem(0.5);\n triggerDropPotion(0.1);\n triggerDropTheOneRing(0.002);\n\n // gold & exp rewards\n triggerGainGold(10, 0.2);\n triggerGainExp(5, 1);\n\n // card rewards\n triggerDropCard(0.4); // 0.08 actual, 0.5 for test\n }", "@Override\n\tpublic void eatFood(Food f) {\n\t\t\n\t}", "public void doItemEffect(RobotPeer robot){\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\trobot.updateEnergy(-15);\n\t\t//System.out.println(\"Poison item USED\");\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\t\n\t}", "public void createNewCraftEntry(MessageReceivedEvent event, String[] args, Item item){\n int totalBonus = 10+((Integer.parseInt(args[2])-10)/2);\n System.out.println((Integer.parseInt(args[2])-10)/2 + \" and \" + totalBonus);\n if(args[1] != null) {\n if (args[0].equals(\"true\")) {\n totalBonus += (Integer.parseInt(args[1]) * 2);\n } else {\n totalBonus += Integer.parseInt(args[1]);\n }\n }\n int baseTime=20;\n String rarity = item.getRarity();\n switch(rarity){\n case \"common\":\n case \"Common\":\n baseTime = 20;\n if(item.isConsumable()){\n baseTime = baseTime/3;\n }\n break;\n case \"uncommon\":\n case \"Uncommon\":\n baseTime = 100;\n if(item.isConsumable()){\n baseTime = baseTime/3;\n }\n break;\n case \"rare\":\n case \"Rare\":\n baseTime = 240;\n if(item.isConsumable()){\n baseTime = baseTime/4;\n }\n break;\n case \"very rare\":\n case \"Very Rare\":\n baseTime = 400;\n if(item.isConsumable()){\n baseTime = baseTime/4;\n }\n break;\n case \"legendary\":\n case \"Legendary\":\n baseTime = 500;\n if(item.isConsumable()){\n baseTime = baseTime/4;\n }\n break;\n }\n int finalTime = baseTime/totalBonus;\n LocalDateTime timeStart = LocalDateTime.now();\n LocalDateTime timeEnd = LocalDateTime.now().plusDays(finalTime);\n String crafterID = event.getAuthor().getId();\n //Corrects time if it is after the completion of the daily crafting cycle\n if(timeEnd.toLocalDate().equals(timeStart.toLocalDate())){\n if(timeStart.toLocalTime().isAfter(LocalTime.of(13,0))){\n timeEnd = timeEnd.plusDays(1);\n }\n }\n String timestampStart = timeStart.toString();\n String timestampEnd = timeEnd.toString();\n String crafterChar = args[4];\n String channelID = event.getChannel().getId();\n\n String outputString = crafterID + \",\" + timestampStart + \",\" + timestampEnd + \",\" + item.getName() + \",\" + crafterChar + \",\" + channelID;\n String[] outputArray = outputString.split(\",\");\n\n if(timeEnd.toLocalDate().equals(timeStart.toLocalDate())){\n itemsDueToday.add(outputArray);\n }\n craftBacklog.add(outputArray);\n\n List<Object> writeList = new ArrayList<>();\n for(String field:outputArray){\n writeList.add(field);\n }\n\n try {\n SheetInformationBuffer.writeToCraft(writeList);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String dateEnd = timeEnd.toLocalDate().toString();\n event.getChannel().sendMessage(\"Congratulations <@\" + crafterID + \">! Your ***\" + item.getName() + \"*** will be ready on: \" + dateEnd).queue();\n\n }", "@Override\n public void run() {\n int slotsUsed = 0;\n int potentialBananas = 0;\n RSItem[] items = Inventory.getAll();\n for (RSItem item : items) {\n // If this isn't a bone count it\n if (item.getID() < 6904 || item.getID() > 6907) {\n slotsUsed++;\n }\n else {\n // Item id bone amount\n // 6904 1\n // 6905 2\n // 6906 3\n // 6907 4\n potentialBananas += 1 + item.getID() - 6904;\n }\n }\n \n int slotsAvailable = 28 - slotsUsed;\n\n RSItem[] food = Inventory.find(1963);\n\n // If have bananas/peaches, deposit them, else collect bones\n if (food.length > 0) {\n // Heal and then deposit\n float eatHealth = m_settings.m_eatHealth * Skills.getActualLevel(SKILLS.HITPOINTS);\n float eatTo = m_settings.m_eatTo * Skills.getActualLevel(SKILLS.HITPOINTS);\n \n if (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatHealth) {\n // Eat\n while (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatTo) {\n food[0].click(\"Eat\");\n m_script.sleep(300, 600);\n food = Inventory.find(1963);\n }\n }\n else {\n // Deposit\n RSObject[] objs = Objects.findNearest(50, \"Food chute\");\n if (objs.length > 0) {\n while (!objs[0].isOnScreen()) {\n Walking.blindWalkTo(objs[0]);\n m_script.sleep(250);\n }\n objs[0].click(\"Deposit\");\n m_script.sleep(1200);\n }\n }\n }\n else {\n // If we have more than a full load of bananas worth of bones, cast bones to peaches\n if (potentialBananas >= slotsAvailable) {\n // Cast bones to peaches\n Magic.selectSpell(\"Bones to Bananas\");\n }\n else {\n // Collect bananas\n RSObject[] bonePiles = Objects.findNearest(10725, 10726, 10727, 10728);\n if (bonePiles.length > 0) {\n while (!bonePiles[0].isOnScreen()) {\n Walking.blindWalkTo(bonePiles[0]);\n m_script.sleep(250);\n }\n bonePiles[0].click(\"Grab\");\n m_script.sleep(150);\n }\n }\n }\n }", "public void act() \n {\n EggFactory eggFactory = new EggFactory();\n \n move(4);\n int random = Greenfoot.getRandomNumber(5000);\n if((random>200 & random<300) || ((Farm)getWorld()).atWorldEdge(this))\n {\n turn(180);\n getImage().mirrorVertically();\n move(4);\n \n }\n\n if( Greenfoot.getRandomNumber(100) ==0)\n {\n\n Farm farm = (Farm)getWorld();\n Egg egg = null; \n int eggPicker = Greenfoot.getRandomNumber(80);\n //DropEggStrategy dropEgg = new DropEggStrategy(); //Strategy pattern\n\n IEggStrategy whiteStrategy = new WhiteEggStrategy(eggFactory);\n IEggStrategy blackStrategy = new BlackEggStrategy(eggFactory);\n IEggStrategy goldenStrategy = new GoldenEggStrategy(eggFactory);\n \n DropEggContext context = new DropEggContext();\n \n if(eggPicker >= 50 && eggPicker <= 60){\n \n context.setIEggStrategy(goldenStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else if(eggPicker >= 60 && eggPicker <= 70){\n\n context.setIEggStrategy(blackStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else{\n context.setIEggStrategy(whiteStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n \n egg.register(farm.getLifeObserver());//register life creator observer into egg subject \n\n \n\n }\n\n }", "public void eatMealKit(MealKit mealkit) {\n raiseFoodLevel(100);\n }", "public void eatHay(Hay hay) {\n raiseFoodLevel(20);\n }", "private void selfHeal() {\n\t\t\n\t\t//IF the Droid is carrying an item...\n\t\tif (this.getItemCarried() != null){\n\t\t\t\n\t\t\t//If the item is an oil can...\n\t\t\tif (this.getItemCarried().getShortDescription() == \"an oil can\" ) {\n\t\t\t\n\t\t\t\t//If the Droids health is LOWER than half...\n\t\t\t\tif((this.getInitialHP()/2) > this.getHitpoints()) {\n\t\t\t\t\tsay(this.getShortDescription() + \" is at or below half HP. \"\n\t\t\t\t\t\t\t+ \" Healing itself...\");\n\t\t\t\t\t\n\t\t\t\t\t//Implementing a new HealDroid method (Droid heals on itself)\n\t\t\t\t\t//public HealDroid(SWEntityInterface theTarget, MessageRenderer m) {\n\t\t\t\t\tHealDroid droidHeal = new HealDroid(this, messageRenderer);\n\t\t\t\t\t\n\t\t\t\t\tscheduler.schedule(droidHeal, this, 1);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "public void customizeMob(LivingEntity mob, LeveledMonster leveledMonster, CreatureSpawnEvent.SpawnReason spawnReason){\n mob.getPersistentDataContainer().set(monsterIdKey, PersistentDataType.STRING, leveledMonster.getName());\n assert mob.getEquipment() != null;\n mob.getEquipment().setHelmet(leveledMonster.getHelmet());\n mob.getEquipment().setChestplate(leveledMonster.getChestPlate());\n mob.getEquipment().setLeggings(leveledMonster.getLeggings());\n mob.getEquipment().setBoots(leveledMonster.getBoots());\n mob.getEquipment().setItemInMainHand(leveledMonster.getMainHand());\n mob.getEquipment().setItemInOffHand(leveledMonster.getOffHand());\n\n mob.getEquipment().setHelmetDropChance((float) leveledMonster.getHelmetDropChance());\n mob.getEquipment().setChestplateDropChance((float) leveledMonster.getChestplateDropChance());\n mob.getEquipment().setLeggingsDropChance((float) leveledMonster.getLeggingsDropChance());\n mob.getEquipment().setBootsDropChance((float) leveledMonster.getBootsDropChance());\n mob.getEquipment().setItemInMainHandDropChance((float) leveledMonster.getMainHandDropChance());\n mob.getEquipment().setItemInOffHandDropChance((float) leveledMonster.getOffHandDropChance());\n\n if (leveledMonster.getMainHand() != null){\n mob.setCanPickupItems(false);\n }\n\n AttributeInstance attribute = mob.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n assert attribute != null;\n if (mob instanceof Slime){\n Slime slime = (Slime) mob;\n attribute.setBaseValue(leveledMonster.getBaseHealth() / (16/Math.pow(slime.getSize(), 2)));\n mob.setHealth(leveledMonster.getBaseHealth() / (16/Math.pow(slime.getSize(), 2)));\n } else {\n attribute.setBaseValue(leveledMonster.getBaseHealth());\n mob.setHealth(leveledMonster.getBaseHealth());\n }\n if (leveledMonster.getDisplayName() != null){\n if (!leveledMonster.getDisplayName().equals(\"null\")){\n mob.setCustomName(leveledMonster.getDisplayName());\n mob.setCustomNameVisible(leveledMonster.isDisplayNameVisible());\n }\n }\n if (leveledMonster.isBoss()){\n String title = leveledMonster.getDisplayName();\n if (leveledMonster.getDisplayName() == null){\n title = Utils.chat(\"&c&lBoss\");\n } else if (leveledMonster.getDisplayName().equals(\"null\")){\n title = Utils.chat(\"&c&lBoss\");\n }\n Utils.createBossBar(Main.getInstance(), mob, title, BarColor.RED, BarStyle.SOLID, Main.getInstance().getConfig().getInt(\"boss_bar_view_distance\"));\n }\n\n for (String key : leveledMonster.getAbilities()){\n Ability instantAbility = AbilityManager.getInstance().getInstantAbilities().get(key);\n if (instantAbility != null){\n instantAbility.execute(mob, null, new CreatureSpawnEvent(mob, spawnReason));\n }\n Ability runningAbility = AbilityManager.getInstance().getRunningAbilities().get(key);\n if (runningAbility != null){\n runningAbility.execute(mob, null, new CreatureSpawnEvent(mob, spawnReason));\n }\n }\n }", "@Override\n\tpublic boolean eat(Item item,GameMap map) {\n\t\ttry {\n\t\t\tif (hitPoints<maxHitPoints){\n\t\t\t\theal(item.effect());\n\t\t\t\tmap.locationOf(this).removeItem(item);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (NullPointerException nullPointer) {\n\t\t\tnullPointer.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "@ForgeSubscribe\r\n\tpublic void OnBonemealUse(net.minecraftforge.event.entity.player.BonemealEvent e)\r\n\t{\n\t\tif (!e.world.isRemote && e.entityPlayer.dimension == YC_Mod.d_astralDimID)\r\n\t\t{\r\n\t\t\tif (e.world.getBlockId(e.X, e.Y, e.Z) == YC_Mod.b_astralCrystals.blockID && e.world.getBlockId(e.X, e.Y-1, e.Z) == Block.grass.blockID)//crystal in center and grass beneath them\r\n\t\t\t\tif (e.world.getBlockId(e.X+1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X-1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z+1) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z-1) == Block.sapling.blockID)//4 sapplings on sides\r\n\t\t\t\t{\r\n\t\t\t\t\tint iron = 0, gold = 0;\r\n\t\t\t\t\tint id = 0;\r\n\t\t\t\t\t//============================================2 blocks of iron and gold each diagonally===================================================\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\tif (iron == 2 && gold == 2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (HasCoalCount(e.world, e.X, e.Y, e.Z, 64))//stack of coal for it\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDecrCoalCount(e.world, e.X, e.Y, e.Z, 64);\r\n\t\t\t\t\t\t\tYC_WorldGenAstral.GenerateTree(e.world, new Random(), e.X, e.Y-1, e.Z);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z+1, 0, 0, 3);\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}\r\n\t\t//System.out.println(e.X+\" ; \" + e.Y + \" ; \" + e.Z + \" ; \" + FMLCommonHandler.instance().getEffectiveSide());\r\n\t}", "public void causeFoodExhaustion(float debug1) {\n/* 1797 */ if (this.abilities.invulnerable) {\n/* */ return;\n/* */ }\n/* */ \n/* 1801 */ if (!this.level.isClientSide) {\n/* 1802 */ this.foodData.addExhaustion(debug1);\n/* */ }\n/* */ }", "public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}", "void cook(Food food) {\n //cook in pressure cooker\n }", "float shouldEatOffTheGround(IGeneticMob geneticMob, EntityItem itemEntity);", "public boolean isAnimalFood(Material item){\r\n\t\tif(item == Material.HAY_BLOCK || item == Material.SEEDS || item == Material.ROTTEN_FLESH || item == Material.RAW_BEEF || item == Material.PORK\r\n\t\t\t\t|| item == Material.RAW_FISH){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onDamage(WorldObj obj, Items item) {\n\n\t\tif(is_stunned) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint dmg = (int) item.type.ATK;\n\t\t\n\t\tOnScreenText.AddText(\"\"+dmg, bounds.x , bounds.y + 1.1f);\n\t\t\n\t\tvelX = obj.direction * 5;\n\t\tvelY = 5;\n\t\tgrounded = false;\n\t\t\n\t\tHP -= dmg;\n\t\t\n\n\t\tstun_counter = 0;\n\t\t\n\t\tif(HP <= 0 && !isDead) {\n\t\t\tonDeath();\n\t\t}\n\t\t\n\t}", "public void eat() {\n int index;\n Cell selectedCell;\n if (getFoodArray() != null) {\n \n if (getFoodCount() > 0) {\n dayCountDown = getMaxHunger();\n index = RandomGenerator.nextNumber(getFoodCount());\n selectedCell = getFoodArray().get(index);\n \n if (getLocation().hasNotMove()) {\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n getLocation().setMoved(false);\n }\n } else if (getLocation().getEmptyCount() != 0) {\n index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n selectedCell = getLocation().getEmptyArray().get(index);\n \n if (getLocation().hasNotMove()) {\n dayCountDown--;\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n \n getLocation().setMoved(false);\n }\n } else {\n dayCountDown--;\n getLocation().setMoved(false);\n }\n }\n \n }", "public void eatFruit(Fruit fruit) {\n raiseFoodLevel(30);\n }", "private void eatCookedMeal(double eatingTime) {\n\t\t// Obtain the dry mass of the dessert\n\t\tdouble dryMass = cookedMeal.getDryMass();\n\t\t// Proportion of meal being eaten over this time period.\n\t\tdouble proportion = person.getEatingSpeed() * eatingTime;\n\n\t\tif (cumulativeProportion > dryMass) {\n\t\t\tdouble excess = cumulativeProportion - dryMass;\n\t\t\tcumulativeProportion = cumulativeProportion - excess;\n\t\t\tproportion = proportion - excess;\n\t\t}\n\n\t\tif (proportion > MIN) {\n\t\t\t// Add to cumulativeProportion\n\t\t\tcumulativeProportion += proportion;\n\t\t\t// Food amount eaten over this period of time.\n\t\t\tdouble hungerRelieved = RATIO * proportion / dryMass;\n\t\t\t\t\t\n//\t\t\tlogger.info(person + \" ate '\" + cookedMeal.getName()\n//\t\t\t\t\t+ \" currentHunger \" + Math.round(currentHunger*100.0)/100.0\n//\t\t\t\t\t+ \" hungerRelieved \" + Math.round(hungerRelieved*100.0)/100.0\n//\t\t\t\t\t+ \" proportion \" + Math.round(proportion*1000.0)/1000.0\n//\t\t\t\t\t+ \" EatingSpeed \" + Math.round(person.getEatingSpeed()*1000.0)/1000.0\n//\t\t\t\t\t+ \" foodConsumptionRate \" + Math.round(foodConsumptionRate*1000.0)/1000.0);\n\t\t\t\n\t\t\t// Change the hunger level after eating\n\t\t\treduceHunger(hungerRelieved);\n\t\n\t\t\t// Reduce person's stress over time from eating a cooked meal.\n\t\t\t// This is in addition to normal stress reduction from eating task.\n\t\t\tdouble stressModifier = STRESS_MODIFIER * (cookedMeal.getQuality() + 1D);\n\t\t\tdouble newStress = condition.getStress() + (stressModifier * eatingTime);\n\t\t\tcondition.setStress(newStress);\n\t\n\t\t\t// Add caloric energy from meal.\n\t\t\tdouble caloricEnergyFoodAmount = proportion / dryMass * PhysicalCondition.FOOD_COMPOSITION_ENERGY_RATIO;\n\t\t\tcondition.addEnergy(caloricEnergyFoodAmount);\n\t\t}\n\t}", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "@EventHandler\n\tpublic void onBuddingAmethystBreak(final BlockBreakEvent e) {\n\n\t\tItemStack heldItem = e.getPlayer().getInventory().getItemInMainHand();\n\n\t\tif (e.getBlock().getType() == Material.BUDDING_AMETHYST && isHoldingPickaxe(heldItem) && heldItem.containsEnchantment(Enchantment.SILK_TOUCH)) {\n\t\t\tLocation location = e.getBlock().getLocation();\n\t\t\tlocation.getWorld().dropItemNaturally(location, new ItemStack(Material.BUDDING_AMETHYST, 1));\n\t\t\tlocation.getBlock().setType(Material.AIR);\n\t\t}\n\t}", "@EventHandler\n\tpublic void attackMobs(EntityDamageByEntityEvent e) {\n\t\tMessages messagesConfig = plugin.getMsgs();\n\n\t\tif (e.getCause().equals(EntityDamageEvent.DamageCause.PROJECTILE)) { //Just my magic code w(o.o)w\n\t\t\treturn;\n\t\t}else if (e.getDamager() instanceof Player) {\n\t\t\tPlayer p = (Player) e.getDamager();\n\t\t\tItemStack pInv = p.getInventory().getItemInMainHand();\n\n\t\t\tif (!pInv.getType().name().contains(\"SWORD\") && !pInv.getType().name().contains(\"AXE\")) {\n\t\t\t\tif (!(e.getEntity() instanceof Chicken)) {\n\t\t\t\t\te.setCancelled(true);\n\n\t\t\t\t\tif (canSendMessage(p.getUniqueId()))\n\t\t\t\t\t\tp.sendMessage(StringUtil.inColor(messagesConfig.getCantHitWithoutSword()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void handleItem(String item) {\r\n switch (item) {\r\n // Restore all health points\r\n case \"potionvie\":\r\n setHealthPoints(5);\r\n System.out.println(\"Vous trouvez une potion de vie!\");\r\n break;\r\n // Restore health points by 1\r\n case \"coeur\":\r\n if (getHealthPoints() < 5) {\r\n setHealthPoints(getHealthPoints() + 1);\r\n }\r\n System.out.println(\"Vous trouvez un coeur!\");\r\n break;\r\n // Increase hexaforce count by 1\r\n case \"hexaforce\":\r\n setHexaforces(getHexaforces() + 1);\r\n System.out.println(\"Vous trouvez un morceau d'Hexaforce!\");\r\n break;\r\n default:\r\n break;\r\n }\r\n }", "public void attack(Entity entity, boolean aoe) {\n if(aoe) entity.damaged((int) (this.damage*0.6));\n else entity.damaged(this.damage);\n if(entity.isDead()){\n incExp(entity.getLevel()*9);\n if(entity instanceof Boss) {\n this.bossesDefeated++;\n }\n }\n }", "public void useItem(Item item) {\n\t\twillRun = pokemonRun();\n\t\t\n\t\tif (item.getClass() == items.SafariBall.class){\n\t\t\tcalcCatchProbability();\n\t\t\tisEating = false;\n\t\t\tisAngry = false;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (!isEating && !isAngry) {\n\t\t\tif (item.getClass() == items.Rock.class){\n\t\t\t\tisAngry = true;\n\t\t\t}\n\t\t\telse if (item.getClass() == items.Bait.class){\n\t\t\t\tisEating = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (isEating && !isAngry){\n\t\t\tif (item.getClass() == items.Rock.class){\n\t\t\t\tisEating = false;\n\t\t\t\tisAngry = true;\n\t\t\t}\n\t\t\telse if (item.getClass() == items.Bait.class){\n\t\t\t\tisEating = true;\n\t\t\t\tisAngry = false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tisEating = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!isEating && isAngry){\n\t\t\tif (item.getClass() == items.Bait.class){\n\t\t\t\tisEating = true;\n\t\t\t\tisAngry = false;\n\t\t\t}\n\t\t\telse if (item.getClass() == items.Rock.class){\n\t\t\t\tisEating = false;\n\t\t\t\tisAngry = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tisAngry = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tsetCatchRate(item.getCatchModifier());\n\t\tsetHP(item.hpModifier());\n\t\tcalcCatchProbability();\n\t}", "public void doTask(Entity e) {\r\n\t\tif (getTask().equals(\"heal\")) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tint healing = rand.nextInt(50) + 1;\r\n\t\t\tif (getNumTasks() > 0) {\r\n\t\t\t\tuseTask();\r\n\t\t\t\tif (Jedi.class.isInstance(e)) {\r\n\t\t\t\t\tJedi healMe = (Jedi) e;\r\n\t\t\t\t\thealMe.heal(healing);\r\n\t\t\t\t} else if (Rebel.class.isInstance(e)) {\r\n\t\t\t\t\tRebel healMe = (Rebel) e;\r\n\t\t\t\t\thealMe.heal(healing);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Medical droid heals \" + e.getName()\r\n\t\t\t\t\t\t+ \" with \" + healing + \" hp.\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"Medical Droid \"\r\n\t\t\t\t\t\t\t\t+ getName()\r\n\t\t\t\t\t\t\t\t+ \" has run out of number of tasks available to perform.\");\r\n\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Medical Droid \" + getName()\r\n\t\t\t\t\t+ \" has no tasks upon which to perform.\");\r\n\t\t}\r\n\t}", "public void eat() {\n if (!isTired()) {\n hunger -= 3;\n fatigue += 2;\n\n if (!muted) {\n System.out.println(\"eat\\t\\t|\\tYummy this is tasty!\");\n }\n }\n }", "@Override\r\n public Food createFood(List<Coordinate> obstacles) {\r\n Random random = new Random();\r\n double num = random.nextDouble();\r\n\r\n if (num <= MushroomPowerUp.rarity) {\r\n return new MushroomPowerUp(randomCoordinates(obstacles));\r\n }\r\n if (num <= DoubleScorePowerUp.rarity + MushroomPowerUp.rarity) {\r\n return new DoubleScorePowerUp(randomCoordinates(obstacles));\r\n }\r\n return new AppleFactory().createFood();\r\n }", "public void eat() {\n\t\tSystem.out.println(this.name + \" the \" + this.type + \" ate their rabbit meat.\");\n\t}", "@Test\n\tpublic final void testEat() {\n\t\tFood testFood = new Food(\"White Bread\", \"Yeast Bread\", \n\t\t\t\t\"Pams Toast sliced\", false);\n\t\t\n\t\ttestForest.addThing(testFood);\n\t\tassertTrue(\"Food in Forest\", \n\t\t\t\ttestForest.contents().contains(testFood));\n\t\t\n\t\tanimal.moveTo(testForest);\n\t\t\n\t\tanimal.eat(testFood);\n\t\tassertFalse(\"Food consumed\", \n\t\t\t\ttestForest.contents().contains(testFood));\n\t}", "@Override\n\tpublic void visit(EquipmentDefense e) {\n\t\t\n\t}", "@Override\n List<SleepGameItem> eat(List<SleepGameItem> itemList) {\n List<SleepGameItem> eatenItem = new ArrayList<>();\n for (SleepGameItem item : itemList) {\n if (!(item instanceof Wolf)) {\n // check for the distance between wolf and other items\n double distance =\n Math.hypot(Math.abs(item.getX() - this.getX()), Math.abs(item.getY() - this.getY()));\n if (distance <= 50) {\n eatenItem.add(item);\n this.setX(item.getX());\n this.setY(item.getY());\n }\n }\n }\n return eatenItem;\n }", "@ForgeSubscribe\n \tpublic void onLivingUpdate(LivingUpdateEvent event) {\n \t\t\n \t\tEntityLivingBase entity = event.entityLiving;\n \t\tEntityPlayer player = ((entity instanceof EntityPlayer) ? (EntityPlayer)entity : null);\n \t\tItemStack backpack = ItemBackpack.getBackpack(entity);\n \t\t\n \t\tPropertiesBackpack backpackData;\n \t\tif (backpack == null) {\n \t\t\t\n \t\t\tbackpackData = EntityUtils.getProperties(entity, PropertiesBackpack.class);\n \t\t\tif (backpackData == null) return;\n \t\t\t\n \t\t\t// If the entity is supposed to spawn with\n \t\t\t// a backpack, equip it with one.\n \t\t\tif (backpackData.spawnsWithBackpack) {\n \t\t\t\t\n \t\t\t\tItemStack[] contents = null;\n \t\t\t\tif (entity instanceof EntityFrienderman) {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.enderBackpack);\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 0.0F); // Remove drop chance for the backpack.\n \t\t\t\t} else {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.backpack, 1, RandomUtils.getInt(120, 240));\n \t\t\t\t\tItemBackpack backpackType = (ItemBackpack)Item.itemsList[backpack.itemID];\n \t\t\t\t\tif (RandomUtils.getBoolean(0.15)) {\n \t\t\t\t\t\t// Give the backpack a random color.\n \t\t\t\t\t\tint r = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint g = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint b = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint color = (r << 16) | (g << 8) | b;\n \t\t\t\t\t\tbackpackType.func_82813_b(backpack, color);\n \t\t\t\t\t}\n \t\t\t\t\tcontents = new ItemStack[backpackType.getColumns() * backpackType.getRows()];\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 1.0F); // Set drop chance for the backpack to 100%.\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// If the entity spawned with enchanted armor,\n \t\t\t\t// move the enchantments over to the backpack.\n \t\t\t\tItemStack armor = entity.getCurrentItemOrArmor(CurrentItem.CHEST);\n \t\t\t\tif (armor != null && armor.isItemEnchanted()) {\n \t\t\t\t\tNBTTagCompound compound = new NBTTagCompound();\n \t\t\t\t\tcompound.setTag(\"ench\", armor.getTagCompound().getTag(\"ench\"));\n \t\t\t\t\tbackpack.setTagCompound(compound);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (contents != null) {\n \t\t\t\t\t// Add random items to the backpack.\n \t\t\t\t\tInventoryStacks inventory = new InventoryStacks(contents);\n \t\t\t\t\t// Add normal random backpack loot\n \t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\tRandomUtils.random, randomBackpackItems, inventory, 20);\n \t\t\t\t\t// With a chance of 10%, add some random dungeon loot\n \t\t\t\t\tif (RandomUtils.getDouble() < 0.1) {\n \t\t\t\t\t\tChestGenHooks info = ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST);\n \t\t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\t\tRandomUtils.random, info.getItems(RandomUtils.random), inventory, 5);\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tItemBackpack.setBackpack(entity, backpack, contents);\n \t\t\t\tbackpackData.spawnsWithBackpack = false;\n \t\t\t\t\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t// If the entity doesn't have a backpack equipped,\n \t\t\t\t// but still has some backpack data, drop the items.\n \t\t\t\tif (backpackData.contents != null) {\n \t\t\t\t\tfor (ItemStack stack : backpackData.contents)\n \t\t\t\t\t\tWorldUtils.dropStackFromEntity(entity, stack, 1.5F);\n \t\t\t\t\tbackpackData.contents = null;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\treturn;\n \t\t\t\n \t\t} else backpackData = ItemBackpack.getBackpackData(entity);\n \t\t\n \t\tbackpackData.prevLidAngle = backpackData.lidAngle;\n \t\tfloat lidSpeed = 0.2F;\n \t\tif (ItemBackpack.isBackpackOpen(entity))\n \t\t\tbackpackData.lidAngle = Math.min(1.0F, backpackData.lidAngle + lidSpeed);\n \t\telse backpackData.lidAngle = Math.max(0.0F, backpackData.lidAngle - lidSpeed);\n \t\t\n \t\tString sound = Block.soundSnowFootstep.getStepSound();\n \t\t// Play sound when opening\n \t\tif ((backpackData.lidAngle > 0.0F) && (backpackData.prevLidAngle <= 0.0F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 1.0F, 0.5F);\n \t\t// Play sound when closing\n \t\tif ((backpackData.lidAngle < 0.2F) && (backpackData.prevLidAngle >= 0.2F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 0.8F, 0.3F);\n \t\t\n \t}", "public void randomEvent(){\n /*Pick a random number dictating the events that could happen.\n * 1: New gun for player\n * 2: Paying Liu Yuen\n * 3: Repairing the Ship\n */\n RandomEventLogic randomEventLogic = new RandomEventLogic(getPlayer());\n int[] randEvent = randomEventLogic.randEvent();\n int eventNumber = randEvent[0];\n int itemPrice = randEvent[1];\n\n if(eventNumber == 1){\n System.out.println(\"\\nA vendor is selling a gun for $\" + itemPrice + \" for a gun?\");\n }\n if(eventNumber == 2){\n System.out.println(\"\\nLiu Yuen asks $\" + itemPrice + \" in donation to the temple of Tin Hau, the Sea Goddess\");\n }\n if(eventNumber == 3){\n System.out.println(\"\\nMc Henry from the Hong Kong shipyard has arrived,\\nwould be willing to repair your ship for $\" + itemPrice);\n }\n\n //Only runs if the player doesn't have enough space and is given a gun\n if((eventNumber == 1 && getCargoSpace() < 10)){\n TaipanShopText taipanShopText = new TaipanShopText(getPlayer());\n taipanShopText.shop();\n }\n //Only runs if the player has 100 or greater HP and they got the ship repair man\n if((eventNumber == 3 && getPlayer().getHP() >= 100)){\n TaipanShopText taipanShopText = new TaipanShopText(getPlayer());\n taipanShopText.shop();\n }\n\n //Runs for as long as the player doesn't decide if they want to pay\n while(true){\n System.out.println(\"Would you like to pay? (Y)es or (N)o\");\n Scanner keyboard = new Scanner(System.in);\n String input = keyboard.next();\n if (input.equalsIgnoreCase(\"Y\") && getPlayer().getMoney() > itemPrice) {\n //Buy Guns\n if (eventNumber == 1 && (getCargoSpace() >= 10)) {\n setGuns(getPlayer().getGuns() + 1);\n setMoney(getPlayer().getMoney() - itemPrice);\n\n TaipanShopText taipanShopText = new TaipanShopText(getPlayer());\n taipanShopText.shop();\n }\n\n //Liu Yuen\n if (eventNumber == 2) {\n setAttackingShips(false);\n setMoney(getPlayer().getMoney() - itemPrice);\n\n TaipanShopText taipanShopText = new TaipanShopText(getPlayer());\n taipanShopText.shop();\n }\n\n //Ship Repair\n if (eventNumber == 3 && getPlayer().getHP() != 100) {\n setHP(100);\n setMoney(getPlayer().getMoney() - itemPrice);\n\n TaipanShopText taipanShopText = new TaipanShopText(getPlayer());\n taipanShopText.shop();\n }\n\n\n }\n else {\n System.out.println(\"Sorry you don't have enough money\");\n }\n //If the player decides to leave then it will send them back to TaipanShop\n if(input.equalsIgnoreCase(\"N\")){\n System.out.println(\"Aye aye Taipan, we'll send them off!\\n\");\n TaipanShopText taipanShopText = new TaipanShopText(getPlayer());\n taipanShopText.shop();\n }\n }\n\n }", "@Override\n public void eat() {\n System.out.println(\"Now doggo is eating\");\n chew();\n super.eat();\n }", "public void raiseFoodFlag(){\n\t\tif(foodFlag != true && amountWorms > 0){\n\t\t\tfoodFlag = true;\n\t\t\tsw.getInstance(this);\n\t\t\tamountWorms--;\n\t\t\tAquaFrame.initWormStatus(amountWorms);\n\t\t}\n\t\telse{\n\t\t\tint num = 0;\n\t\t\tif(amountWorms == 0){\n\t\t\t\tupdate();\n\t\t\t}\n\t\t}\n\t}", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }", "public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }", "@Override\n public void onTakeOffTeaBagRaised() {\n }", "private void haveFun() {\n\t\tint action = inputPrompt.funActivities(money);\r\n\t\tthis.money -= action;\r\n\t\t//has better effect depending on how much money you have spent\r\n\t\tthis.mentalHealth += FUNHEALTH + action;\r\n\t\tdailyTime--;\r\n\t\tinputPrompt.mainInfo(energy, physHealth, mentalHealth, money);\r\n\t\t\r\n\t}", "void eat(Edible anEdible, int amount);", "public static void main(String[] args) {\n String msg;\r\n Food[] picnicBasket = new Food[6];\r\n\r\n\r\n // Shows my name\r\n System.out.print(\"Exercise executed by Laercio da Silva\\n\");\r\n\r\n\r\n //Create some food objects\r\n Food snack1 = new Food(\"Banana\", \"Fruit\");\r\n Food snack2 = new Food(\"Yam\", \"Vegetable\");\r\n Food snack3 = new Food(\"Beef Jerky\", \"Meat\");\r\n Food snack4 = new Food(\"Yoghurt\", \"Dairy\");\r\n Food snack5 = new Food(\"Orange\", \"Fruit\");\r\n Food snack6 = new Food(\"Brussel Sprouts\", \"Vegetable\");\r\n\r\n //Add food objects to my array\r\n picnicBasket[0] = snack1;\r\n picnicBasket[1] = snack2;\r\n picnicBasket[2] = snack3;\r\n picnicBasket[3] = snack4;\r\n picnicBasket[4] = snack5;\r\n picnicBasket[5] = snack6;\r\n\r\n //Go through my picnic basket array\r\n for (int i = 0; i < picnicBasket.length; i++) {\r\n Food currentItem = picnicBasket[i];\r\n\r\n //Yuck, I hate veggies! I won't eat em!\r\n if (currentItem.foodType == \"Vegetable\") {\r\n msg = currentItem.denyIt();\r\n System.out.println(msg);\r\n } else {\r\n msg = currentItem.eatIt();\r\n System.out.println(msg);\r\n }\r\n }\r\n }", "public void upgradeAction(World world, BlockPos posOfPedestal, ItemStack itemInPedestal, ItemStack coinInPedestal)\n {\n double speed = getOperationSpeedOverride(coinInPedestal);\n double capacityRate = getCapicityModifier(coinInPedestal);\n int getMaxEnergyValue = getEnergyBuffer(coinInPedestal);\n if(!hasMaxEnergySet(coinInPedestal) || readMaxEnergyFromNBT(coinInPedestal) != getMaxEnergyValue) {setMaxEnergy(coinInPedestal, getMaxEnergyValue);}\n\n //Generator when it has fuel, make energy every second based on capacity and speed\n //20k per 1 coal is base fuel value (2500 needed in mod to process 1 item)\n //1 coal takes 1600 ticks to process default??? furnace uses 2500 per 10 seconds by default\n //so 12.5 energy per tick (250/sec)\n double speedMultiplier = (20/speed);\n int baseFuel = (int) (20 * speedMultiplier);\n int fuelConsumed = (int) Math.round(baseFuel * capacityRate);\n if(removeFuel(world,posOfPedestal,fuelConsumed,true))\n {\n doEnergyProcess(world,coinInPedestal,posOfPedestal,baseFuel,capacityRate);\n }\n else {\n int fuelLeft = getFuelStored(coinInPedestal);\n doEnergyProcess(world,coinInPedestal,posOfPedestal,fuelLeft,capacityRate);\n }\n }", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityShootBowEvent;\n }", "private static void fish(ArrayList<Item> a, ItemManager im) {\n\t\t\n\t\tdouble ph = Math.random();\n\t\tSystem.out.println(\"you rolled a \" + ph);\n\t\tif( ph > 0.7) {\n\t\t\tprintItem(im,1);\n\t\t\ta.add(im.allItems[1]);\n\t\t} else if(ph > 0.03) {\n\t\t\tprintItem(im,2);\n\t\t\ta.add(im.allItems[2]);\n\t\t} else {\n\t\t\tSystem.out.println(\"Bummer! No luck!\");\n\t\t}\t\n\t}", "@Override\n\tpublic void eatfood() {\n\t\tSystem.out.println(\"==pig : 잡식 ==\");\n\t}", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "public void eat(FoodList foods, AntList ants) {\n\t\tif (!dead){\n\t\tfor (int i = 0; i < foods.getQuantity(); i++) {\n\t\t\tif (Math.abs(foods.getFood(i).getX() - x) < 2\n\t\t\t\t\t&& Math.abs(foods.getFood(i).getY() - y) < 2\n\t\t\t\t\t&& !foods.getFood(i).isEaten()) {\n\t\t\t\tAntList.born(ants);\n\t\t\t\tfoods.getFood(i).eaten(foods);\n\t\t\t}\n\t\t}\n\t\t}\n\t}", "private void eat() {\r\n\t\tthis.energy = this.baseEnergy;\r\n\t\tArrayList<Block> foodNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(prey, \"2457\");\r\n\t\twhile (foodNeighbors.size() > 0) {\r\n\t\t\tint randomNeighbor = r.nextInt(foodNeighbors.size());\r\n\t\t\tBlock b = this.getBlock();\r\n\t\t\tBlock t = foodNeighbors.get(randomNeighbor);\r\n\t\t\tif (!t.getNextCell().getNextState().equals(predator)) {\r\n\t\t\t\tmoveCell(this, b, t, new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE),\r\n\t\t\t\t\t\tthis.ageToReproduce, this.baseEnergy));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfoodNeighbors.remove(t);\r\n\t\t}\r\n\t\tcellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR));\r\n\t}", "@Override\n public void feedingMeat() {\n\n }", "@Override\n public void eat(Puppy puppy) {\n System.out.println(\"The puppy awakens from its slumber and runs to the food ready to eat.\");\n puppy.setState(new EatState());\n puppy.incrementEatCount();\n }", "@Override\n\tpublic void eats() {\n\t\t\n\t}", "public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune) {\n/* 78 */ if (!worldIn.isRemote && worldIn.getGameRules().getGameRuleBooleanValue(\"doTileDrops\")) {\n/* */ \n/* 80 */ EntitySilverfish var6 = new EntitySilverfish(worldIn);\n/* 81 */ var6.setLocationAndAngles(pos.getX() + 0.5D, pos.getY(), pos.getZ() + 0.5D, 0.0F, 0.0F);\n/* 82 */ worldIn.spawnEntityInWorld((Entity)var6);\n/* 83 */ var6.spawnExplosionParticle();\n/* */ } \n/* */ }", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "public void onSkillUse(L2Player player, int skill_id)\n\t{\n\t\tint npcId = getNpcId();\n\t\t// check if the npc and skills used are valid\n\t\tif(!feedableBeasts.contains(npcId))\n\t\t\treturn;\n\t\tif(skill_id != SKILL_GOLDEN_SPICE && skill_id != SKILL_CRYSTAL_SPICE)\n\t\t\treturn;\n\n\t\tint food = GOLDEN_SPICE;\n\t\tif(skill_id == SKILL_CRYSTAL_SPICE)\n\t\t\tfood = CRYSTAL_SPICE;\n\n\t\tint objectId = getObjectId();\n\t\t// display the social action of the beast eating the food.\n\t\tbroadcastPacket(new SocialAction(objectId, 2));\n\n\t\t// if this pet can't grow, it's all done.\n\t\tif(growthCapableMobs.containsKey(npcId))\n\t\t{\n\t\t\t// do nothing if this mob doesn't eat the specified food (food gets consumed but has no effect).\n\t\t\tif(growthCapableMobs.get(npcId).spice[food].length == 0)\n\t\t\t\treturn;\n\n\t\t\t// more value gathering on local variables\n\t\t\tint growthLevel = growthCapableMobs.get(npcId).growth_level;\n\n\t\t\tif(growthLevel > 0)\n\t\t\t\t// check if this is the same player as the one who raised it from growth 0.\n\t\t\t\t// if no, then do not allow a chance to raise the pet (food gets consumed but has no effect).\n\t\t\t\tif(feedInfo.get(objectId) != null && feedInfo.get(objectId) != player.getObjectId())\n\t\t\t\t\treturn;\n\n\t\t\t// Polymorph the mob, with a certain chance, given its current growth level\n\t\t\tif(Rnd.chance(growthCapableMobs.get(npcId).growth_chance))\n\t\t\t\tspawnNext(player, growthLevel, food);\n\t\t}\n\t\telse if(tamedBeasts.contains(npcId))\n\t\t\tif(skill_id == ((L2TamedBeastInstance) this).getFoodType())\n\t\t\t{\n\t\t\t\t((L2TamedBeastInstance) this).onReceiveFood();\n\t\t\t\tFunctions.npcSayCustomMessage(this, mytext[Rnd.get(mytext.length)]);\n\t\t\t}\n\t}", "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "@EventHandler(priority = EventPriority.MONITOR)\n\tvoid onPlayerInteract(PlayerInteractEntityEvent event)\n\t{\n\t\tPlayer player = event.getPlayer();\n\t\tisHealingOther = true;\n\t\t\n\t\t//Check that the player right-clicked on another player.\n\t\tif (!(event.getRightClicked() instanceof Player))\n\t\t\treturn;\n\n \t//Check if the item in hand fits any of the items specified in the configuration file.\t\t\n \tSet <String> items;\n \ttry { items = config.getConfigurationSection(\"healing.\").getKeys(false); }\n \tcatch (NullPointerException e)\n \t{ return; }\n \t\n \tString item = null;\n \tfor (String i: items)\n \t\tif (player.getItemInHand().getType().toString().equalsIgnoreCase(i))\n \t\t\titem = i;\n \t\n \t//If the item isn't found, it's not a healing item.\n \tif (item == null)\n \t\treturn;\n \t\n\t\t//Check if the amount to heal is in the config\n \tSet<String> professionsRequired;\n \ttry { professionsRequired = config.getConfigurationSection(\"healing.\" + item).getKeys(false); }\n \tcatch (NullPointerException e)\n \t{ return; }\n \t\n \tfor (String p: professionsRequired)\n \t{\n \t\tProfessionStats prof = new ProfessionStats(perms, data, config, player.getUniqueId());\n \t\t\n \t\tif (p == null)\n \t\t\tcontinue;\n \t\t\n \tProfessionHandler profHandler = new ProfessionHandler(perms, data, config);\n \t\n \tdouble amountToHeal = config.getInt(\"healing.\" + item + \".\" + p + \".\"\n\t\t\t\t\t+ profHandler.getTierName(prof.getTier(p)));\n \tif (amountToHeal == 0)\n \t{\n \t\tplayer.sendMessage(ChatColor.RED + \"You do not have the skill required to do this!\");\n \t\treturn;\n \t}\n \t\n \t//Check that the recipient has missing health.\n \t\tPlayer recipient = (Player) event.getRightClicked();\n \t\tif (recipient.getHealth() >= 20)\n \t\t{\n \t\t\tplayer.sendMessage(ChatColor.YELLOW + recipient.getName() + \" does not need bandaging!\");\n \t\t\treturn;\n \t\t} \n \t\t\n \t//Check that it won't take you over the maximum amount of health.\n \tif (recipient.getHealth() + amountToHeal > 20)\n \t\tamountToHeal = 20 - recipient.getHealth();\n \t\t\n \t\tplayer.sendMessage(ChatColor.YELLOW + \"Bandaging...\");\n \t\tString name = player.getCustomName();\n \t\tif (name == null)\n \t\t\tname = player.getName();\n \t\trecipient.sendMessage(ChatColor.YELLOW + name + \" is bandaging you...\");\n \t\t\n \t\t//Schedule the task in one second.\n \t\tmakeDelayedTask(player, recipient, amountToHeal, item, p, player.getLocation(), recipient.getLocation());\n \t}\n\t}", "public void eatApple() {\n\t\teaten = peeled && !eaten ? true : false;\n\t}", "public void handleBuyEggCommand(){\n if(Aquarium.money >= EGGPRICE) {\n Aquarium.money -= EGGPRICE;\n Aquarium.egg++;\n }\n }", "@Override\n\tpublic void decide() {\n\t\tif (this.isDead) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(this.age >= this.lifeSpan) {\n\t\t\t// DIE\n\t\t\tthis.environment.removeAgent(this.getPosX(), this.getPosY());\n\t\t\tthis.isDead = true;\n\n\t\t\t// Print if required\n\t\t\tif (this.appConfig.hasTrace()) {\n\t\t\t\tSystem.out.println(\"Agent;Death;Fish;\" + this.getPosX() + \";\" + this.getPosY());\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\tthis.age++;\n\t\tthis.color = Color.GREEN;\n\t\tboolean canFuck = this.breedTime == 0;\n\n\t\tint[] coordinates = this.chooseCoordinates();\n\n\t\t// fish cannot move or fuck because there is no place to do so\n\t\tif (coordinates == null) {\n\t\t\tthis.breedTime = this.breedTime > 0 ? this.breedTime - 1 : this.breedTime;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.environment.moveAgent(this, coordinates[0], coordinates[1]);\n\n\t\t// Time to fuck-zer\n\t\tif (canFuck) {\n\t\t\tthis.fuck(this.getPosX(), this.getPosY());\n\t\t}\n\t\t// Update breedtime in order to wait the holy fuck time\n\t\telse {\n\t\t\tthis.breedTime = this.breedTime > 0 ? this.breedTime - 1 : this.breedTime;\n\t\t}\n\t\tthis.posX = coordinates[0];\n\t\tthis.posY = coordinates[1];\n\t}", "private void triggerDropItem(double percentage) {\n if (isDropped(percentage)) {\n String name;\n int tar = rd.nextInt(6);\n switch (tar) { // 7 is the total type of building card\n case 0:\n name = \"Sword\";\n break;\n case 1:\n name = \"Stake\";\n break;\n case 2:\n name = \"Staff\";\n break;\n case 3:\n name = \"Shield\";\n break;\n case 4:\n name = \"Helmet\";\n break;\n case 5:\n name = \"Armour\";\n break;\n default:\n return;\n }\n loadItem(name);\n }\n }", "public void setFoodHit(boolean b) {\n this.foodHit = b;\n }", "public static void main(String[] args) {\n\t\tMealBuilder mealBuilder = new MealBuilder();\r\n\r\n\t\tMeal vegMeal = mealBuilder.prepareVegMeal();\r\n\t\tSystem.out.println(\"Veg Meal\");\r\n\t\tvegMeal.showItems();\r\n\t\tSystem.out.println(\"Total Cost: \" + vegMeal.getCost());\r\n\r\n\t\tMeal nonVegMeal = mealBuilder.prepareNonVegMeal();\r\n\t\tSystem.out.println(\"\\n\\nNon-Veg Meal\");\r\n\t\tnonVegMeal.showItems();\r\n\t\tSystem.out.println(\"Total Cost: \" + nonVegMeal.getCost());\r\n\r\n\t\tOrderBuilder orderBuilder = new OrderBuilder();\r\n\t\torderBuilder.burger(new VegBurger(), 1);\r\n\t\torderBuilder.burger(new ChickenBurger(), 2);\r\n\t\torderBuilder.suit(mealBuilder.prepareVegMeal(), 1);\r\n\t\torderBuilder.suit(mealBuilder.prepareNonVegMeal(), 2);\r\n\t\tOrder order = orderBuilder.build();\r\n\r\n\t\tSystem.out.println(\"\\n\\nMeal--µã²Í£¨µ¥µã¡¢Ìײͣ©\");\r\n\t\tfloat cost = 0.0f, cost1 = 0.0f, cost2 = 0.0f;\r\n\t\tMeal meal = new Meal();\r\n\t\tfor (Item item : order.getBurger()) {\r\n\t\t\tmeal.addItem(item);\r\n\t\t}\r\n\t\tmeal.showItems();\r\n\t\tcost1 = meal.getCost();\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Burger subtotal Cost: \" + cost1);\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tfor (Meal meal1 : order.getSuit()) {\r\n\t\t\tmeal1.showItems();\r\n\t\t\tcost2 += meal1.getCost();\r\n\t\t}\r\n\t\tcost = cost1 + cost2;\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Meal subtotal Cost: \" + cost2);\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Total Cost: \" + cost);\r\n\t}", "private void generateItemEntities(){\n final int NUM_POTIONS = 6;\n final int NUM_IRON_ARMOUR = 1;\n final int NUM_CHESTS = 2;\n final String ITEM_BOX_STYLE = \"volcano\";\n\n\n for (int i = 0; i < NUM_POTIONS; i++) {\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n HealthPotion potion = new HealthPotion(tile,false,\n (PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n entities.add(potion);\n this.allVolcanoDialogues.add(potion.getDisplay());\n } else {\n i--;\n }\n }\n for (int i =0; i < NUM_IRON_ARMOUR; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n IronArmour ironArmour = new IronArmour(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE,200);\n entities.add(ironArmour);\n this.allVolcanoDialogues.add(ironArmour.getDisplay());\n } else {\n i--;\n }\n }\n for (int i = 0; i <NUM_CHESTS; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n Treasure chest = new Treasure(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE);\n entities.add(chest);\n this.allVolcanoDialogues.add(chest.getDisplay());\n } else {\n i--;\n }\n }\n\n Tile cooldownring = getTile(20,-7);\n CooldownRing cdring = new CooldownRing(cooldownring, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n entities.add(cdring);\n this.allVolcanoDialogues.add(cdring.getDisplay());\n\n Tile attackAmuletTile = getTile(2,14);\n Amulet attackAmulet = new Amulet(attackAmuletTile, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n entities.add(attackAmulet);\n this.allVolcanoDialogues.add(attackAmulet.getDisplay());\n\n }", "@Override\n public void mature(Farm farm, Animal animal) {\n }", "private void eatItem(String item)//Made by Lexi\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n System.out.println(\"You gave in to the chocolate temptation and died from poison in the candy bar\");\n }\n }", "private void drink()\n { \n if(i.item3 == true && i.used == false)\n {\n p.energy += 70;\n i.item3 = false;\n i.used = true;\n System.out.println(\"Energy: \" + p.energy);\n }\n else if(i.used == true && i.item3 == false) \n {\n System.out.println(\"You already drank a redbull!\"); \n }\n else if(i.item3 == false && i.used == false)\n {\n System.out.println(\"no more drinks left!\");\n }\n }", "private void generateItemEntities(){\n\t\tfinal int NUM_POTIONS = 6;\n\t\tfinal int NUM_IRON_ARMOUR = 1;\n\t\tfinal int NUM_CHESTS = 2;\n\t\tfinal String ITEM_BOX_STYLE = \"tundra\";\n\t\t\n\n\t\tfor (int i = 0; i < NUM_POTIONS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tHealthPotion potion = new HealthPotion(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(potion);\n\t\t\t\tthis.allTundraDialogues.add(potion.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_IRON_ARMOUR; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tIronArmour ironArmour = new IronArmour(tile, false,\n\t\t\t\t\t\t(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE,200);\n\t\t\t\tentities.add(ironArmour);\n\t\t\t\tthis.allTundraDialogues.add(ironArmour.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_CHESTS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tTreasure chest = new Treasure(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(chest);\n\t\t\t\tthis.allTundraDialogues.add(chest.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tTile cooldownring = getTile(18,17);\n\t\tCooldownRing cdring = new CooldownRing(cooldownring, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n\t\tentities.add(cdring);\n\t\tthis.allTundraDialogues.add(cdring.getDisplay());\n\n\t\tTile attackAmuletTile = getTile(-19,14);\n\t\tAmulet attackAmulet = new Amulet(attackAmuletTile, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n\t\tentities.add(attackAmulet);\n\t\tthis.allTundraDialogues.add(attackAmulet.getDisplay());\n\n\t}", "@Override\n public void food(){\n System.out.println(\"They are Herbivorous in nature.\");\n }", "@Override\n public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix) \n {\n if (item.itemID == mod_TFmaterials.RubyPickaxe.itemID)\n {\n \t//player.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n \tplayer.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n }\n }", "void cook(Food food) {\n }", "@Override\n\tpublic void msgRunOutOfFood(String choice, int table) {\n\t\t\n\t}", "@Override\n public void onTakeTeaBagRaised() {\n }", "private void buyItem(ShopItem item) {\n int gold = world.getCharacter().getGold().get();\n if (world.isSurvivalMode() && item.getName().equals(\"Potion\")){\n this.potionNum = 0;\n System.out.println(\"This shop has 0 Potion left.\");\n }\n if (world.isBerserkerMode() && \n (item.getName().equals(\"Helmet\")\n || item.getName().equals(\"Shield\")\n || item.getName().equals(\"Armour\"))){\n this.defenseNum = 0;\n System.out.println(\"This shop has 0 defensive item left.\");\n }\n if (item.getPrice() > gold) {\n System.out.println(\"You don't have enough money.\");\n }\n loadItem(item.getName());\n world.getCharacter().setGold(gold - item.getPrice());\n System.out.println(\"You have bought Item : \" + item.getName() + \".\");\n }", "public void livingTick() {\n super.livingTick();\n this.oFlap = this.wingRotation;\n this.oFlapSpeed = this.destPos;\n this.destPos = (float)((double)this.destPos + (double)(this.onGround ? -1 : 4) * 0.3D);\n this.destPos = MathHelper.clamp(this.destPos, 0.0F, 1.0F);\n if (!this.onGround && this.wingRotDelta < 1.0F) {\n this.wingRotDelta = 1.0F;\n }\n\n this.wingRotDelta = (float)((double)this.wingRotDelta * 0.9D);\n Vec3d vec3d = this.getMotion();\n if (!this.onGround && vec3d.y < 0.0D) {\n this.setMotion(vec3d.mul(1.0D, 0.6D, 1.0D));\n }\n\n this.wingRotation += this.wingRotDelta * 2.0F;\n if (!this.world.isRemote && this.isAlive() && !this.isChild() && getGender()==Gender.FEMALE && --this.timeUntilNextEgg <= 0) {\n this.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 1.0F, (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F + 1.0F);\n this.entityDropItem(Items.EGG);\n this.timeUntilNextEgg = this.rand.nextInt(6000) + 6000;\n }\n\n ++this.eatTicks;\n ItemStack itemstack = this.getItemStackFromSlot(EquipmentSlotType.MAINHAND);\n if (this.canEatItem(itemstack)) {\n if (this.eatTicks > 600) {\n ItemStack itemstack1 = itemstack.onItemUseFinish(this.world, this);\n if (!itemstack1.isEmpty()) {\n this.setItemStackToSlot(EquipmentSlotType.MAINHAND, itemstack1);\n }\n\n this.eatTicks = 0;\n } else if (this.eatTicks > 560 && this.rand.nextFloat() < 0.1F) {\n this.playSound(this.getEatSound(itemstack), 1.0F, 1.0F);\n this.world.setEntityState(this, (byte)45);\n }\n }\n\n }", "@Override\n\tpublic void meetRandomEvent(String event) {\n\t\tSystem.out.println(\"You meet \" + event + \"!\");\n\t\tif(event == \"PIRATE\") \n\t\t{\n\t\t\tSystem.out.println(\"You meet a pirates, you should play number games to against pirates\");\n\t\t\tgame.meetPirate();\n\t\t}\n\t\telse if (event == \"UNFORTUNATE WEATHER\"){\n\t\t\tint damage = game.meetUnfortunateWeather();\n\t\t\tSystem.out.println(\"Your ship's health has been reduced by \" + damage + \" because you just meet unfortunate weather\");\n\t\t\tgame.backToMain();\n\t\t}\n\t\telse {\n\t\t\tint reward = game.meetSailorToRescue();\n\t\t\tSystem.out.println(\"Your have been rewarded by sailors you rescued, they gave you \" + reward + \" coin\");\n\t\t\tgame.backToMain();\n\t\t}\n\t}", "public static void useBag(ReadingMaple rh, MapleClient c) {\n MapleCharacter chr = c.getPlayer();\n if (chr == null || !chr.isAlive() || chr.getMap() == null) {\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n return;\n }\n rh.skip(4);\n final short slot = rh.readShort();\n final int itemId = rh.readInt();\n final IItem toUse = chr.getInventory(MapleInventoryType.ETC).getItem(slot);\n\n if (toUse == null || toUse.getQuantity() < 1 || toUse.getItemId() != itemId || itemId / 10000 != 433) {\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n return;\n }\n boolean firstTime = !chr.getExtendedSlots().contains(toUse.getUniqueId());\n if (firstTime) {\n chr.getExtendedSlots().add(toUse.getUniqueId());\n short flag = toUse.getFlag();\n flag |= ItemFlag.UNTRADEABLE.getValue();\n toUse.setFlag(flag);\n // c.getPlayer().extendedslots_changed = true;\n c.getSession().writeAndFlush(MainPacketCreator.addInventorySlot(MapleInventoryType.EQUIP, toUse));\n }\n c.getSession().writeAndFlush(\n MainPacketCreator.openBag(chr.getExtendedSlots().indexOf(toUse.getUniqueId()), itemId, firstTime));\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n }", "public String e_(ItemStack paramamj)\r\n/* 14: */ {\r\n/* 15:19 */ if (paramamj.getDamage2() == 1) {\r\n/* 16:20 */ return \"item.charcoal\";\r\n/* 17: */ }\r\n/* 18:22 */ return \"item.coal\";\r\n/* 19: */ }", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityDamageByEntityEvent;\n }", "public static void main(String[] args) {\n\r\n Ingredient ingredient=new Ingredient();\r\n\r\n Food pasta=new Pasta();\r\n String pastaItems=ingredient.getPastaItems();\r\n pasta.prepareFood(pastaItems);\r\n System.out.println(pasta.deliverFood());\r\n\r\n\r\n System.out.println(\"------------FACADE---------------\");\r\n\r\n System.out.println(Waiter.deliveryFood(FoodType.PASTA));\r\n\r\n\r\n\r\n\r\n\r\n\r\n }", "public void eat() {\n\t\tSystem.out.println(\"Ape eating\");\n\t}", "void breed() {\n\t\tSystem.out.println(\"Ape breeding\");\n\t}", "private boolean blowBlockUp(final Location at, String eventTypeRep) {\n if (at == null) {\n return false;\n }\n Block block = at.getBlock();\n if (block == null) {\n return false;\n }\n if (block.getType() == Material.AIR) {\n return false;\n }\n\n if (!MaterialManager.getInstance().contains(block.getType().name())) {\n return false;\n }\n\n if (eventTypeRep.equals(\"CraftTNTPrimed\") && !MaterialManager.getInstance().getTntEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftSnowball\") && !MaterialManager.getInstance().getCannonsEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftCreeper\") && !MaterialManager.getInstance().getCreepersEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftWither\") && !MaterialManager.getInstance().getWithersEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftMinecartTNT\") && !MaterialManager.getInstance().getTntMinecartsEnabled(block.getType().name())) {\n return false;\n }\n if ((eventTypeRep.equals(\"CraftFireball\") || eventTypeRep.equals(\"CraftGhast\")) && !MaterialManager.getInstance().getGhastsEnabled(block.getType().name())) {\n return false;\n }\n\n if (MaterialManager.getInstance().getDurabilityEnabled(block.getType().name()) && MaterialManager.getInstance().getDurability(block.getType().name()) > 1) {\n TimerState state = checkDurabilityActive(block.getLocation());\n if (ConfigManager.getInstance().getEffectsEnabled()) {\n final double random = Math.random();\n if (random <= ConfigManager.getInstance().getEffectsChance()) {\n block.getWorld().playEffect(at, Effect.MOBSPAWNER_FLAMES, 0);\n }\n }\n if (state == TimerState.RUN || state == TimerState.INACTIVE) {\n int currentDurability = getMaterialDurability(block);\n currentDurability++;\n if (checkIfMax(currentDurability, block.getType().name())) {\n // counter has reached max durability, remove and drop an item\n dropBlockAndResetTime(at);\n } else {\n // counter has not reached max durability damage yet\n if (!MaterialManager.getInstance().getDurabilityResetTimerEnabled(block.getType().name())) {\n addBlock(block, currentDurability);\n } else {\n startNewTimer(block, currentDurability, state);\n }\n }\n } else {\n if (!MaterialManager.getInstance().getDurabilityResetTimerEnabled(block.getType().name())) {\n addBlock(block, 1);\n } else {\n startNewTimer(block, 1, state);\n }\n if (checkIfMax(1, block.getType().name())) {\n dropBlockAndResetTime(at);\n }\n }\n } else {\n destroyBlockAndDropItem(at);\n }\n return true;\n }", "protected void dropFood() {\r\n\t\tthis.food++;\r\n\t}", "@Test\r\n\tpublic void testBonusEnergia() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0,bonusEnergia, 0, 0, 0, null, null);\r\n\t\t\t\r\n\t\t\tAssert.assertEquals(100, itemDes.getBonusEnergia());\r\n\t\t\t\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}\t\t\r\n\t}", "@Override\n\t\t\tpublic void hit(DamageEvent e) {\n\t\t\t\tonHit(e.dmged, e.item);\n\t\t\t}", "public void goAdventuring() {\n\n game.createRandomMonster(4);\n if(RandomClass.getRandomTenPercent() == 5) {\n System.out.println(\"Your are walking down the road... Everything looks peaceful and calm.. Hit enter to continue!\");\n sc.nextLine();\n\n } else {\n game.battle();\n p.checkXp();\n }\n }" ]
[ "0.6101966", "0.60963035", "0.6091165", "0.6045007", "0.5973083", "0.5959679", "0.59301347", "0.59116405", "0.590254", "0.59020936", "0.5885899", "0.58813226", "0.580867", "0.5807312", "0.5793812", "0.57839495", "0.57776815", "0.57700425", "0.5761535", "0.5751068", "0.5744263", "0.5741246", "0.57337385", "0.57324463", "0.57232636", "0.5721023", "0.5710677", "0.5700082", "0.5661161", "0.5655929", "0.56404126", "0.5604557", "0.5582031", "0.5573173", "0.5561346", "0.5555972", "0.555192", "0.5522841", "0.55196226", "0.5514586", "0.5514274", "0.5513026", "0.5508004", "0.5505536", "0.5498537", "0.54942477", "0.54861027", "0.5486075", "0.5472609", "0.54579026", "0.5453534", "0.544996", "0.54466236", "0.5444503", "0.5428193", "0.54225534", "0.5418768", "0.5416587", "0.54117084", "0.5405131", "0.5401282", "0.539663", "0.5392486", "0.53872514", "0.53862494", "0.53848964", "0.53829", "0.53796613", "0.5377691", "0.5362062", "0.5361621", "0.53458154", "0.53338736", "0.5333348", "0.53252727", "0.53231764", "0.5320246", "0.53197664", "0.5313087", "0.53080636", "0.52981865", "0.5297039", "0.5296493", "0.52935624", "0.5292436", "0.5290127", "0.52856636", "0.5281266", "0.5280144", "0.5276051", "0.52664745", "0.52546805", "0.5254441", "0.525165", "0.5236293", "0.5235493", "0.52336186", "0.52324134", "0.52323496", "0.5231999" ]
0.6254629
0
Does not have parameters. String is ignored.
@Override public void setParameter(String parameters) { // dummy }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getString(String paramString) {\n }", "void method(String string);", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "private static void m9058c(String str) {\n StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[3];\n String className = stackTraceElement.getClassName();\n String methodName = stackTraceElement.getMethodName();\n throw ((IllegalArgumentException) m9050a(new IllegalArgumentException(\"Parameter specified as non-null is null: method \" + className + \".\" + methodName + \", parameter \" + str)));\n }", "@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public org.apache.spark.ml.param.Param<java.lang.String> handleInvalid () { throw new RuntimeException(); }", "public abstract String paramsToString();", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "protected testString(String text)\r\n\t{\r\n\t\tthis.text = text;\r\n\t}", "private NameBuilderString(String text) {\r\n\t\t\tthis.text = Objects.requireNonNull(text);\r\n\t\t}", "protected String getString(String text, Object... args){\n return text;\n }", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "public Specific(@NotNull String str) {\n super(str, null);\n Intrinsics.checkNotNullParameter(str, \"title\");\n }", "default T handleString(String val) {\n throw new UnsupportedOperationException();\n }", "void mo37759a(String str);", "@Override\n public boolean validate(final String param) {\n return false;\n }", "public boolean canProvideString();", "public abstract void mo70704a(String str);", "@Override\n public void handleString(String s) {\n\n }", "public abstract void mo20160a(String str);", "@Test\n public void nonNullString() {\n }", "@Implementation\n protected String getParameters(String keys) {\n return null;\n }", "public abstract void mo4373a(String str);", "private void saveString(String paramString1, String paramString2) {\n }", "void mo88522a(String str);", "void mo29849a(zzxz zzxz, String str) throws RemoteException;", "@Test\n public void nonNullStringPass() {\n }", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "abstract String mo1747a(String str);", "@Override\n\tpublic void test(String t) {\n\t\t\n\t}", "public abstract void setString(String paramString) throws InvalidHeaderException;", "UnknownCommand(String bogusCommand)\n {\n this.bogusCommand = bogusCommand; \n }", "void mo5871a(String str);", "@Test\n public void testWithEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{}\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "void mo85415a(String str);", "String toParameter();", "void mo9697a(String str);", "private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }", "private void remove(String paramString) {\n }", "void mo41089d(String str);", "private void error(String string) {\n\t\r\n}", "@Override\r\n\tpublic String testString(String string) {\n\t\treturn \"test -- hhh\";\r\n\t}", "void mo1791a(String str);", "public void bla(String username) {\n }", "java.lang.String getParameterValue();", "@Override\n\tpublic boolean isParam() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void call(String value) {\n\t\t\r\n\t}", "void mo12635a(String str);", "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n\tpublic void javaMethodBaseWithNSStringArg(xNSString string) {\n\t\t\n\t}", "void mo1932a(String str);", "void mo5872a(String str, Data data);", "public RamString(String string) throws IllegalArgumentException{\r\n if (string == null) {\r\n throw new IllegalArgumentException(\"Input cannot be null.\");\r\n }\r\n this.string = string; }", "public void setParameters(String parameters);", "public abstract boolean accepts(String string);", "void mo3768a(String str);", "public abstract String getString();", "public abstract String getString();", "public abstract String mo24851a(String str);", "public void method_213(String var1) {}", "@Override // com.amap.api.col.stln3.nc\n public final /* synthetic */ Object a(String str) throws AMapException {\n return 0;\n }", "private String getStringParamEncoded(String theAlias) {\n String name = getAlias(theAlias);\n\n if (!allParams.containsKey(name)) {\n System.out.println(\"Careful, you are getting the value of parameter: \" + name + \" but the parameter hasn't been added...\");\n System.exit(1);\n }\n if (!stringParams.containsKey(name)) {\n System.out.println(\"Careful, you are getting the value of parameter: \" + name + \" but the parameter isn't a String parameter...\");\n System.exit(1);\n }\n\n return stringParams.get(name);\n }", "@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}", "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithNonString() {\n\t\tprocessor.execute(1234, ANONYMOUS_CSVCONTEXT);\n\t}", "public static boolean b(String paramString) {\n/* 26 */ return (paramString == null || \"\".equals(paramString));\n/* */ }", "@Test\n public void testRequireAtomString_GenericType_String_2() {\n LOGGER.info(\"requireAtomString\");\n final AtomString actual = new AtomString();\n final AtomString expected = requireAtomString(actual, \"Message\");\n assertEquals(expected, actual);\n }", "@Test\n public void testWithNonEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{\\\"test\\\":1}\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public void simpleCommunication(String communication);", "void mo29850a(zzxz zzxz, String str, String str2) throws RemoteException;", "private StringAssert() {\n }", "public void m23077a(String str) {\n }", "public String getParameter(String paramString) {\n/* 191 */ return this.stub.getParameter(paramString);\n/* */ }", "private void sendToClient(String string) {\n\t\r\n}", "@Override\n public String visit(ReceiverParameter n, Object arg) {\n return null;\n }", "static int type_of_call(String passed){\n\t\treturn 1;\n\t}", "public bwq(String paramString1, String paramString2)\r\n/* 10: */ {\r\n/* 11: 9 */ this.a = paramString1;\r\n/* 12:10 */ this.f = paramString2;\r\n/* 13: */ }", "@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}", "public ParameterNotFoundException( String s )\n\t{\n\t\tsuper( s );\n\t}", "public TextField(String paramString) throws HeadlessException {\n/* 167 */ this(paramString, (paramString != null) ? paramString.length() : 0);\n/* */ }", "public abstract void setString(String paramString1, String paramString2) throws InvalidDLNAProtocolAttributeException;", "public boolean hasStringParam(String paramName);", "public boolean isString() {\n return false;\n }", "void mo1935c(String str);", "public StringUnionFunc() {\n\t super.addLinkableParameter(\"str1\"); \n\t\t super.addLinkableParameter(\"str2\"); \n }", "public abstract void mo9248b(String str, boolean z);", "String getParamsAsString();", "public String no(String str) {\n\t\treturn str;\r\n\t}", "public abstract void mo9249c(String str, boolean z);", "public void doSomething(Object str){\n System.out.println(\"Base impl:\"+str);\n }", "public void m23080b(String str) {\n }", "@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic void run(String... paramArrayOfString) throws Exception {\r\n\t\t\r\n\t}", "void mo87a(String str);", "Data mo12944a(String str) throws IllegalArgumentException;", "public SipsaExcepcion(String string) {\n super(string);\n }", "@Override\n public String getRequestString() {\n return null;\n }" ]
[ "0.66076654", "0.6430057", "0.608427", "0.6080107", "0.6069631", "0.60602844", "0.6047741", "0.60375667", "0.6036138", "0.6016647", "0.6000226", "0.5999912", "0.5935457", "0.59108895", "0.5900235", "0.5894665", "0.588821", "0.58863807", "0.5844865", "0.5820203", "0.5797278", "0.5784989", "0.57797194", "0.5774143", "0.57724875", "0.57717246", "0.5771024", "0.57655114", "0.57647884", "0.57244056", "0.5721445", "0.5710221", "0.57070756", "0.5702946", "0.57023424", "0.5698737", "0.56941247", "0.5693538", "0.56874424", "0.5680536", "0.5672834", "0.5666114", "0.56503505", "0.5640017", "0.5638362", "0.5622944", "0.5621166", "0.56064844", "0.5602099", "0.56006926", "0.5592072", "0.5590726", "0.5587132", "0.5579085", "0.5573605", "0.5560043", "0.5558022", "0.5555925", "0.5546587", "0.5546587", "0.5534169", "0.55233747", "0.55210227", "0.55183667", "0.55124897", "0.55124897", "0.5507829", "0.5497046", "0.5496309", "0.54955715", "0.5492484", "0.54895955", "0.5487564", "0.54852885", "0.5479098", "0.54643774", "0.54594725", "0.54594123", "0.5457042", "0.54546887", "0.5441408", "0.5439515", "0.54393226", "0.5434672", "0.5433796", "0.54329574", "0.5431945", "0.5429416", "0.54284704", "0.5424904", "0.54238945", "0.5423629", "0.54209954", "0.5414521", "0.5414516", "0.5412033", "0.54114735", "0.5408504", "0.5408483", "0.54064757" ]
0.6159293
2
MachineCoreEntity constructor pass in the given Tier and an ID.
public MachineCoreEntity(MachineTier theTier) { super(); tier = theTier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseVedioscore (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "public InventoryEntity(int id) {\n\t\tthis.id = id;\n\t}", "public Vehicle(int id) \n\t{\n\t\t// each vehicle has a different identifying number\n\t\tthis.id = id;\n\t}", "public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }", "public BaseCmsTT (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "public Dossier(int id, String name, String archiveObject, String lastUse, String createdOn, int cabinetRowID){\r\n this.id = id;\r\n this.name = name;\r\n this.archiveObject = archiveObject;\r\n this.lastUse = lastUse;\r\n this.createdOn = createdOn;\r\n this.cabinetRowID = cabinetRowID;\r\n }", "protected AssigneeEntity(I id) {\n super(id);\n this.idAsAny = Identifier.pack(id);\n }", "public EntityID() {\n }", "public BaseInventory (long id) {\r\n\t\tsuper(id);\r\n\t}", "public CmsMajorComp(java.lang.Integer id) {\r\n\t\tsuper(id);\r\n\t}", "public BaseDatum(Long id) {\n\t\tsetId(id);\n\t}", "public EmployeeLanguage(Integer id) {\n super.id=id;\n }", "public Employee(String id) {\n super(id);\n }", "public Machine() {\n\t\tsuper();\n\t}", "public Processo(int id, int tp, int tc, int tb) {\n this.id = id;\n this.tp = tp;\n this.tc = tc;\n this.tb = tb;\n }", "protected CreateMachineNodeModel() {\r\n super(0,1);\r\n }", "public Entity(TileMap tm, LevelState ls) {\n\t\ttileMap = tm;\n\t\ttileSize = tm.getTileSize();\n\t\tlevelState = ls;\n\t}", "public Instance(String id, String clasz) {\r\n \t\tthis.id = id;\r\n \t\tthis.clasz = clasz;\r\n \r\n \t\tthis.parameters = new HashMap<String, Expression>();\r\n \t\tthis.attributes = new HashMap<String, IAttribute>();\r\n \r\n \t\tthis.hierarchicalId = new ArrayList<String>(1);\r\n \t\tthis.hierarchicalId.add(id);\r\n \r\n \t\tthis.hierarchicalClass = new ArrayList<String>(1);\r\n \t\tthis.hierarchicalClass.add(clasz);\r\n \t}", "TableImpl(int id) {\n this.id = id;\n }", "public OSMAttributedEntity(long id, Map<String, Object> fields) {\n\t\tthis.id = id;\n\n\t\t// for safety reasons, we duplicated the fields hash,\n\t\t// safety first, then performance.\n\t\tif (fields != null) {\n\t\t\tfields = new HashMap<String, Object>(fields);\n\t\t}\n\n\t\tthis.fields = fields;\n\t}", "public CmsMajorComp(\r\n\t\t\tjava.lang.Integer id,\r\n\t\t\tjava.lang.String name,\r\n\t\t\tjava.lang.String typeid,\r\n\t\t\tjava.lang.Integer recommand,\r\n\t\t\tjava.lang.String province,\r\n\t\t\tjava.lang.String city,\r\n\t\t\tjava.lang.String country,\r\n\t\t\tjava.lang.String pcode,\r\n\t\t\tjava.lang.String address,\r\n\t\t\tjava.lang.String telephone,\r\n\t\t\tjava.lang.String fax,\r\n\t\t\tjava.lang.String chief,\r\n\t\t\tjava.lang.String chiefTelephone,\r\n\t\t\tjava.lang.Integer isalliance,\r\n\t\t\tjava.lang.Integer allianceid,\r\n\t\t\tjava.lang.String auditBy,\r\n\t\t\tjava.util.Date auditTime,\r\n\t\t\tjava.lang.String createBy,\r\n\t\t\tjava.util.Date createTime,\r\n\t\t\tjava.lang.String image,\r\n\t\t\tjava.lang.String guidepic,\r\n\t\t\tjava.lang.Integer compLevel,\r\n\t\t\tjava.lang.String tag,\r\n\t\t\tjava.lang.String lng,\r\n\t\t\tjava.lang.String lat,\r\n\t\t\tjava.lang.Integer isoffset,\r\n\t\t\tjava.lang.String sonId,\r\n\t\t\tjava.lang.String content,\r\n\t\t\tjava.lang.String proname,\r\n\t\t\tjava.lang.String normalPrice,\r\n\t\t\tjava.lang.String holddayPrice,\r\n\t\t\tjava.lang.String mtype,\r\n\t\t\tjava.lang.Integer mtrust,\r\n\t\t\tjava.lang.Integer mdevice,\r\n\t\t\tjava.lang.String mcontent,\r\n\t\t\tjava.lang.Integer isact,\r\n\t\t\tjava.lang.String actContent) {\r\n\r\n\t\tsuper(id,\r\n\t\t\t\tname,\r\n\t\t\t\ttypeid,\r\n\t\t\t\trecommand,\r\n\t\t\t\tprovince,\r\n\t\t\t\tcity,\r\n\t\t\t\tcountry,\r\n\t\t\t\tpcode,\r\n\t\t\t\taddress,\r\n\t\t\t\ttelephone,\r\n\t\t\t\tfax,\r\n\t\t\t\tchief,\r\n\t\t\t\tchiefTelephone,\r\n\t\t\t\tisalliance,\r\n\t\t\t\tallianceid,\r\n\t\t\t\tauditBy,\r\n\t\t\t\tauditTime,\r\n\t\t\t\tcreateBy,\r\n\t\t\t\tcreateTime,\r\n\t\t\t\timage,\r\n\t\t\t\tguidepic,\r\n\t\t\t\tcompLevel,\r\n\t\t\t\ttag,\r\n\t\t\t\tlng,\r\n\t\t\t\tlat,\r\n\t\t\t\tisoffset,\r\n\t\t\t\tsonId,\r\n\t\t\t\tcontent,\r\n\t\t\t\tproname,\r\n\t\t\t\tnormalPrice,\r\n\t\t\t\tholddayPrice,\r\n\t\t\t\tmtype,\r\n\t\t\t\tmtrust,\r\n\t\t\t\tmdevice,\r\n\t\t\t\tmcontent,\r\n\t\t\t\tisact,\r\n\t\t\t\tactContent);\r\n\t}", "public Determiner(String id, String baseform) {\n\t\tthis(baseform);\n\t\tsetID(id);\n\t}", "public ClientDetailsEntity() {\n\t\t\n\t}", "public EastNbkmdzb (EastNbkmdzbPK id) {\n\t\tsuper(id);\n\t}", "@Ignore\n public Crime(UUID id) {\n mId = id;\n mDate = new Date();\n }", "public Systemlog (java.lang.Integer rowid) {\n\t\tsuper(rowid);\n\t}", "public InHouse(int id, String name, double price, int stock, int min, int max, int machineId) {\n super(id, name, price, stock, min, max);\n this.machineId = machineId;\n }", "public InHouse(int id, String name, double price, int stock, int min, int max, int machineId) {\n super(id, name, price, stock, min, max);\n this.machineId = machineId;\n }", "protected TaskFlow( final String id ) {\n this.id = id;\n }", "public ProductTestReport(Long id)\n/* 26: */ {\n/* 27:27 */ super(id);\n/* 28: */ }", "protected Machine(final RestContext<AbiquoApi, AbiquoAsyncApi> context, final MachineDto target) {\n super(context, target);\n }", "Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);", "public Spec(int id, String name) {\n super();\n this.id = id;\n this.name = name;\n }", "public Edge(int id) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t}", "public ClientEntity(final Entity e) {\r\n\t\tsuper(e);\r\n\t}", "public UniverseBase(String id) {\n\n this(id, false);\n }", "protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }", "public Lector(BD gestor, int id)\n {\n this.base_de_datos=gestor;\n this.id=id;\n }", "public Entity() throws Throwable {\r\n\t\tThingsException.softwareProblem(\"Entry() instantiated with default constructor.\");\r\n\t}", "protected State(Flow flow, String id) throws IllegalArgumentException {\r\n\t\tsetId(id);\r\n\t\tsetFlow(flow);\r\n\t}", "public BaseOrder (java.lang.Long id) {\r\n\t\tthis.setId(id);\r\n\t\tinitialize();\r\n\t}", "public Entity(Entity entity) {\n this(entity.getCoordinates(), entity.getIcon(), entity.canChangeRooms());\n }", "public AddEntityCommand(SceneBase scene, String id) {\n\t\tthis(scene, id, null);\n\t}", "public Car(Integer id, String make, String logoFileName, String makeUrl, String model, Integer year, Integer price, Integer mileage, Integer cityMPG, Integer highwayMPG, String engineType, String driveType) {\n this.id = id;\n this.make = make;\n this.logoFileName = logoFileName;\n this.makeUrl = makeUrl;\n this.model = model;\n this.year = year;\n this.price = price;\n this.mileage = mileage;\n this.cityMPG = cityMPG;\n this.highwayMPG = highwayMPG;\n this.engineType = engineType;\n this.driveType = driveType;\n }", "public SysDept (java.lang.Long id) {\n\t\tsuper(id);\n\t}", "Vehicle(String name, String id, String client_pass){\n super(name, id, client_pass);\n System.out.println(\"\\n\\tWhich type of Health Insurance do you want?\\n\\n\");\n this.printDetails();\n int op = input.nextInt();\n this.planChooser(op);\n }", "public NamedEntity(Long id, String name) {\n super(id);\n this.name = name;\n }", "public TeamStudent(TeamStudentPK id) {\r\n\t\tthis.id = id;\r\n\t}", "public TPMTransportLog( int tpmManufacturer )\r\n {\r\n super();\r\n this.tpmManufacturer = tpmManufacturer;\r\n }", "public BaseVedioscore (\n\t\tjava.lang.Integer id,\n\t\tVediotape vedio,\n\t\tUser examiner,\n\t\tUser operator,\n\t\tjava.lang.Float storyScore,\n\t\tjava.lang.Float techScore,\n\t\tjava.lang.Float performScore,\n\t\tjava.lang.Float innovateScore,\n\t\tjava.lang.Float score,\n\t\tjava.lang.Integer award,\n\t\tjava.lang.Integer orientation,\n\t\tjava.lang.Integer purchase,\n\t\tjava.util.Date dateExamine) {\n\n\t\tthis.setId(id);\n\t\tthis.setVedio(vedio);\n\t\tthis.setExaminer(examiner);\n\t\tthis.setOperator(operator);\n\t\tthis.setStoryScore(storyScore);\n\t\tthis.setTechScore(techScore);\n\t\tthis.setPerformScore(performScore);\n\t\tthis.setInnovateScore(innovateScore);\n\t\tthis.setScore(score);\n\t\tthis.setAward(award);\n\t\tthis.setOrientation(orientation);\n\t\tthis.setPurchase(purchase);\n\t\tthis.setDateExamine(dateExamine);\n\t\tinitialize();\n\t}", "public Ted(int id, String firmaAdi, String ulke, String sehir, String madde,\n int miktar, String uTarihi, int raf, int satisFiyati) {\n this.id = id;\n this.miktar = miktar;\n this.raf = raf;\n this.satisFiyati = satisFiyati;\n this.firmaAdi = firmaAdi;\n this.ulke = ulke;\n this.sehir = sehir;\n this.uTarihi = uTarihi;\n this.madde = madde;\n }", "public Machine() {\n this(MachineType.values()[0]);\n }", "public ExcursionEntity() {\n\t}", "public ContentType (java.lang.Integer id) {\n\t\tsuper(id);\n\t}", "public EmpleadoPlantilla(com.matisse.MtDatabase db, int mtOid) {\n super(db, mtOid);\n }", "public ExperimentRecord(Integer id, Integer project, String name, String description, Timestamp created) {\n super(Experiment.EXPERIMENT);\n\n set(0, id);\n set(1, project);\n set(2, name);\n set(3, description);\n set(4, created);\n }", "public JobID(byte[] bytes) {\n super(bytes);\n }", "public Model(int id) {\n\t\tthis.id = id;\n\t}", "public Espacio (int id, int capacidad, int ocupacion, TipoEspacio tipo, Localizacion localizacion){\n this.id = id;\n this.capacidad = capacidad;\n this.ocupacion = ocupacion;\n this.TIPO = tipo;\n this.localizacion = localizacion;\n }", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "public Elevator(final int id) {\n this.id = id;\n }", "public Unit (java.lang.Integer unitId) {\n\t\tsuper(unitId);\n\t}", "public BbsOperation (java.lang.Integer id) {\r\n\t\tsuper(id);\r\n\t}", "public static CauHinhThuTienTet create(long cauHinhThuTienTetId) {\n\t\treturn getPersistence().create(cauHinhThuTienTetId);\n\t}", "public Vehicle(Integer id, Integer year, String make, String model) {\n this.id = id;\n this.year = year;\n this.make = make;\n this.model = model;\n }", "public BaseOaReceiveStep (Long id) {\r\n\t\tthis.setId(id);\r\n\t\tinitialize();\r\n\t}", "public static void setCoreId(ExtendedRecord er, ALATaxonRecord tr) {\n Optional.ofNullable(er.getCoreId()).ifPresent(tr::setCoreId);\n }", "public DVD(int id) {\n this.id = id;\n }", "public EntityID(PortletID portletID) {\n this.portletID = portletID;\n }", "public LogVendorRequest (long id) {\r\n\t\tsuper(id);\r\n\t}", "public TileEntityBasicMachine(String soundPath, String name, String path, int perTick, int ticksRequired, int maxEnergy)\n\t{\n\t\tsuper(name, maxEnergy);\n\t\tENERGY_PER_TICK = perTick;\n\t\tTICKS_REQUIRED = currentTicksRequired = ticksRequired;\n\t\tsoundURL = soundPath;\n\t\tguiTexturePath = path;\n\t\tisActive = false;\n\t\tif(PowerFramework.currentFramework != null)\n\t\t{\n\t\t\tpowerProvider = PowerFramework.currentFramework.createPowerProvider();\n\t\t\tpowerProvider.configure(5, 2, 10, 1, maxEnergy/10);\n\t\t}\n\t}", "public Machine(Machine machine, int days){\n this.daySale = machine.daySale;\n this.priceBought = machine.priceBought;\n this.priceResold = machine.priceResold;\n this.dailyProfit = machine.dailyProfit;\n this.machineCost = priceBought - priceResold;\n this.minDaysProfitable = machine.minDaysProfitable - 1;\n this.daysLefts = machine.daysLefts - days;\n this.maximumMachineProfit = (this.dailyProfit * this.daysLefts) + this.priceResold;\n }", "public FieldStation(String id, String name){\n this.id = id;\n this.name = name;\n \n //Initialises the SetOfSensors sensors.\n sensors = new SetOfSensors();\n }", "public TrapTiles()\r\n {\r\n id = 604 ; \r\n }", "public ShopArticle(java.lang.Long id) {\r\n\t\tsuper(id);\r\n\t}", "public Transaction( int id, int np, long msecs) {\n bar = new CyclicBarrier(np, null);\n txId = id;\n numParties = np;\n timeout = msecs;\n }", "public BaseStoreGrnM (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "public Builder setMachineIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }", "public ExpertiseEntity() {\n }", "public Entity(String emailID,String name){ \n\t\tthis.emailID=emailID;\n\t\tthis.name=name;\n\t}", "public EntityHierarchyItem() {\n }", "public PurchaseRequestAttachment(Integer id) {\r\n super(id);\r\n }", "protected abstract E createEntity(String line);", "public Classroom(int id, String trainer, Set<Trainee> trainees) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.trainer = trainer;\n//\t\tthis.trainees = trainees;\n\t}", "public Entity(String name, Core core, float d, float e, int radius){\n\t\tsuper(new Vector2D(d,e), radius);\n\t\tthis.name = name;\n\t\tthis.core = core;\n\t}", "public Base(int id, int version) {\n this.id = id;\n this.version = version;\n }", "public Tenant(String description, long id, ArrayList<MacAddress> macList) {\n\t\tsuper();\n\t\tthis.description = description;\n\t\tthis.id = id;\n\t\tthis.macList = macList;\n\t}", "public Depot (String id, int node){\r\n this.id=id;\r\n this.node=node;\r\n }", "public ChoixEntreprise(final Long id_entreprise, final Long id_etudiant, final int ordre, final int duree) {\n this.id_entreprise = id_entreprise;\n this.id_etudiant = id_etudiant;\n this.ordre = ordre;\n this.duree = duree;\n }", "public StorageOperation(long streamSegmentId) {\n super();\n setStreamSegmentId(streamSegmentId);\n }", "public TransportationPersonnel(){\n super();\n this.branchID =0;\n }", "public TVendor(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public EnvEntityClient(float x, float y, float z, long time) {\n\t\tsuper(x,y,z,time);\n\t\tgenerate();\n\t}", "public Core(String name) {\r\n\t\tsuper(name);\r\n\t}", "public Student(int id) {\n\t\tthis.id = id;\n\t}", "public BaseBoard (java.lang.Integer _id) {\n\t\tthis.setId(_id);\n\t\tinitialize();\n\t}", "public TIdAddPotentialServicesEntity() {\n\t\tsuper();\n }", "public Entity(int n, Type t, Priority p, O thing, WhoAmI imposedId, WhoAmI creatorId) throws ThingsException {\r\n\t\t\r\n\t\t// Set fields\r\n\t\tnumeric = n;\r\n\t\tmyThing = thing;\r\n\t\tmyPriority = p;\r\n\t\tmyType = t;\r\n\t\tmyId = imposedId;\r\n\t\tmyCreatorId = creatorId;\r\n\t\t\r\n\t\t// Fix ids?\r\n\t\tif (myId == null) myId = cachedNobody;\r\n\t\tif (myCreatorId == null) myCreatorId = cachedNobody;\t\r\n\t\t\r\n\t\t// Stamp the time.\r\n\t\tstamp = System.currentTimeMillis();\r\n\t}", "public Employee(int id, String firstName, String lastName, String company) {\n this(firstName, lastName, company);\n\n this.id = id;\n }" ]
[ "0.62739277", "0.5818446", "0.57552445", "0.56606764", "0.56138676", "0.5533413", "0.5499997", "0.5477099", "0.5446669", "0.53898734", "0.5370468", "0.53535664", "0.53332376", "0.53313047", "0.5297554", "0.5297332", "0.52197474", "0.5213488", "0.5182407", "0.5179939", "0.51725835", "0.51687944", "0.51633865", "0.51246804", "0.51126456", "0.5091204", "0.50735277", "0.50735277", "0.5073336", "0.50730777", "0.5071511", "0.5068225", "0.50681347", "0.50648016", "0.5064061", "0.5049529", "0.50386477", "0.5028386", "0.50268066", "0.502594", "0.50159043", "0.5007717", "0.50050694", "0.5004326", "0.50001353", "0.499405", "0.49893093", "0.498374", "0.49738735", "0.49564046", "0.49551463", "0.49427024", "0.49350655", "0.49329615", "0.4925181", "0.49137384", "0.4913558", "0.4911618", "0.49108753", "0.4908925", "0.48946628", "0.48881283", "0.4884307", "0.48840943", "0.487612", "0.4870151", "0.48676988", "0.4866587", "0.48607603", "0.48604587", "0.4854942", "0.4854748", "0.48542964", "0.48514512", "0.485092", "0.48508102", "0.48505268", "0.4848489", "0.4835496", "0.48215634", "0.48209032", "0.48176643", "0.481033", "0.48090324", "0.48073718", "0.48043272", "0.48004907", "0.48002896", "0.48002514", "0.47975048", "0.47934106", "0.47916266", "0.4789209", "0.4777364", "0.47697642", "0.47685188", "0.47643316", "0.47628725", "0.47596052", "0.47509608" ]
0.78884876
0
Checks for the structure completeness.
@Override public void updateEntity() { if (structureComplete() && checkCountdown >= CHECK_MAX) { checkCountdown = 0; // Refresh the core structure. updateStructure(); } else checkCountdown++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean structureComplete() { return structureID != null && structureID.length() != 0; }", "private void CheckStructureIntegrity() {\n int size = 0;\n for (Module mod : modules) {\n size += mod.getAddresses().size();\n logger.info(\"BBS : {} Module {}\", mod.getAddresses().size(), mod.getName());\n }\n logger.info(\"Total BBS : {}\", size);\n }", "private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public boolean check() {\n return StuffUtils.equal(structure, SpigotUtils.structBetweenTwoLocations(pos1, pos2, material));\n }", "public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void checkStructure() {\n for (DatabaseUpdateType updateType : DatabaseUpdateType.values()) {\n checkDatabaseStructure(updateType);\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "private boolean isPackValid() {\n\t\treturn (logData != null\n\t\t\t\t&& logData.entries != null\n\t\t\t\t&& logData.entries.size() > 1);\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetResourcePlanName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resourcePlanName' is unset! Struct:\" + toString());\n }\n\n if (!isSetPoolPath()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'poolPath' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "@Override\n\tprotected boolean checkDataStructure(Data data) throws ImportitException {\n\t\tdata.setDatabase(39);\n\t\tdata.setGroup(3);\n\t\tboolean validDb = checkDatabaseName(data);\n\t\tboolean validHead = false;\n\t\tboolean validTable = false;\n\t\tboolean existImportantFields = false;\n\t\tif (validDb) {\n\t\t\tList<Field> headerFields = data.getHeaderFields();\n\t\t\tList<Field> tableFields = data.getTableFields();\n\t\t\tvalidHead = false;\n\t\t\tvalidTable = false;\n\t\t\ttry {\n\n\t\t\t\tvalidHead = checkWarehouseGroupProperties(headerFields, data.getOptionCode().useEnglishVariables());\n\t\t\t\tvalidTable = checkFieldList(tableFields, 39, 3, false, data.getOptionCode().useEnglishVariables());\n\t\t\t\tString[] checkDataCustomerPartProperties = checkDataWarehouseGroupProperties(data);\n\t\t\t\texistImportantFields = checkDataCustomerPartProperties.length == 2;\n\n\t\t\t} catch (ImportitException e) {\n\t\t\t\tlogger.error(e);\n\t\t\t\tdata.appendError(Util.getMessage(\"err.structure.check\", e.getMessage()));\n\t\t\t}\n\t\t}\n\t\tif (validTable && validHead && validDb & existImportantFields) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }", "private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}", "protected boolean isStructureKnown() {\n\t\ttry {\n\t\t\treturn ((OpenableElementInfo) getElementInfo()).isStructureKnown();\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "public boolean isStructureKnown() {\n return isStructureKnown;\n }", "public boolean checkDbStructure(){\n\t\tboolean isStructureOk = false;\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Name, Description, Version from \" + mDbName + \".\" + TABLE_AREA);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\t\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select Area_ID, Route_ID from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Ticket_ID, Name, StartName, EndName from \" + mDbName + \".\" + TABLE_ROUTE);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select Route_ID, Station_ID, Position from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Name, Abbreviation, Latitude, Longitude from \" + mDbName + \".\" + TABLE_STATION);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Name, Icon, Is_Superior from \" + mDbName + \".\" + TABLE_TICKET);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\t\t\n\t\t\tisStructureOk = true;\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t\tisStructureOk = false;\n\t\t}\n\t\t\n\t\treturn isStructureOk;\n\t}", "public boolean checkData()\n {\n boolean ok = true;\n int l = -1;\n for(Enumeration<Vector<Double>> iter = data.elements(); iter.hasMoreElements() && ok ;)\n {\n Vector<Double> v = iter.nextElement();\n if(l == -1)\n l = v.size();\n else\n ok = (l == v.size()); \n }\n return ok; \n }", "public void verify() {\n lblSourcePackageFolder();\n lblClasspath();\n btAddJARFolder();\n btRemove();\n lblOutputFolderOrJAR();\n txtOutputFolder();\n btBrowse();\n lstClasspath();\n cboSourcePackageFolder();\n btMoveUp();\n btMoveDown();\n lblOnlineError();\n }", "public void validate() throws org.apache.thrift.TException {\n if (code == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'code' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUuidFicha()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'uuidFicha' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (headerTransport != null) {\n headerTransport.validate();\n }\n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "public boolean formatCheck()\n\t{\n\t\t// The freeList has to be 2 or greater since the first block (index 0)\n\t\t// is the SuperBlock, and the the second block (index 1) contains\n\t\t// information about Inodes.\n\t\tif (totalBlocks != Kernel.NUM_BLOCKS || totalInodes <= 0 || \n\t\t\tfreeList < 2 || freeList >= totalBlocks && \n\t\t\tlastFreeBlock < 2 || lastFreeBlock >= totalBlocks)\n\t\t{\n\t\t\ttotalBlocks = Kernel.NUM_BLOCKS;\n\t\t\tlastFreeBlock = totalBlocks - 1;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean consistencyCheck(){\n\n String jbbInstdir = (String)typeToDir.get(\"jbbinst\");\n String simInstdir = (String)typeToDir.get(\"siminst\");\n String jbbColldir = (String)typeToDir.get(\"jbbcoll\");\n String simColldir = (String)typeToDir.get(\"simcoll\");\n if(simInstdir != null){\n simInstdir += \"/p01\";\n }\n if(simColldir != null){\n simColldir += \"/p01\";\n }\n return readAndCompare(jbbInstdir,simInstdir,jbbColldir,simColldir);\n }", "boolean hasPackedStruct();", "public void validate() throws org.apache.thrift.TException {\n if (statusCode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statusCode' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private boolean check() {\n if (!isBST()) System.out.println(\"Not in symmetric order\");\n if (!isSizeConsistent()) System.out.println(\"Subtree counts not consistent\");\n if (!isRankConsistent()) System.out.println(\"Ranks not consistent\");\n return isBST() && isSizeConsistent() && isRankConsistent();\n }", "public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "void check() throws IllegalStateException {\n if (\n title == null ||\n release == null ||\n duration == 0 ||\n synopsis == null ||\n genre == null ||\n cast == null\n )\n throw new IllegalStateException(\"incomplete type\");\n }", "private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }", "public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }", "@Override\r\n\tpublic boolean isStructure() {\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }", "private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic boolean isMemberOfStructure() {\n\t\treturn false;\n\t}", "private void checkDatabaseStructure(DatabaseUpdateType update) {\n }", "public boolean hasPackedStruct() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (op == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'op' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void updateStructure()\n\t{\n\t\tboolean itWorked = true;\n\t\t\n\t\t// Get block's rotational information as a ForgeDirection\n\t\tForgeDirection rotation = ForgeDirection.getOrientation(Utils.backFromMeta(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)));\n\t\t\n\t\t//\n\t\t// Step one: validate all blocks\n\t\t//\n\t\t\n\t\t// Get the MachineStructures from the MachineStructureRegistrar\n\t\t// But if the machine is already set up it should only check the desired structure.\n\t\tfor (MachineStructure struct : (structureComplete() ? MachineStructureRegistrar.getStructuresForMachineID(getMachineID()) : MachineStructureRegistrar.getStructuresForMachineID(getMachineID())))\n\t\t{\n\t\t\t// Check each block in requirements\n\t\t\tfor (PReq req : struct.requirements)\n\t\t\t{\n\t\t\t\t// Get the rotated block coordinates.\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\n\t\t\t\t// Check the requirement.\n\t\t\t\tif (!req.requirement.isMatch(tier, worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord))\n\t\t\t\t{\n\t\t\t\t\t// If it didn't work, stop checking.\n\t\t\t\t\titWorked = false; break;\n\t\t\t\t}\n\t\t\t\t// If it did work keep calm and carry on\n\t\t\t}\n\t\t\t\n\t\t\t// We've gone through all the blocks. They all match up!\n\t\t\tif (itWorked)\n\t\t\t{\n\t\t\t\t// **If the structure is new only**\n\t\t\t\t// Which implies the blocks have changed between checks\n\t\t\t\tif (struct.ID != structureID)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// This is only called when structures are changed/first created.\n\t\t\t\t\t//\n\t\t\t\t\t\n\t\t\t\t\t// Save what structure we have.\n\t\t\t\t\tstructureID = struct.ID;\n\t\t\t\t\t\n\t\t\t\t\t// Make an arraylist to save all teh structures\n\t\t\t\t\tArrayList<StructureUpgradeEntity> newEntities = new ArrayList<StructureUpgradeEntity>();\n\n\t\t\t\t\t// Tell all of the blocks to join us!\n\t\t\t\t\tfor (PReq req : struct.requirements)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the blocks that the structure has checked.\n\t\t\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z); if (brock == null) continue;\n\n\t\t\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t\t\t((IStructureAware)brock).onStructureCreated(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check the tile entity for upgrades\n\t\t\t\t\t\tTileEntity ent = worldObj.getTileEntity(pos.x, pos.y, pos.z);\n\t\t\t\t\t\tif (ent != null && ent instanceof StructureUpgradeEntity)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStructureUpgradeEntity structEnt = (StructureUpgradeEntity)ent;\n\t\t\t\t\t\t\tnewEntities.add(structEnt);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* // Not sure about this.\n\t\t\t\t\t\t\tif (structEnt.coreX != xCoord && structEnt.coreY != yCoord && structEnt.coreZ != zCoord)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstructEnt.onCoreConnected()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// do stuff with that\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// I haven't figured out how the hell to do toArray() in this crap\n\t\t\t\t\t// so here's a weird combination of iterator and for loop\n\t\t\t\t\tupgrades = new StructureUpgradeEntity[newEntities.size()];\n\t\t\t\t\tfor (int i = 0; i < newEntities.size(); i++)\n\t\t\t\t\t\tupgrades[i] = newEntities.get(i);\n\n\t\t\t\t\t// Tell all of the structure blocks to stripe it up!\n\t\t\t\t\tfor (RelativeFaceCoords relPos : struct.relativeStriped)\n\t\t\t\t\t{\n\t\t\t\t\t\tBlockPosition pos = relPos.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If it's a structure block tell it to stripe up\n\t\t\t\t\t\tif (brock != null && brock instanceof StructureBlock)\n\t\t\t\t\t\t\tworldObj.setBlockMetadataWithNotify(pos.x, pos.y, pos.z, 2, 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// If not, reset the loop and try again.\n\t\t\telse { itWorked = true; continue; }\n\t\t}\n\t\t\n\t\t//\n\t\t// None of the structures worked!\n\t\t//\n\t\t\n\t\t// If we had a structure before, we need to clear it\n\t\tif (structureComplete())\n\t\t{\n\t\t\tfor (PReq req : MachineStructureRegistrar.getMachineStructureByID(structureID).requirements)\n\t\t\t{\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\n\t\t\t\t// This will also un-stripe all structure blocks.\n\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t((IStructureAware)brock).onStructureBroken(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t}\n\t\t\t// We don't have a structure.\n\t\t\tstructureID = null;\n\t\t}\n\t\t\n\t}", "void validateState() throws EPPCodecException {\n // add/chg/rem\n if ((addDsData == null) && (chgDsData == null) && (remKeyTag == null)) {\n throw new EPPCodecException(\"EPPSecDNSExtUpdate required attribute missing\");\n }\n \n // Ensure there is only one non-null add, chg, or rem\n\t\tif (((addDsData != null) && ((chgDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((chgDsData != null) && ((addDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((remKeyTag != null) && ((chgDsData != null) || (addDsData != null)))) {\n\t\t\tthrow new EPPCodecException(\"Only one add, chg, or rem is allowed\");\n\t\t}\n }", "public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (parseId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'parseId' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'constituentIndex' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (parseId != null) {\n parseId.validate();\n }\n }", "public boolean hasPackedStruct() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "@Override\n\tpublic boolean checkData() {\n\t\treturn false;\n\t}", "protected boolean checkFormat() {\n\t\t// Read the card contents and check that all is ok.\n\t byte[] memory = utils.readMemory();\n\t if (memory == null)\n\t return false;\n\t \n\t // Check the application tag.\n\t for (int i = 1; i < 4; i++)\n\t if (memory[4 * 4 + i] != applicationTag[i])\n\t return false;\n\t \n\t // Check zeros. Ignore page 36 and up because of the safe mode.\n\t for (int i = 5 * 4; i < 36 * 4; i++)\n\t if (memory[i] != 0)\n\t return false;\n\t \n\t // Check that the memory pages 4..39 are not locked.\n\t // Lock 0: Check lock status for pages 4-7\n\t if (memory[2 * 4 + 2] != 0) \n\t return false;\n\t // Lock 1: \n\t if (memory[2 * 4 + 3] != 0)\n\t return false;\n\t // Lock 2:\n\t if (memory[40 * 4] != 0)\n\t \t\treturn false;\n\t // Lock 1:\n\t if (memory[40 * 4 + 1] != 0)\n\t \t\treturn false;\n\t \n\t return true;\n\t}", "private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}", "private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }", "protected void checkIfReady() throws Exception {\r\n checkComponents();\r\n }", "private boolean saveStructureInformation(){\n\t\tArrayList<AECstructure> structList = DataStore.getInstance().getAECstructureList();\n\t\tArrayList<PanelConfiguration.ModelPanelStructure> listPanelStruct = this.panelConfiguration.getListStructurePanel();\n\t\tboolean error = false;\n\t\tfor(int i=0;i<structList.size();i++){\n\t\t\tDouble size = Math.pow(2, listPanelStruct.get(i).comboBoxType.getSelectedIndex());\n\t\t\tstructList.get(i).setAttributeSize(size.intValue());\n\t\t\tstructList.get(i).setAttributeType((String)listPanelStruct.get(i).comboBoxType.getSelectedItem());\n\t\t\t\n\t\t\tif(AECcontroller.analyseTextFieldVariableText(listPanelStruct.get(i).inputAttributeName)){\n\t\t\t\terror=true;\n\t\t\t}else{\n\t\t\t\terror|=false;\n\t\t\t\tif(!structList.get(i).getAttributeName().equals(listPanelStruct.get(i).inputAttributeName.getText())){\n\t\t\t\t\tstructList.get(i).setAttributeName(AECcontroller.analyseAECattributeStructureName(structList.get(i), listPanelStruct.get(i).inputAttributeName.getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(AECcontroller.analyseTextFieldText(listPanelStruct.get(i).inputAttributeDescr)){\n\t\t\t\terror=true;\n\t\t\t}else{\n\t\t\t\tstructList.get(i).setAttributeDescription(listPanelStruct.get(i).inputAttributeDescr.getText());\n\t\t\t}\n\t\t}\n\t\treturn error;\n\t}", "void checkValid();", "public void checkTree() {\r\n checkTreeFromNode(treeRoot);\r\n }", "private void validateData() {\n }", "public synchronized boolean checkFileCompletion()\n/* */ {\n/* 49 */ int totalsize = 0;\n/* */ \n/* 51 */ for (FileSubContent subContent : this.downloadManager.getSUB_CONTENTS())\n/* */ {\n/* 53 */ if ((subContent != null) && (subContent.isIsDownloaded()) && (subContent.getContent().length == this.downloadManager.getSUB_SIZE()))\n/* */ {\n/* 55 */ totalsize++;\n/* */ }\n/* */ }\n/* */ \n/* 59 */ if (totalsize == this.downloadManager.getSUB_CONTENTS().size())\n/* */ {\n/* 61 */ System.out.println(\"FileDownloadChecker: got all of the subParts.\");\n/* 62 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 66 */ return false;\n/* */ }", "private boolean formComplete(){\r\n return NAME_FIELD.getLength()>0 && ADDRESS_1_FIELD.getLength()>0 &&\r\n CITY_FIELD.getLength()>0 && ZIP_FIELD.getLength()>0 && \r\n COUNTRY_FIELD.getLength()>0 && PHONE_FIELD.getLength()>0; \r\n }", "public void validate() throws org.apache.thrift.TException {\n if (emailId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'emailId' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public boolean checkVaild() throws IOException;", "@Test\n\tpublic void testSchemaIsComplete() {\n\t\tOrientGraph g = factory.getTx();\n\t\tOrientVertexType t = g.getVertexType(\"ElementTrace\");\n\t\tassertThat(t, is(notNullValue()));\n\t\t\n\t\tOrientEdgeType et = g.getEdgeType(\"Accesses\");\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (tableType == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableType' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'numCols' because it's a primitive and you chose the non-beans generator.\n // alas, we cannot check 'numClusteringCols' because it's a primitive and you chose the non-beans generator.\n if (tableName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableName' was not present! Struct: \" + toString());\n }\n if (dbName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'dbName' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (hdfsTable != null) {\n hdfsTable.validate();\n }\n if (hbaseTable != null) {\n hbaseTable.validate();\n }\n if (dataSourceTable != null) {\n dataSourceTable.validate();\n }\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkHDRState() {\n\t\tboolean flag = oTest.checkHDRState();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "protected void checkInitialized() {\n \tcheckState(this.breeder!=null && this.threads!=null, \"Local state was not correctly set after being deserialized.\");\n }", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "protected void checkValidity(Epml epml) {\n\t}", "public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}", "public boolean isValid() {\n return header.isValid();\n }", "public void sanityCheck() {\n if ( bucket >= mNumBins ) bucket = mNumBins - 1;\n\n // Sanity check, should not happen.\n if ( bucket < 0 ) bucket = 0;\n }", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n throw new Exception(\"Search space not set.\");\r\n }\r\n if (ObjectiveFunction == null) {\r\n throw new Exception(\"Ranker not set.\");\r\n }\r\n }", "public boolean checkFull() {\n\t\tif (studlist.size() == maxstudents) {\n\t\t\tfull = true;\n\t\t}\n\t\treturn full;\n\t}", "protected boolean checkBioScarso() {\n return bioService.count() < BIO_NEEDED_MINUMUM_SIZE;\n }", "public boolean isComplete(){\r\n\r\n\t\t// TODO\r\n\t\t\r\n\t\tif(!isValid()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "boolean hasNewBlock();", "boolean hasNewBlock();", "private boolean isValid() {\n\t\treturn proposalTable != null && !proposalTable.isDisposed();\n\t}", "@Override\n protected void checkValidity() throws DukeException {\n\n if (this.descriptionOfTask.isEmpty()) {\n throw new DukeException(\" ☹ OOPS!!! The description of a done cannot be empty.\");\n }\n\n }", "public void sanityCheck() {\n\t\tif (DEBUG) {\n\t\t\tint curMaxColumnHeight = 0;\n\t\t\tint [] curWidths = new int [height];\n\t\t\tint [] curHeights = new int [width];\n\n\t\t\tfor(int i = 0; i < width; i++){\n\t\t\t\tfor(int j =0; j < height; j++){\n\t\t\t\t\tif(grid[i][j]){\n\t\t\t\t\t\tcurWidths[j]++;\n\t\t\t\t\t\tif(curHeights[i]<=j){\n\t\t\t\t\t\t\tcurHeights[i] = j + 1;\n\t\t\t\t\t\t\tif(curHeights[i] > curMaxColumnHeight){\n\t\t\t\t\t\t\t\tcurMaxColumnHeight = curHeights[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!Arrays.equals(curWidths,widths)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect width array\");\n\t\t\t}\n\t\t\tif(!Arrays.equals(curHeights,heights)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect height array\");\n\t\t\t}\n\t\t\tif(curMaxColumnHeight != maxColumnHeight){\n\t\t\t\tSystem.out.println(curMaxColumnHeight+ \" \"+maxColumnHeight);\n\t\t\t\tthrow new RuntimeException(\"Incorrect maxColumnHeight\");\n\t\t\t}\n\t\t}\n\t}", "protected void checkSize()\n {\n // check if pruning is required\n if (m_cCurUnits > m_cMaxUnits)\n {\n synchronized (this)\n {\n // recheck so that only one thread prunes\n if (m_cCurUnits > m_cMaxUnits)\n {\n prune();\n }\n }\n }\n }", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayQueue object is corrupt.\");\n }", "public void validate() throws org.apache.thrift.TException {\n if (blockMasterInfo != null) {\n blockMasterInfo.validate();\n }\n }", "private void checkStateSizes()\n\t{\n\t\tif (variableNames.size() != domainSizes.size())\n\t\t{\n\t\t\tif (DEBUG)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Variable names length = \"\n\t\t\t\t\t\t+ variableNames.size());\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Domain size length = \" + domainSizes.size());\n\t\t\t}\n\t\t\tSystem.err.println(\"Numbers of state variables in inputs differ.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "public void verifyBugerList()\n\t{\n\t\t\n\t}", "protected boolean isValidData() {\n return true;\n }", "private void validateBeforeMerge()\n {\n Assert.assertTrue(!isProductInfo() || type == TTransactionType.simple);\n }", "private boolean doVerify(boolean completeOnly) {\n\n if (status == DataStatus.VERIFIED) {\n return true;\n } else if (completeOnly && status != DataStatus.COMPLETE) {\n return false;\n }\n\n // if any of this chunk's storage units doesn't exist,\n // then it's neither complete nor verified\n for (StorageUnit unit : units) {\n if (unit.size() == 0) {\n return false;\n }\n }\n\n Range allData = getRange(0, size);\n MessageDigest digest;\n try {\n digest = MessageDigest.getInstance(\"SHA-1\");\n } catch (NoSuchAlgorithmException e) {\n // not going to happen\n throw new BtException(\"Unexpected error\", e);\n }\n\n // do not block readers when checking data integrity\n readWriteLock.readLock().lock();\n try {\n if (status == DataStatus.VERIFIED) {\n return true;\n }\n\n allData.visitFiles((unit, off, lim) -> {\n\n int step = 2 << 22; // 8 MB\n long remaining = lim - off;\n if (remaining > Integer.MAX_VALUE) {\n throw new BtException(\"Too much data -- can't read to buffer\");\n }\n do {\n digest.update(unit.readBlock(off, Math.min(step, (int) remaining)));\n remaining -= step;\n off += step;\n } while (remaining > 0);\n });\n\n boolean verified = Arrays.equals(checksum, digest.digest());\n if (verified) {\n status = DataStatus.VERIFIED;\n }\n // TODO: reset the piece if verification is unsuccessful?\n return verified;\n\n } finally {\n readWriteLock.readLock().unlock();\n }\n }", "public void checkFields(){\n }", "public boolean isValidSetup() {\n\t\tif(!rowCheck())\n\t\t\treturn false;\n\t\tif(!columnCheck())\n\t\t\treturn false;\n\t\tif(!subGridCheck())\n\t\t\treturn false;\n\t\treturn true;\n\t}" ]
[ "0.71431375", "0.70557237", "0.67785555", "0.66632897", "0.6504828", "0.6478169", "0.646109", "0.6440358", "0.6425955", "0.6404647", "0.63984746", "0.63979286", "0.6389358", "0.6377567", "0.63002884", "0.62914616", "0.62151885", "0.6206781", "0.6202291", "0.618069", "0.61630464", "0.6145408", "0.6140579", "0.6119133", "0.6109823", "0.61021507", "0.6101219", "0.6098043", "0.60979885", "0.6085846", "0.6023839", "0.6006553", "0.59942997", "0.59583706", "0.59430724", "0.59288937", "0.59281087", "0.59147906", "0.591196", "0.58991367", "0.58978933", "0.5877562", "0.5873517", "0.5857812", "0.58329356", "0.5820831", "0.58161116", "0.5809735", "0.58050454", "0.5803348", "0.5799138", "0.57917774", "0.57873267", "0.57858765", "0.5759634", "0.5753447", "0.5750002", "0.574714", "0.5727344", "0.5726533", "0.57185274", "0.57066077", "0.5705758", "0.5702992", "0.5693114", "0.5687583", "0.5683875", "0.5683277", "0.56789076", "0.5677323", "0.56750077", "0.5672179", "0.56559366", "0.5652166", "0.56470877", "0.5643038", "0.5643001", "0.56355876", "0.5635122", "0.5634412", "0.5629451", "0.56293815", "0.5621798", "0.559988", "0.5598866", "0.55963933", "0.55922526", "0.55922526", "0.5586588", "0.5578901", "0.5573872", "0.5572313", "0.5566103", "0.5565942", "0.55549645", "0.55545187", "0.554914", "0.554223", "0.5538396", "0.5532", "0.5523634" ]
0.0
-1
Updates the structure. Override this with a super call to hook into the event.
public void updateStructure() { boolean itWorked = true; // Get block's rotational information as a ForgeDirection ForgeDirection rotation = ForgeDirection.getOrientation(Utils.backFromMeta(worldObj.getBlockMetadata(xCoord, yCoord, zCoord))); // // Step one: validate all blocks // // Get the MachineStructures from the MachineStructureRegistrar // But if the machine is already set up it should only check the desired structure. for (MachineStructure struct : (structureComplete() ? MachineStructureRegistrar.getStructuresForMachineID(getMachineID()) : MachineStructureRegistrar.getStructuresForMachineID(getMachineID()))) { // Check each block in requirements for (PReq req : struct.requirements) { // Get the rotated block coordinates. BlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord); // Check the requirement. if (!req.requirement.isMatch(tier, worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord)) { // If it didn't work, stop checking. itWorked = false; break; } // If it did work keep calm and carry on } // We've gone through all the blocks. They all match up! if (itWorked) { // **If the structure is new only** // Which implies the blocks have changed between checks if (struct.ID != structureID) { // // This is only called when structures are changed/first created. // // Save what structure we have. structureID = struct.ID; // Make an arraylist to save all teh structures ArrayList<StructureUpgradeEntity> newEntities = new ArrayList<StructureUpgradeEntity>(); // Tell all of the blocks to join us! for (PReq req : struct.requirements) { // Get the blocks that the structure has checked. BlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord); Block brock = worldObj.getBlock(pos.x, pos.y, pos.z); if (brock == null) continue; if (brock instanceof IStructureAware) ((IStructureAware)brock).onStructureCreated(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord); // Check the tile entity for upgrades TileEntity ent = worldObj.getTileEntity(pos.x, pos.y, pos.z); if (ent != null && ent instanceof StructureUpgradeEntity) { StructureUpgradeEntity structEnt = (StructureUpgradeEntity)ent; newEntities.add(structEnt); /* // Not sure about this. if (structEnt.coreX != xCoord && structEnt.coreY != yCoord && structEnt.coreZ != zCoord) { structEnt.onCoreConnected() } */ } // do stuff with that } // I haven't figured out how the hell to do toArray() in this crap // so here's a weird combination of iterator and for loop upgrades = new StructureUpgradeEntity[newEntities.size()]; for (int i = 0; i < newEntities.size(); i++) upgrades[i] = newEntities.get(i); // Tell all of the structure blocks to stripe it up! for (RelativeFaceCoords relPos : struct.relativeStriped) { BlockPosition pos = relPos.getPosition(rotation, xCoord, yCoord, zCoord); Block brock = worldObj.getBlock(pos.x, pos.y, pos.z); // If it's a structure block tell it to stripe up if (brock != null && brock instanceof StructureBlock) worldObj.setBlockMetadataWithNotify(pos.x, pos.y, pos.z, 2, 2); } } return; } // If not, reset the loop and try again. else { itWorked = true; continue; } } // // None of the structures worked! // // If we had a structure before, we need to clear it if (structureComplete()) { for (PReq req : MachineStructureRegistrar.getMachineStructureByID(structureID).requirements) { BlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord); Block brock = worldObj.getBlock(pos.x, pos.y, pos.z); // This will also un-stripe all structure blocks. if (brock instanceof IStructureAware) ((IStructureAware)brock).onStructureBroken(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord); } // We don't have a structure. structureID = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void updateStructure();", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "@Override\n\tpublic void onStructChanged() {\n\t\t\n\t}", "@Override\n public void update() {\n \n }", "public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\n public void update() {\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\tpublic void update() { }", "@Override\n public void update() {\n }", "@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }", "@Override\n\tpublic void update(ShapeModelEvent event) {\n\t\t\n\t\tShapeModel source = event.source();\n\t\t\n\t\tint[] childIndices = new int[1];\n\t\tchildIndices[0] = event.index();\n\t\t\n\t\tShape[] children = new Shape[1];\n\t\tchildren[0] = event.operand();\n\t\t\n\t\t\n\t\t\n\t\tif(event.eventType().equals(EventType.ShapeAdded)){\n\t\t\tTreeModelEvent treeModelEvent = new TreeModelEvent(source, event.parent().path().toArray(), childIndices, children);\n\t\t\tfireTreeNodesInserted(treeModelEvent);\n\t\t\t\n\t\t}else if(event.eventType().equals(EventType.ShapeRemoved)){\n\t\t\tTreeModelEvent treeModelEvent = new TreeModelEvent(source, event.parent().path().toArray(), childIndices, children);\n\t\t\tfireTreeNodesRemoved(treeModelEvent);\n\t\t}\n\t\t\n\t}", "@Override\n public void notifyStructureObservers() {\n for(StructureObserver structureObserver : structureObservers){\n structureObserver.update(entities.returnStructureRenderInformation());\n }\n }", "@Override\n public void update()\n {\n\n }", "public void structureChanged(GraphEvent e);", "@Override\n public void update() {\n\n }", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "public void update() {\n\n\t\tfollow();\n\t\tcreateHitBox(this);\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "public void onUpdate()\n\t{\n\t\tchunk.setModelBound(new BoundingBox());\n\t\tchunk.updateModelBound();\n\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "public abstract void update(UIReader event);", "public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void modelStructureChanged() {\n\n\t\t\t\t}", "public void update(MazeEventInfoField e) {\r\n }", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void update(float delta) {\n\t\t\t\t\t\tUpdateItem(delta);\n\t\t\t\t\t}", "public void update(){\r\n\t\t\r\n\t}", "public void update() {\r\n\t\t\r\n\t}", "public void update() {\n\t\t\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public @Override void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) {\n if (children == null && getParent() == null) {\n return;\n }\n \n super.changedUpdate(e, a, f);\n }", "@Override\n public void ancestorAdded(AncestorEvent event) {\n updateComponents();\n }", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "protected void updateDisplay() {\n\t\t\t// this is called when upload is completed\n\n\t\t\tString filename = getLastFileName();\n\t\t\tfor (SetupMapViewListener listener : listeners)\n\t\t\t\tlistener.shapeFileUploadedEvent(filename, new ByteArrayInputStream((byte[]) getValue()));\n\t\t}", "protected void onUpdate() {\r\n\r\n\t}", "public void update(){}", "public void update(){}", "public abstract void modelStructureChanged();", "protected @Override void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) {\n \n //super.updateLayout(ec, e, a);\n }", "@Override\n public void update() {\n selectedLevel.update();\n }", "public void update() {\n }", "protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }", "@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t}", "@Override\n public void handle(Event event) {\n }", "public void willbeUpdated() {\n\t\t\n\t}", "public void update(){\r\n }", "public void update() {}" ]
[ "0.6688686", "0.6359526", "0.6359526", "0.6359526", "0.6299376", "0.6241231", "0.6241231", "0.61990535", "0.6158818", "0.6157057", "0.6122569", "0.6122001", "0.6090554", "0.6086212", "0.6086212", "0.60827553", "0.60827553", "0.60827553", "0.60827553", "0.60827553", "0.6070897", "0.6070072", "0.6070072", "0.6069398", "0.60686123", "0.60686123", "0.60686123", "0.60686123", "0.60686123", "0.6048316", "0.6043847", "0.6025692", "0.6025692", "0.6025692", "0.6012482", "0.59975153", "0.5988676", "0.59852", "0.59826225", "0.59802896", "0.59688383", "0.5948312", "0.5941301", "0.5941301", "0.5941301", "0.5941301", "0.5941301", "0.5941301", "0.5936669", "0.5936669", "0.59237975", "0.59237975", "0.589185", "0.5890271", "0.5890271", "0.5890271", "0.5887279", "0.5882548", "0.5882548", "0.5882548", "0.5882548", "0.5882548", "0.5882548", "0.5882548", "0.5882548", "0.5882548", "0.5882548", "0.5841026", "0.58070886", "0.58070886", "0.5766063", "0.57625985", "0.5722545", "0.5712164", "0.5691814", "0.56908685", "0.5690485", "0.5680004", "0.56788886", "0.56603855", "0.56589955", "0.56589955", "0.56589955", "0.56589955", "0.56510925", "0.5644368", "0.56240046", "0.56066597", "0.5595743", "0.55939174", "0.55939174", "0.5592456", "0.55859286", "0.5577286", "0.5562885", "0.55594504", "0.55590916", "0.55580944", "0.55575997", "0.55369425", "0.5526211" ]
0.0
-1
If the machine has a valid structure. Does NOT check/validate structure, just a null check on structureID.
public boolean structureComplete() { return structureID != null && structureID.length() != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void updateStructure()\n\t{\n\t\tboolean itWorked = true;\n\t\t\n\t\t// Get block's rotational information as a ForgeDirection\n\t\tForgeDirection rotation = ForgeDirection.getOrientation(Utils.backFromMeta(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)));\n\t\t\n\t\t//\n\t\t// Step one: validate all blocks\n\t\t//\n\t\t\n\t\t// Get the MachineStructures from the MachineStructureRegistrar\n\t\t// But if the machine is already set up it should only check the desired structure.\n\t\tfor (MachineStructure struct : (structureComplete() ? MachineStructureRegistrar.getStructuresForMachineID(getMachineID()) : MachineStructureRegistrar.getStructuresForMachineID(getMachineID())))\n\t\t{\n\t\t\t// Check each block in requirements\n\t\t\tfor (PReq req : struct.requirements)\n\t\t\t{\n\t\t\t\t// Get the rotated block coordinates.\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\n\t\t\t\t// Check the requirement.\n\t\t\t\tif (!req.requirement.isMatch(tier, worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord))\n\t\t\t\t{\n\t\t\t\t\t// If it didn't work, stop checking.\n\t\t\t\t\titWorked = false; break;\n\t\t\t\t}\n\t\t\t\t// If it did work keep calm and carry on\n\t\t\t}\n\t\t\t\n\t\t\t// We've gone through all the blocks. They all match up!\n\t\t\tif (itWorked)\n\t\t\t{\n\t\t\t\t// **If the structure is new only**\n\t\t\t\t// Which implies the blocks have changed between checks\n\t\t\t\tif (struct.ID != structureID)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// This is only called when structures are changed/first created.\n\t\t\t\t\t//\n\t\t\t\t\t\n\t\t\t\t\t// Save what structure we have.\n\t\t\t\t\tstructureID = struct.ID;\n\t\t\t\t\t\n\t\t\t\t\t// Make an arraylist to save all teh structures\n\t\t\t\t\tArrayList<StructureUpgradeEntity> newEntities = new ArrayList<StructureUpgradeEntity>();\n\n\t\t\t\t\t// Tell all of the blocks to join us!\n\t\t\t\t\tfor (PReq req : struct.requirements)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the blocks that the structure has checked.\n\t\t\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z); if (brock == null) continue;\n\n\t\t\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t\t\t((IStructureAware)brock).onStructureCreated(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check the tile entity for upgrades\n\t\t\t\t\t\tTileEntity ent = worldObj.getTileEntity(pos.x, pos.y, pos.z);\n\t\t\t\t\t\tif (ent != null && ent instanceof StructureUpgradeEntity)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStructureUpgradeEntity structEnt = (StructureUpgradeEntity)ent;\n\t\t\t\t\t\t\tnewEntities.add(structEnt);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* // Not sure about this.\n\t\t\t\t\t\t\tif (structEnt.coreX != xCoord && structEnt.coreY != yCoord && structEnt.coreZ != zCoord)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstructEnt.onCoreConnected()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// do stuff with that\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// I haven't figured out how the hell to do toArray() in this crap\n\t\t\t\t\t// so here's a weird combination of iterator and for loop\n\t\t\t\t\tupgrades = new StructureUpgradeEntity[newEntities.size()];\n\t\t\t\t\tfor (int i = 0; i < newEntities.size(); i++)\n\t\t\t\t\t\tupgrades[i] = newEntities.get(i);\n\n\t\t\t\t\t// Tell all of the structure blocks to stripe it up!\n\t\t\t\t\tfor (RelativeFaceCoords relPos : struct.relativeStriped)\n\t\t\t\t\t{\n\t\t\t\t\t\tBlockPosition pos = relPos.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If it's a structure block tell it to stripe up\n\t\t\t\t\t\tif (brock != null && brock instanceof StructureBlock)\n\t\t\t\t\t\t\tworldObj.setBlockMetadataWithNotify(pos.x, pos.y, pos.z, 2, 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// If not, reset the loop and try again.\n\t\t\telse { itWorked = true; continue; }\n\t\t}\n\t\t\n\t\t//\n\t\t// None of the structures worked!\n\t\t//\n\t\t\n\t\t// If we had a structure before, we need to clear it\n\t\tif (structureComplete())\n\t\t{\n\t\t\tfor (PReq req : MachineStructureRegistrar.getMachineStructureByID(structureID).requirements)\n\t\t\t{\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\n\t\t\t\t// This will also un-stripe all structure blocks.\n\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t((IStructureAware)brock).onStructureBroken(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t}\n\t\t\t// We don't have a structure.\n\t\t\tstructureID = null;\n\t\t}\n\t\t\n\t}", "public boolean isStructureKnown() {\n return isStructureKnown;\n }", "protected boolean isStructureKnown() {\n\t\ttry {\n\t\t\treturn ((OpenableElementInfo) getElementInfo()).isStructureKnown();\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean check() {\n return StuffUtils.equal(structure, SpigotUtils.structBetweenTwoLocations(pos1, pos2, material));\n }", "public void validate() throws org.apache.thrift.TException {\n if (parseId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'parseId' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'constituentIndex' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (parseId != null) {\n parseId.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (code == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'code' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "private boolean saveStructureInformation(){\n\t\tArrayList<AECstructure> structList = DataStore.getInstance().getAECstructureList();\n\t\tArrayList<PanelConfiguration.ModelPanelStructure> listPanelStruct = this.panelConfiguration.getListStructurePanel();\n\t\tboolean error = false;\n\t\tfor(int i=0;i<structList.size();i++){\n\t\t\tDouble size = Math.pow(2, listPanelStruct.get(i).comboBoxType.getSelectedIndex());\n\t\t\tstructList.get(i).setAttributeSize(size.intValue());\n\t\t\tstructList.get(i).setAttributeType((String)listPanelStruct.get(i).comboBoxType.getSelectedItem());\n\t\t\t\n\t\t\tif(AECcontroller.analyseTextFieldVariableText(listPanelStruct.get(i).inputAttributeName)){\n\t\t\t\terror=true;\n\t\t\t}else{\n\t\t\t\terror|=false;\n\t\t\t\tif(!structList.get(i).getAttributeName().equals(listPanelStruct.get(i).inputAttributeName.getText())){\n\t\t\t\t\tstructList.get(i).setAttributeName(AECcontroller.analyseAECattributeStructureName(structList.get(i), listPanelStruct.get(i).inputAttributeName.getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(AECcontroller.analyseTextFieldText(listPanelStruct.get(i).inputAttributeDescr)){\n\t\t\t\terror=true;\n\t\t\t}else{\n\t\t\t\tstructList.get(i).setAttributeDescription(listPanelStruct.get(i).inputAttributeDescr.getText());\n\t\t\t}\n\t\t}\n\t\treturn error;\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }", "@Override\n\tpublic boolean isMemberOfStructure() {\n\t\treturn false;\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }", "@Override\r\n\tpublic boolean isStructure() {\n\t\treturn false;\r\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public boolean checkDbStructure(){\n\t\tboolean isStructureOk = false;\n\t\t\n\t\ttry {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Name, Description, Version from \" + mDbName + \".\" + TABLE_AREA);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\t\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select Area_ID, Route_ID from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Ticket_ID, Name, StartName, EndName from \" + mDbName + \".\" + TABLE_ROUTE);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select Route_ID, Station_ID, Position from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Name, Abbreviation, Latitude, Longitude from \" + mDbName + \".\" + TABLE_STATION);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\n\t\t\tmPreparedStatement = mMysqlConnection\n\t\t\t\t.prepareStatement(\"select ID, Name, Icon, Is_Superior from \" + mDbName + \".\" + TABLE_TICKET);\t\t\t\n\t\t\tmPreparedStatement.executeQuery();\n\t\t\t\n\t\t\tisStructureOk = true;\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t\tisStructureOk = false;\n\t\t}\n\t\t\n\t\treturn isStructureOk;\n\t}", "public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public boolean validate(Struct data) {\r\n\t\tif (data == null)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tif (this.options.size() == 0) {\r\n\t\t\tOperationContext.get().errorTr(437, data);\t\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (this.options.size() == 1) \r\n\t\t\treturn this.options.get(0).validate(data);\r\n\t\t\r\n\t\tfor (DataType dt : this.options) {\r\n\t\t\tif (dt.match(data)) \r\n\t\t\t\treturn dt.validate(data);\r\n\t\t}\r\n\t\t\r\n\t\tOperationContext.get().errorTr(438, data);\t\t\t\r\n\t\treturn false;\r\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUuidFicha()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'uuidFicha' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (headerTransport != null) {\n headerTransport.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetResourcePlanName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resourcePlanName' is unset! Struct:\" + toString());\n }\n\n if (!isSetPoolPath()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'poolPath' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (emailId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'emailId' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (blockMasterInfo != null) {\n blockMasterInfo.validate();\n }\n }", "public boolean hasReinforcedStructure() {\n return (getStructureType() == EquipmentType.T_STRUCTURE_REINFORCED);\n }", "public boolean isValid() {\n return m_handle != 0;\n }", "public boolean hasValidHolder(){\r\n\t\tHolder directHolder = getDirectHolder();\r\n\t\tif(isTerminated() && directHolder == null) \r\n\t\t\treturn true;\r\n\t\telse if(isTerminated() && directHolder != null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(directHolder == null || directHolder == this)\r\n\t\t\treturn false;\t\t\r\n\t\telse{\r\n\t\t\tHolder parser = getDirectHolder();\r\n\t\t\twhile(!parser.isSupremeHolder()){\r\n\t\t\t\tif(parser == this)\r\n\t\t\t\t\treturn false;\r\n\t\t\t\tparser = ((Item)parser).getDirectHolder();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean isValid() throws InvalidStateException{\n if (this.homeTeam == null || this.visitingTeam == null){\n return false;\n }else{\n return true;\n }\n }", "private void CheckStructureIntegrity() {\n int size = 0;\n for (Module mod : modules) {\n size += mod.getAddresses().size();\n logger.info(\"BBS : {} Module {}\", mod.getAddresses().size(), mod.getName());\n }\n logger.info(\"Total BBS : {}\", size);\n }", "public boolean isValid()\r\n {\r\n \treturn this.vp.data != null;\r\n }", "public boolean isValid(){\n\t\treturn this.arm.isValid();\n\t}", "private boolean isValid(String structure, String command) {\n\t\t// checks to see if the provided structure matches the\n\t\t// command\n\t\t// 'c' = char\n\t\t// 'n' = number (can take up more than one character, and\n\t\t// can be\n\t\t// negative\n\t\t// ' ' = space\n\t\t// 's' = string (that has to go till the end of the command\n\t\t// with no\n\t\t// spaces\n\t\tString[] format = structure.split(\"|\");\n\t\tboolean valid = true;\n\t\tint curIndex = 0;\n\t\tforloop: for (String str : format) {\n\t\t\tswitch (str.charAt(0)) {\n\t\t\tcase 'c':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\tif (!Character\n\t\t\t\t\t\t\t.isAlphabetic(command.charAt(curIndex))\n\t\t\t\t\t\t\t&& !Character.isWhitespace(\n\t\t\t\t\t\t\t\t\tcommand.charAt(curIndex))) {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t\tcurIndex++;\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\tboolean wait = false;\n\t\t\t\t\tif (!Character.isDigit(command.charAt(curIndex))\n\t\t\t\t\t\t\t&& command.charAt(curIndex) != '-') {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t\tif (command.charAt(curIndex) == '-') {\n\t\t\t\t\t\twait = true;\n\t\t\t\t\t}\n\t\t\t\t\tcurIndex++;\n\t\t\t\t\twhile (command.length() > curIndex && Character\n\t\t\t\t\t\t\t.isDigit(command.charAt(curIndex))) {\n\t\t\t\t\t\twait = false;\n\t\t\t\t\t\tcurIndex++;\n\t\t\t\t\t}\n\t\t\t\t\tif (wait) {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ' ':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\tif (!Character.isWhitespace(\n\t\t\t\t\t\t\tcommand.charAt(curIndex))) {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t\tcurIndex++;\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\twhile (command.length() > curIndex) {\n\t\t\t\t\t\tif (!Character.isAlphabetic(\n\t\t\t\t\t\t\t\tcommand.charAt(curIndex))\n\t\t\t\t\t\t\t\t&& command\n\t\t\t\t\t\t\t\t\t\t.charAt(curIndex) != '.') {\n\t\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurIndex++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (curIndex != command.length()) {\n\t\t\tvalid = false;\n\t\t}\n\t\treturn valid;\n\t}", "public boolean hasCompositeStructure() {\n return (getStructureType() == EquipmentType.T_STRUCTURE_COMPOSITE);\n }", "@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}", "public boolean isValid() {\n return _id != null && !_id.isEmpty() &&\n _name != null && !_name.isEmpty() &&\n _created != null && !_created.isEmpty();\n }", "boolean hasPackedStruct();", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (statusCode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statusCode' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "@Override\n\tprotected boolean checkDataStructure(Data data) throws ImportitException {\n\t\tdata.setDatabase(39);\n\t\tdata.setGroup(3);\n\t\tboolean validDb = checkDatabaseName(data);\n\t\tboolean validHead = false;\n\t\tboolean validTable = false;\n\t\tboolean existImportantFields = false;\n\t\tif (validDb) {\n\t\t\tList<Field> headerFields = data.getHeaderFields();\n\t\t\tList<Field> tableFields = data.getTableFields();\n\t\t\tvalidHead = false;\n\t\t\tvalidTable = false;\n\t\t\ttry {\n\n\t\t\t\tvalidHead = checkWarehouseGroupProperties(headerFields, data.getOptionCode().useEnglishVariables());\n\t\t\t\tvalidTable = checkFieldList(tableFields, 39, 3, false, data.getOptionCode().useEnglishVariables());\n\t\t\t\tString[] checkDataCustomerPartProperties = checkDataWarehouseGroupProperties(data);\n\t\t\t\texistImportantFields = checkDataCustomerPartProperties.length == 2;\n\n\t\t\t} catch (ImportitException e) {\n\t\t\t\tlogger.error(e);\n\t\t\t\tdata.appendError(Util.getMessage(\"err.structure.check\", e.getMessage()));\n\t\t\t}\n\t\t}\n\t\tif (validTable && validHead && validDb & existImportantFields) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isValid() {\n return handle > 0;\n }", "public boolean isValid() {\n return (identifier != null) || version.getVersion().equals(\"0.1\");\n }", "public boolean isValid() {\n return (m_Port != 0);\n }", "public boolean isValid() {\n return message == null;\n }", "private void checkStructure() {\n for (DatabaseUpdateType updateType : DatabaseUpdateType.values()) {\n checkDatabaseStructure(updateType);\n }\n }", "public boolean dropPhysicalStructureIfExists(Connection conn, String schemaName, String structureName) {\n\t\tboolean found = false;\n\t\tfor (DeployedPhysicalStructure dp : currentDeployedStructs)\n\t\t\tif (dp.getSchema().equals(schemaName) && dp.getBasename().equals(structureName)) {\n\t\t\t\tcurrentDeployedStructs.remove(dp);\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\tif (!found)\n\t\t\tlog.error(\"We dropped structure \" + schemaName + \" . \" + structureName + \" but did not find it in our currentDeployedStructs!\");\n\n\t\tboolean result = dropPhysicalStructure(conn, schemaName, structureName);\n\t\tif (!result)\n\t\t\treturn false;\n\t\t\n\t\treturn found; \n\n\t}", "public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isValid() {\n\t\treturn false;\n\t}", "public boolean valid() {\n return start != null && ends != null && weavingRegion != null;\n }", "protected boolean checkFormat() {\n\t\t// Read the card contents and check that all is ok.\n\t byte[] memory = utils.readMemory();\n\t if (memory == null)\n\t return false;\n\t \n\t // Check the application tag.\n\t for (int i = 1; i < 4; i++)\n\t if (memory[4 * 4 + i] != applicationTag[i])\n\t return false;\n\t \n\t // Check zeros. Ignore page 36 and up because of the safe mode.\n\t for (int i = 5 * 4; i < 36 * 4; i++)\n\t if (memory[i] != 0)\n\t return false;\n\t \n\t // Check that the memory pages 4..39 are not locked.\n\t // Lock 0: Check lock status for pages 4-7\n\t if (memory[2 * 4 + 2] != 0) \n\t return false;\n\t // Lock 1: \n\t if (memory[2 * 4 + 3] != 0)\n\t return false;\n\t // Lock 2:\n\t if (memory[40 * 4] != 0)\n\t \t\treturn false;\n\t // Lock 1:\n\t if (memory[40 * 4 + 1] != 0)\n\t \t\treturn false;\n\t \n\t return true;\n\t}", "public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Override\n public boolean isValid() {\n if(width < 0){\n return false;\n }\n\n if(height < 0){\n return false;\n }\n\n //no null objects\n if(origin == null){\n return false;\n }\n\n if(color == null){\n return false;\n }\n\n //if texture doesn't exist, sprite is not buildable\n if(!Gdx.files.internal(texture).exists()){\n Gdx.app.log(TAG, \"Texture cannot be found: \" + texture);\n return false;\n }\n\n return true;\n }", "private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (op == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'op' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "public boolean isValid()\n\t{\n\t\treturn false;\n\t}", "public boolean mo9444d() {\n if (!isLengthGreaterZero()) {\n return false;\n }\n byte[] bArr = this.byteArr;\n if (bArr.length >= 32) {\n return IsFullyValid(bArr, checkAndGetTypeLength());\n }\n return true;\n }", "@Test\n public void semanticError_badID_type_structiddoesntexist() {\n List<String> code = new ArrayList<>();\n code.add(\"CD19 Prog\");\n code.add(\"constants\");\n code.add(\"length = 10\");\n code.add(\"types\");\n code.add(\"mystruct is\");\n code.add(\"a : integer\");\n code.add(\"end\");\n code.add(\"myarray is array[length] of blah\");\n\n code.add(\"main\");\n code.add(\"a : integer\");\n code.add(\"begin\");\n code.add(\"a = 5;\");\n code.add(\"end\");\n code.add(\"CD19 Prog\");\n\n Scanner scanner = new Scanner(new CodeFileReader(code));\n List<Token> tokens = scanner.getAllTokens();\n\n Parser parser = new Parser(tokens);\n TreeNode tree = parser.parse();\n\n for (SemanticErrorMessage message : parser.getSemanticErrors())\n System.out.println(message.getErrorMessage());\n\n assertEquals(true, parser.getSemanticErrors().size() == 1);\n assertEquals(true, parser.getSemanticErrors().get(0).getErrorMessage().contains(\"blah\"));\n\n assertEquals(true, parser.isSyntacticallyValid());\n assertEquals(false, parser.isSemanticallyValid());\n\n }", "public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }", "public void validate(ObjectNode node) throws ValidationException {\n String systemId = null;\n String id = null;\n \n try {\n if (mSystemRegistry == null || !mSystemRegistry.isCurrent()) {\n mSystemRegistry = SystemRegistry.getInstance();\n }\n } catch (CodeLookupException ce) {\n throw new ValidationException(mLocalizer.t(\"OBJ668: Unable to access SystemRegistry {0}\", ce), ce);\n }\n \n try {\n systemId = (String) node.getValue(\"SystemCode\");\n id = (String) node.getValue(\"LocalID\");\n } catch (ObjectException e) {\n throw new ValidationException(mLocalizer.t(\"OBJ669: Local ID Validator \" + \n \"could not retrieve the SystemCode \" + \n \"or the Local ID: {0}\", e), e);\n }\n if (systemId == null) {\n throw new ValidationException(mLocalizer.t(\"OBJ670: The value for \" + \n \"SystemObject[SystemCode] is required.\"));\n }\n SystemDefinition sd = mSystemRegistry.getSystemDefinition(systemId);\n if (sd == null) {\n throw new ValidationException(mLocalizer.t(\"OBJ672: This is \" + \n \"not a valid System Code: {0}\", systemId));\n\n }\n\t\t// Only want active system codes\n\t\tif (!sd.getStatus().equals(\"A\")) {\n\t\t\tthrow new ValidationException(mLocalizer.t(\"OBJ673: System Code \" +\n\t\t\t\t\t\t\t\t\t\"{0} ({1}) is not active\", systemId, sd.getDescription()));\n\t\t}\n if (id == null) {\n throw new ValidationException(mLocalizer.t(\"OBJ671: The value for SystemObject[LocalId] \" + \n \"for {0} is required\", sd.getDescription()));\n }\n if (id.length() > sd.getIdLength()) {\n throw new ValidationException(systemId, sd.getDescription(), sd.getFormat(), id, \n mLocalizer.t(\"OBJ675: The value \" + \n \"of the Local ID ({0}) does not conform \" + \n \"to the format of the Local ID for {1}, \" +\n \"which is this pattern \\\"{2}\\\" - [maximum ID length {3} exceeded]\", \n id, sd.getDescription(), sd.getFormat(), sd.getIdLength()));\n }\n \n Pattern pattern = sd.getPattern();\n if (pattern != null) {\n if (!pattern.matcher(id).matches()) {\n throw new ValidationException(systemId, sd.getDescription(), sd.getFormat() ,id,\n mLocalizer.t(\"OBJ676: The value \" + \n \"of the Local ID ({0}) does not conform \" + \n \"to the format of the Local ID for {1}, \" +\n \"which is this pattern \\\"{2}\\\"\", \n id, sd.getDescription(), sd.getFormat()));\n }\n }\n\n }", "public void testModelIntegrity() {\n \t\tStructureNode modelRoot = Ajde.getDefault().getStructureModelManager().getStructureModel().getRoot();\n \t\tassertTrue(\"root exists\", modelRoot != null);\t\n \t\t\n \t\ttry {\n \t\t\ttestModelIntegrityHelper(modelRoot);\n \t\t} catch (Exception e) {\n \t\t\tassertTrue(e.toString(), false);\t\n \t\t}\n \t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Structure)) {\r\n return false;\r\n }\r\n Structure other = (Structure) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean isPackValid() {\n\t\treturn (logData != null\n\t\t\t\t&& logData.entries != null\n\t\t\t\t&& logData.entries.size() > 1);\n\t}", "private boolean isEmpty(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n int test = bitMap[bit] & MASK[mask];\n return test==0;\n }", "protected final void validateNotBuildingInner()\n {\n Validate.stateIsNull(myInner,What.INNERBLOCK);\n }", "public boolean hasPackedStruct() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public void validate() throws org.apache.thrift.TException {\n if (tableType == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableType' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'numCols' because it's a primitive and you chose the non-beans generator.\n // alas, we cannot check 'numClusteringCols' because it's a primitive and you chose the non-beans generator.\n if (tableName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableName' was not present! Struct: \" + toString());\n }\n if (dbName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'dbName' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (hdfsTable != null) {\n hdfsTable.validate();\n }\n if (hbaseTable != null) {\n hbaseTable.validate();\n }\n if (dataSourceTable != null) {\n dataSourceTable.validate();\n }\n }", "private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}", "public boolean validPID(int pid){\n\t\treturn (pid >= 0 && pid < layerAttributes.size() && layerAttributes.get(pid) != null);\n\t}", "public boolean containsValidMC() {\n if (getValidMC() == null) {\n return false;\n }\n return true;\n }", "public boolean isValid()\r\n {\r\n //Override this method in MediaItem object\r\n return getSemanticObject().getBooleanProperty(swb_valid,false);\r\n }", "public boolean isValid()\n {\n return this.address >= 0 && this.slaveId >= 0 && this.xlator != null\n && this.gatewayProtocol != null\n && (this.serialParameters != null\n || (this.gatewayIPAddress != null\n && this.gatewayPort != null));\n }", "@Override\n\tpublic boolean validObject() {\n\t\treturn valid;\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (stampedeId != null) {\n stampedeId.validate();\n }\n if (runId != null) {\n runId.validate();\n }\n }", "public boolean hasPackedStruct() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean isValid() {\n return header.isValid();\n }", "public boolean isValid() {\n return instance != null;\n }", "protected void checkValidity(Epml epml) {\n\t}", "public void m13410a() {\n if (this.f12818b == null) {\n throw new C4550jl(\"Required field 'id' was not present! Struct: \" + toString());\n } else if (this.f12820c == null) {\n throw new C4550jl(\"Required field 'appId' was not present! Struct: \" + toString());\n }\n }", "public boolean isValid(Segment segment) {\n\t\treturn !(segment instanceof ActualSegment) || (((ActualSegment)segment).txCount >= 0);\n\t}", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean isValid(){\n\t\treturn validBit;\n\t}", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\n return true;\n }", "public boolean valid() {\n return valid;\n }", "public boolean isValid() {\n \t\treturn valid;\n \t}", "private boolean is_valid_message(String ID)\n\t{\n\t\t// if the string is not null, not empty, and between 0 and 65356 in length, it is valid\n\t\tif(ID != null && !ID.equals(\"\") && ID.length() > 0 && ID.length() < 65356)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t// otherwise it's not\n\t\treturn false;\n\t}", "public boolean wasValid() {\n return !wasInvalid();\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "public boolean isValid() {\n return true;\n }", "public boolean isValid(){\n\t\treturn true;\n\t}" ]
[ "0.6122413", "0.6085846", "0.59980565", "0.5993744", "0.5954218", "0.59241456", "0.5919142", "0.5917813", "0.5912431", "0.58381015", "0.5801351", "0.57969964", "0.5780662", "0.5774544", "0.5768316", "0.5726851", "0.5672493", "0.5650256", "0.56389266", "0.56188637", "0.56090015", "0.5608798", "0.5592585", "0.55837816", "0.55659", "0.55460364", "0.5537871", "0.55378014", "0.55264926", "0.5479793", "0.5479473", "0.5442114", "0.5375539", "0.5369975", "0.53521645", "0.53391004", "0.5314074", "0.5294816", "0.529197", "0.52844393", "0.52738917", "0.5260743", "0.5259942", "0.52515805", "0.5249715", "0.5236606", "0.5222654", "0.52223814", "0.5207428", "0.5203748", "0.5195906", "0.51863503", "0.51828027", "0.51809585", "0.5174064", "0.517136", "0.5159421", "0.51589394", "0.51549685", "0.5152776", "0.5141059", "0.51356274", "0.51356274", "0.51356274", "0.5134812", "0.5120087", "0.5111526", "0.50943995", "0.50907266", "0.5065376", "0.5058785", "0.5051632", "0.5040483", "0.5040264", "0.5027869", "0.5026189", "0.5021428", "0.50193125", "0.5006106", "0.49934936", "0.49925163", "0.49920234", "0.4989484", "0.49890956", "0.4976173", "0.49666116", "0.4965893", "0.49412918", "0.49378794", "0.493467", "0.49245512", "0.49199015", "0.49199015", "0.4919538", "0.49160472", "0.49127728", "0.49110308", "0.49107733", "0.49035117", "0.49004978" ]
0.6684228
0
Return the machine ID used to look up machine structures.
public abstract String getMachineID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getMachineId();", "public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n machineId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n machineId_ = s;\n }\n return s;\n }\n }", "public String getMachineId()\n\t{\n\t\treturn machineId;\n\t}", "public int getMachineID() {\n return machineID;\n }", "public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getMachineIdBytes();", "public String getMachineUID()\n {\n return machineUID;\n }", "public MachineTypeId getMachineTypeId() {\n return machineTypeId;\n }", "public String vmwareMachineId() {\n return this.vmwareMachineId;\n }", "public void setMachineID(int value) {\n this.machineID = value;\n }", "@JsonIgnore\n public String getVMId() {\n if (wvm == null || wvm == WVM.Workspace) {\n return null;\n }\n switch (wvm) {\n case Version:\n return versionId;\n default:\n return microversionId;\n }\n }", "public String getMaternalID();", "UUID getMonarchId();", "public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}", "public Builder setMachineId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }", "public String getSystemId();", "private String getCurrentInstanceId() throws IOException {\n String macAddress = CommonUtils.toHexString(RuntimeUtils.getLocalMacAddress());\n // 16 chars - workspace ID\n String workspaceId = DBWorkbench.getPlatform().getWorkspace().getWorkspaceId();\n if (workspaceId.length() > 16) {\n workspaceId = workspaceId.substring(0, 16);\n }\n\n StringBuilder id = new StringBuilder(36);\n id.append(macAddress);\n id.append(\":\").append(workspaceId).append(\":\");\n while (id.length() < 36) {\n id.append(\"X\");\n }\n return id.toString();\n }", "public int getMessageId() {\n return concatenateBytes(binary[MSID_OFFSET],\n binary[MSID_OFFSET+1],\n binary[MSID_OFFSET+2],\n binary[MSID_OFFSET+3]);\n }", "public byte[] getInstanceId() {\n if (byteInstanceID == null) {\n final Device device = Device.getInstance();\n final byte[] deviceid = device.getWDeviceId();\n byteInstanceID = Encryption.SHA1(deviceid);\n }\n return byteInstanceID;\n }", "java.lang.String getMachineType();", "private static final long getHostId(){\n long macAddressAsLong = 0;\n try {\n Random random = new Random();\n InetAddress address = InetAddress.getLocalHost();\n NetworkInterface ni = NetworkInterface.getByInetAddress(address);\n if (ni != null) {\n byte[] mac = ni.getHardwareAddress();\n random.nextBytes(mac); // we don't really want to reveal the actual MAC address\n\n //Converts array of unsigned bytes to an long\n if (mac != null) {\n for (int i = 0; i < mac.length; i++) {\n macAddressAsLong <<= 8;\n macAddressAsLong ^= (long)mac[i] & 0xFF;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return macAddressAsLong;\n }", "public java.lang.String getMachineName() {\r\n return machineName;\r\n }", "@JsonIgnore\n public String getWVMId() {\n if (wvm == null) {\n return null;\n }\n switch (wvm) {\n case Workspace:\n return workspaceId;\n case Version:\n return versionId;\n default:\n return microversionId;\n }\n }", "public int getEmulationId() {\n\t\treturn (id);\n\t}", "String mo10312id();", "com.google.protobuf.ByteString getMachineTypeBytes();", "@JsonIgnore\n public String getWMId() {\n if (wvm == null || wvm == WVM.Version) {\n return null;\n }\n switch (wvm) {\n case Workspace:\n return workspaceId;\n default:\n return microversionId;\n }\n }", "public static String generateInstanceId() {\n\t\t// TODO Use a complex hashing algorithm and generate 16-character\n\t\t// string;\n\n\t\treturn Calendar.getInstance().getTime().toString().replaceAll(\" \", \"\");\n\t}", "public String getOemID() {\n final byte[] data = new byte[8];\n mem.getBytes(8, data, 0, data.length);\n return new String(data).trim();\n }", "private String getDeviceId() {\n String deviceId = telephonyManager.getDeviceId(); \n \n \n // \"generic\" means the emulator.\n if (deviceId == null || Build.DEVICE.equals(\"generic\")) {\n \t\n // This ID changes on OS reinstall/factory reset.\n deviceId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);\n }\n \n return deviceId;\n }", "long getInstanceID();", "@DISPID(38)\r\n\t// = 0x26. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint id();", "public MachineType getMachineType() {\n return machineType;\n }", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "String getInstanceID();", "public String getSystemId() {\n\t\treturn mSystemId;\n\t}", "public String getSystemId() { return this.systemId; }", "public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }", "public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }", "public String code() {\n\t\treturn (\"ID\"+this.hashCode()).replace(\"-\", \"M\");\n\t}", "public Builder setMachineIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }", "public String getClientMachine();", "int getSymbolicId();", "public void setMachineId(String machineId)\n\t{\n\t\tthis.machineId = machineId;\n\t}", "public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }", "private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }", "public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }", "private Id getSemanticID() {\n if (semantic == null) {\n return Id.invalid();\n }\n return new Id(RefreshIDFactory.getOrCreateID(semantic));\n }", "@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(13)\n\tint id();", "public String getSystemId()\n {\n if (entityStack.empty())\n {\n return null;\n }\n else\n {\n return (String) entityStack.peek();\n }\n }", "String getIdNumber();", "int getSysID();", "int getServerId();", "String getProgramId();", "public String getSystemId() {\n return agentConfig.getSystemId();\n }", "@DISPID(80)\r\n\t// = 0x50. The runtime will prefer the VTID if present\r\n\t@VTID(78)\r\n\tint id();", "public static Serializable getSystemId() {\n Serializable ret = null;\n if (getSystemStatic() != null) {\n ret = getSystemStatic().getDistributionManager().getId();\n }\n return ret;\n }", "public int getId() {\n\t\treturn config >> 8;\n\t}", "public static String deviceId() {\n\t\t// return device id\n\t\treturn getTelephonyManager().getDeviceId();\n\t}", "String getMspId();", "boolean hasMachineId();", "public com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType getMachineType() {\n return machineType;\n }", "public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }", "static String getMyPid() {\n String pid = \"0\";\n try {\n final String nameStr = ManagementFactory.getRuntimeMXBean().getName();\n\n // XXX (bjorn): Really stupid parsing assuming that nameStr will be of the form\n // \"pid@hostname\", which is probably not guaranteed.\n pid = nameStr.split(\"@\")[0];\n } catch (RuntimeException e) {\n // Fall through.\n }\n return pid;\n }", "public long id() {\n\t\treturn message.getBaseMarketId();\n\t}", "public String getInternalId()\n {\n return internalId;\n }", "public static String getInstanceIdByComputeNode(final String computeNodePath) {\n Pattern pattern = Pattern.compile(getComputeNodePath() + \"(/status|/worker_id|/labels)\" + \"/([\\\\S]+)$\", Pattern.CASE_INSENSITIVE);\n Matcher matcher = pattern.matcher(computeNodePath);\n return matcher.find() ? matcher.group(2) : \"\";\n }", "public final static String getServerIdentificator() {\r\n\t\treturn serverID;\r\n\t}", "public Machine machine() {\n return machine;\n }", "public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }", "public String getProductID() {\n final byte[] data = new byte[12];\n mem.getBytes(16, data, 0, data.length);\n return new String(data).trim();\n }", "long getCodeId();", "long getCodeId();", "long getCodeId();", "public gov.ucore.ucore._2_0.StringType getSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().find_element_user(SYSTEMIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "private Machine getMachineOrFail(String machineId) {\n for (Machine machine : listMachines()) {\n if (machine.getId().equals(machineId)) {\n return machine;\n }\n }\n throw new NotFoundException(String.format(\"no machine with id '%s' found in cloud pool\", machineId));\n }", "String experimentId();", "public String getId ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getId\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getId ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public static synchronized String getUID() throws UnknownHostException, SocketException {\r\n \r\n // Initialized MAC address if necessary.\r\n if (!initialized) {\r\n initialized = true;\r\n macAddress = UMROMACAddress.getMACAddress();\r\n macAddress = Math.abs(macAddress);\r\n }\r\n \r\n // Use standard class to get unique values.\r\n String guidText = new UID().toString();\r\n \r\n StringTokenizer st = new StringTokenizer(guidText, \":\");\r\n \r\n int unique = Math.abs(Integer.valueOf(st.nextToken(), 16).intValue());\r\n long time = Math.abs(Long.valueOf(st.nextToken(), 16).longValue());\r\n // why add 0x8000 ? because usually starts at -8000, which wastes 4 digits\r\n int count = Math\r\n .abs(Short.valueOf(st.nextToken(), 16).shortValue() + 0x8000);\r\n \r\n // concatenate values to make it into a DICOM GUID.\r\n String guid = UMRO_ROOT_GUID + macAddress + \".\" + unique + \".\" + time\r\n + \".\" + count;\r\n \r\n return guid;\r\n }", "public java.lang.String getMnpId() {\n java.lang.Object ref = mnpId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n mnpId_ = s;\n return s;\n }\n }", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();" ]
[ "0.834971", "0.820379", "0.8202763", "0.8088302", "0.7997878", "0.785238", "0.7780331", "0.77289146", "0.7480144", "0.7102257", "0.69102156", "0.66048306", "0.64761716", "0.64279157", "0.6369963", "0.6338008", "0.63331056", "0.63091844", "0.6285944", "0.6269442", "0.6166373", "0.61327565", "0.6118998", "0.6084559", "0.6078221", "0.6057199", "0.60465646", "0.603812", "0.60328984", "0.60226667", "0.60170966", "0.6017093", "0.60081685", "0.5982348", "0.5977385", "0.5975129", "0.59693336", "0.59575427", "0.59503967", "0.5949284", "0.5945394", "0.589896", "0.58837444", "0.58661884", "0.58533174", "0.5845136", "0.58422005", "0.583872", "0.5836704", "0.5835254", "0.58347255", "0.5830424", "0.58155304", "0.58034897", "0.5801512", "0.5801237", "0.5791529", "0.5784654", "0.57778275", "0.577343", "0.57440466", "0.57320976", "0.5719067", "0.5714807", "0.5711276", "0.56973845", "0.56950295", "0.56935143", "0.56673616", "0.5659767", "0.5655908", "0.56556666", "0.56547636", "0.56433374", "0.56433374", "0.56433374", "0.56421226", "0.5641519", "0.5613582", "0.5612146", "0.5602711", "0.5594711", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154", "0.55938154" ]
0.76319265
8
Checking the input parameter validity
@Override @Transactional public LotteryTicket createLotteryTicket(LotteryTicketRequest lotteryTicketRequest) { checkLotteryTicketRequest(lotteryTicketRequest); try { // Create a lottery ticket LotteryTicket lotteryTicket = lotteryTicketRepository.save(new LotteryTicket()); // Create lines per ticket List<LotteryTicketLine> linesList = createTicketLines(lotteryTicketRequest.getNumberOfLines(), lotteryTicket); lineRepository.saveAll(linesList); lotteryTicket.setLotteryTicketLine(linesList); // Return ticket response return lotteryTicket; } catch (Exception exception) { LOGGER.error("Something went wrong in createLotteryTicket" + exception); throw new InternalServerError("Something went wrong in creating lottery ticket"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateInputParameters(){\n\n }", "public void checkParameters() {\n }", "protected abstract boolean isValidParameter(String parameter);", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "protected abstract boolean isInputValid();", "private boolean isInputValid() {\n return true;\n }", "private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}", "void checkValid();", "private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }", "@Override\n public boolean validate(final String param) {\n return false;\n }", "private static boolean paramValid(String paramName,String paramValue){\n return paramName!=null&&paramName.length()>0&&paramValue!=null&&paramValue.length()>0;\n }", "public abstract boolean verifyInput();", "protected abstract int isValidInput();", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "protected abstract boolean checkInput();", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "protected abstract Object validateParameter(Object constraintParameter);", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "boolean isValid(final Parameter... parameters);", "boolean checkValidity();", "boolean hasParameterValue();", "public boolean checkInput();", "public void checkValid() throws StyxException\n {\n if (this.getJSAPParameter() instanceof Option)\n {\n Option op = (Option)this.getJSAPParameter();\n if (this.valueSet)\n {\n if (this.param.getInputFile() != null)\n {\n // This parameter represents an input file. See if this is a URL\n // and if so, download it\n // TODO: if this is not a URL, check that it exists\n String str = this.getParameterValue();\n if (str.startsWith(URL_PREFIX))\n {\n // This could be a URL\n String urlStr = str.substring(URL_PREFIX.length());\n try\n {\n URL url = new URL(urlStr);\n File urlPath = new File(url.getPath());\n // TODO: be cleverer about file names, particularly\n // watching out for name clashes\n String name = urlPath.getName().equals(\"\") ? \"random.dat\" : urlPath.getName();\n this.instance.downloadFrom(url, name);\n // Now set the contents of this file to the new file name\n this.setParameterValue(name);\n }\n catch(MalformedURLException mue)\n {\n throw new StyxException(urlStr + \" is not a valid URL\");\n }\n }\n }\n }\n else\n {\n // A value hasn't been set\n if (op.required())\n {\n throw new StyxException(this.name + \" is a required parameter:\" +\n \" a value must be set\");\n }\n }\n }\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "private void checkUserInput() {\n }", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify a configuration\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "private boolean isInValidInput(String input) {\n\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn true;\n\n\t\tint firstPipeIndex = input.indexOf(PARAM_DELIMITER);\n\t\tint secondPipeIndex = input.indexOf(PARAM_DELIMITER, firstPipeIndex + 1);\n\n\t\t/*\n\t\t * if there are no PARAM_DELIMITERs or starts with a PARAM_DELIMITER\n\t\t * (Meaning command is missing) or only single PARAM_DELIMITER input is\n\t\t * not valid\n\t\t */\n\t\tif (firstPipeIndex == -1 || firstPipeIndex == 0 || secondPipeIndex == -1)\n\t\t\treturn true;\n\n\t\t// Means package name is empty\n\t\tif (secondPipeIndex - firstPipeIndex < 2)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "private boolean validateData() {\r\n TASKAggInfo agg = null;\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n\r\n if (getArgument1() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 1 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getArgument2() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 2 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getOperand() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Filter value must be of type integer\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }", "boolean hasParameterName();", "protected void validatePreamp(int[] param) {\n }", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "boolean hasParameters();", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "private void validateData() {\n }", "private static boolean valid(String arg) {\n\n /* check if valid option */\n if ( arg.equals(\"-v\") || arg.equals(\"-i\") || arg.equals(\"-p\") || arg.equals(\"-h\") )\n return true;\n\n /* check if valid port */\n try {\n int port = Integer.parseInt(arg);\n if ( ( 0 < port ) && ( port < 65354 ) )\n return true;\n } catch (NumberFormatException ignored) {}\n\n /* check if valid ip address */\n String[] ips = arg.split(\"\\\\.\");\n if ( ips.length != 4 )\n return false;\n try{\n for (int i=0; i<4; i++){\n int ip = Integer.parseInt(ips[i]);\n if ( ( ip < 0) || (255 < ip ) )\n return false;\n }\n } catch (NumberFormatException ignored) {return false;}\n\n return true;\n }", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "public void validate() {}", "protected abstract boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "void validate();", "void validate();", "public boolean isParameterProvided();", "public abstract boolean isValidValue(String input);", "public abstract boolean isValid();", "public abstract boolean isValid();", "public abstract boolean isValid();", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "public boolean checkVaild() throws IOException;", "private static void checkValidity(boolean valid) throws InvalidExpression\r\n {\r\n if(!valid)\r\n {\r\n throw new InvalidExpression(\"The expression entered is not valid\");\r\n }\r\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean checkParams(String[] params){\r\n\t\tfor(String param:params){\r\n\t\t\tif(param == \"\" || param == null || param.isEmpty()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void checkParameters()\n\t\tthrows DiameterMissingAVPException {\n\t\tDiameterClientRequest request = getRequest();\n\t\tDiameterAVPDefinition def = ShUtils.getUserIdentityAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t\tdef = ShUtils.getDataReferenceAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t}", "protected abstract boolean isInputValid(@NotNull ConversationContext context, @NotNull String input);", "@Override\n\tprotected void checkNumberOfInputs(int length) {\n\n\t}", "public abstract boolean validate();", "@Test\n public void testValidateParams() {\n String[] params;\n\n // valid params - just the application name\n params = new String[]{\"Application\"};\n instance.validateParams(params);\n\n // valid params - extra junk\n params = new String[]{\"Application\", \"Other\", \"Other\"};\n instance.validateParams(params);\n\n // invalid params - empty\n params = new String[0];\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - null first param\n params = new String[]{null};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - empty string\n params = new String[]{\"\"};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n }", "private boolean isValidInput() {\n if (null == mUsername || mUsername.length() <= 0) {\n return false;\n } else if (null == mPassword || mPassword.length() <= 0) {\n return false;\n }\n return true;\n }", "public boolean checkParameters(String username,String password, String company, String street, String city,\n String state, String zipcode, String radius, String normal, String overtime){\n //first check if they are null\n if (username==null||password==null||company==null||street==null||city==null||state==null||\n zipcode==null||radius==null || normal==null || overtime==null){\n return false;\n }\n if (username.length()==0||password.length()==0||company.length()==0||street.length()==0||\n city.length()==0||state.length()==0||zipcode.length()==0||radius.length()==0\n || normal.length()==0 || overtime.length()==0){\n return false;\n }\n //at this point the inputs are valid\n return true;\n }", "public boolean validateParameter(Parameter oParameter) {\r\n boolean bRet = true;\r\n for (Parameter cat : this.lstParameters) {\r\n if (cat.getDescriptionP().equalsIgnoreCase(oParameter.getDescriptionP())) {\r\n bRet = false;\r\n }\r\n }\r\n return bRet;\r\n }", "private boolean validParams(String name, String company) {\n\t\treturn (name != null && !name.trim().equals(\"\")) \n\t\t\t\t&& (company != null && !company.trim().equals(\"\"));\n\t}", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "private boolean validParams(double dt, double runTime, int startDay, double initPop, String stage, \r\n\t\t\t\t\t\t\t\tdouble gtMultiplier, double harvestLag, double critcalT, double daylightHours) {\r\n\t\tif (dt <= 0 || runTime < 0 || initPop < 0) // positive values (dt > 0)\r\n\t\t\treturn false;\r\n\t\tif (gtMultiplier <= 0 || harvestLag < 0 || harvestLag > 365 || daylightHours < 0 || daylightHours > 24)\r\n\t\t\treturn false;\r\n\t\tfor (int j = 0; j < names.length; j ++) { // stage must be a valid swd lifestage\r\n\t\t\tif (stage.equals(names[j]))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "protected void validateAttenuator(int[] param) {\n }", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "private boolean isParameter() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameterDeclaration())\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(isParameterMark())\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "private static boolean arePostRequestParametersValid(String title, String description,\n String imageUrl, String releaseDate, String runtime, String genre, String directors,\n String writers, String actors, String omdbId) {\n return isParameterValid(title, MAX_TITLE_CHARS) && isParameterValid(description, MAX_CHARS)\n && isParameterValid(imageUrl, MAX_CHARS) && isParameterValid(releaseDate, MAX_CHARS)\n && isParameterValid(runtime, MAX_CHARS) && isParameterValid(genre, MAX_CHARS)\n && isParameterValid(directors, MAX_CHARS) && isParameterValid(writers, MAX_CHARS)\n && isParameterValid(actors, MAX_CHARS) && isParameterValid(omdbId, MAX_CHARS);\n }", "int validate(ValidationContext ctx) {\n\t\tint count = 0;\n\t\tif (this.name == null) {\n\t\t\tctx.addError(\n\t\t\t\t\t\"Parameter has to have a name. This need not be the same as the one in the db though.\");\n\t\t\tcount++;\n\t\t}\n\t\tcount += ctx.checkDtExistence(this.dataType, \"dataType\", false);\n\t\tcount += ctx.checkRecordExistence(this.recordName, \"recordName\", false);\n\n\t\tif (this.defaultValue != null) {\n\t\t\tif (this.dataType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" is non-primitive but a default value is specified.\");\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tDataType dt = ComponentManager.getDataTypeOrNull(this.dataType);\n\t\t\t\tif (dt != null && dt.parseValue(this.defaultValue) == null) {\n\t\t\t\t\tthis.addError(ctx, \" default value of \" + this.defaultValue\n\t\t\t\t\t\t\t+ \" is invalid as per dataType \" + this.dataType);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.recordName != null) {\n\t\t\tif (this.dataType != null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" Both dataType and recordName specified. Use dataType if this is primitive type, or record if it as array or a structure.\");\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (this.sqlObjectType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" recordName is specified which means that it is a data-structure. Please specify sqlObjectType as the type of this parameter in the stored procedure\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (this.dataType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" No data type or recordName specified. Use dataType if this is primitive type, or record if it as an array or a data-structure.\");\n\t\t\t\tcount++;\n\t\t\t} else if (this.sqlObjectType != null) {\n\t\t\t\tctx.addError(\n\t\t\t\t\t\t\"sqlObjectType is relevant only if this parameter is non-primitive.\");\n\t\t\t}\n\n\t\t}\n\n\t\tif (this.isArray) {\n\t\t\tif (this.sqlArrayType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" is an array, and hence sqlArrayType must be specified as the type with which this parameter is defined in the stored procedure\");\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "protected void checkValidity(Epml epml) {\n\t}", "private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}", "public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }", "public static void CheckIfParametersAreValid(String args[]) {\n\t\tif (args.length != 4) {\n\t\t\tSystem.err.printf(\"usage: %s server_name port\\n\", args[1]);\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tIP = args[0];\n\t\tPORT = Integer.parseInt(args[1]);\n\t\tBUFFER_SIZE = Integer.parseInt(args[2]);\n\t\tMSG_RATE = Integer.parseInt(args[3]);\n\n\t\t//Validating Ip - Splitting the ip in 4 numbers because they are dividied by \". \" when we get from input\n\t\tString[] ipSeparated = args[0].split(\"\\\\.\");\n\n\t\tif(ipSeparated.length<4 ){\n\t\t\tSystem.out.println(\"Invalid IP format.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tif (ipSeparated.length == 4) {\n\n\t\t\tfor (int i = 0; i < ipSeparated.length; i++) {\n\t\t\t\tif (Integer.valueOf(ipSeparated[i]) < 0 || Integer.valueOf(ipSeparated[i]) > 255 ) {//if ip is not complete i get error\n\t\t\t\t\tSystem.out.println(\"Invalid IP format.\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}else {\n\t\t\t\t\tIP = args[0];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Validating Port - The Port number has to be between 0 adn 65535\n\t\tif (Integer.parseInt(args[1])>= 0 && Integer.parseInt(args[1]) < 65535) {\n\t\t\tPORT = Integer.parseInt((args[1]));\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid PORT Number.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Validating Buffer - The Buffer Size ahs to be between 0 and 2048\n\t\tif (Integer.parseInt(args[2]) > 0 || Integer.parseInt(args[2]) < 2048) {\n\t\t\tBUFFER_SIZE = Integer.parseInt((args[2]));\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid Buffer Size.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Checking the parameter order of the deserved place for message rate\n\t\tif (Integer.parseInt(args[3]) >= 0) {\n\t\t\tMSG_RATE = Integer.parseInt(args[3]);\n\t\t} else {\n\t\t\tSystem.out.println(\"Message RATE Invalid.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "private boolean validateParams(String userName, String password, String fullName) {\n if (userName == null || password == null || fullName == null) {\n return false;\n }\n\n if (userName.length() == 0 || password.length() == 0 || fullName.length() == 0) {\n return false;\n }\n\n return true;\n }", "public org.apache.spark.ml.param.Param<java.lang.String> handleInvalid () { throw new RuntimeException(); }", "private boolean validParams(Platform platform, String name, String company) {\n\t\treturn platform != null && validParams(name, company);\n\t}", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "public boolean validateInput() {\n/* 158 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "protected void validateFact(Fact[] param) {\r\n\r\n }", "public boolean hasParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \");\n Via via=(Via)sipHeader;\n \n if(name == null) throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null parameter\");\n return via.hasParameter(name);\n }", "@Value.Check\n default void checkPreconditions()\n {\n RangeCheck.checkIncludedInInteger(\n this.feedback(),\n \"Feedback\",\n RangeInclusiveI.of(0, 7),\n \"Valid feedback values\");\n\n RangeCheck.checkIncludedInInteger(\n this.transpose(),\n \"Transpose\",\n RangeInclusiveI.of(-24, 24),\n \"Valid transpose values\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Level(),\n \"Pitch R1 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Rate(),\n \"Pitch R1 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Level(),\n \"Pitch R2 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Rate(),\n \"Pitch R2 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Level(),\n \"Pitch R3 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Rate(),\n \"Pitch R3 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Level(),\n \"Pitch R4 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Rate(),\n \"Pitch R4 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationDepth(),\n \"LFO Pitch Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid pitch modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationSensitivity(),\n \"LFO Pitch Modulation Sensitivity\",\n RangeInclusiveI.of(0, 7),\n \"Valid pitch modulation sensitivity values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoAmplitudeModulationDepth(),\n \"LFO Amplitude Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid amplitude modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoSpeed(),\n \"LFO Speed\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO speed values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoDelay(),\n \"LFO Delay\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO delay values\");\n }", "private void checkParams(String[] params) throws MethodCallWithNonexistentParameter,\n OutmatchingParametersToMethodCall, OutmatchingParameterType, InconvertibleTypeAssignment {\n ArrayList<Variable> methodParams = this.method.getMethodParameters();\n if (params.length != methodParams.size()) {\n // not enough params somewhere, or more than enough.\n throw new OutmatchingParametersToMethodCall();\n }\n int i = 0;\n for (String toBeParam : params) {\n toBeParam = toBeParam.trim();\n Variable toBeVariable = findParamByName(toBeParam);\n VariableVerifier.VerifiedTypes type = methodParams.get(i).getType();\n if (toBeVariable == null) {\n VariableVerifier.VerifiedTypes typeOfString = VariableVerifier.VerifiedTypes.getTypeOfString(toBeParam);\n if (!type.getConvertibles().contains(typeOfString)) {\n throw new MethodCallWithNonexistentParameter();\n }\n } else {\n checkTypes(toBeVariable, methodParams.get(i));\n checkValue(toBeVariable);\n }\n i++;\n }\n }", "private String checkParameters (HttpServletRequest request)\r\n\t{\r\n\t\tString ret = \"ok\";\r\n\t\tString paramName = null;\r\n\t\tString occNo = null;\r\n\t\tString encoding = null;\r\n\t\tString reqInd = null;\r\n\t\tString expression = \"^[-+]?[0-9]*\";\r\n\t\tPattern pattern = Pattern.compile(expression);\r\n\t\tMatcher matcher = null;\r\n\t\t\r\n\t\tfor (int i = 0; true; i++) {\r\n\t\t\tparamName = request.getParameter(\"paramName\" + i);\r\n\t\t\tif(paramName == null || paramName.equalsIgnoreCase(\"\")){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\toccNo = request.getParameter(\"paramOccNo\" + i);\r\n\t\t\t\r\n\t\t\t// WI 22224\r\n\t\t\tif(occNo != null){\r\n\t\t\t\tmatcher = pattern.matcher(occNo);\r\n\t\t\t}\r\n\t\t\tif(occNo!=null && !occNo.equalsIgnoreCase(\"\") && !matcher.matches()){ \r\n\t\t\t\tret = \"The Parameter Occurence Number should be integer.\"; \r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tencoding = request.getParameter(\"paramEncoding\" + i);\r\n\t\t\tif(encoding!=null && !encoding.equalsIgnoreCase(\"\") && !encoding.equalsIgnoreCase(Phrase.XML_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ZIP_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.BASE64_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ENCRYPT_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.DIGEST_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.NONE_TYPE)\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Encoding should be: \" \r\n\t\t\t\t\t+ Phrase.XML_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ZIP_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.BASE64_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ENCRYPT_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.DIGEST_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.NONE_TYPE + \".\"\r\n\t\t\t\t\t; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\treqInd = request.getParameter(\"paramReqInd\" + i);\r\n\t\t\tif(reqInd!=null && !reqInd.equalsIgnoreCase(\"\") && !reqInd.equalsIgnoreCase(\"true\")\r\n\t\t\t\t&& !reqInd.equalsIgnoreCase(\"false\")\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Required Indicator should be: true or false.\"; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t\r\n\t}" ]
[ "0.8608429", "0.78570724", "0.766763", "0.76294076", "0.76042336", "0.7545249", "0.7354133", "0.7340896", "0.7314602", "0.7198875", "0.71971256", "0.7194595", "0.7178415", "0.7137243", "0.71290046", "0.71134675", "0.7079102", "0.70189255", "0.6954601", "0.69426894", "0.69239163", "0.6919227", "0.6895131", "0.68737656", "0.68576944", "0.67960703", "0.67689896", "0.6730211", "0.671512", "0.67115057", "0.6694061", "0.6680659", "0.6670685", "0.66269916", "0.6625596", "0.6612936", "0.65990347", "0.6588937", "0.65857905", "0.65754634", "0.6547268", "0.6515741", "0.6498069", "0.6498069", "0.6498069", "0.6498069", "0.6498069", "0.6495631", "0.6488319", "0.6486892", "0.64700407", "0.64675623", "0.64675623", "0.64675623", "0.64675623", "0.64675623", "0.6463783", "0.6463783", "0.64620644", "0.6449871", "0.64422333", "0.64422333", "0.64422333", "0.64341533", "0.64267457", "0.64263076", "0.6416465", "0.64162177", "0.64159715", "0.6402717", "0.6398708", "0.6387349", "0.6352383", "0.6350801", "0.6349743", "0.63326454", "0.633093", "0.63292825", "0.632624", "0.63226193", "0.6317253", "0.63110495", "0.62900144", "0.62822694", "0.6281351", "0.6266563", "0.6261595", "0.625954", "0.62544036", "0.62451804", "0.6244536", "0.62443346", "0.6240308", "0.62393165", "0.6237328", "0.6228439", "0.6225905", "0.6225153", "0.622151", "0.62204736", "0.6220044" ]
0.0
-1
Getting the tickets list
@Override public List<LotteryTicket> getAllLotteryTickets() { List<LotteryTicket> ticket = null; try { ticket = lotteryTicketRepository.findAllByIsCancelled(false); } catch (Exception exception) { LOGGER.error("Something went wrong in getAllLotteryTickets" + exception); throw new InternalServerError("Something went wrong in getting all lottery tickets"); } // Check if ticket list is empty if (ticket == null || ticket.size() == 0) { throw new InternalServerError("No tickets found"); } // Return tickets list response return ticket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Ticket> getTickets() {return tickets;}", "public List<Ticket> getTicketList() {\r\n\t\treturn ticketList;\r\n\t}", "public List<Ticket> getAllTickets(){\n List<Ticket> tickets=ticketRepository.findAll();\n return tickets;\n }", "public static ArrayList<Ticket> getTickets() {\r\n\t\treturn ticketsBar;\r\n\t}", "@GetMapping(value=\"/ticket/alltickets\")\n\tpublic List<Ticket> getAllTickets(){\n\t\treturn ticketBookingService.getAllTickets();\n\t}", "public List<Ticket> getTicketsForPurchase() {\n if (ticket == null) {\n ticket = new ArrayList<Ticket>();\n }\n return this.ticket;\n }", "@GET(\"dev/gig/list_tickets/\")\n Call<List<TicketResp>> getTicketList(@Header(\"authorization\") String auth);", "public ArrayList<Ticket> readTickets(String command) {\r\n try{\r\n ResultSet results = Connect.readSp(command);\r\n \r\n while (results.next()) {\r\n Ticket tkt = new Ticket();\r\n tkt.setTktNo(results.getInt(\"tktNo\"));\r\n tkt.setPersonellNo(results.getInt(\"staffNo\"));\r\n tkt.setProcessLeadNo(results.getInt(\"processLeadNo\"));\r\n tkt.setTktName(results.getString(\"name\"));\r\n tkt.setStatus(results.getString(\"status\"));\r\n tkt.setCategory(results.getString(\"category\"));\r\n System.out.println(\"this effin ticket \" + tkt.getTktNo());\r\n tkt.readComments();\r\n tkt.readTasks();\r\n tickets.add(tkt);\r\n }\r\n results.close();\r\n }\r\n catch (SQLException e) {\r\n System.out.println(\"Failure\"+e.getMessage( ));\r\n }\r\n return tickets;\r\n }", "private void loadTickets() {\n\t\topenTickets.clear();\n\t\tclosedTickets.clear();\n\t\tArrayList<Ticket> tickets = jdbc.getTickets();\n\t\t\n\t\tfor (Ticket t : tickets) {\n\t\t\tUser u = jdbc.get_user(t.submittedBy);\n\t\t\tString submittedBy = \"Submitted By: \"+u.get_lastname()+\", \"+u.get_firstname();\n\t\t\tString id = \"Ticket ID: \"+t.ticketID;\n\t\t\tString title = \"Title: \"+t.title;\n\t\t\tif (t.isDone) {\n\t\t\t\tString status = \"Status: Closed\";\n\t\t\t\tString s = String.format(\"%-40s%-40s%-40s%-40s\", id, title, submittedBy, status);\n\t\t\t\tclosedTickets.addElement(s);\n\t\t\t} else {\n\t\t\t\tString status = \"Status: Open\";\n\t\t\t\tString s = String.format(\"%-30s%-30s%-30s%-30s\", id, title, submittedBy, status);\n\t\t\t\topenTickets.addElement(s);\n\t\t\t}\n\t\t}\n\t}", "public Set getLoggedInUserTickets();", "public Set<Ticket> getTickets() { return Set.copyOf(tickets); }", "private TicketList() {\n initTicketList();\n }", "List<Ticket> getTickets(String status, String priority);", "public List<Ticket> getTransactionLog() {\r\n\t\treturn tickets;\r\n\t}", "@Override\n\tpublic List<IAdhocTicket> getCurrentTickets() {\n\t\tList<IAdhocTicket> currentTickets = new ArrayList<IAdhocTicket>();\n\t\tfor (int i = 0; i < currentTicketNo; i++) {\n\t\t\tif (currentTickets.get(i).isCurrent() == true) {\n\t\t\t\tcurrentTickets.add(currentTickets.get(i));\n\t\t\t}\n\t\t}\n\t\treturn currentTickets;\n\t}", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public Set getTickets(String username);", "private void displayList(Ticket[] tickets){\n clrscr();\n System.out.println(\"Welcome to Zendesk Tickets Viewer!\\n\");\n System.out.println(\"Displaying PAGE \" + pageNumber + \"\\n\");\n System.out.printf(\"%-6s%-60s%-14s\\n\", \"ID\", \"Subject\", \"Date Created\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n // Handles if API is unavailable\n if(tickets != null){\n for (Ticket t: tickets) {\n String s = t.getSubject();\n if(s.length() > 60){\n s = s.substring(0,58);\n s += \"..\";\n }\n System.out.printf(\"%-6s%-60s%-14s\\n\", t.getId(), s, sdf.format(t.getCreated_at()));\n }\n } else {\n System.out.println(\"Sorry! Failed to retrieve tickets. The API might be unavailable or Username / Token is incorrect\");\n }\n\n if(pageNumber > 1){\n System.out.print(\"<-- Previous Page (P) | \");\n }\n if(hasMore){\n System.out.println(\"Next Page (N) -->\");\n }\n System.out.println(\"\");\n System.out.println(\"View Ticket Details (-Enter ID Number-) | Quit (Q)\");\n System.out.println(\"\");\n if (hasMore && pageNumber > 1) {\n System.out.println(\"What would you like to do? ( P / N / Q / #ID )\");\n } else if (pageNumber > 1 && !hasMore){\n System.out.println(\"What would you like to do? ( P / Q / #ID )\");\n } else if (pageNumber == 1 && hasMore){\n System.out.println(\"What would you like to do? ( N / Q / #ID )\");\n } else {\n System.out.println(\"What would you like to do? ( Q / #ID )\");\n }\n }", "public List<ServicioTicket> obtenerTodosLosServiciosDeTicket() {\n return this.servicioTicketFacade.findAll();\n }", "@Override\n\tpublic int getCount() {\n\t\treturn mTickets.size();\n\t}", "@Test\r\n public void getEventTicketInstanceList() {\r\n System.out.println(\"getEventTicketInstanceList begin.\");\r\n\r\n // Model ID of event ticket instances you want to get.\r\n String modelId = \"eventTicketModelTest\";\r\n\r\n // Get a list of the event ticket instances.\r\n String urlSegment = \"eventticket/instance\";\r\n List<HwWalletObject> responseInstances = walletBuildService.getInstances(urlSegment, modelId, 5);\r\n System.out.println(\"Event ticket instances list: \" + CommonUtil.toJson(responseInstances));\r\n }", "public @Nullable List<Ticket> getAllTicketsForDate(String dateString){\n return null;\n }", "@Transactional(readOnly = true)\n public List<Ticket> findAll() {\n log.debug(\"Request to get all Tickets\");\n List<Ticket> result = ticketRepository.findAll();\n\n return result;\n }", "public Ticket getTicket() {\n return ticket;\n }", "@Override\n\tpublic List<TicketModel> getTickets(RepositoryModel repository, TicketFilter filter) {\n\t\tJedis jedis = pool.getResource();\n\t\tList<TicketModel> list = new ArrayList<TicketModel>();\n\t\tif (jedis == null) {\n\t\t\treturn list;\n\t\t}\n\t\ttry {\n\t\t\t// Deserialize each journal, build the ticket, and optionally filter\n\t\t\tSet<String> keys = jedis.keys(key(repository, KeyType.journal, \"*\"));\n\t\t\tfor (String key : keys) {\n\t\t\t\t// {repo}:journal:{id}\n\t\t\t\tString id = key.split(\":\")[2];\n\t\t\t\tlong ticketId = Long.parseLong(id);\n\t\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\t\tticket.project = repository.projectPath;\n\t\t\t\tticket.repository = repository.name;\n\t\t\t\tticket.number = ticketId;\n\n\t\t\t\t// add the ticket, conditionally, to the list\n\t\t\t\tif (filter == null) {\n\t\t\t\t\tlist.add(ticket);\n\t\t\t\t} else {\n\t\t\t\t\tif (filter.accept(ticket)) {\n\t\t\t\t\t\tlist.add(ticket);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sort the tickets by creation\n\t\t\tCollections.sort(list);\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve tickets from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "private String getTickets(String passedUrl) throws IOException {\n URL url = new URL(passedUrl);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n //Create Authentication\n String encoded = Base64.getEncoder().encodeToString((zendeskUsername+\":\"+zendeskToken).getBytes(StandardCharsets.UTF_8));\n con.setRequestProperty(\"Accept\", \"application/json\");\n con.setRequestProperty(\"Authorization\", \"Basic \"+encoded);\n con.setRequestMethod(\"GET\");\n int responseCode = con.getResponseCode();\n if (responseCode == HttpURLConnection.HTTP_OK) { // success\n BufferedReader in = new BufferedReader(new InputStreamReader(\n con.getInputStream()));\n String inputLine;\n String response =\"\";\n while ((inputLine = in.readLine()) != null)\n response += inputLine;\n in.close();\n return response;\n } else {\n System.out.println(\"HTTP Error. Response: \" + responseCode);\n }\n return null;\n }", "public List<Ticket> getTicketsReportedByUser(String username) {\n\t\ttry {\n\t\t\tTypedQuery<Ticket> query = em.createNamedQuery(\"Ticket.findByReported\", Ticket.class);\n\t\t\tquery.setParameter(\"inUsername\", username);\n\t\t\tList<Ticket> tickets = query.getResultList();\n\t\t\tif (tickets != null) {\n\t\t\t\treturn tickets;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.log(Level.WARNING, \"Unpossible to fetch tickets\", e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t}", "public ArrayList<memberjoin> getUserList() {\n\t\treturn Tdao.selectticketList();\r\n\t}", "public Integer[] getTicketNumber() {\n return ticketNumber;\n }", "@Test\n public void whenGetTickets_thenTickets()\n throws Exception {\n\n \tCollection<Ticket> ticket = new ArrayList<Ticket>();\n \tticket.add(new Ticket((long) 1, 4, 360, Constants.STATUS_WAITING, null, null));\n\n \tgiven(ticketService.findAllTickets()).willReturn(ticket);\n\n mvc.perform(MockMvcRequestBuilders.get(\"/api/tickets\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(MockMvcResultMatchers.status().isOk())\n .andExpect(MockMvcResultMatchers.content().json(\"[\\r\\n\" + \n \" {\\r\\n\" + \n \" \\\"id\\\": 1,\\r\\n\" + \n \" \\\"totalodd\\\": 4.0,\\r\\n\" + \n \" \\\"possiblegain\\\": 360.0,\\r\\n\" + \n \" \\\"status\\\": 0\\r\\n\" + \n \" }\\r\\n\" + \n \"]\"));\n }", "@Override\n\tpublic GetJiraTicketsDTO getJiraTickets(String status, Integer page, Integer pageSize) {\n\t\treturn null;\n\t}", "public List<ActividadEnSitio> obtenerTodasLasActividadesEnSitioDeUnTicket(Ticket ticket) {\n return this.actividadEnSitioFacade.obtenerTodasLasActividadesDeUnTicket(ticket);\n }", "public void receiveResultget_Ticket_List(\n com.xteam.tourismpay.PFTMXStub.Get_Ticket_ListResponse result) {\n }", "public java.lang.String CC_GetJobTickets(java.lang.String accessToken, java.lang.String accessCode) throws java.rmi.RemoteException;", "@Transactional(readOnly = true)\n public List<Ticket> findByUser_Id(Long id) {\n log.debug(\"Request to findByUser_Id : {}\", id);\n List<Ticket> tickets = ticketRepository.findByUser_Id(id);\n return tickets;\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 Ticket getCurrentTicket(){return this.currentTicket;}", "public List<Ticket> getTicketAssignedToUser(String username) {\n\t\ttry {\n\t\t\tTypedQuery<Ticket> query = em.createNamedQuery(\"Ticket.findByAssignee\", Ticket.class);\n\t\t\tquery.setParameter(\"inUsername\", username);\n\t\t\tList<Ticket> tickets = query.getResultList();\n\t\t\tif (tickets != null) {\n\t\t\t\treturn tickets;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.log(Level.WARNING, \"Unpossible to fetch tickets\", e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "public String displayAllTickets(){\n String p = \" \";\n try {\n \n rs = stmt.executeQuery \n (\"SELECT * FROM JEREMY.TICKET ORDER BY ID\");\n p = loopDBInfo(rs);\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n } \n return p;\n \n }", "List<OrderModel> getAllLoggedInCustomerTickets() {\r\n final List<PurchasingOrder> purchasingOrders = getLoggedInCustomerAirlineTicketOrders();\r\n return OrderModel.mapFromPurchasingOrders(purchasingOrders);\r\n }", "public List<Articulo> obtenerTodosLosArticulosDeTicket(Ticket ticket) {\n return this.articuloFacade.obtenerTodosLosArticulosDeUnTicket(ticket);\n }", "List<Ticket> getListTicketByDriverIDAndStatus(String driverID, String status);", "@Override\n\n public void run() {\n\n fetchTickets();\n\n }", "public List<TicketSite> getTicketSitesOfATeam(String teamId);", "private void displayOneTicket(String id){\n clrscr();\n System.out.println(\"Viewing Ticket Details\\n\");\n try{\n String response = getTickets(\"https://alston.zendesk.com/api/v2/tickets/\" + id +\".json\");\n if(response == null){\n System.out.println(\"Sorry! Failed to find a ticket with ID: \" + id + \" This ticket might not exist.\");\n System.out.println(\"Enter anything to continue...\");\n return;\n }\n JsonParser parser = new JsonParser();\n try{\n JsonObject ticket = parser.parse(response).getAsJsonObject().getAsJsonObject(\"ticket\");\n System.out.printf(\"%-25s%s\\n\", \"ID: \", ticket.get(\"id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Subject: \", ticket.get(\"subject\").toString());\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"created_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Date Created: \", date);\n\n date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"updated_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Last Updated: \", date);\n\n System.out.printf(\"%-25s%s\\n\", \"Description: \", ticket.getAsJsonPrimitive(\"description\").getAsString().replace(\"\\n\", \"\\n \"));\n System.out.printf(\"%-25s%s\\n\", \"Requester ID: \", ticket.get(\"requester_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Submitter ID: \", ticket.get(\"submitter_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Organization ID: \", ticket.get(\"organization_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Priority: \", ticket.get(\"priority\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Channelback: \", ticket.get(\"allow_channelback\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Attachments: \", ticket.get(\"allow_attachments\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Status: \", ticket.get(\"status\").toString());\n\n String tagString = \"\";\n JsonArray tags = ticket.get(\"tags\").getAsJsonArray();\n for (JsonElement t: tags) {\n tagString += t + \", \";\n }\n if(tagString.length()>2){\n tagString = tagString.substring(0, tagString.length()-2);\n } else {\n tagString = null;\n }\n System.out.printf(\"%-25s%s\\n\", \"Tags: \", tagString);\n\n System.out.println(\"\\nPlease Press \\\"Enter\\\" to go Back\");\n }\n catch(JsonSyntaxException jse){\n System.out.println(\"Not a valid Json String:\"+jse.getMessage());\n } catch (ParseException e) {\n System.out.println(\"Error parsing date while fetching ticket details\");\n e.printStackTrace();\n }\n } catch (IOException e){\n System.out.println(\"Error with HTTP connection while displaying ticket\");\n }\n\n }", "public int getNoOfTickets() {\n\t\treturn noOfTickets;\r\n\t}", "@Override\n\tpublic List<CSStoreTicketMst> listCSStoreTicketMsts() {\n\t\treturn csStoreTicketMstDao.listCSStoreTicketMsts();\n\t}", "private Ticket[] parseList(String HttpResponse){\n if(HttpResponse == null){\n return null;\n }\n //Parse JSON to Object\n Gson g = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\")\n .create();\n JsonParser parser = new JsonParser();\n try{ // Try to parse the response\n JsonElement root = parser.parse(HttpResponse);\n if(root.isJsonObject()){\n JsonObject ob = root.getAsJsonObject();\n JsonArray ticketsArray = ob.get(\"tickets\").getAsJsonArray();\n Ticket[] tickets = g.fromJson(ticketsArray, Ticket[].class);\n prevPageURL = ob.getAsJsonObject(\"links\").get(\"prev\").getAsString();\n nextPageURL = ob.getAsJsonObject(\"links\").get(\"next\").getAsString();\n hasMore = ob.getAsJsonObject(\"meta\").get(\"has_more\").getAsBoolean();\n return tickets;\n }\n }\n catch(JsonSyntaxException jse){\n System.out.println(\"Not a valid Json String:\"+jse.getMessage());\n }\n return null;\n }", "@Test\n public void whenGetTickets_thenArrayOfTickets()\n throws Exception {\n \n \tCollection<Ticket> ticket = new ArrayList<Ticket>();\n \tticket.add(new Ticket((long) 2, 4, 360, Constants.STATUS_WAITING, null, null));\n \tticket.add(new Ticket((long) 1, 2, 180, Constants.STATUS_WAITING, null, null));\n \tgiven(ticketService.findAllTickets()).willReturn(ticket);\n\n mvc.perform(MockMvcRequestBuilders.get(\"/api/tickets\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(MockMvcResultMatchers.status().isOk())\n .andExpect(MockMvcResultMatchers.content().json(\"[\\r\\n\" + \n \" {\\r\\n\" + \n \" \\\"id\\\": 2,\\r\\n\" + \n \" \\\"totalodd\\\": 4.0,\\r\\n\" + \n \" \\\"possiblegain\\\": 360.0,\\r\\n\" + \n \" \\\"status\\\": 0\\r\\n\" + \n \" },\\r\\n\" + \n \" {\\r\\n\" + \n \" \\\"id\\\": 1,\\r\\n\" + \n \" \\\"totalodd\\\": 2.0,\\r\\n\" + \n \" \\\"possiblegain\\\": 180.0,\\r\\n\" + \n \" \\\"status\\\": 0\\r\\n\" + \n \" }\\r\\n\" + \n \"]\"));\n }", "public Ticket getTicket(String id);", "public int getticketId() {\n \treturn ticketId;\n }", "public List<EstadoTicket> obtenerTodosLosEstados() {\n return this.estadoTicketFacade.findAll();\n }", "@Override\n public int getItemCount() {\n if (getTickets() == null)\n return 0;\n return getTickets().size();\n }", "List<ticket_type> getTicketTypes(Connection conn) {\r\n\t\tList<ticket_type> types = new ArrayList<ticket_type>();\r\n\t\ttry {\r\n\t\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tString query = \"select vtype, fine from ticket_type\";\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tticket_type vt = new ticket_type(rs.getString(\"vtype\"), rs.getFloat(\"fine\"));\r\n\t\t\t\ttypes.add(vt);\r\n\t\t\t}\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tthrow new RuntimeException(ex);\r\n\t\t}\r\n\t\treturn types;\r\n\t}", "private List<String> getList(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - getList\");\r\n\t\tcreateInstance();\r\n\t\tList<String> lstResult = new ArrayList<String>();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to get list, request information is missing\");\r\n\t\t}\r\n\t\t\r\n try {\r\n\r\n log.info(\"Querying for top highest priority unfixed defects...\");\r\n System.out.println(\"Query Request Info \" + requestInfo.getQueryFilter());\r\n QueryResponse qryResponse = getQueryResponse(requestInfo);\r\n \r\n \r\n if (qryResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"\\nTotal results: %d\", qryResponse.getTotalResultCount()));\r\n for (JsonElement result : qryResponse.getResults()) {\r\n JsonObject qryObject = result.getAsJsonObject();\r\n String strFetch[] = requestInfo.getFetch();\r\n String strPrintInfo = \"\";\r\n if(strFetch != null && strFetch.length != 0){\r\n \tfor(int i=0; i < strFetch.length; i++){\r\n \t\tstrPrintInfo = strPrintInfo + strFetch[i] + \" : \" + qryObject.get(strFetch[i]).getAsString() + \" \";\r\n \t}\r\n }\r\n log.info(strPrintInfo);\r\n lstResult.add(strPrintInfo);\r\n }\r\n } else {\r\n for (String err : qryResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in getting list : \" + lstResult);\r\n throw new DefectException(\"Error in getting list\" + lstResult);\r\n }\r\n } catch (Exception e){\r\n log.error(\"Error in getting list, message : \" + e.toString());\r\n throw new DefectException(\"Error in getting list, message : \" + e.toString());\r\n } finally {\r\n \tcloseDefect();\r\n \t\tlog.info(\"End - getList\");\r\n }\r\n\t\treturn lstResult;\r\n }", "public int getTicketId() {\r\n return ticketId;\r\n }", "protected static LinkedList<Ticket> searchByName(LinkedList<Ticket> tickets)\n {\n LinkedList<Ticket> matchingTickets = new LinkedList<>();\n Scanner scan = new Scanner(System.in);\n String searchTerm = scan.nextLine();\n\n\n for (Ticket t : tickets)\n {\n if (t.getReporter().contains(searchTerm))\n {\n matchingTickets.add(t);\n }\n }\n\n return matchingTickets;\n }", "@GetMapping(\"/prix-tickets\")\n @Timed\n public ResponseEntity<List<PrixTicketDTO>> getAllPrixTickets(Pageable pageable) {\n log.debug(\"REST request to get a page of PrixTickets\");\n Page<PrixTicketDTO> page = prixTicketService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/prix-tickets\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "@Override\n\tpublic List<TaskKeeper> getList() {\n\t\treturn (List<TaskKeeper>) taskKeeperRepositories.findAll();\n\t}", "public int getTicketId() {\n return ticketId;\n }", "private List<Change> getJournal(Jedis jedis, RepositoryModel repository, long ticketId) throws JedisException {\n\t\tif (ticketId <= 0L) {\n\t\t\treturn new ArrayList<Change>();\n\t\t}\n\t\tList<String> entries = jedis.lrange(key(repository, KeyType.journal, ticketId), 0, -1);\n\t\tif (entries.size() > 0) {\n\t\t\t// build a json array from the individual entries\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"[\");\n\t\t\tfor (String entry : entries) {\n\t\t\t\tsb.append(entry).append(',');\n\t\t\t}\n\t\t\tsb.setLength(sb.length() - 1);\n\t\t\tsb.append(']');\n\t\t\tString journal = sb.toString();\n\n\t\t\treturn TicketSerializer.deserializeJournal(journal);\n\t\t}\n\t\treturn new ArrayList<Change>();\n\t}", "private ArrayList getCommitteList() {\r\n /**\r\n * This sends the functionType as 'G' to the servlet indicating to\r\n * get the details of all existing committees with the required\r\n * information\r\n */\r\n \r\n Vector vecBeans = new Vector();\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/comMntServlet\";\r\n RequesterBean request = new RequesterBean();\r\n request.setDataObject(\"\"+CoeusConstants.IACUC_COMMITTEE_TYPE_CODE);\r\n request.setFunctionType(COMMITTEE_LIST_FOR_MODULE);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(\r\n connectTo, request);\r\n /**\r\n * Updated for REF ID :0003 Feb'21 2003.\r\n * Hour Glass implementation while DB Trsactions Wait\r\n * by Subramanya Feb' 21 2003\r\n */\r\n setCursor( new Cursor( Cursor.WAIT_CURSOR ) );\r\n comm.send();\r\n ResponderBean response = comm.getResponse();\r\n setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );\r\n \r\n if (response.isSuccessfulResponse()) {\r\n vecBeans = response.getDataObjects();\r\n }\r\n return new ArrayList(vecBeans);\r\n }", "public Map<String,Ticket> retriveTickets(IssueType issueType) throws IOException {\n\t\tMap<String,Ticket> tickets = new HashMap<>();\n\t\t\n\t\tInteger j = 0;\n\t\tInteger i = 0;\n\t\tInteger total = 1;\n\t //Get JSON API for closed bugs w/ AV in the project\n\t\tdo {\n\t\t\t//https://issues.apache.org/jira/rest/api/2/search?jql=project%20%3D%20OPENJPA%20AND%20issueType%20%3D%20Bug%20AND(%20status%20=%20closed%20OR%20status%20=%20resolved%20)AND%20resolution%20=%20fixed%20&fields=key,resolutiondate,versions,created&startAt=0&maxResults=1000\n\t\t\t//Only gets a max of 1000 at a time, so must do this multiple times if bugs >1000\n\t\t\tj = i + 1000;\n\t String url = basicUrl + \"search?jql=project%20%3D%20\"\n\t + this.projectName + \"%20AND%20issueType%20\" + issueType.getType() + \"%20AND(%20status%20=%20closed%20OR\"\n\t + \"%20status%20=%20resolved%20)AND%20resolution%20=%20fixed%20&fields=key,resolutiondate,versions,created&startAt=\"\n\t + i.toString() + \"&maxResults=\" + j.toString();\n\t JSONObject json = JSONTools.readJsonFromUrl(url);\n\t JSONArray issues = json.getJSONArray(\"issues\");\n\t total = json.getInt(\"total\");\n\t for (; i < total && i < j; i++) {\n\t //Iterate through each bug\n\t \t \n\t \tJSONObject issue = issues.getJSONObject(i%1000);\n\t \ttickets.put(issue.get(\"key\").toString(), new Ticket(this.projectName, issue.get(\"key\").toString(), issueType));\n\t \t\n\t } \n\t \n\t\t} while (i < total);\n\t\t\n\t\treturn tickets;\n\t \n\t}", "List<TicketDTO> ticketToTicketDTO(List<Ticket> all);", "@Transactional(readOnly = true)\n public List<Ticket> search(String query) {\n log.debug(\"Request to search Tickets for query {}\", query);\n return StreamSupport\n .stream(ticketSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "java.util.List<WorldUps.UInitTruck> \n getTrucksList();", "public ApiList<AuthorizationTicket> listAuthorizationTickets(String clientId) throws InternalException {\n Client client = database.findClientById(clientId);\n if (client == null) {\n throw new ClientNotFoundException(clientId);\n }\n\n return new ApiList<>(database.listAuthorizationTickets(clientId));\n }", "public List<PrioridadTicket> obtenerTodasLasPrioridades() {\n return this.prioridadTicketFacade.findAll();\n }", "@GetMapping(\"/tickets/{courseId}\")\n public ResponseEntity getCourseTickets(@PathVariable(name = \"courseId\") Integer courseId) {\n\n if (courseRepository.findById(courseId).isPresent()) {\n List<Ticket> tickets = ticketRepository.findByCourseId(courseId);\n if (tickets.size() == 0) {\n return ResponseEntity.noContent().build();\n }\n\n // väliaikainen\n setOldestTicketActiveToAllCourses(); // courseRepository.findById(2).get()\n\n return ResponseEntity.ok(tickets);\n }\n return ResponseEntity.notFound().build();\n\n }", "@GetMapping(value=\"/ticket/alltickets/source/{source}\")\n\tpublic List<Ticket> getTicketsBySourceStation(@PathVariable(\"source\") String sourceStation){\n\t\treturn ticketBookingService.findTicketBySource(sourceStation);\n\t}", "public phonecallTicket getTicket(){\n return currentticket;\n }", "@RequestMapping(value = \"/getlockers\", produces = {MediaType.APPLICATION_JSON_VALUE}, method = RequestMethod.GET)\n public ResponseEntity<Iterable<LockerEntity>> getLockers() {\n Iterable<LockerEntity> lockers = lockerService.findAllSorted();\n return new ResponseEntity<Iterable<LockerEntity>>(lockers, HttpStatus.OK);\n }", "@GetMapping(\"/tickets/course/{courseName}\")\n public ResponseEntity getCourseTickets(@PathVariable(name = \"courseName\") String courseName) {\n\n// if (courseRepository.findBy(courseName)) {\n List<Ticket> tickets = ticketRepository.findByCourseName(courseName);\n if (tickets.size() == 0) {\n return ResponseEntity.noContent().build();\n }else{\n\n setOldestTicketActiveToAllCourses(); // courseRepository.findById(2).get()\n\n return ResponseEntity.ok(tickets);\n }\n// return ResponseEntity.notFound().build();\n\n }", "java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();", "@Override\r\n\tpublic Collection<Sticker> list(Sticker sticker) {\n\t\treturn sst.selectList(\"stickerns.list\",sticker);\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.ticketid+\"\\t\"+this.eatid+\"\\t\"+this.eatnum;\n\t}", "private List<PurchasingOrder> getLoggedInCustomerAirlineTicketOrders() {\r\n final Customer loggedInCustomer = usersComponent.getLoggedInCustomer();\r\n return loggedInCustomer.getAirlineTicketOrders();\r\n }", "public Integer getTicketId() {\r\n return ticketId;\r\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Lecture> listLectures() {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tList<Lecture> LecturesList = session.createQuery(\"from Lecture\").list();\n\t\treturn LecturesList;\n\t}", "public Ticket getTicketById(int id) {\r\n\t\tfor (Iterator<Ticket> iter = ticketList.iterator(); iter.hasNext(); ) {\r\n\t\t\tTicket ticket = iter.next();\r\n\t\t\tif (ticket.getTicketId() == id) {\r\n\t\t\t\treturn ticket;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "protected final List<NulsThread> getThreadList(){\n return ModuleManager.getInstance().getThreadsByModule(this.moduleName);\n }", "@Override\r\n\tpublic Vector getEntries() throws NotesApiException {\n\t\treturn null;\r\n\t}", "public java.lang.String getTicketNo () {\r\n\t\treturn ticketNo;\r\n\t}", "List<Ticket> ticketDTOToTicket(List<TicketDTO> all);", "public List<TilePojo> getCharactesListByDate() {\n\t\tLOGGER.info(\"getCharactesListByDate -> Start\");\n\t\tcharactesListByDate = new LinkedList<>();\n\t\tList<TilePojo> charList = tileGalleryAndLandingService.getTilesByDate(homePagePath, galleryFor, null,\n\t\t\t\tresource.getResourceResolver(), true);\n\t\tcharactesListByDate = getFixedNumberChar(charList, 12);\n\t\tLOGGER.info(\"getCharactesListByDate -> End\");\n\t\treturn charactesListByDate;\n\t}", "public String displayNameTickets(){\n String p = \" \";\n try {\n \n rs = stmt.executeQuery \n (\"select * from JEREMY.TICKET ORDER BY NAME\");\n p = loopDBInfo(rs);\n \n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n } \n return p;\n \n }", "public List<ColaTicket> obtenerTodasLasColas() {\n return this.colaFacade.findAll();\n }", "TaskList getList();", "@GetMapping(\"/getDepotList\")\n\tpublic List<Depot> getDepotList() {\n\t\treturn busService.getDepotList();\n\t}", "public List<Trade> getTrades();", "public List listOrders() throws Exception {\r\n\r\n \r\n XMLUtil.printHeading(\"List Orders\");\r\n\r\n String request = templateReader.readTemplate(\"ACXOrderHistoryRequest\");\r\n request = XMLUtil.insertValueForTag(request, \"</BuyPartnerID>\", BeanCreation.buyPartnerId);\r\n request = XMLUtil.insertValueForTag(request, \"</SellPartnerID>\", BeanCreation.sellPartnerId);\r\n\r\n // Set the begin and end date for orders to search for to today.\r\n long now = System.currentTimeMillis();\r\n //String date = DateFormat.getDateInstance(DateFormat.SHORT).format(new Date(now+86400000));\r\n String date = DateFormat.getDateInstance(DateFormat.SHORT).format(new Date());\r\n request = XMLUtil.insertValueForTag(request, \"</BeginDate>\", date);\r\n request = XMLUtil.insertValueForTag(request, \"</EndDate>\", date);\r\n\r\n XMLUtil.printXML(\"List Orders Request:\", XMLUtil.prettifyString(request));\r\n\r\n RequestInfo info = null;\r\n try {\r\n // Get the transactionIds\r\n String xmlResponse = partOrderManager.listOrders(request);\r\n info = partOrderManager.getRequestInfo().copy();\r\n XMLUtil.printXML(\"List Orders Response:\", XMLUtil.prettifyString(xmlResponse));\r\n\r\n System.out.println(\"listOrders\");\r\n System.out.println(\" Total time: \" + info.getTotalTime() + \" millis\");\r\n System.out.println(\" Gateway access: \" + info.getGatewayAccessTime());\r\n System.out.println(\" SDK overhead: \" + (info.getTotalTime() - info.getGatewayAccessTime()));\r\n System.out.println();\r\n List transactionIds = getTransactionIds(xmlResponse);\r\n return transactionIds;\r\n } catch (Exception e) {\r\n info = partOrderManager.getRequestInfo().copy();\r\n\r\n System.out.println(\"listOrders() caught Exception: \" + e);\r\n System.out.println(\"ACXTrackNum: \" + info.getTrackNum());\r\n System.out.println(\" Total time: \" + info.getTotalTime() + \" millis\");\r\n System.out.println(\" Gateway access: \" + info.getGatewayAccessTime());\r\n System.out.println(\" SDK overhead: \" + (info.getTotalTime() - info.getGatewayAccessTime()));\r\n System.out.println();\r\n\r\n }\r\n\r\n List transactionIds = new ArrayList();\r\n return transactionIds;\r\n }", "public void viewListofLocks() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of locks\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of locks\");\n\t\t}\n\t}", "public List<Tweet> GetTweetInfo() {\n System.out.println(\"#### HomeSessionBean.GetTweetInfo ---List is being generated\");\n List<Tweet> t = em.createNamedQuery(\"Tweet.findAll\").getResultList();\n return t;\n }", "public java.lang.Object getTicketID() {\n return ticketID;\n }", "public Category getTicketCategory() { return ticketCategory; }", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\t//print the top row of the ticket\r\n\t\t\tString str = \"\";\r\n\t\t\tfor (int i = 0; i < 31; i++) {\r\n\t\t\t\tstr+=\"-\";\r\n\t\t\t}\r\n\t\t\t//print the show\r\n\t\t\tstr += \"\\n\";\r\n\t\t\tString temp = \"| Show: \" + show;\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the box office id\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\ttemp = \"| Box Office ID: \" + boxOfficeId;\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the seat number\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\ttemp = \"| Seat: \" + seat.toString();\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the client id\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\ttemp = \"| Client: \" + client;\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the bottom of the ticket\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\tfor (int i = 0; i < 31; i++) {\r\n\t\t\t\tstr+=\"-\";\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}", "public String toString() {\r\n\t\treturn super.display() + \"\\n\" + listAllCards() + \r\n\t\t\t\t\"Purchased tickets: \\n\" + listAllTickets() +\r\n\t\t\t\t\"___________________________________________\";\r\n\t}", "java.util.List<com.lvl6.proto.QuestProto.UserQuestJobProto> \n getUserQuestJobsList();", "public GridletList getGridletList() {\n return receiveJobs;\n }", "public List<Workout> getList() {\n List<Workout> list = new ArrayList<Workout>();\r\n String[] colunas = new String[]{Col_1, Col_2, Col_3, Col_4, Col_5, Col_6, Col_7, Col_8, Col_9};\r\n Cursor cursor = BaseDados.query(\"workout\", colunas, null, null, null, null, \"bodypart ASC\");\r\n if (cursor.getCount() > 0) {\r\n cursor.moveToFirst();\r\n do {\r\n //BodyPart part, int reps, int weight, String cmt\r\n Workout workout = new Workout(new BodyPart(cursor.getString(3), cursor.getInt(7), cursor.getString(4)), cursor.getInt(5), cursor.getInt(8), cursor.getString(6));\r\n workout.setDate(cursor.getInt(0), cursor.getInt(1), cursor.getInt(2));\r\n list.add(workout);\r\n } while (cursor.moveToNext());\r\n }\r\n return list;\r\n }" ]
[ "0.8482587", "0.7930974", "0.76994306", "0.7629429", "0.71753824", "0.7089727", "0.70004165", "0.6994404", "0.6953505", "0.6942885", "0.6928459", "0.68749183", "0.6840937", "0.6809192", "0.6689149", "0.6673528", "0.66677", "0.662694", "0.65247184", "0.6505669", "0.64338404", "0.6370344", "0.6321921", "0.631884", "0.63081855", "0.6171916", "0.6169403", "0.61535215", "0.61321944", "0.6124692", "0.6057618", "0.60411245", "0.6024654", "0.60226995", "0.6009433", "0.5984809", "0.59677684", "0.595219", "0.5950673", "0.5947667", "0.59381175", "0.5936042", "0.5905356", "0.58726704", "0.58703214", "0.5852312", "0.584655", "0.5811212", "0.5806741", "0.580377", "0.57981515", "0.57911867", "0.57772684", "0.5770084", "0.57361984", "0.56471604", "0.5625289", "0.562258", "0.5610147", "0.56088233", "0.5580769", "0.55790645", "0.5577447", "0.5575524", "0.55754936", "0.55735236", "0.55582833", "0.5554844", "0.55528486", "0.55394816", "0.55260223", "0.55074817", "0.5496246", "0.5492881", "0.5490565", "0.5482387", "0.5480592", "0.547977", "0.54782635", "0.54748166", "0.5473737", "0.5469241", "0.54670966", "0.5454104", "0.54538226", "0.54517376", "0.54496026", "0.5443889", "0.5440681", "0.5434692", "0.5431649", "0.5431511", "0.5430724", "0.5426269", "0.54246277", "0.54232156", "0.54129374", "0.53927964", "0.5385097", "0.53832227" ]
0.70011187
6
Getting the ticket object as per ticket id
@Override public LotteryTicket getLotteryTicket(int ticketId) { LotteryTicket ticket = null; try { ticket = lotteryTicketRepository.findByTicketIdAndIsCancelled(ticketId, false); } catch (Exception exception) { LOGGER.error("Something went wrong in getLotteryTicket" + exception); throw new InternalServerError("Something went wrong in getting the lottery ticket"); } // Check if ticket object is empty if (ticket == null) { throw new InternalServerError("This ticket id does not exists"); } // Return ticket response return ticket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ticket getTicket(String id);", "public Ticket getTicketById(int id) {\r\n\t\tfor (Iterator<Ticket> iter = ticketList.iterator(); iter.hasNext(); ) {\r\n\t\t\tTicket ticket = iter.next();\r\n\t\t\tif (ticket.getTicketId() == id) {\r\n\t\t\t\treturn ticket;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "@Override\n\tpublic Booking_ticket getTicket(String ticketid) {\n\t\treturn null;\n\t}", "public int getTicketId() {\r\n return ticketId;\r\n }", "public int getticketId() {\n \treturn ticketId;\n }", "public int getTicketId() {\n return ticketId;\n }", "public java.lang.Object getTicketID() {\n return ticketID;\n }", "Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }", "public Integer getTicketId() {\r\n return ticketId;\r\n }", "@GetMapping(value=\"/ticket/{ticketId}\")\n\tpublic Ticket getTicketById(@PathVariable(\"ticketId\") Integer ticketId){\n\t\treturn ticketBookingService.getTicket(ticketId);\n\t}", "public Ticket getTicket() {\n return ticket;\n }", "Ticket getTicketByAssignee(int ticketId, int userId);", "@Override\n\tprotected TicketModel getTicketImpl(RepositoryModel repository, long ticketId) {\n\t\tJedis jedis = pool.getResource();\n\t\tif (jedis == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\tticket.project = repository.projectPath;\n\t\t\tticket.repository = repository.name;\n\t\t\tticket.number = ticketId;\n\t\t\tlog.debug(\"rebuilt ticket {} from Redis @ {}\", ticketId, getUrl());\n\t\t\treturn ticket;\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve ticket from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\n public Ticket findOne(Long id) {\n log.debug(\"Request to get Ticket : {}\", id);\n Ticket ticket = ticketRepository.findOne(id);\n return ticket;\n }", "public ColaTicket obtenerColaTicket(int id) {\n return this.colaFacade.find(id);\n }", "public void setTicketId(Integer ticketId) {\r\n this.ticketId = ticketId;\r\n }", "@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}", "public Ticket getCurrentTicket(){return this.currentTicket;}", "@GetMapping(\"/tickets/{id}\")\n @Timed\n public ResponseEntity<Ticket> getTicket(@PathVariable Long id) {\n log.debug(\"REST request to get Ticket : {}\", id);\n Optional<Ticket> ticket = ticketRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(ticket);\n }", "public void setTicketId(int value) {\r\n this.ticketId = value;\r\n }", "public void setTicketId(int value) {\n this.ticketId = value;\n }", "public void setTicketID(java.lang.Object ticketID) {\n this.ticketID = ticketID;\n }", "public phonecallTicket getTicket(){\n return currentticket;\n }", "public void setticketId(int ticketId) {\n\t\tthis.ticketId = ticketId;\n\t}", "void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }", "@Transactional(readOnly = true)\n public List<Ticket> findByUser_Id(Long id) {\n log.debug(\"Request to findByUser_Id : {}\", id);\n List<Ticket> tickets = ticketRepository.findByUser_Id(id);\n return tickets;\n }", "TicketDTO ticketToTicketDTO(Ticket ticket);", "public String getTicketId() {\n String ticketId = getParameter(CosmoDavConstants.PARAM_TICKET);\n if (ticketId == null) {\n ticketId = getHeader(CosmoDavConstants.HEADER_TICKET);\n }\n return ticketId;\n }", "Ticket ticketDTOToTicket(TicketDTO ticketDTO);", "@GetMapping(\"/getTicket/{id}\")\r\n\tResponseEntity<TicketDto> fetchTicket(@PathVariable(\"id\") int bookingId){\r\n\t\tTicket ticket = bookingService.showTicket(bookingId);\r\n\t\tTicketDto ticketDto=convertTicketDto(ticket);\r\n\t\tResponseEntity<TicketDto> response = new ResponseEntity<TicketDto>(ticketDto,HttpStatus.OK);\r\n\t\treturn response;\r\n\t}", "@GetMapping(\"/prix-tickets/{id}\")\n @Timed\n public ResponseEntity<PrixTicketDTO> getPrixTicket(@PathVariable Long id) {\n log.debug(\"REST request to get PrixTicket : {}\", id);\n PrixTicketDTO prixTicketDTO = prixTicketService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(prixTicketDTO));\n }", "int createTicket(Ticket ticket, int userId);", "RiceCooker getById(long id);", "public ticket() {\n initComponents();\n autoID();\n }", "public phonecallTicket nextTicket(phonecallTicket ticket){\n \n try {\n \n if(!viewrs.isLast()){\n viewrs.next();\n int id_col = viewrs.getInt(\"ID\");\n String first_name = viewrs.getString(\"NAME\");\n String phone = viewrs.getString(\"PHONE\");\n String tag = viewrs.getString(\"TAG\");\n String date = viewrs.getString(\"DATE\");\n String prob = viewrs.getString(\"PROBLEM\");\n String notes = viewrs.getString(\"NOTES\");\n String status = viewrs.getString(\"STATUS\");\n \n ticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }\n } catch (Exception e) {System.out.println(\"SQL nextTicket() problem \" + e);}\n \n return ticket;\n \n }", "public phonecallTicket makeTicket(int id, String who, String phone,String tag, String date,String problem, String notes, String status){\n \n phonecallTicket ticket = new phonecallTicket(id, who, phone, tag, date, problem, notes, status);\n currentticket = ticket;\n return ticket;\n }", "public String getTicketKey() {\n return this.mTicketKey;\n }", "public ComTicket findById(Long idp2) {\n\t\ttry {\r\n\t\t\tString queryStr = \"Select c from ComTicket c where c.id = ?1\";\r\n\r\n\t\t\tTypedQuery<ComTicket> query = em.createQuery(queryStr,\r\n\t\t\t\t\tComTicket.class);\r\n\t\t\tquery.setParameter(1, idp2);\r\n\t\t\tComTicket resultado = query.getSingleResult();\r\n\t\t\treturn resultado;\r\n\t\t} catch (NoResultException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public New getObject(long id);", "public java.lang.Object getTicketTypeID() {\n return ticketTypeID;\n }", "public TicketRes searchById(int num){\n Optional<Ticket> ticketOpt=ticketRepository.findById(num);\n Ticket ticket;\n if(ticketOpt.isPresent())\n ticket=ticketOpt.get();\n else\n throw new NoSuchElementException(\"ticket avec num (\"+num+\") introuvable ;\");\n\n return mapp.map(ticket,TicketRes.class);\n\n }", "private void displayOneTicket(String id){\n clrscr();\n System.out.println(\"Viewing Ticket Details\\n\");\n try{\n String response = getTickets(\"https://alston.zendesk.com/api/v2/tickets/\" + id +\".json\");\n if(response == null){\n System.out.println(\"Sorry! Failed to find a ticket with ID: \" + id + \" This ticket might not exist.\");\n System.out.println(\"Enter anything to continue...\");\n return;\n }\n JsonParser parser = new JsonParser();\n try{\n JsonObject ticket = parser.parse(response).getAsJsonObject().getAsJsonObject(\"ticket\");\n System.out.printf(\"%-25s%s\\n\", \"ID: \", ticket.get(\"id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Subject: \", ticket.get(\"subject\").toString());\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"created_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Date Created: \", date);\n\n date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"updated_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Last Updated: \", date);\n\n System.out.printf(\"%-25s%s\\n\", \"Description: \", ticket.getAsJsonPrimitive(\"description\").getAsString().replace(\"\\n\", \"\\n \"));\n System.out.printf(\"%-25s%s\\n\", \"Requester ID: \", ticket.get(\"requester_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Submitter ID: \", ticket.get(\"submitter_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Organization ID: \", ticket.get(\"organization_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Priority: \", ticket.get(\"priority\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Channelback: \", ticket.get(\"allow_channelback\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Attachments: \", ticket.get(\"allow_attachments\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Status: \", ticket.get(\"status\").toString());\n\n String tagString = \"\";\n JsonArray tags = ticket.get(\"tags\").getAsJsonArray();\n for (JsonElement t: tags) {\n tagString += t + \", \";\n }\n if(tagString.length()>2){\n tagString = tagString.substring(0, tagString.length()-2);\n } else {\n tagString = null;\n }\n System.out.printf(\"%-25s%s\\n\", \"Tags: \", tagString);\n\n System.out.println(\"\\nPlease Press \\\"Enter\\\" to go Back\");\n }\n catch(JsonSyntaxException jse){\n System.out.println(\"Not a valid Json String:\"+jse.getMessage());\n } catch (ParseException e) {\n System.out.println(\"Error parsing date while fetching ticket details\");\n e.printStackTrace();\n }\n } catch (IOException e){\n System.out.println(\"Error with HTTP connection while displaying ticket\");\n }\n\n }", "public Tickets takePart(Tickets tickets) {\n return entityManager.\n find(Tickets.class, new TicketsPk(tickets.getId(), tickets.getTicketId()));\n }", "public RegularTicket(int ticketNumber){\n\t\tthis.ticketNumber = ticketNumber;\n\t}", "public List<Ticket> getTickets() {return tickets;}", "public int returnKitchenTicket(){\n return OrderID;\n\n }", "public static void assignTicket(Ticket ticket,String toT){\r\n\r\n\t\tDate dateCreated=new Date();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the current date\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\r\n\t\t//int ticketID=1000;\r\n\r\n\t\twhile(true){\r\n\t\t\tticket.ticketID=Integer.toString(ticketID);\t\t\t\t\t\t\t\t\t\t//converting the ticket id to string and assigning it to ticket id.\r\n\t\t\tticketID++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif(toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is phone\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[0];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 0\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"InPerson\")){\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is inperson\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[1];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 1\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"Email\")){\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is email\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[2];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 2\r\n\t\t}\r\n\r\n\t\tticket.CustomerserviceRepID=Integer.toString(new Random().nextInt(arrayServiceIDs.length));\t\t//randomly assigning the service representative id\r\n\t\tticket.DateCreated=dateFormat.format(dateCreated);\r\n\t\t\r\n\r\n\r\n\t}", "public Category getTicketCategory() { return ticketCategory; }", "public ServicioTicket obtenerServicioTicket(int codigo) {\n return this.servicioTicketFacade.find(codigo);\n }", "@Override\n\tpublic LotteryTicket retrieveLotteryTicketStatus(int ticketId) {\n\t\tLotteryTicket ticket = getLotteryTicket(ticketId);\n\n\t\t// Check if ticket status is checked or not\n\t\tif (ticket.isTicketStatusChecked()) {\n\t\t\tthrow new InternalServerError(\"This ticket is already checked\");\n\t\t} else {\n\t\t\t// Update the ticket object\n\t\t\tticket.setTicketStatusChecked(true);\n\t\t\ttry {\n\t\t\t\t// Save and return ticket response\n\t\t\t\treturn lotteryTicketRepository.save(ticket);\n\t\t\t} catch (Exception exception) {\n\t\t\t\tLOGGER.error(\"Something went wrong in retrieveLotteryTicketStatus\" + exception);\n\t\t\t\tthrow new InternalServerError(\"Something went wrong in retrieving the lottery ticket status\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic T getEntryById(Serializable id) {\n\t\treturn (T) this.hibernateTemplate.get(this.classt, id);\n\t}", "public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n void setPassengerName(String passengerName);\n\n /**\n * Getter for the unique identification pertaining to the ticket's route.\n *\n * @return unique identification number related to the ticket in string format.\n */\n String getRouteID();\n\n /**\n * Setter for the unique identification pertaining to the ticket's route.\n *\n * @param routeID unique identification number related to the ticket in string format.\n */\n void setRoute(String routeID);\n\n /**\n * Getter for the departure city string.\n *\n * @return the departure city in string format.\n */\n String getDepartureLocation();\n\n /**\n * Getter for the arrival city string.\n *\n * @return the arrival city in string format.\n */\n String getArrivalLocation();\n\n /**\n * Setter for the ticket origin in using Locations enum.\n *\n * @param origination enum representing location.\n */\n void setOrigination(Locations origination);\n\n /**\n * Setter for the ticket destination using Locations enum.\n *\n * @param destination enum representing location.\n */\n void setDestination(Locations destination);\n\n /**\n * Getter for the departure date and time which is represented by util Calendar but printed out\n * in string format MM DD YYYY HH MM.\n *\n * @return the departure date and time in string format MM DD YYYY HH MM.\n */\n Calendar getDepartureDateAndTime();\n\n /**\n * Getter for the arrival date and time which is represented by util Calendar but printed out\n * in string format YYYY MM DD HH MM.\n *\n * @return the arrival date and time in string format YYYY MM DD HH MM.\n */\n Calendar getArrivalDateAndTime();\n\n /**\n * Setter for the trip dates using util Calendar for both departure and arrival in the format\n * YYYY Calendar.MONTH DD HH MM.\n *\n * @param departureDate Calendar departure date in the format YYYY Calendar.MONTH DD HH MM.\n * @param arrivalDate Calendar arrival date in the format YYYY Calendar.MONTH DD HH MM.\n */\n void setTripDates(Calendar departureDate, Calendar arrivalDate);\n\n /**\n * Getter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @return enum representing the class of service available on certain tickets.\n */\n ClassOfService getClassOfService();\n\n /**\n * Setter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @param serviceClass enum representing the class of service available on certain tickets.\n */\n void setClassOfService(ClassOfService serviceClass);\n }", "@GET\n\t@Consumes(\"text/plain\")\n\t@Produces(\"application/json\")\n\t@Path(\"/get/{id}\")\n\tpublic Response getEmployee(@PathParam(\"id\") String id) {\n\t\tid = id.trim();\n\t\tif (bookedTickets.containsKey(id)) {\n\t\t\tMap<String, String> info = new HashMap<>();\n\t\t\tinfo = bookedTickets.get(id);\n\t\t\tTicket ticket = new Ticket();\n\t\t\tticket.setDate(info.get(\"date\"));\n\t\t\tticket.setFoodItems(info.get(\"foodItems\"));\n\t\t\tticket.setSeats(info.get(\"seats\"));\n\t\t\tticket.setShowTime(info.get(\"showTime\"));\n\t\t\tticket.setTheater(info.get(\"theater\"));\n\t\t\tticket.setTicketNo(info.get(\"ticketNo\"));\n\t\t\tticket.setTotalPrice(info.get(\"totalPrice\"));\n\t\t\t\n\t\n\t\t\treturn Response.ok(ticket).build();\n\t\t}\n\n\t\tMessage msg = new Message();\n\t\tmsg.setMessage(\"ID is not registered\");\n\t\treturn Response.ok(msg).build();\n\n\t}", "public Ticket() {\n\n }", "long getTruckId();", "@Override\n\tpublic IAdhocTicket createTicket(String carparkId) {\n\t\tcurrentTicketNo++; // when a ticket is issued, ticketNo increments by 1\n\t\tIAdhocTicket adhocTicket = factory.make(carparkId, currentTicketNo); \n\t\t// make ticket in factory with the new ticketNo\n\t\tadhocTicketList.add(adhocTicket);\n\t\treturn adhocTicket;\n\t}", "private SessionTicket createUniqueSessionTicket() {\n String ticket = UUID.randomUUID().toString();\n SessionTicket sessionTicket = new SessionTicket();\n sessionTicket.setTicket(ticket);\n return sessionTicket;\n }", "private TicketData Ticket2TicketData(Ticket t) {\n\n\t\tBuilder ticketBuilder = TicketData.newBuilder();\n\t\tticketBuilder.setDescription(t.getDescription());\n\t\tticketBuilder.setId(t.getId());\n\t\tticketBuilder.setPriority(de.uniba.rz.io.rpc.TicketData.Priority.values()[t.getPriority().ordinal()]);\n\t\tticketBuilder.setReporter(t.getReporter());\n\t\tticketBuilder.setStatus(de.uniba.rz.io.rpc.TicketData.Status.values()[t.getStatus().ordinal()]);\n\t\tticketBuilder.setTopic(t.getTopic());\n\t\tticketBuilder.setType(de.uniba.rz.io.rpc.TicketData.Type.values()[t.getType().ordinal()]);\n\n\t\treturn ticketBuilder.build();\n\n\t}", "RequesterVO get(int id);", "public java.lang.String getTicketNo () {\r\n\t\treturn ticketNo;\r\n\t}", "@Override\n protected Integer getTicketNumber() {\n return null;\n }", "public TicketContent(Ticket ticket) {\n this(ticket, null);\n }", "@Override\n\tpublic CSStoreTicketMst getCSStoreTicketMst(int id) {\n\t\treturn csStoreTicketMstDao.getCSStoreTicketMst(id);\n\t}", "@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}", "protected Ticket completeTicket()\n\t{\n\t\tif (tickets.size() != 0)\n\t\t{\n\t\t\treturn tickets.pop();\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public static void printTicketDetails(Ticket ticket){\n System.out.println(ticket.statusOfTicket());\n }", "@Override\r\n\tpublic int getTicketNo() {\n\t\treturn 0;\r\n\t}", "public phonecallTicket previousTicket(phonecallTicket ticket){\n \n \n try {\n \n if(!viewrs.isFirst()){\n viewrs.previous();\n int id_col = viewrs.getInt(\"ID\");\n String first_name = viewrs.getString(\"NAME\");\n String phone = viewrs.getString(\"PHONE\");\n String tag = viewrs.getString(\"TAG\");\n String date = viewrs.getString(\"DATE\");\n String prob = viewrs.getString(\"PROBLEM\");\n String notes = viewrs.getString(\"NOTES\");\n String status = viewrs.getString(\"STATUS\");\n \n ticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }\n } catch (Exception e) {System.out.println(\"SQL nextTicket() problem \" + e);}\n \n return ticket;\n \n }", "@Override\n\tpublic flightmodel getflightBooked(int id) {\n\t\treturn repo.findById(id);\n\t}", "public java.lang.Object getTicketCategoryID() {\n return ticketCategoryID;\n }", "public Integer[] getTicketNumber() {\n return ticketNumber;\n }", "public Ticket() {\n\t\tticketStatus = TICKET_STATUS_OPEN;\n\t}", "@Override\n\tprotected List<Change> getJournalImpl(RepositoryModel repository, long ticketId) {\n\t\tJedis jedis = pool.getResource();\n\t\tif (jedis == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn changes;\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve journal from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "T getById(ID id);", "private Ticket getTicketFromHeader(SOAPEnvelope se, SOAPHeader sh) throws KerbyException, RuntimeException, SOAPException {\r\n\t\tName name = se.createName(KerberosClientHandler.TICKET_NAME,\r\n\t\t\t\tKerberosClientHandler.TICKET_PREFIX, KerberosClientHandler.TICKET_NAMESPACE);\r\n\t\tIterator<?> it = sh.getChildElements(name);\r\n\t\t\r\n\t\tif (!it.hasNext()) {\r\n\t\t\tSystem.out.println(\"Header element not found.\");\r\n\t\t\tthrow new RuntimeException(\"Ticket not found\");\r\n\t\t}\r\n\t\t\r\n\t\tSOAPElement element = (SOAPElement) it.next();\r\n\r\n\t\tString hexEncodedTicket = element.getValue();\r\n\r\n\t\tCipheredView cipheredTicket = new CipheredView();\r\n\t\t\t\t\r\n\t\tcipheredTicket.setData(parseHexBinary(hexEncodedTicket));\r\n\t\t\r\n\t\tTicket ticket = new Ticket(cipheredTicket, pass);\r\n\t\treturn ticket;\r\n\t}", "protected Ticket<SESSION> newTicket() {\n synchronized (manager) {\n if (isConnectionStopped) {\n throw new IllegalStateException(\"Connection has been stopped\");\n }\n TicketImpl ticketImpl = new TicketImpl();\n tickets.add(ticketImpl);\n return ticketImpl;\n }\n }", "T getById(Long id);", "public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}", "T getById(int id);", "@Override\n\tpublic T getById(long id) {\n\t\treturn null;\n\t}", "Cemetery findOne(Long id);", "public AirspaceObject getObject(int id)\n\t{\n\t\treturn idToObject.get(id);\n\t}", "public String getTicketType()\r\n {\r\n return ticketType;\r\n }", "T get(ID id);", "E getById(long id);", "public ArrayList<Ticket> readTickets(String command) {\r\n try{\r\n ResultSet results = Connect.readSp(command);\r\n \r\n while (results.next()) {\r\n Ticket tkt = new Ticket();\r\n tkt.setTktNo(results.getInt(\"tktNo\"));\r\n tkt.setPersonellNo(results.getInt(\"staffNo\"));\r\n tkt.setProcessLeadNo(results.getInt(\"processLeadNo\"));\r\n tkt.setTktName(results.getString(\"name\"));\r\n tkt.setStatus(results.getString(\"status\"));\r\n tkt.setCategory(results.getString(\"category\"));\r\n System.out.println(\"this effin ticket \" + tkt.getTktNo());\r\n tkt.readComments();\r\n tkt.readTasks();\r\n tickets.add(tkt);\r\n }\r\n results.close();\r\n }\r\n catch (SQLException e) {\r\n System.out.println(\"Failure\"+e.getMessage( ));\r\n }\r\n return tickets;\r\n }", "@Override\n\tpublic TicketsTourDetail findTicketsTourDetailById(int id) {\n\t\treturn this.entityManager.find(TicketsTourDetail.class, id);\n\t}", "public Ticket printTicket(String boxOfficeId, Seat seat, int client) {\r\n\t\tif (seat == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tTicket ticket = new Ticket(show, boxOfficeId, seat, client);\r\n\t\t\tSystem.out.println(ticket.toString());\r\n\t\t\ttickets.add(ticket);\r\n\t\t\treturn ticket;\r\n\t\t}\r\n\t}", "@Transactional(readOnly = true)\n public List<Ticket> findByFoodJoint_Id(Long id) {\n log.debug(\"Request to findByFoodJoint_Id : {}\", id);\n List<TicketStatus> candidateStatues = new ArrayList<>();\n candidateStatues.add(TicketStatus.NO_ORDER_WAIT);\n candidateStatues.add(TicketStatus.READY);\n candidateStatues.add(TicketStatus.PROCESS);\n candidateStatues.add(TicketStatus.WAIT);\n List<Ticket> tickets = ticketRepository.findByFoodJoint_IdAndStatusIn(id, candidateStatues);\n return tickets;\n }", "public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n issueDateTime = new Date();\n \n }", "private Ticket givenTicketInOrderedBilled() {\n CreateTicketVO createTicketVO = CreateTicketVO.newBuilder()\n .ticketIssuingType(TicketIssuingType.ONE_TICKET_FOR_ALL_PRODUCTS)\n .products(this.products)\n .paymentType(PaymentType.NO_PAYMENT)\n .account(this.account).build();\n TicketOrder ticketOrder = this.ticketFactory.createTickets(createTicketVO);\n Ticket ticket = ticketOrder.getBillingTicket();\n // [1,0] -> [8,0]\n ticket.nextStateOk();\n // [8,0] -> [8,1]\n ticket.nextStateOk();\n // [8,1] -> [8,4]\n ticket.nextStateOk();\n // [8,4] -> [8,2]\n ticket.nextStateOk();\n return ticket;\n }", "public List<Ticket> getAllTickets(){\n List<Ticket> tickets=ticketRepository.findAll();\n return tickets;\n }", "public T get(int objectId) throws SQLException;", "public phonecallTicket getRow(int row){\n \n System.out.println(\"ROW IS!!! \" + row );\n try{\n if(row > total() || row < 0)\n System.out.println(\"invalid row\");\n else {rowrs.absolute(row);\n int id_col = rowrs.getInt(\"ID\");\n String first_name = rowrs.getString(\"NAME\");\n String phone = rowrs.getString(\"PHONE\");\n String tag = rowrs.getString(\"TAG\");\n String date = rowrs.getString(\"DATE\");\n String prob = rowrs.getString(\"PROBLEM\");\n String notes = rowrs.getString(\"NOTES\");\n String status = rowrs.getString(\"STATUS\");\n currentticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }//else\n } catch (Exception e){\n System.out.println(\"SQL problem at getRow()\");}\n return currentticket;\n }", "public List<Ticket> getTicketList() {\r\n\t\treturn ticketList;\r\n\t}", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();" ]
[ "0.85826135", "0.7549913", "0.75330323", "0.7388918", "0.73852", "0.7363973", "0.7351541", "0.73221046", "0.7314493", "0.7145979", "0.70698774", "0.7025271", "0.7020464", "0.6881678", "0.68626124", "0.6835557", "0.68058693", "0.6770258", "0.6712056", "0.65342486", "0.6523477", "0.6506861", "0.6471045", "0.64441824", "0.63965833", "0.63167816", "0.62842864", "0.62415636", "0.61806417", "0.61669445", "0.61291707", "0.61039907", "0.61034834", "0.60659504", "0.6055989", "0.60509866", "0.60457516", "0.60332507", "0.60329515", "0.6022183", "0.6019621", "0.59918433", "0.5952092", "0.59036493", "0.5903364", "0.58936983", "0.58773875", "0.58533937", "0.5849671", "0.5779955", "0.5772466", "0.57493716", "0.5719149", "0.5712775", "0.5690399", "0.5686077", "0.56803393", "0.5680204", "0.5669109", "0.5657925", "0.5649035", "0.5638912", "0.5638389", "0.5634794", "0.5631121", "0.5629033", "0.560376", "0.5599934", "0.5583542", "0.55686057", "0.55601096", "0.5532823", "0.55299205", "0.55264485", "0.5519474", "0.5518962", "0.55136913", "0.5509057", "0.5503868", "0.5491508", "0.5470444", "0.5456011", "0.5441928", "0.54403335", "0.54380524", "0.5423177", "0.54194033", "0.5418273", "0.541213", "0.54118484", "0.5408801", "0.540123", "0.53915334", "0.5390925", "0.539048", "0.53861547", "0.53861547", "0.53861547", "0.53861547", "0.53861547" ]
0.7071378
10
Get the ticket object
@Override public LotteryTicket retrieveLotteryTicketStatus(int ticketId) { LotteryTicket ticket = getLotteryTicket(ticketId); // Check if ticket status is checked or not if (ticket.isTicketStatusChecked()) { throw new InternalServerError("This ticket is already checked"); } else { // Update the ticket object ticket.setTicketStatusChecked(true); try { // Save and return ticket response return lotteryTicketRepository.save(ticket); } catch (Exception exception) { LOGGER.error("Something went wrong in retrieveLotteryTicketStatus" + exception); throw new InternalServerError("Something went wrong in retrieving the lottery ticket status"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ticket getTicket() {\n return ticket;\n }", "public Ticket getTicket(String id);", "public Ticket getCurrentTicket(){return this.currentTicket;}", "public java.lang.Object getTicketID() {\n return ticketID;\n }", "public phonecallTicket getTicket(){\n return currentticket;\n }", "@Override\n\tpublic Booking_ticket getTicket(String ticketid) {\n\t\treturn null;\n\t}", "public int getTicketId() {\r\n return ticketId;\r\n }", "public int getTicketId() {\n return ticketId;\n }", "public int getticketId() {\n \treturn ticketId;\n }", "public Integer getTicketId() {\r\n return ticketId;\r\n }", "void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }", "Ticket getTicketByAssignee(int ticketId, int userId);", "public String getTicketKey() {\n return this.mTicketKey;\n }", "public Ticket() {\n\n }", "Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }", "public UserTicket getUserTicket() {\n return FxJsfUtils.getRequest().getUserTicket();\n }", "public Ticket() {\n\t\tticketStatus = TICKET_STATUS_OPEN;\n\t}", "@GetMapping(value=\"/ticket/{ticketId}\")\n\tpublic Ticket getTicketById(@PathVariable(\"ticketId\") Integer ticketId){\n\t\treturn ticketBookingService.getTicket(ticketId);\n\t}", "public Ticket getTicketById(int id) {\r\n\t\tfor (Iterator<Ticket> iter = ticketList.iterator(); iter.hasNext(); ) {\r\n\t\t\tTicket ticket = iter.next();\r\n\t\t\tif (ticket.getTicketId() == id) {\r\n\t\t\t\treturn ticket;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "@Override\n\tprotected TicketModel getTicketImpl(RepositoryModel repository, long ticketId) {\n\t\tJedis jedis = pool.getResource();\n\t\tif (jedis == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\tticket.project = repository.projectPath;\n\t\t\tticket.repository = repository.name;\n\t\t\tticket.number = ticketId;\n\t\t\tlog.debug(\"rebuilt ticket {} from Redis @ {}\", ticketId, getUrl());\n\t\t\treturn ticket;\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve ticket from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Category getTicketCategory() { return ticketCategory; }", "protected Ticket completeTicket()\n\t{\n\t\tif (tickets.size() != 0)\n\t\t{\n\t\t\treturn tickets.pop();\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Ticket> getTickets() {return tickets;}", "protected Ticket<SESSION> newTicket() {\n synchronized (manager) {\n if (isConnectionStopped) {\n throw new IllegalStateException(\"Connection has been stopped\");\n }\n TicketImpl ticketImpl = new TicketImpl();\n tickets.add(ticketImpl);\n return ticketImpl;\n }\n }", "public String getTicketType()\r\n {\r\n return ticketType;\r\n }", "public List<Ticket> getTicketList() {\r\n\t\treturn ticketList;\r\n\t}", "@Override\n\tpublic LotteryTicket getLotteryTicket(int ticketId) {\n\t\tLotteryTicket ticket = null;\n\t\ttry {\n\t\t\tticket = lotteryTicketRepository.findByTicketIdAndIsCancelled(ticketId, false);\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in getLotteryTicket\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in getting the lottery ticket\");\n\t\t}\n\n\t\t// Check if ticket object is empty\n\t\tif (ticket == null) {\n\t\t\tthrow new InternalServerError(\"This ticket id does not exists\");\n\t\t}\n\n\t\t// Return ticket response\n\t\treturn ticket;\n\t}", "TicketDTO ticketToTicketDTO(Ticket ticket);", "@Transactional(readOnly = true)\n public Ticket findOne(Long id) {\n log.debug(\"Request to get Ticket : {}\", id);\n Ticket ticket = ticketRepository.findOne(id);\n return ticket;\n }", "public Date getTicketDate() {\n\t\treturn ticketDate;\n\t}", "public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n void setPassengerName(String passengerName);\n\n /**\n * Getter for the unique identification pertaining to the ticket's route.\n *\n * @return unique identification number related to the ticket in string format.\n */\n String getRouteID();\n\n /**\n * Setter for the unique identification pertaining to the ticket's route.\n *\n * @param routeID unique identification number related to the ticket in string format.\n */\n void setRoute(String routeID);\n\n /**\n * Getter for the departure city string.\n *\n * @return the departure city in string format.\n */\n String getDepartureLocation();\n\n /**\n * Getter for the arrival city string.\n *\n * @return the arrival city in string format.\n */\n String getArrivalLocation();\n\n /**\n * Setter for the ticket origin in using Locations enum.\n *\n * @param origination enum representing location.\n */\n void setOrigination(Locations origination);\n\n /**\n * Setter for the ticket destination using Locations enum.\n *\n * @param destination enum representing location.\n */\n void setDestination(Locations destination);\n\n /**\n * Getter for the departure date and time which is represented by util Calendar but printed out\n * in string format MM DD YYYY HH MM.\n *\n * @return the departure date and time in string format MM DD YYYY HH MM.\n */\n Calendar getDepartureDateAndTime();\n\n /**\n * Getter for the arrival date and time which is represented by util Calendar but printed out\n * in string format YYYY MM DD HH MM.\n *\n * @return the arrival date and time in string format YYYY MM DD HH MM.\n */\n Calendar getArrivalDateAndTime();\n\n /**\n * Setter for the trip dates using util Calendar for both departure and arrival in the format\n * YYYY Calendar.MONTH DD HH MM.\n *\n * @param departureDate Calendar departure date in the format YYYY Calendar.MONTH DD HH MM.\n * @param arrivalDate Calendar arrival date in the format YYYY Calendar.MONTH DD HH MM.\n */\n void setTripDates(Calendar departureDate, Calendar arrivalDate);\n\n /**\n * Getter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @return enum representing the class of service available on certain tickets.\n */\n ClassOfService getClassOfService();\n\n /**\n * Setter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @param serviceClass enum representing the class of service available on certain tickets.\n */\n void setClassOfService(ClassOfService serviceClass);\n }", "public Ticket(){\n\t\tpass = new Passenger();\n\t}", "public java.lang.String getTicketNo () {\r\n\t\treturn ticketNo;\r\n\t}", "public ColaTicket obtenerColaTicket(int id) {\n return this.colaFacade.find(id);\n }", "public String getTicketId() {\n String ticketId = getParameter(CosmoDavConstants.PARAM_TICKET);\n if (ticketId == null) {\n ticketId = getHeader(CosmoDavConstants.HEADER_TICKET);\n }\n return ticketId;\n }", "public ticket() {\n initComponents();\n autoID();\n }", "@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}", "public Ticket() throws GeneralSecurityException {\n macAlgorithm = new TicketMac();\n \n //TODO: Change hmac key according to your need\n byte[] hmacKey = new byte[16];\n macAlgorithm.setKey(hmacKey);\n \n ul = new Commands();\n utils = new Utilities(ul);\n }", "@Override\n protected Integer getTicketNumber() {\n return null;\n }", "Ticket ticketDTOToTicket(TicketDTO ticketDTO);", "public java.lang.Object getTicketTypeID() {\n return ticketTypeID;\n }", "private Ticket getTicketFromHeader(SOAPEnvelope se, SOAPHeader sh) throws KerbyException, RuntimeException, SOAPException {\r\n\t\tName name = se.createName(KerberosClientHandler.TICKET_NAME,\r\n\t\t\t\tKerberosClientHandler.TICKET_PREFIX, KerberosClientHandler.TICKET_NAMESPACE);\r\n\t\tIterator<?> it = sh.getChildElements(name);\r\n\t\t\r\n\t\tif (!it.hasNext()) {\r\n\t\t\tSystem.out.println(\"Header element not found.\");\r\n\t\t\tthrow new RuntimeException(\"Ticket not found\");\r\n\t\t}\r\n\t\t\r\n\t\tSOAPElement element = (SOAPElement) it.next();\r\n\r\n\t\tString hexEncodedTicket = element.getValue();\r\n\r\n\t\tCipheredView cipheredTicket = new CipheredView();\r\n\t\t\t\t\r\n\t\tcipheredTicket.setData(parseHexBinary(hexEncodedTicket));\r\n\t\t\r\n\t\tTicket ticket = new Ticket(cipheredTicket, pass);\r\n\t\treturn ticket;\r\n\t}", "@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}", "public List<Ticket> getTicketsForPurchase() {\n if (ticket == null) {\n ticket = new ArrayList<Ticket>();\n }\n return this.ticket;\n }", "public TicketContent(Ticket ticket) {\n this(ticket, null);\n }", "public String getTicket_url() {\r\n\t\treturn ticket_url;\r\n\t}", "@GetMapping(\"/tickets/{id}\")\n @Timed\n public ResponseEntity<Ticket> getTicket(@PathVariable Long id) {\n log.debug(\"REST request to get Ticket : {}\", id);\n Optional<Ticket> ticket = ticketRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(ticket);\n }", "public static void printTicketDetails(Ticket ticket){\n System.out.println(ticket.statusOfTicket());\n }", "public void setTicketID(java.lang.Object ticketID) {\n this.ticketID = ticketID;\n }", "int createTicket(Ticket ticket, int userId);", "public RegularTicket(int ticketNumber){\n\t\tthis.ticketNumber = ticketNumber;\n\t}", "public phonecallTicket makeTicket(int id, String who, String phone,String tag, String date,String problem, String notes, String status){\n \n phonecallTicket ticket = new phonecallTicket(id, who, phone, tag, date, problem, notes, status);\n currentticket = ticket;\n return ticket;\n }", "public TestTicket() {\n\t}", "public void setTicketId(Integer ticketId) {\r\n this.ticketId = ticketId;\r\n }", "public Integer[] getTicketNumber() {\n return ticketNumber;\n }", "String getComponentVerifyTicket();", "@Override\r\n public TicketDAO getTicketDAO() {\n return new MySQLTicketDAO();\r\n }", "public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n issueDateTime = new Date();\n \n }", "public GTLServiceTicket() {}", "public ServicioTicket obtenerServicioTicket(int codigo) {\n return this.servicioTicketFacade.find(codigo);\n }", "@Override\r\n\tpublic int getTicketNo() {\n\t\treturn 0;\r\n\t}", "public phonecallTicket nextTicket(phonecallTicket ticket){\n \n try {\n \n if(!viewrs.isLast()){\n viewrs.next();\n int id_col = viewrs.getInt(\"ID\");\n String first_name = viewrs.getString(\"NAME\");\n String phone = viewrs.getString(\"PHONE\");\n String tag = viewrs.getString(\"TAG\");\n String date = viewrs.getString(\"DATE\");\n String prob = viewrs.getString(\"PROBLEM\");\n String notes = viewrs.getString(\"NOTES\");\n String status = viewrs.getString(\"STATUS\");\n \n ticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }\n } catch (Exception e) {System.out.println(\"SQL nextTicket() problem \" + e);}\n \n return ticket;\n \n }", "public java.lang.Object getTicketCategoryID() {\n return ticketCategoryID;\n }", "public String getTicketKeyHash() {\n return this.mTicketKeyHash;\n }", "public interface Ticket<SESSION> {\n /**\n * Each valid ticket points to session of the resource. The actual type\n * {@code SESSION} is provided by user (as a type parameter of enclosing\n * SessionManager). The actual resource should be accessible from\n * {@code SESSION}.\n * @return non-null current session\n * @throws IllegalStateException if ticket is no longer valid\n */\n SESSION getSession();\n\n /**\n * Releases resource and makes ticket invalid. Switches the resource\n * off if it was a last ticket.\n * @throws IllegalStateException if ticket is no more valid\n */\n void dismiss();\n }", "private TicketData Ticket2TicketData(Ticket t) {\n\n\t\tBuilder ticketBuilder = TicketData.newBuilder();\n\t\tticketBuilder.setDescription(t.getDescription());\n\t\tticketBuilder.setId(t.getId());\n\t\tticketBuilder.setPriority(de.uniba.rz.io.rpc.TicketData.Priority.values()[t.getPriority().ordinal()]);\n\t\tticketBuilder.setReporter(t.getReporter());\n\t\tticketBuilder.setStatus(de.uniba.rz.io.rpc.TicketData.Status.values()[t.getStatus().ordinal()]);\n\t\tticketBuilder.setTopic(t.getTopic());\n\t\tticketBuilder.setType(de.uniba.rz.io.rpc.TicketData.Type.values()[t.getType().ordinal()]);\n\n\t\treturn ticketBuilder.build();\n\n\t}", "public Ticket(String name, String descrip, int caseNum, int status, int priority, String solution) {\n\tthis.name = name;\n\tthis.descrip = descrip;\n\tthis.caseNum = caseNum;\n\tthis.status = status;\n\tthis.priority = priority;\n\tthis.solution = solution;\n }", "public Ticket buyTicket() {\n\t\tif(Capacity>CapacityCounter) {\n\t\t\tchooseSeat();\n\t\t\tCapacity = Capacity+CAPACITYPLUSONE;\n\t\t} else {\n\t\t\tSystem.out.println(\"The showing is full\");\n\t\t}\n\t\tTicket retTicket = new Ticket();\n\t\treturn retTicket;\n\t}", "private TicketValidatedAssertModel<IamPrincipalInfo> doRequestRemoteTicketValidation(String ticket) {\r\n\t\t/**\r\n\t\t * The purpose of this function is to make iam-server a new child,\r\n\t\t * dataCipherKey/accesstoken.\r\n\t\t * \r\n\t\t * @see:com.wl4g.devops.iam.handler.CentralAuthenticationHandler.validate(TicketValidateModel)\r\n\t\t */\r\n\t\tString sessionId = valueOf(getSession(true).getId());\r\n\t\treturn ticketValidator.validate(new TicketValidateModel(ticket, config.getServiceName(), sessionId));\r\n\t}", "public Tickets createTicket(Users user) {\n Tickets tickets = new Tickets();\n tickets.setTicketId(UUID.randomUUID().toString());\n tickets.setId(user.getId());\n entityManager.persist(tickets);\n return tickets;\n }", "public static ArrayList<Ticket> getTickets() {\r\n\t\treturn ticketsBar;\r\n\t}", "@PostMapping(value=\"/create\")\n\tpublic Ticket creatTicket(@RequestBody Ticket ticket){\n\t\treturn ticketBookingService.createTicket(ticket);\n\t}", "@GetMapping(\"/getTicket/{id}\")\r\n\tResponseEntity<TicketDto> fetchTicket(@PathVariable(\"id\") int bookingId){\r\n\t\tTicket ticket = bookingService.showTicket(bookingId);\r\n\t\tTicketDto ticketDto=convertTicketDto(ticket);\r\n\t\tResponseEntity<TicketDto> response = new ResponseEntity<TicketDto>(ticketDto,HttpStatus.OK);\r\n\t\treturn response;\r\n\t}", "public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }", "public String getTicketPrincipalRoot() {\n return ticketPrincipalRoot;\n }", "private void displayOneTicket(String id){\n clrscr();\n System.out.println(\"Viewing Ticket Details\\n\");\n try{\n String response = getTickets(\"https://alston.zendesk.com/api/v2/tickets/\" + id +\".json\");\n if(response == null){\n System.out.println(\"Sorry! Failed to find a ticket with ID: \" + id + \" This ticket might not exist.\");\n System.out.println(\"Enter anything to continue...\");\n return;\n }\n JsonParser parser = new JsonParser();\n try{\n JsonObject ticket = parser.parse(response).getAsJsonObject().getAsJsonObject(\"ticket\");\n System.out.printf(\"%-25s%s\\n\", \"ID: \", ticket.get(\"id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Subject: \", ticket.get(\"subject\").toString());\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"created_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Date Created: \", date);\n\n date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"updated_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Last Updated: \", date);\n\n System.out.printf(\"%-25s%s\\n\", \"Description: \", ticket.getAsJsonPrimitive(\"description\").getAsString().replace(\"\\n\", \"\\n \"));\n System.out.printf(\"%-25s%s\\n\", \"Requester ID: \", ticket.get(\"requester_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Submitter ID: \", ticket.get(\"submitter_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Organization ID: \", ticket.get(\"organization_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Priority: \", ticket.get(\"priority\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Channelback: \", ticket.get(\"allow_channelback\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Attachments: \", ticket.get(\"allow_attachments\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Status: \", ticket.get(\"status\").toString());\n\n String tagString = \"\";\n JsonArray tags = ticket.get(\"tags\").getAsJsonArray();\n for (JsonElement t: tags) {\n tagString += t + \", \";\n }\n if(tagString.length()>2){\n tagString = tagString.substring(0, tagString.length()-2);\n } else {\n tagString = null;\n }\n System.out.printf(\"%-25s%s\\n\", \"Tags: \", tagString);\n\n System.out.println(\"\\nPlease Press \\\"Enter\\\" to go Back\");\n }\n catch(JsonSyntaxException jse){\n System.out.println(\"Not a valid Json String:\"+jse.getMessage());\n } catch (ParseException e) {\n System.out.println(\"Error parsing date while fetching ticket details\");\n e.printStackTrace();\n }\n } catch (IOException e){\n System.out.println(\"Error with HTTP connection while displaying ticket\");\n }\n\n }", "public String add(Ticket ticket){\n Receipt receipt = new Receipt(ticket);\n receipts.put(receipt.getReceiptId(), receipt);\n return receipt.getAmountDueString();\n }", "public static TicketInfo newInstance(TicketPurchaseLocal ticket) {\n TicketInfo fragment = new TicketInfo();\n Bundle args = new Bundle();\n args.putSerializable(\"ticket\", ticket);\n fragment.setArguments(args);\n return fragment;\n }", "private Ticket givenTicketInOrderedBilled() {\n CreateTicketVO createTicketVO = CreateTicketVO.newBuilder()\n .ticketIssuingType(TicketIssuingType.ONE_TICKET_FOR_ALL_PRODUCTS)\n .products(this.products)\n .paymentType(PaymentType.NO_PAYMENT)\n .account(this.account).build();\n TicketOrder ticketOrder = this.ticketFactory.createTickets(createTicketVO);\n Ticket ticket = ticketOrder.getBillingTicket();\n // [1,0] -> [8,0]\n ticket.nextStateOk();\n // [8,0] -> [8,1]\n ticket.nextStateOk();\n // [8,1] -> [8,4]\n ticket.nextStateOk();\n // [8,4] -> [8,2]\n ticket.nextStateOk();\n return ticket;\n }", "private SessionTicket createUniqueSessionTicket() {\n String ticket = UUID.randomUUID().toString();\n SessionTicket sessionTicket = new SessionTicket();\n sessionTicket.setTicket(ticket);\n return sessionTicket;\n }", "public static void assignTicket(Ticket ticket,String toT){\r\n\r\n\t\tDate dateCreated=new Date();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the current date\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\r\n\t\t//int ticketID=1000;\r\n\r\n\t\twhile(true){\r\n\t\t\tticket.ticketID=Integer.toString(ticketID);\t\t\t\t\t\t\t\t\t\t//converting the ticket id to string and assigning it to ticket id.\r\n\t\t\tticketID++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif(toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is phone\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[0];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 0\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"InPerson\")){\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is inperson\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[1];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 1\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"Email\")){\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is email\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[2];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 2\r\n\t\t}\r\n\r\n\t\tticket.CustomerserviceRepID=Integer.toString(new Random().nextInt(arrayServiceIDs.length));\t\t//randomly assigning the service representative id\r\n\t\tticket.DateCreated=dateFormat.format(dateCreated);\r\n\t\t\r\n\r\n\r\n\t}", "public MidUser authenticate(String ticket) {\n return null;\n }", "public void setticketId(int ticketId) {\n\t\tthis.ticketId = ticketId;\n\t}", "public interface TicketService {\n\n public String getTicket();\n\n}", "public String getTicketCreatedBy() {\n\t\treturn TicketCreatedBy;\n\t}", "String getCardApiTicket(String appId);", "public phonecallTicket previousTicket(phonecallTicket ticket){\n \n \n try {\n \n if(!viewrs.isFirst()){\n viewrs.previous();\n int id_col = viewrs.getInt(\"ID\");\n String first_name = viewrs.getString(\"NAME\");\n String phone = viewrs.getString(\"PHONE\");\n String tag = viewrs.getString(\"TAG\");\n String date = viewrs.getString(\"DATE\");\n String prob = viewrs.getString(\"PROBLEM\");\n String notes = viewrs.getString(\"NOTES\");\n String status = viewrs.getString(\"STATUS\");\n \n ticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }\n } catch (Exception e) {System.out.println(\"SQL nextTicket() problem \" + e);}\n \n return ticket;\n \n }", "public void setTicketId(int value) {\r\n this.ticketId = value;\r\n }", "public Git.Entry getObject() { return ent; }", "public int getLuckyTicket() {\n return luckyTicket_;\n }", "public void setTicketId(int value) {\n this.ticketId = value;\n }", "public boolean crearNuevoTicket(Ticket ticket, Usuario usuario) {\n\n try {\n\n //Se determina el tiempo de vida del ticket según el SLA\n int tiempoDeVida = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeSolucion();\n Calendar c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeVida);\n ticket.setTiempoDeVida(c.getTime());\n //Se indica la fecha máxima de cierre\n ticket.setFechaDeCierre(c.getTime());\n //Se indica la fecha actual como fecha de creacion\n ticket.setFechaDeCreacion(new Date());\n //se ingresa la fecha de última modificación\n ticket.setFechaDeModificacion(ticket.getFechaDeCreacion());\n //Se determina el tiempo de actualizacion segun el SLA\n //int tiempoDeActualizacion = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion();\n //Información del ticket y el sla\n Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n int tiempoDeActualizacion = prioridadTicket.getValor() == 1 ? ticketSla.getTiempoRespuestaPrioridadAlta() : prioridadTicket.getValor() == 2 ? ticketSla.getTiempoRespuestaPrioridadMedia() : ticketSla.getTiempoRespuestaPrioridadBaja();\n //Se añade el tiempo de actualización para pos-validación según SLA\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeActualizacion);\n //Se hacen verificaciones por tipo de disponibilidad es decir 24x7 o 8x5\n int horaActual = c.get(Calendar.HOUR_OF_DAY);\n int diaDeLaSemana = c.get(Calendar.DAY_OF_WEEK);\n if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (diaDeLaSemana == Calendar.SATURDAY || diaDeLaSemana == Calendar.SUNDAY || (diaDeLaSemana == Calendar.FRIDAY && horaActual > 17))) {\n if (diaDeLaSemana == Calendar.FRIDAY) {\n c.add(Calendar.DAY_OF_MONTH, 3);\n } else if (diaDeLaSemana == Calendar.SATURDAY) {\n c.add(Calendar.DAY_OF_MONTH, 2);\n } else {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n } else if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (horaActual < 8 || horaActual > 17) && (diaDeLaSemana != Calendar.SATURDAY && diaDeLaSemana != Calendar.SUNDAY)) {\n if (horaActual > 17) {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n }\n ticket.setFechaDeProximaActualizacion(c.getTime());\n if (ticket.getFechaDeProximaActualizacion().compareTo(ticket.getFechaDeCierre()) > 0) {\n Calendar cierre = Calendar.getInstance();\n cierre.setTime(c.getTime());\n cierre.add(Calendar.HOUR, tiempoDeVida);\n ticket.setFechaDeCierre(cierre.getTime());\n }\n //Se indica la persona que crea el ticket\n ticket.setUsuarioidcreador(usuario);\n //Se indica el usuario propietario por defecto y el responsable (Soporte HELPDESK)\n Usuario usuarioHelpdek = this.usuarioFacade.obtenerUsuarioPorCorreoElectronico(\"[email protected]\");\n ticket.setUsuarioidpropietario(usuarioHelpdek);\n ticket.setUsuarioidresponsable(usuarioHelpdek);\n //Se indica el estado actual del ticket\n EstadoTicket estadoNuevo = this.estadoTicketFacade.find(1);\n ticket.setEstadoTicketcodigo(estadoNuevo);\n //Creamos el ticket\n this.ticketFacade.create(ticket);\n //Creamos el Notificador\n TareaTicketInfo tareaTicketInfo = new TareaTicketInfo(\"t_sla\" + ticket.getTicketNumber(), \"Notificador SLA ticket# \" + ticket.getTicketNumber(), \"LoteTareaNotificarSLA\", ticket);\n //Información del ticket y el sla\n //Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n //PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n String hora = prioridadTicket.getValor() == 1 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadAlta()) : prioridadTicket.getValor() == 2 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadMedia()) : String.valueOf(ticketSla.getTiempoRespuestaPrioridadBaja());\n //Definir la hora de inicio\n //c = Calendar.getInstance();\n //c.add(Calendar.HOUR, Integer.parseInt(hora));\n c.add(Calendar.MINUTE, -30);\n tareaTicketInfo.setStartDate(c.getTime());\n tareaTicketInfo.setEndDate(ticket.getFechaDeCierre());\n tareaTicketInfo.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n tareaTicketInfo.setMinute(String.valueOf(c.get(Calendar.MINUTE)) + \"/10\");\n tareaTicketInfo.setHour(String.valueOf(c.get(Calendar.HOUR_OF_DAY)));\n tareaTicketInfo.setMonth(\"*\");\n tareaTicketInfo.setDayOfMonth(\"*\");\n tareaTicketInfo.setDayOfWeek(ticketSla.getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") ? \"Mon, Tue, Wed, Thu, Fri\" : \"*\");\n tareaTicketInfo.setYear(\"*\");\n tareaTicketInfo.setDescription(\"Tarea SLA para ticket# \" + ticket.getTicketNumber());\n this.notificadorServicio.createJob(tareaTicketInfo);\n\n //Se añade un historico del evento\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(1));\n historialDeTicket.setFechaDelEvento(new Date());\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setUsuarioid(ticket.getUsuarioidcreador());\n historialDeTicket.setTicketticketNumber(ticket);\n this.historialDeTicketFacade.create(historialDeTicket);\n\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "@Bean(name=\"ticketService\")\n public TicketService getTicketService() {\n int rowNum = Integer.valueOf(env.getProperty(\"rowNum\"));\n int columnNum = Integer.valueOf(env.getProperty(\"columnNum\"));\n TicketService ticketService = new TicketServiceImpl(rowNum, columnNum);\n return ticketService;\n }", "public TicketDetails assignTicket(VehicleDetails vehicleDetails){\n\n ParkingSpot parkingSpot = getParkingSpot(vehicleDetails);\n if(parkingSpot==null)\n return null;\n return createTicketDetails(vehicleDetails,parkingSpot);\n }", "public int getLuckyTicket() {\n return luckyTicket_;\n }", "public String getTicket_status() {\r\n\t\treturn ticket_status;\r\n\t}", "public static TicketContent createFromXml(Element root) throws Exception {\n if (! DomUtil.matches(root, ELEMENT_TICKET_TICKETINFO,\n NAMESPACE_TICKET)) {\n throw new Exception(\"root element not ticketinfo\");\n }\n\n Ticket ticket = new HibTicket();\n\n String id = DomUtil.getChildTextTrim(root, ELEMENT_TICKET_ID,\n NAMESPACE_TICKET);\n ticket.setKey(id);\n\n String timeout =\n DomUtil.getChildTextTrim(root, ELEMENT_TICKET_TIMEOUT,\n NAMESPACE_TICKET);\n ticket.setTimeout(timeout);\n\n Element pe = DomUtil.getChildElement(root, XML_PRIVILEGE, NAMESPACE);\n DavPrivilegeSet privileges = DavPrivilegeSet.createFromXml(pe);\n privileges.setTicketPrivileges(ticket);\n\n Element owner = DomUtil.getChildElement(root, XML_OWNER, NAMESPACE);\n String ownerHref =\n DomUtil.getChildTextTrim(owner, XML_HREF, NAMESPACE);\n\n return new TicketContent(ticket, ownerHref);\n }", "@Override\n\tpublic ProductVO buyticket(ProductVO vo) {\n\t\treturn null;\n\t}", "public int returnKitchenTicket(){\n return OrderID;\n\n }", "public TAccountTicketFlow(){}", "public void setTicketType(String ticketTypeOf)\r\n {\r\n ticketType = ticketTypeOf;\r\n }" ]
[ "0.8326161", "0.76124597", "0.75919336", "0.7466717", "0.7197956", "0.71428037", "0.70996577", "0.7084744", "0.70574206", "0.6992954", "0.68679374", "0.6793144", "0.66545284", "0.66453576", "0.66409314", "0.6595078", "0.65612555", "0.6558332", "0.6536472", "0.6487191", "0.6474227", "0.64505506", "0.64364505", "0.6432399", "0.6411327", "0.64062375", "0.6393056", "0.6392546", "0.634328", "0.63264906", "0.63173676", "0.6298228", "0.62958544", "0.6230662", "0.6201376", "0.61948603", "0.61788136", "0.6165614", "0.6128805", "0.6108375", "0.6091124", "0.60316986", "0.6028488", "0.60281354", "0.60262656", "0.5986741", "0.5979285", "0.59351104", "0.5911083", "0.5904988", "0.5887789", "0.587791", "0.58744466", "0.5872447", "0.58627784", "0.5849111", "0.5843382", "0.5805346", "0.58037376", "0.57533777", "0.5727815", "0.57246745", "0.57235485", "0.5722005", "0.57065827", "0.5698404", "0.5697432", "0.56954044", "0.56929624", "0.5685358", "0.5661745", "0.56563336", "0.5649801", "0.56469935", "0.5646446", "0.5637725", "0.56313664", "0.55706203", "0.55660486", "0.55527866", "0.5539981", "0.5514545", "0.5501741", "0.550021", "0.5495862", "0.5495537", "0.54933894", "0.54876137", "0.54803973", "0.5464066", "0.54625905", "0.5458861", "0.5452954", "0.5450107", "0.5418732", "0.54164004", "0.5398933", "0.537876", "0.53761816", "0.5373554", "0.5369244" ]
0.0
-1
Get the ticket object
@Override public LotteryTicket cancelLotteryTicket(int ticketId) { LotteryTicket ticket = getLotteryTicket(ticketId); // Check if ticket status is checked or not if (ticket.isTicketStatusChecked()) { throw new InternalServerError("This ticket is already checked and cannot be cancelled"); } else { // Update the ticket object ticket.setCancelled(true); try { // Save and return ticket response return lotteryTicketRepository.save(ticket); } catch (Exception exception) { LOGGER.error("Something went wrong in cancelLotteryTicket" + exception); throw new InternalServerError("Something went wrong in cancelling the lottery ticket"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ticket getTicket() {\n return ticket;\n }", "public Ticket getTicket(String id);", "public Ticket getCurrentTicket(){return this.currentTicket;}", "public java.lang.Object getTicketID() {\n return ticketID;\n }", "public phonecallTicket getTicket(){\n return currentticket;\n }", "@Override\n\tpublic Booking_ticket getTicket(String ticketid) {\n\t\treturn null;\n\t}", "public int getTicketId() {\r\n return ticketId;\r\n }", "public int getTicketId() {\n return ticketId;\n }", "public int getticketId() {\n \treturn ticketId;\n }", "public Integer getTicketId() {\r\n return ticketId;\r\n }", "void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }", "Ticket getTicketByAssignee(int ticketId, int userId);", "public String getTicketKey() {\n return this.mTicketKey;\n }", "public Ticket() {\n\n }", "Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }", "public UserTicket getUserTicket() {\n return FxJsfUtils.getRequest().getUserTicket();\n }", "public Ticket() {\n\t\tticketStatus = TICKET_STATUS_OPEN;\n\t}", "@GetMapping(value=\"/ticket/{ticketId}\")\n\tpublic Ticket getTicketById(@PathVariable(\"ticketId\") Integer ticketId){\n\t\treturn ticketBookingService.getTicket(ticketId);\n\t}", "public Ticket getTicketById(int id) {\r\n\t\tfor (Iterator<Ticket> iter = ticketList.iterator(); iter.hasNext(); ) {\r\n\t\t\tTicket ticket = iter.next();\r\n\t\t\tif (ticket.getTicketId() == id) {\r\n\t\t\t\treturn ticket;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "@Override\n\tprotected TicketModel getTicketImpl(RepositoryModel repository, long ticketId) {\n\t\tJedis jedis = pool.getResource();\n\t\tif (jedis == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\tticket.project = repository.projectPath;\n\t\t\tticket.repository = repository.name;\n\t\t\tticket.number = ticketId;\n\t\t\tlog.debug(\"rebuilt ticket {} from Redis @ {}\", ticketId, getUrl());\n\t\t\treturn ticket;\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve ticket from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Category getTicketCategory() { return ticketCategory; }", "protected Ticket completeTicket()\n\t{\n\t\tif (tickets.size() != 0)\n\t\t{\n\t\t\treturn tickets.pop();\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Ticket> getTickets() {return tickets;}", "protected Ticket<SESSION> newTicket() {\n synchronized (manager) {\n if (isConnectionStopped) {\n throw new IllegalStateException(\"Connection has been stopped\");\n }\n TicketImpl ticketImpl = new TicketImpl();\n tickets.add(ticketImpl);\n return ticketImpl;\n }\n }", "public String getTicketType()\r\n {\r\n return ticketType;\r\n }", "public List<Ticket> getTicketList() {\r\n\t\treturn ticketList;\r\n\t}", "@Override\n\tpublic LotteryTicket getLotteryTicket(int ticketId) {\n\t\tLotteryTicket ticket = null;\n\t\ttry {\n\t\t\tticket = lotteryTicketRepository.findByTicketIdAndIsCancelled(ticketId, false);\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in getLotteryTicket\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in getting the lottery ticket\");\n\t\t}\n\n\t\t// Check if ticket object is empty\n\t\tif (ticket == null) {\n\t\t\tthrow new InternalServerError(\"This ticket id does not exists\");\n\t\t}\n\n\t\t// Return ticket response\n\t\treturn ticket;\n\t}", "TicketDTO ticketToTicketDTO(Ticket ticket);", "@Transactional(readOnly = true)\n public Ticket findOne(Long id) {\n log.debug(\"Request to get Ticket : {}\", id);\n Ticket ticket = ticketRepository.findOne(id);\n return ticket;\n }", "public Date getTicketDate() {\n\t\treturn ticketDate;\n\t}", "public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n void setPassengerName(String passengerName);\n\n /**\n * Getter for the unique identification pertaining to the ticket's route.\n *\n * @return unique identification number related to the ticket in string format.\n */\n String getRouteID();\n\n /**\n * Setter for the unique identification pertaining to the ticket's route.\n *\n * @param routeID unique identification number related to the ticket in string format.\n */\n void setRoute(String routeID);\n\n /**\n * Getter for the departure city string.\n *\n * @return the departure city in string format.\n */\n String getDepartureLocation();\n\n /**\n * Getter for the arrival city string.\n *\n * @return the arrival city in string format.\n */\n String getArrivalLocation();\n\n /**\n * Setter for the ticket origin in using Locations enum.\n *\n * @param origination enum representing location.\n */\n void setOrigination(Locations origination);\n\n /**\n * Setter for the ticket destination using Locations enum.\n *\n * @param destination enum representing location.\n */\n void setDestination(Locations destination);\n\n /**\n * Getter for the departure date and time which is represented by util Calendar but printed out\n * in string format MM DD YYYY HH MM.\n *\n * @return the departure date and time in string format MM DD YYYY HH MM.\n */\n Calendar getDepartureDateAndTime();\n\n /**\n * Getter for the arrival date and time which is represented by util Calendar but printed out\n * in string format YYYY MM DD HH MM.\n *\n * @return the arrival date and time in string format YYYY MM DD HH MM.\n */\n Calendar getArrivalDateAndTime();\n\n /**\n * Setter for the trip dates using util Calendar for both departure and arrival in the format\n * YYYY Calendar.MONTH DD HH MM.\n *\n * @param departureDate Calendar departure date in the format YYYY Calendar.MONTH DD HH MM.\n * @param arrivalDate Calendar arrival date in the format YYYY Calendar.MONTH DD HH MM.\n */\n void setTripDates(Calendar departureDate, Calendar arrivalDate);\n\n /**\n * Getter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @return enum representing the class of service available on certain tickets.\n */\n ClassOfService getClassOfService();\n\n /**\n * Setter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @param serviceClass enum representing the class of service available on certain tickets.\n */\n void setClassOfService(ClassOfService serviceClass);\n }", "public Ticket(){\n\t\tpass = new Passenger();\n\t}", "public java.lang.String getTicketNo () {\r\n\t\treturn ticketNo;\r\n\t}", "public ColaTicket obtenerColaTicket(int id) {\n return this.colaFacade.find(id);\n }", "public String getTicketId() {\n String ticketId = getParameter(CosmoDavConstants.PARAM_TICKET);\n if (ticketId == null) {\n ticketId = getHeader(CosmoDavConstants.HEADER_TICKET);\n }\n return ticketId;\n }", "public ticket() {\n initComponents();\n autoID();\n }", "@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}", "public Ticket() throws GeneralSecurityException {\n macAlgorithm = new TicketMac();\n \n //TODO: Change hmac key according to your need\n byte[] hmacKey = new byte[16];\n macAlgorithm.setKey(hmacKey);\n \n ul = new Commands();\n utils = new Utilities(ul);\n }", "@Override\n protected Integer getTicketNumber() {\n return null;\n }", "Ticket ticketDTOToTicket(TicketDTO ticketDTO);", "public java.lang.Object getTicketTypeID() {\n return ticketTypeID;\n }", "private Ticket getTicketFromHeader(SOAPEnvelope se, SOAPHeader sh) throws KerbyException, RuntimeException, SOAPException {\r\n\t\tName name = se.createName(KerberosClientHandler.TICKET_NAME,\r\n\t\t\t\tKerberosClientHandler.TICKET_PREFIX, KerberosClientHandler.TICKET_NAMESPACE);\r\n\t\tIterator<?> it = sh.getChildElements(name);\r\n\t\t\r\n\t\tif (!it.hasNext()) {\r\n\t\t\tSystem.out.println(\"Header element not found.\");\r\n\t\t\tthrow new RuntimeException(\"Ticket not found\");\r\n\t\t}\r\n\t\t\r\n\t\tSOAPElement element = (SOAPElement) it.next();\r\n\r\n\t\tString hexEncodedTicket = element.getValue();\r\n\r\n\t\tCipheredView cipheredTicket = new CipheredView();\r\n\t\t\t\t\r\n\t\tcipheredTicket.setData(parseHexBinary(hexEncodedTicket));\r\n\t\t\r\n\t\tTicket ticket = new Ticket(cipheredTicket, pass);\r\n\t\treturn ticket;\r\n\t}", "@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}", "public List<Ticket> getTicketsForPurchase() {\n if (ticket == null) {\n ticket = new ArrayList<Ticket>();\n }\n return this.ticket;\n }", "public TicketContent(Ticket ticket) {\n this(ticket, null);\n }", "public String getTicket_url() {\r\n\t\treturn ticket_url;\r\n\t}", "@GetMapping(\"/tickets/{id}\")\n @Timed\n public ResponseEntity<Ticket> getTicket(@PathVariable Long id) {\n log.debug(\"REST request to get Ticket : {}\", id);\n Optional<Ticket> ticket = ticketRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(ticket);\n }", "public static void printTicketDetails(Ticket ticket){\n System.out.println(ticket.statusOfTicket());\n }", "public void setTicketID(java.lang.Object ticketID) {\n this.ticketID = ticketID;\n }", "int createTicket(Ticket ticket, int userId);", "public RegularTicket(int ticketNumber){\n\t\tthis.ticketNumber = ticketNumber;\n\t}", "public phonecallTicket makeTicket(int id, String who, String phone,String tag, String date,String problem, String notes, String status){\n \n phonecallTicket ticket = new phonecallTicket(id, who, phone, tag, date, problem, notes, status);\n currentticket = ticket;\n return ticket;\n }", "public TestTicket() {\n\t}", "public void setTicketId(Integer ticketId) {\r\n this.ticketId = ticketId;\r\n }", "public Integer[] getTicketNumber() {\n return ticketNumber;\n }", "String getComponentVerifyTicket();", "@Override\r\n public TicketDAO getTicketDAO() {\n return new MySQLTicketDAO();\r\n }", "public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n issueDateTime = new Date();\n \n }", "public GTLServiceTicket() {}", "public ServicioTicket obtenerServicioTicket(int codigo) {\n return this.servicioTicketFacade.find(codigo);\n }", "@Override\r\n\tpublic int getTicketNo() {\n\t\treturn 0;\r\n\t}", "public phonecallTicket nextTicket(phonecallTicket ticket){\n \n try {\n \n if(!viewrs.isLast()){\n viewrs.next();\n int id_col = viewrs.getInt(\"ID\");\n String first_name = viewrs.getString(\"NAME\");\n String phone = viewrs.getString(\"PHONE\");\n String tag = viewrs.getString(\"TAG\");\n String date = viewrs.getString(\"DATE\");\n String prob = viewrs.getString(\"PROBLEM\");\n String notes = viewrs.getString(\"NOTES\");\n String status = viewrs.getString(\"STATUS\");\n \n ticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }\n } catch (Exception e) {System.out.println(\"SQL nextTicket() problem \" + e);}\n \n return ticket;\n \n }", "public java.lang.Object getTicketCategoryID() {\n return ticketCategoryID;\n }", "public String getTicketKeyHash() {\n return this.mTicketKeyHash;\n }", "public interface Ticket<SESSION> {\n /**\n * Each valid ticket points to session of the resource. The actual type\n * {@code SESSION} is provided by user (as a type parameter of enclosing\n * SessionManager). The actual resource should be accessible from\n * {@code SESSION}.\n * @return non-null current session\n * @throws IllegalStateException if ticket is no longer valid\n */\n SESSION getSession();\n\n /**\n * Releases resource and makes ticket invalid. Switches the resource\n * off if it was a last ticket.\n * @throws IllegalStateException if ticket is no more valid\n */\n void dismiss();\n }", "private TicketData Ticket2TicketData(Ticket t) {\n\n\t\tBuilder ticketBuilder = TicketData.newBuilder();\n\t\tticketBuilder.setDescription(t.getDescription());\n\t\tticketBuilder.setId(t.getId());\n\t\tticketBuilder.setPriority(de.uniba.rz.io.rpc.TicketData.Priority.values()[t.getPriority().ordinal()]);\n\t\tticketBuilder.setReporter(t.getReporter());\n\t\tticketBuilder.setStatus(de.uniba.rz.io.rpc.TicketData.Status.values()[t.getStatus().ordinal()]);\n\t\tticketBuilder.setTopic(t.getTopic());\n\t\tticketBuilder.setType(de.uniba.rz.io.rpc.TicketData.Type.values()[t.getType().ordinal()]);\n\n\t\treturn ticketBuilder.build();\n\n\t}", "public Ticket(String name, String descrip, int caseNum, int status, int priority, String solution) {\n\tthis.name = name;\n\tthis.descrip = descrip;\n\tthis.caseNum = caseNum;\n\tthis.status = status;\n\tthis.priority = priority;\n\tthis.solution = solution;\n }", "public Ticket buyTicket() {\n\t\tif(Capacity>CapacityCounter) {\n\t\t\tchooseSeat();\n\t\t\tCapacity = Capacity+CAPACITYPLUSONE;\n\t\t} else {\n\t\t\tSystem.out.println(\"The showing is full\");\n\t\t}\n\t\tTicket retTicket = new Ticket();\n\t\treturn retTicket;\n\t}", "private TicketValidatedAssertModel<IamPrincipalInfo> doRequestRemoteTicketValidation(String ticket) {\r\n\t\t/**\r\n\t\t * The purpose of this function is to make iam-server a new child,\r\n\t\t * dataCipherKey/accesstoken.\r\n\t\t * \r\n\t\t * @see:com.wl4g.devops.iam.handler.CentralAuthenticationHandler.validate(TicketValidateModel)\r\n\t\t */\r\n\t\tString sessionId = valueOf(getSession(true).getId());\r\n\t\treturn ticketValidator.validate(new TicketValidateModel(ticket, config.getServiceName(), sessionId));\r\n\t}", "public Tickets createTicket(Users user) {\n Tickets tickets = new Tickets();\n tickets.setTicketId(UUID.randomUUID().toString());\n tickets.setId(user.getId());\n entityManager.persist(tickets);\n return tickets;\n }", "public static ArrayList<Ticket> getTickets() {\r\n\t\treturn ticketsBar;\r\n\t}", "@PostMapping(value=\"/create\")\n\tpublic Ticket creatTicket(@RequestBody Ticket ticket){\n\t\treturn ticketBookingService.createTicket(ticket);\n\t}", "@GetMapping(\"/getTicket/{id}\")\r\n\tResponseEntity<TicketDto> fetchTicket(@PathVariable(\"id\") int bookingId){\r\n\t\tTicket ticket = bookingService.showTicket(bookingId);\r\n\t\tTicketDto ticketDto=convertTicketDto(ticket);\r\n\t\tResponseEntity<TicketDto> response = new ResponseEntity<TicketDto>(ticketDto,HttpStatus.OK);\r\n\t\treturn response;\r\n\t}", "public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }", "public String getTicketPrincipalRoot() {\n return ticketPrincipalRoot;\n }", "private void displayOneTicket(String id){\n clrscr();\n System.out.println(\"Viewing Ticket Details\\n\");\n try{\n String response = getTickets(\"https://alston.zendesk.com/api/v2/tickets/\" + id +\".json\");\n if(response == null){\n System.out.println(\"Sorry! Failed to find a ticket with ID: \" + id + \" This ticket might not exist.\");\n System.out.println(\"Enter anything to continue...\");\n return;\n }\n JsonParser parser = new JsonParser();\n try{\n JsonObject ticket = parser.parse(response).getAsJsonObject().getAsJsonObject(\"ticket\");\n System.out.printf(\"%-25s%s\\n\", \"ID: \", ticket.get(\"id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Subject: \", ticket.get(\"subject\").toString());\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"created_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Date Created: \", date);\n\n date = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\").parse(ticket.getAsJsonPrimitive(\"updated_at\").getAsString());\n System.out.printf(\"%-25s%s\\n\", \"Last Updated: \", date);\n\n System.out.printf(\"%-25s%s\\n\", \"Description: \", ticket.getAsJsonPrimitive(\"description\").getAsString().replace(\"\\n\", \"\\n \"));\n System.out.printf(\"%-25s%s\\n\", \"Requester ID: \", ticket.get(\"requester_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Submitter ID: \", ticket.get(\"submitter_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Organization ID: \", ticket.get(\"organization_id\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Priority: \", ticket.get(\"priority\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Channelback: \", ticket.get(\"allow_channelback\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Allow Attachments: \", ticket.get(\"allow_attachments\").toString());\n System.out.printf(\"%-25s%s\\n\", \"Status: \", ticket.get(\"status\").toString());\n\n String tagString = \"\";\n JsonArray tags = ticket.get(\"tags\").getAsJsonArray();\n for (JsonElement t: tags) {\n tagString += t + \", \";\n }\n if(tagString.length()>2){\n tagString = tagString.substring(0, tagString.length()-2);\n } else {\n tagString = null;\n }\n System.out.printf(\"%-25s%s\\n\", \"Tags: \", tagString);\n\n System.out.println(\"\\nPlease Press \\\"Enter\\\" to go Back\");\n }\n catch(JsonSyntaxException jse){\n System.out.println(\"Not a valid Json String:\"+jse.getMessage());\n } catch (ParseException e) {\n System.out.println(\"Error parsing date while fetching ticket details\");\n e.printStackTrace();\n }\n } catch (IOException e){\n System.out.println(\"Error with HTTP connection while displaying ticket\");\n }\n\n }", "public String add(Ticket ticket){\n Receipt receipt = new Receipt(ticket);\n receipts.put(receipt.getReceiptId(), receipt);\n return receipt.getAmountDueString();\n }", "public static TicketInfo newInstance(TicketPurchaseLocal ticket) {\n TicketInfo fragment = new TicketInfo();\n Bundle args = new Bundle();\n args.putSerializable(\"ticket\", ticket);\n fragment.setArguments(args);\n return fragment;\n }", "private Ticket givenTicketInOrderedBilled() {\n CreateTicketVO createTicketVO = CreateTicketVO.newBuilder()\n .ticketIssuingType(TicketIssuingType.ONE_TICKET_FOR_ALL_PRODUCTS)\n .products(this.products)\n .paymentType(PaymentType.NO_PAYMENT)\n .account(this.account).build();\n TicketOrder ticketOrder = this.ticketFactory.createTickets(createTicketVO);\n Ticket ticket = ticketOrder.getBillingTicket();\n // [1,0] -> [8,0]\n ticket.nextStateOk();\n // [8,0] -> [8,1]\n ticket.nextStateOk();\n // [8,1] -> [8,4]\n ticket.nextStateOk();\n // [8,4] -> [8,2]\n ticket.nextStateOk();\n return ticket;\n }", "private SessionTicket createUniqueSessionTicket() {\n String ticket = UUID.randomUUID().toString();\n SessionTicket sessionTicket = new SessionTicket();\n sessionTicket.setTicket(ticket);\n return sessionTicket;\n }", "public static void assignTicket(Ticket ticket,String toT){\r\n\r\n\t\tDate dateCreated=new Date();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the current date\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\r\n\t\t//int ticketID=1000;\r\n\r\n\t\twhile(true){\r\n\t\t\tticket.ticketID=Integer.toString(ticketID);\t\t\t\t\t\t\t\t\t\t//converting the ticket id to string and assigning it to ticket id.\r\n\t\t\tticketID++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif(toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is phone\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[0];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 0\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"InPerson\")){\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is inperson\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[1];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 1\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"Email\")){\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is email\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[2];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 2\r\n\t\t}\r\n\r\n\t\tticket.CustomerserviceRepID=Integer.toString(new Random().nextInt(arrayServiceIDs.length));\t\t//randomly assigning the service representative id\r\n\t\tticket.DateCreated=dateFormat.format(dateCreated);\r\n\t\t\r\n\r\n\r\n\t}", "public MidUser authenticate(String ticket) {\n return null;\n }", "public void setticketId(int ticketId) {\n\t\tthis.ticketId = ticketId;\n\t}", "public interface TicketService {\n\n public String getTicket();\n\n}", "public String getTicketCreatedBy() {\n\t\treturn TicketCreatedBy;\n\t}", "String getCardApiTicket(String appId);", "public phonecallTicket previousTicket(phonecallTicket ticket){\n \n \n try {\n \n if(!viewrs.isFirst()){\n viewrs.previous();\n int id_col = viewrs.getInt(\"ID\");\n String first_name = viewrs.getString(\"NAME\");\n String phone = viewrs.getString(\"PHONE\");\n String tag = viewrs.getString(\"TAG\");\n String date = viewrs.getString(\"DATE\");\n String prob = viewrs.getString(\"PROBLEM\");\n String notes = viewrs.getString(\"NOTES\");\n String status = viewrs.getString(\"STATUS\");\n \n ticket = makeTicket(id_col, first_name, phone, tag, date, prob, notes, status);\n }\n } catch (Exception e) {System.out.println(\"SQL nextTicket() problem \" + e);}\n \n return ticket;\n \n }", "public void setTicketId(int value) {\r\n this.ticketId = value;\r\n }", "public Git.Entry getObject() { return ent; }", "public int getLuckyTicket() {\n return luckyTicket_;\n }", "public void setTicketId(int value) {\n this.ticketId = value;\n }", "public boolean crearNuevoTicket(Ticket ticket, Usuario usuario) {\n\n try {\n\n //Se determina el tiempo de vida del ticket según el SLA\n int tiempoDeVida = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeSolucion();\n Calendar c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeVida);\n ticket.setTiempoDeVida(c.getTime());\n //Se indica la fecha máxima de cierre\n ticket.setFechaDeCierre(c.getTime());\n //Se indica la fecha actual como fecha de creacion\n ticket.setFechaDeCreacion(new Date());\n //se ingresa la fecha de última modificación\n ticket.setFechaDeModificacion(ticket.getFechaDeCreacion());\n //Se determina el tiempo de actualizacion segun el SLA\n //int tiempoDeActualizacion = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion();\n //Información del ticket y el sla\n Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n int tiempoDeActualizacion = prioridadTicket.getValor() == 1 ? ticketSla.getTiempoRespuestaPrioridadAlta() : prioridadTicket.getValor() == 2 ? ticketSla.getTiempoRespuestaPrioridadMedia() : ticketSla.getTiempoRespuestaPrioridadBaja();\n //Se añade el tiempo de actualización para pos-validación según SLA\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeActualizacion);\n //Se hacen verificaciones por tipo de disponibilidad es decir 24x7 o 8x5\n int horaActual = c.get(Calendar.HOUR_OF_DAY);\n int diaDeLaSemana = c.get(Calendar.DAY_OF_WEEK);\n if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (diaDeLaSemana == Calendar.SATURDAY || diaDeLaSemana == Calendar.SUNDAY || (diaDeLaSemana == Calendar.FRIDAY && horaActual > 17))) {\n if (diaDeLaSemana == Calendar.FRIDAY) {\n c.add(Calendar.DAY_OF_MONTH, 3);\n } else if (diaDeLaSemana == Calendar.SATURDAY) {\n c.add(Calendar.DAY_OF_MONTH, 2);\n } else {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n } else if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (horaActual < 8 || horaActual > 17) && (diaDeLaSemana != Calendar.SATURDAY && diaDeLaSemana != Calendar.SUNDAY)) {\n if (horaActual > 17) {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n }\n ticket.setFechaDeProximaActualizacion(c.getTime());\n if (ticket.getFechaDeProximaActualizacion().compareTo(ticket.getFechaDeCierre()) > 0) {\n Calendar cierre = Calendar.getInstance();\n cierre.setTime(c.getTime());\n cierre.add(Calendar.HOUR, tiempoDeVida);\n ticket.setFechaDeCierre(cierre.getTime());\n }\n //Se indica la persona que crea el ticket\n ticket.setUsuarioidcreador(usuario);\n //Se indica el usuario propietario por defecto y el responsable (Soporte HELPDESK)\n Usuario usuarioHelpdek = this.usuarioFacade.obtenerUsuarioPorCorreoElectronico(\"[email protected]\");\n ticket.setUsuarioidpropietario(usuarioHelpdek);\n ticket.setUsuarioidresponsable(usuarioHelpdek);\n //Se indica el estado actual del ticket\n EstadoTicket estadoNuevo = this.estadoTicketFacade.find(1);\n ticket.setEstadoTicketcodigo(estadoNuevo);\n //Creamos el ticket\n this.ticketFacade.create(ticket);\n //Creamos el Notificador\n TareaTicketInfo tareaTicketInfo = new TareaTicketInfo(\"t_sla\" + ticket.getTicketNumber(), \"Notificador SLA ticket# \" + ticket.getTicketNumber(), \"LoteTareaNotificarSLA\", ticket);\n //Información del ticket y el sla\n //Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n //PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n String hora = prioridadTicket.getValor() == 1 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadAlta()) : prioridadTicket.getValor() == 2 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadMedia()) : String.valueOf(ticketSla.getTiempoRespuestaPrioridadBaja());\n //Definir la hora de inicio\n //c = Calendar.getInstance();\n //c.add(Calendar.HOUR, Integer.parseInt(hora));\n c.add(Calendar.MINUTE, -30);\n tareaTicketInfo.setStartDate(c.getTime());\n tareaTicketInfo.setEndDate(ticket.getFechaDeCierre());\n tareaTicketInfo.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n tareaTicketInfo.setMinute(String.valueOf(c.get(Calendar.MINUTE)) + \"/10\");\n tareaTicketInfo.setHour(String.valueOf(c.get(Calendar.HOUR_OF_DAY)));\n tareaTicketInfo.setMonth(\"*\");\n tareaTicketInfo.setDayOfMonth(\"*\");\n tareaTicketInfo.setDayOfWeek(ticketSla.getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") ? \"Mon, Tue, Wed, Thu, Fri\" : \"*\");\n tareaTicketInfo.setYear(\"*\");\n tareaTicketInfo.setDescription(\"Tarea SLA para ticket# \" + ticket.getTicketNumber());\n this.notificadorServicio.createJob(tareaTicketInfo);\n\n //Se añade un historico del evento\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(1));\n historialDeTicket.setFechaDelEvento(new Date());\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setUsuarioid(ticket.getUsuarioidcreador());\n historialDeTicket.setTicketticketNumber(ticket);\n this.historialDeTicketFacade.create(historialDeTicket);\n\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "@Bean(name=\"ticketService\")\n public TicketService getTicketService() {\n int rowNum = Integer.valueOf(env.getProperty(\"rowNum\"));\n int columnNum = Integer.valueOf(env.getProperty(\"columnNum\"));\n TicketService ticketService = new TicketServiceImpl(rowNum, columnNum);\n return ticketService;\n }", "public TicketDetails assignTicket(VehicleDetails vehicleDetails){\n\n ParkingSpot parkingSpot = getParkingSpot(vehicleDetails);\n if(parkingSpot==null)\n return null;\n return createTicketDetails(vehicleDetails,parkingSpot);\n }", "public int getLuckyTicket() {\n return luckyTicket_;\n }", "public String getTicket_status() {\r\n\t\treturn ticket_status;\r\n\t}", "public static TicketContent createFromXml(Element root) throws Exception {\n if (! DomUtil.matches(root, ELEMENT_TICKET_TICKETINFO,\n NAMESPACE_TICKET)) {\n throw new Exception(\"root element not ticketinfo\");\n }\n\n Ticket ticket = new HibTicket();\n\n String id = DomUtil.getChildTextTrim(root, ELEMENT_TICKET_ID,\n NAMESPACE_TICKET);\n ticket.setKey(id);\n\n String timeout =\n DomUtil.getChildTextTrim(root, ELEMENT_TICKET_TIMEOUT,\n NAMESPACE_TICKET);\n ticket.setTimeout(timeout);\n\n Element pe = DomUtil.getChildElement(root, XML_PRIVILEGE, NAMESPACE);\n DavPrivilegeSet privileges = DavPrivilegeSet.createFromXml(pe);\n privileges.setTicketPrivileges(ticket);\n\n Element owner = DomUtil.getChildElement(root, XML_OWNER, NAMESPACE);\n String ownerHref =\n DomUtil.getChildTextTrim(owner, XML_HREF, NAMESPACE);\n\n return new TicketContent(ticket, ownerHref);\n }", "@Override\n\tpublic ProductVO buyticket(ProductVO vo) {\n\t\treturn null;\n\t}", "public int returnKitchenTicket(){\n return OrderID;\n\n }", "public TAccountTicketFlow(){}", "public void setTicketType(String ticketTypeOf)\r\n {\r\n ticketType = ticketTypeOf;\r\n }" ]
[ "0.8326161", "0.76124597", "0.75919336", "0.7466717", "0.7197956", "0.71428037", "0.70996577", "0.7084744", "0.70574206", "0.6992954", "0.68679374", "0.6793144", "0.66545284", "0.66453576", "0.66409314", "0.6595078", "0.65612555", "0.6558332", "0.6536472", "0.6487191", "0.6474227", "0.64505506", "0.64364505", "0.6432399", "0.6411327", "0.64062375", "0.6393056", "0.6392546", "0.634328", "0.63264906", "0.63173676", "0.6298228", "0.62958544", "0.6230662", "0.6201376", "0.61948603", "0.61788136", "0.6165614", "0.6128805", "0.6108375", "0.6091124", "0.60316986", "0.6028488", "0.60281354", "0.60262656", "0.5986741", "0.5979285", "0.59351104", "0.5911083", "0.5904988", "0.5887789", "0.587791", "0.58744466", "0.5872447", "0.58627784", "0.5849111", "0.5843382", "0.5805346", "0.58037376", "0.57533777", "0.5727815", "0.57246745", "0.57235485", "0.5722005", "0.57065827", "0.5698404", "0.5697432", "0.56954044", "0.56929624", "0.5685358", "0.5661745", "0.56563336", "0.5649801", "0.56469935", "0.5646446", "0.5637725", "0.56313664", "0.55706203", "0.55660486", "0.55527866", "0.5539981", "0.5514545", "0.5501741", "0.550021", "0.5495862", "0.5495537", "0.54933894", "0.54876137", "0.54803973", "0.5464066", "0.54625905", "0.5458861", "0.5452954", "0.5450107", "0.5418732", "0.54164004", "0.5398933", "0.537876", "0.53761816", "0.5373554", "0.5369244" ]
0.0
-1
Checking the input parameter validity
@Override @Transactional public LotteryTicket ammendLotteryTicket(int ticketId, LotteryTicketRequest lotteryTicketRequest) { checkLotteryTicketRequest(lotteryTicketRequest); // Get the ticket object LotteryTicket ticket = getLotteryTicket(ticketId); // Check if ticket status is checked or not if (ticket.isTicketStatusChecked()) { throw new InternalServerError("This ticket is already checked and cannot be ammended anymore"); } else { try { // Append with n lines to existing lines and save in db List<LotteryTicketLine> additionalLinesList = createTicketLines(lotteryTicketRequest.getNumberOfLines(), ticket); lineRepository.saveAll(additionalLinesList); } catch (Exception exception) { LOGGER.error("Something went wrong in ammendLotteryTicket" + exception); throw new InternalServerError("Something went wrong in ammending the lottery ticket"); } // Return the updated ticket with lines return ticket; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateInputParameters(){\n\n }", "public void checkParameters() {\n }", "protected abstract boolean isValidParameter(String parameter);", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "protected abstract boolean isInputValid();", "private boolean isInputValid() {\n return true;\n }", "private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}", "void checkValid();", "private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }", "@Override\n public boolean validate(final String param) {\n return false;\n }", "private static boolean paramValid(String paramName,String paramValue){\n return paramName!=null&&paramName.length()>0&&paramValue!=null&&paramValue.length()>0;\n }", "public abstract boolean verifyInput();", "protected abstract int isValidInput();", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "protected abstract boolean checkInput();", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "protected abstract Object validateParameter(Object constraintParameter);", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "boolean isValid(final Parameter... parameters);", "boolean checkValidity();", "boolean hasParameterValue();", "public boolean checkInput();", "public void checkValid() throws StyxException\n {\n if (this.getJSAPParameter() instanceof Option)\n {\n Option op = (Option)this.getJSAPParameter();\n if (this.valueSet)\n {\n if (this.param.getInputFile() != null)\n {\n // This parameter represents an input file. See if this is a URL\n // and if so, download it\n // TODO: if this is not a URL, check that it exists\n String str = this.getParameterValue();\n if (str.startsWith(URL_PREFIX))\n {\n // This could be a URL\n String urlStr = str.substring(URL_PREFIX.length());\n try\n {\n URL url = new URL(urlStr);\n File urlPath = new File(url.getPath());\n // TODO: be cleverer about file names, particularly\n // watching out for name clashes\n String name = urlPath.getName().equals(\"\") ? \"random.dat\" : urlPath.getName();\n this.instance.downloadFrom(url, name);\n // Now set the contents of this file to the new file name\n this.setParameterValue(name);\n }\n catch(MalformedURLException mue)\n {\n throw new StyxException(urlStr + \" is not a valid URL\");\n }\n }\n }\n }\n else\n {\n // A value hasn't been set\n if (op.required())\n {\n throw new StyxException(this.name + \" is a required parameter:\" +\n \" a value must be set\");\n }\n }\n }\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "private void checkUserInput() {\n }", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify a configuration\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "private boolean isInValidInput(String input) {\n\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn true;\n\n\t\tint firstPipeIndex = input.indexOf(PARAM_DELIMITER);\n\t\tint secondPipeIndex = input.indexOf(PARAM_DELIMITER, firstPipeIndex + 1);\n\n\t\t/*\n\t\t * if there are no PARAM_DELIMITERs or starts with a PARAM_DELIMITER\n\t\t * (Meaning command is missing) or only single PARAM_DELIMITER input is\n\t\t * not valid\n\t\t */\n\t\tif (firstPipeIndex == -1 || firstPipeIndex == 0 || secondPipeIndex == -1)\n\t\t\treturn true;\n\n\t\t// Means package name is empty\n\t\tif (secondPipeIndex - firstPipeIndex < 2)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "private boolean validateData() {\r\n TASKAggInfo agg = null;\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n\r\n if (getArgument1() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 1 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getArgument2() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 2 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getOperand() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Filter value must be of type integer\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }", "boolean hasParameterName();", "protected void validatePreamp(int[] param) {\n }", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "boolean hasParameters();", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "private void validateData() {\n }", "private static boolean valid(String arg) {\n\n /* check if valid option */\n if ( arg.equals(\"-v\") || arg.equals(\"-i\") || arg.equals(\"-p\") || arg.equals(\"-h\") )\n return true;\n\n /* check if valid port */\n try {\n int port = Integer.parseInt(arg);\n if ( ( 0 < port ) && ( port < 65354 ) )\n return true;\n } catch (NumberFormatException ignored) {}\n\n /* check if valid ip address */\n String[] ips = arg.split(\"\\\\.\");\n if ( ips.length != 4 )\n return false;\n try{\n for (int i=0; i<4; i++){\n int ip = Integer.parseInt(ips[i]);\n if ( ( ip < 0) || (255 < ip ) )\n return false;\n }\n } catch (NumberFormatException ignored) {return false;}\n\n return true;\n }", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "public void validate() {}", "protected abstract boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "void validate();", "void validate();", "public boolean isParameterProvided();", "public abstract boolean isValidValue(String input);", "public abstract boolean isValid();", "public abstract boolean isValid();", "public abstract boolean isValid();", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "public boolean checkVaild() throws IOException;", "private static void checkValidity(boolean valid) throws InvalidExpression\r\n {\r\n if(!valid)\r\n {\r\n throw new InvalidExpression(\"The expression entered is not valid\");\r\n }\r\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean checkParams(String[] params){\r\n\t\tfor(String param:params){\r\n\t\t\tif(param == \"\" || param == null || param.isEmpty()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void checkParameters()\n\t\tthrows DiameterMissingAVPException {\n\t\tDiameterClientRequest request = getRequest();\n\t\tDiameterAVPDefinition def = ShUtils.getUserIdentityAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t\tdef = ShUtils.getDataReferenceAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t}", "protected abstract boolean isInputValid(@NotNull ConversationContext context, @NotNull String input);", "@Override\n\tprotected void checkNumberOfInputs(int length) {\n\n\t}", "public abstract boolean validate();", "@Test\n public void testValidateParams() {\n String[] params;\n\n // valid params - just the application name\n params = new String[]{\"Application\"};\n instance.validateParams(params);\n\n // valid params - extra junk\n params = new String[]{\"Application\", \"Other\", \"Other\"};\n instance.validateParams(params);\n\n // invalid params - empty\n params = new String[0];\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - null first param\n params = new String[]{null};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - empty string\n params = new String[]{\"\"};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n }", "private boolean isValidInput() {\n if (null == mUsername || mUsername.length() <= 0) {\n return false;\n } else if (null == mPassword || mPassword.length() <= 0) {\n return false;\n }\n return true;\n }", "public boolean checkParameters(String username,String password, String company, String street, String city,\n String state, String zipcode, String radius, String normal, String overtime){\n //first check if they are null\n if (username==null||password==null||company==null||street==null||city==null||state==null||\n zipcode==null||radius==null || normal==null || overtime==null){\n return false;\n }\n if (username.length()==0||password.length()==0||company.length()==0||street.length()==0||\n city.length()==0||state.length()==0||zipcode.length()==0||radius.length()==0\n || normal.length()==0 || overtime.length()==0){\n return false;\n }\n //at this point the inputs are valid\n return true;\n }", "public boolean validateParameter(Parameter oParameter) {\r\n boolean bRet = true;\r\n for (Parameter cat : this.lstParameters) {\r\n if (cat.getDescriptionP().equalsIgnoreCase(oParameter.getDescriptionP())) {\r\n bRet = false;\r\n }\r\n }\r\n return bRet;\r\n }", "private boolean validParams(String name, String company) {\n\t\treturn (name != null && !name.trim().equals(\"\")) \n\t\t\t\t&& (company != null && !company.trim().equals(\"\"));\n\t}", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "private boolean validParams(double dt, double runTime, int startDay, double initPop, String stage, \r\n\t\t\t\t\t\t\t\tdouble gtMultiplier, double harvestLag, double critcalT, double daylightHours) {\r\n\t\tif (dt <= 0 || runTime < 0 || initPop < 0) // positive values (dt > 0)\r\n\t\t\treturn false;\r\n\t\tif (gtMultiplier <= 0 || harvestLag < 0 || harvestLag > 365 || daylightHours < 0 || daylightHours > 24)\r\n\t\t\treturn false;\r\n\t\tfor (int j = 0; j < names.length; j ++) { // stage must be a valid swd lifestage\r\n\t\t\tif (stage.equals(names[j]))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "protected void validateAttenuator(int[] param) {\n }", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "private boolean isParameter() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameterDeclaration())\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(isParameterMark())\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "private static boolean arePostRequestParametersValid(String title, String description,\n String imageUrl, String releaseDate, String runtime, String genre, String directors,\n String writers, String actors, String omdbId) {\n return isParameterValid(title, MAX_TITLE_CHARS) && isParameterValid(description, MAX_CHARS)\n && isParameterValid(imageUrl, MAX_CHARS) && isParameterValid(releaseDate, MAX_CHARS)\n && isParameterValid(runtime, MAX_CHARS) && isParameterValid(genre, MAX_CHARS)\n && isParameterValid(directors, MAX_CHARS) && isParameterValid(writers, MAX_CHARS)\n && isParameterValid(actors, MAX_CHARS) && isParameterValid(omdbId, MAX_CHARS);\n }", "int validate(ValidationContext ctx) {\n\t\tint count = 0;\n\t\tif (this.name == null) {\n\t\t\tctx.addError(\n\t\t\t\t\t\"Parameter has to have a name. This need not be the same as the one in the db though.\");\n\t\t\tcount++;\n\t\t}\n\t\tcount += ctx.checkDtExistence(this.dataType, \"dataType\", false);\n\t\tcount += ctx.checkRecordExistence(this.recordName, \"recordName\", false);\n\n\t\tif (this.defaultValue != null) {\n\t\t\tif (this.dataType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" is non-primitive but a default value is specified.\");\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tDataType dt = ComponentManager.getDataTypeOrNull(this.dataType);\n\t\t\t\tif (dt != null && dt.parseValue(this.defaultValue) == null) {\n\t\t\t\t\tthis.addError(ctx, \" default value of \" + this.defaultValue\n\t\t\t\t\t\t\t+ \" is invalid as per dataType \" + this.dataType);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.recordName != null) {\n\t\t\tif (this.dataType != null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" Both dataType and recordName specified. Use dataType if this is primitive type, or record if it as array or a structure.\");\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (this.sqlObjectType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" recordName is specified which means that it is a data-structure. Please specify sqlObjectType as the type of this parameter in the stored procedure\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (this.dataType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" No data type or recordName specified. Use dataType if this is primitive type, or record if it as an array or a data-structure.\");\n\t\t\t\tcount++;\n\t\t\t} else if (this.sqlObjectType != null) {\n\t\t\t\tctx.addError(\n\t\t\t\t\t\t\"sqlObjectType is relevant only if this parameter is non-primitive.\");\n\t\t\t}\n\n\t\t}\n\n\t\tif (this.isArray) {\n\t\t\tif (this.sqlArrayType == null) {\n\t\t\t\tthis.addError(ctx,\n\t\t\t\t\t\t\" is an array, and hence sqlArrayType must be specified as the type with which this parameter is defined in the stored procedure\");\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "protected void checkValidity(Epml epml) {\n\t}", "private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}", "public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }", "public static void CheckIfParametersAreValid(String args[]) {\n\t\tif (args.length != 4) {\n\t\t\tSystem.err.printf(\"usage: %s server_name port\\n\", args[1]);\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tIP = args[0];\n\t\tPORT = Integer.parseInt(args[1]);\n\t\tBUFFER_SIZE = Integer.parseInt(args[2]);\n\t\tMSG_RATE = Integer.parseInt(args[3]);\n\n\t\t//Validating Ip - Splitting the ip in 4 numbers because they are dividied by \". \" when we get from input\n\t\tString[] ipSeparated = args[0].split(\"\\\\.\");\n\n\t\tif(ipSeparated.length<4 ){\n\t\t\tSystem.out.println(\"Invalid IP format.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tif (ipSeparated.length == 4) {\n\n\t\t\tfor (int i = 0; i < ipSeparated.length; i++) {\n\t\t\t\tif (Integer.valueOf(ipSeparated[i]) < 0 || Integer.valueOf(ipSeparated[i]) > 255 ) {//if ip is not complete i get error\n\t\t\t\t\tSystem.out.println(\"Invalid IP format.\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}else {\n\t\t\t\t\tIP = args[0];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Validating Port - The Port number has to be between 0 adn 65535\n\t\tif (Integer.parseInt(args[1])>= 0 && Integer.parseInt(args[1]) < 65535) {\n\t\t\tPORT = Integer.parseInt((args[1]));\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid PORT Number.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Validating Buffer - The Buffer Size ahs to be between 0 and 2048\n\t\tif (Integer.parseInt(args[2]) > 0 || Integer.parseInt(args[2]) < 2048) {\n\t\t\tBUFFER_SIZE = Integer.parseInt((args[2]));\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid Buffer Size.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Checking the parameter order of the deserved place for message rate\n\t\tif (Integer.parseInt(args[3]) >= 0) {\n\t\t\tMSG_RATE = Integer.parseInt(args[3]);\n\t\t} else {\n\t\t\tSystem.out.println(\"Message RATE Invalid.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "private boolean validateParams(String userName, String password, String fullName) {\n if (userName == null || password == null || fullName == null) {\n return false;\n }\n\n if (userName.length() == 0 || password.length() == 0 || fullName.length() == 0) {\n return false;\n }\n\n return true;\n }", "public org.apache.spark.ml.param.Param<java.lang.String> handleInvalid () { throw new RuntimeException(); }", "private boolean validParams(Platform platform, String name, String company) {\n\t\treturn platform != null && validParams(name, company);\n\t}", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "public boolean validateInput() {\n/* 158 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "protected void validateFact(Fact[] param) {\r\n\r\n }", "public boolean hasParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \");\n Via via=(Via)sipHeader;\n \n if(name == null) throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null parameter\");\n return via.hasParameter(name);\n }", "@Value.Check\n default void checkPreconditions()\n {\n RangeCheck.checkIncludedInInteger(\n this.feedback(),\n \"Feedback\",\n RangeInclusiveI.of(0, 7),\n \"Valid feedback values\");\n\n RangeCheck.checkIncludedInInteger(\n this.transpose(),\n \"Transpose\",\n RangeInclusiveI.of(-24, 24),\n \"Valid transpose values\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Level(),\n \"Pitch R1 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Rate(),\n \"Pitch R1 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Level(),\n \"Pitch R2 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Rate(),\n \"Pitch R2 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Level(),\n \"Pitch R3 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Rate(),\n \"Pitch R3 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Level(),\n \"Pitch R4 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Rate(),\n \"Pitch R4 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationDepth(),\n \"LFO Pitch Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid pitch modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationSensitivity(),\n \"LFO Pitch Modulation Sensitivity\",\n RangeInclusiveI.of(0, 7),\n \"Valid pitch modulation sensitivity values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoAmplitudeModulationDepth(),\n \"LFO Amplitude Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid amplitude modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoSpeed(),\n \"LFO Speed\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO speed values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoDelay(),\n \"LFO Delay\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO delay values\");\n }", "private void checkParams(String[] params) throws MethodCallWithNonexistentParameter,\n OutmatchingParametersToMethodCall, OutmatchingParameterType, InconvertibleTypeAssignment {\n ArrayList<Variable> methodParams = this.method.getMethodParameters();\n if (params.length != methodParams.size()) {\n // not enough params somewhere, or more than enough.\n throw new OutmatchingParametersToMethodCall();\n }\n int i = 0;\n for (String toBeParam : params) {\n toBeParam = toBeParam.trim();\n Variable toBeVariable = findParamByName(toBeParam);\n VariableVerifier.VerifiedTypes type = methodParams.get(i).getType();\n if (toBeVariable == null) {\n VariableVerifier.VerifiedTypes typeOfString = VariableVerifier.VerifiedTypes.getTypeOfString(toBeParam);\n if (!type.getConvertibles().contains(typeOfString)) {\n throw new MethodCallWithNonexistentParameter();\n }\n } else {\n checkTypes(toBeVariable, methodParams.get(i));\n checkValue(toBeVariable);\n }\n i++;\n }\n }", "private String checkParameters (HttpServletRequest request)\r\n\t{\r\n\t\tString ret = \"ok\";\r\n\t\tString paramName = null;\r\n\t\tString occNo = null;\r\n\t\tString encoding = null;\r\n\t\tString reqInd = null;\r\n\t\tString expression = \"^[-+]?[0-9]*\";\r\n\t\tPattern pattern = Pattern.compile(expression);\r\n\t\tMatcher matcher = null;\r\n\t\t\r\n\t\tfor (int i = 0; true; i++) {\r\n\t\t\tparamName = request.getParameter(\"paramName\" + i);\r\n\t\t\tif(paramName == null || paramName.equalsIgnoreCase(\"\")){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\toccNo = request.getParameter(\"paramOccNo\" + i);\r\n\t\t\t\r\n\t\t\t// WI 22224\r\n\t\t\tif(occNo != null){\r\n\t\t\t\tmatcher = pattern.matcher(occNo);\r\n\t\t\t}\r\n\t\t\tif(occNo!=null && !occNo.equalsIgnoreCase(\"\") && !matcher.matches()){ \r\n\t\t\t\tret = \"The Parameter Occurence Number should be integer.\"; \r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tencoding = request.getParameter(\"paramEncoding\" + i);\r\n\t\t\tif(encoding!=null && !encoding.equalsIgnoreCase(\"\") && !encoding.equalsIgnoreCase(Phrase.XML_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ZIP_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.BASE64_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ENCRYPT_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.DIGEST_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.NONE_TYPE)\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Encoding should be: \" \r\n\t\t\t\t\t+ Phrase.XML_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ZIP_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.BASE64_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ENCRYPT_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.DIGEST_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.NONE_TYPE + \".\"\r\n\t\t\t\t\t; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\treqInd = request.getParameter(\"paramReqInd\" + i);\r\n\t\t\tif(reqInd!=null && !reqInd.equalsIgnoreCase(\"\") && !reqInd.equalsIgnoreCase(\"true\")\r\n\t\t\t\t&& !reqInd.equalsIgnoreCase(\"false\")\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Required Indicator should be: true or false.\"; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t\r\n\t}" ]
[ "0.8608429", "0.78570724", "0.766763", "0.76294076", "0.76042336", "0.7545249", "0.7354133", "0.7340896", "0.7314602", "0.7198875", "0.71971256", "0.7194595", "0.7178415", "0.7137243", "0.71290046", "0.71134675", "0.7079102", "0.70189255", "0.6954601", "0.69426894", "0.69239163", "0.6919227", "0.6895131", "0.68737656", "0.68576944", "0.67960703", "0.67689896", "0.6730211", "0.671512", "0.67115057", "0.6694061", "0.6680659", "0.6670685", "0.66269916", "0.6625596", "0.6612936", "0.65990347", "0.6588937", "0.65857905", "0.65754634", "0.6547268", "0.6515741", "0.6498069", "0.6498069", "0.6498069", "0.6498069", "0.6498069", "0.6495631", "0.6488319", "0.6486892", "0.64700407", "0.64675623", "0.64675623", "0.64675623", "0.64675623", "0.64675623", "0.6463783", "0.6463783", "0.64620644", "0.6449871", "0.64422333", "0.64422333", "0.64422333", "0.64341533", "0.64267457", "0.64263076", "0.6416465", "0.64162177", "0.64159715", "0.6402717", "0.6398708", "0.6387349", "0.6352383", "0.6350801", "0.6349743", "0.63326454", "0.633093", "0.63292825", "0.632624", "0.63226193", "0.6317253", "0.63110495", "0.62900144", "0.62822694", "0.6281351", "0.6266563", "0.6261595", "0.625954", "0.62544036", "0.62451804", "0.6244536", "0.62443346", "0.6240308", "0.62393165", "0.6237328", "0.6228439", "0.6225905", "0.6225153", "0.622151", "0.62204736", "0.6220044" ]
0.0
-1
Create ticket lines object
private List<LotteryTicketLine> createTicketLines(int lines, LotteryTicket ticket) { List<LotteryTicketLine> linesList = new ArrayList<>(); // Iterate the lines for (int linesItr = 1; linesItr <= lines; linesItr++) { // Generate appropriate parameters and add in list object int first = generateRandomNumber(); int second = generateRandomNumber(); int third = generateRandomNumber(); LotteryTicketLine line = new LotteryTicketLine(first, second, third, getOutcome(first, second, third), ticket); linesList.add(line); } return linesList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ticket createTicket(int numLines) {\r\n\t\tList<Line> lineList = new ArrayList<Line>();\r\n\t\tint ticketScore = 0;\r\n\t\tfor (int i=0; i < numLines; i++) {\r\n\t\t\tList<Integer> lineSeq = generateLine();\r\n\t\t\tint lineScore = generateScore(lineSeq);\r\n\t\t\tticketScore += lineScore;\r\n\t\t\tLine line = new Line();\r\n\t\t\tline.setLine(lineSeq);\r\n\t\t\tline.setLineScore(lineScore);\r\n\t\t\tlineList.add(line);\r\n\t\t}\r\n\t\tList<Line> sortedLineList = sortLines(lineList);\r\n\t\t\r\n\t\tTicket ticket = new Ticket(id,numLines,sortedLineList,ticketScore);\r\n\t\tid += 1;\r\n\t\tticketList.add(ticket);\r\n\t\treturn ticket;\r\n\t}", "private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}", "private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}", "Line createLine();", "public static Line CreateLine(String id) { return new MyLine(id); }", "public void verLineaTicket() throws SQLException{\n try (PreparedStatement query = Herramientas.getConexion().prepareStatement(\"SELECT * FROM linea_ticket WHERE codigo_ticket=?\")) {\n query.setInt(1, this.getCodigo());\n try (ResultSet resultado = query.executeQuery()) {\n while(resultado.next()){\n LineaCompra lineaT1=new LineaCompra(resultado.getInt(2),resultado.getInt(3),resultado.getDouble(4));\n this.getLineasTicket().add(lineaT1);\n }\n }\n }\n }", "public static void createTicket(String toT){\n\r\n\t\tTicket total=new Ticket();\r\n\r\n\t\tif (toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//type of ticket is phone\r\n\r\n\t\t\tPhoneCall pc = new PhoneCall();\t\t\t\t\t\t\t\t\t\t\t\t\t//Creating a phone object\r\n\t\t\tSystem.out.println(\"\\n Assign Ticket Details\\n\");\t\t\t\t\t\t\t\t\r\n\t\t\tassignTicket(pc,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the basic ticket details\r\n\r\n\t\t\ttotal=pc.contactHandler();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the contact handler method\r\n\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the details in transcript\r\n\t\t\t//System.out.println(\"Testing\");\r\n\t\t\treturn;\r\n\r\n\t\t}\r\n\r\n\t\telse if (toT.equalsIgnoreCase(\"inperson\")){\t\t\t\t\t\t\t\t\t\t\t//type of ticket is inperson\r\n\r\n\r\n\t\t\tInPerson ip=new InPerson();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Creating a inperson object\r\n\t\t\tassignTicket(ip,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the basic ticket details\r\n\t\t\ttotal=ip.contactHandler();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the contact handler method\r\n\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the details in transcript\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (toT.equalsIgnoreCase(\"email\"));{\t\t\t\t\t\t\t\t\t\t\t//type of ticket is email\r\n\r\n\t\t\tString email=\"\";\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tString line=\"\";\r\n\t\t\tSystem.out.println(\"Enter the email Provided\\n\");\r\n\t\t\tSystem.out.println(\"Please enter your ID, name,phoneNumber,Address,serviceID,ServiceStartDate,ServiceEndDate , rest of email\\n\");\r\n\t\t\twhile(true){ // For taking input.Each sentence should end with \".\" and Representative goes to next line by pressing enter. \"Exit\" is used to get out of loop\r\n\t\t\t\t/*\r\n\t\t\t\t * Please enter the Email in ID,Name,PhnNumber,Address,ServiceID,ServiceStartDate,ServiceEndDate and rest of mail with \".\" after each line\r\n\t\t\t\t */\r\n\r\n\t\t\t\tline=Sc.nextLine(); // Infinite loop till \"exit\" is pressed\r\n\t\t\t\temail+=line;\r\n\t\t\t\tif(line.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tArrayList<String>sentenceList=new ArrayList<String>(Arrays.asList(email.split(\"\\\\.\")));\t\t\t\t\t\t//splitting the email based on \".\"\t\t\t\r\n\r\n\t\t\tString ID=sentenceList.get(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//get first element from Sentencelist\t\t\t\t\t\t\t\t\t\r\n\t\t\tsentenceList.remove(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//remove the first element\r\n\t\t\tString Name=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tint PhnNumber=Integer.parseInt(sentenceList.get(0));\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString Address=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceID=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceStartDate=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceEndDate=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString Email=String.join(\". \",sentenceList);\r\n\r\n\r\n\t\t\tEmail em=new Email(ID,Name,PhnNumber,Address,ServiceID,ServiceStartDate,ServiceEndDate);\t\t\t\t\t//creating the email object\r\n\t\t\tassignTicket(em,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the ticket\r\n\t\t\ttotal=em.contactHandler(Email);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the email contacthandler\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the ticket to arraylist\r\n\t\t}\r\n\t\treturn ;\r\n\t\t//updateTicket();\r\n\r\n\t}", "public Ticket(int codigo, int codigoSupermercado, LocalDate fechaCompra, LocalTime horaCompra, double PrecioTotal, ArrayList <LineaCompra> lineasTicket) {\n this.setCodigo(codigo);\n this.setCodigoSupermercado(codigoSupermercado);\n this.setFechaCompra(fechaCompra);\n this.setHoraCompra(horaCompra);\n this.setPrecioTotal(PrecioTotal);\n this.setLineasTicket(lineasTicket);\n }", "Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }", "public Ticket(int codigoSupermercado, double precioTotal, ArrayList <LineaCompra> lineasTicket) throws SQLException {\n this.setCodigo();\n this.setCodigoSupermercado(codigoSupermercado);\n this.setFechaCompra();\n this.setHoraCompra();\n this.setPrecioTotal(precioTotal);\n this.setLineasTicket(lineasTicket);\n }", "@Override\n\t@Transactional\n\tpublic LotteryTicket createLotteryTicket(LotteryTicketRequest lotteryTicketRequest) {\n\t\tcheckLotteryTicketRequest(lotteryTicketRequest);\n\t\ttry {\n\t\t\t// Create a lottery ticket\n\t\t\tLotteryTicket lotteryTicket = lotteryTicketRepository.save(new LotteryTicket());\n\n\t\t\t// Create lines per ticket\n\t\t\tList<LotteryTicketLine> linesList = createTicketLines(lotteryTicketRequest.getNumberOfLines(),\n\t\t\t\t\tlotteryTicket);\n\t\t\tlineRepository.saveAll(linesList);\n\t\t\tlotteryTicket.setLotteryTicketLine(linesList);\n\n\t\t\t// Return ticket response\n\t\t\treturn lotteryTicket;\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in createLotteryTicket\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in creating lottery ticket\");\n\t\t}\n\t}", "public Lines()\r\n\t{\r\n\t\tlines = new LinkedList<Line>();\r\n\t}", "@Override\n protected void createLines() {\n\n Line[] lines = new GraphicalLine[(2 * columns * rows) + columns + rows];\n int lineIndex = 0;\n\n int boxCounter = 0;\n int x = settings.dotStartX() + settings.dotWidth();\n int y = settings.dotStartY() + settings.lineOffset();\n boolean isTop = true;\n boolean isFirstRow = true;\n\n /* horizontal lines */\n /* for every row + 1 */\n for (int i = 0; i < rows + 1; i++) {\n\n /* for every column */\n for (int j = 0; j < columns; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineWidth(), settings.lineHeight());\n line.addBox(boxes[boxCounter]);\n if (isTop) {\n boxes[boxCounter].setTopLine(line);\n } else {\n boxes[boxCounter].setBottomLine(line);\n /* if there is a next row */\n if (i + 1 < rows + 1) {\n line.addBox(boxes[boxCounter + columns]);\n boxes[boxCounter + columns].setTopLine(line);\n }\n }\n boxCounter++;\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n boxCounter = isTop ? boxCounter - columns : boxCounter;\n if (isFirstRow) {\n isTop = false;\n isFirstRow = false;\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.dotWidth();\n }\n\n boxCounter = 0;\n x = settings.dotStartX() + settings.lineOffset();\n y = settings.dotStartY() + settings.dotWidth();\n\n /* vertical lines */\n /* for every row */\n for (int i = 0; i < rows; i++) {\n\n /* for every column + 1 */\n for (int j = 0; j < columns + 1; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineHeight(), settings.lineWidth());\n /* if there is a previous vertical line */\n if (j > 0) {\n boxes[boxCounter - 1].setRightLine(line);\n line.addBox(boxes[boxCounter - 1]);\n }\n /* if there is a next column */\n if (j + 1 < columns + 1) {\n boxes[boxCounter].setLeftLine(line);\n line.addBox(boxes[boxCounter]);\n boxCounter++;\n }\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.lineOffset();\n }\n\n this.lines = lines;\n }", "private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "public OrderLine() {\n }", "public void generateLineItems(){\n for(int i=0; i<purch.getProdIdx().length; i++){\r\n \r\n prod= new Product(db.getProductDbItem(purch.getProductItem(i)));\r\n \r\n LineItem[] tempL=new LineItem[lineItem.length+1];\r\n System.arraycopy(lineItem,0,tempL,0,lineItem.length);\r\n lineItem=tempL;\r\n lineItem[lineItem.length-1]= new LineItem(prod.getProdId(),purch.getQtyAmtItm(i), \r\n prod.getProdUnitPrice(), prod.getProdDesc(), prod.getProdDiscCode()); \r\n totalPurch += (purch.getQtyAmtItm(i) * prod.getProdUnitPrice());\r\n totalDisc += lineItem[lineItem.length-1].getDiscAmt();\r\n \r\n }\r\n }", "public static void crearTicket(int codigoSupermercado, ArrayList <LineaCompra> lineasTicket, String nif ) throws SQLException{\n double precioTotal=0;\n for(int i=0;i<lineasTicket.size();i++){\n precioTotal+=lineasTicket.get(i).getPrecio_linea();\n }\n Ticket t1=new Ticket(codigoSupermercado, precioTotal, lineasTicket);\n LocalDate fecha=t1.getFechaCompra();\n LocalTime hora=t1.getHoraCompra();\n DateTimeFormatter formatoFecha=DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n DateTimeFormatter formatoHora=DateTimeFormatter.ofPattern(\"HH:mm\");\n try(PreparedStatement query=Herramientas.getConexion().prepareStatement(\"INSERT INTO ticket VALUES(?,?,?,?,?,?)\")){\n query.setInt(1, t1.getCodigo());\n query.setString(2, nif);\n query.setInt(3, t1.getCodigoSupermercado());\n query.setString(4, fecha.format(formatoFecha));\n query.setString(5, hora.format(formatoHora));\n query.setDouble(6, t1.getPrecioTotal());\n query.executeUpdate();\n for(int i=0;i<lineasTicket.size();i++){\n try(PreparedStatement query2=Herramientas.getConexion().prepareStatement(\"INSERT INTO linea_ticket VALUES(?,?,?,?,?)\")){\n query2.setInt(1, t1.getCodigo());\n query2.setInt(2, lineasTicket.get(i).getCodigo_producto());\n query2.setInt(3, lineasTicket.get(i).getCantidad());\n query2.setDouble(4, lineasTicket.get(i).getPrecio_linea());\n try (PreparedStatement query3 = Herramientas.getConexion().prepareStatement(\"SELECT nombre_producto FROM producto WHERE codigo_producto=?\")) {\n query3.setInt(1, lineasTicket.get(i).getCodigo_producto());\n try (ResultSet resultado = query3.executeQuery()) {\n resultado.next();\n query2.setString(5, resultado.getString(1));\n }\n }\n query2.executeUpdate();\n }\n }\n }\n }", "public JournalEntryLine() {\n this(DSL.name(\"JOURNAL_ENTRY_LINE\"), null);\n }", "@Test\r\n\tpublic void testCreateTickets() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tJsonObject[] result = roc.createTickets(1, true);\t\t\t\t\r\n\t\t\t\tcollector.checkThat(result[0], notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresult = roc.createTickets(1, false);\t\t\t\t\r\n\t\t\t\tcollector.checkThat(result[0], notNullValue());\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@PostMapping(\"/invoice-lines\")\n public ResponseEntity<InvoiceLinesDTO> createInvoiceLines(@Valid @RequestBody InvoiceLinesDTO invoiceLinesDTO) throws URISyntaxException {\n log.debug(\"REST request to save InvoiceLines : {}\", invoiceLinesDTO);\n if (invoiceLinesDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new invoiceLines cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n InvoiceLinesDTO result = invoiceLinesService.save(invoiceLinesDTO);\n return ResponseEntity.created(new URI(\"/api/invoice-lines/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public Line(){\n\t\t\n\t}", "public CustomerOrderLineTableModel(List<CustomerOrderLine> theCustomerOrderLines) {\n\t\tcustomerOrderLines = theCustomerOrderLines;\n\t}", "public static OrdersLine createEntity(EntityManager em) {\n OrdersLine ordersLine = new OrdersLine()\n .ordersLineName(DEFAULT_ORDERS_LINE_NAME)\n .ordersLineValue(DEFAULT_ORDERS_LINE_VALUE)\n .ordersLinePrice(DEFAULT_ORDERS_LINE_PRICE)\n .ordersLineDescription(DEFAULT_ORDERS_LINE_DESCRIPTION)\n .thumbnailPhoto(DEFAULT_THUMBNAIL_PHOTO)\n .thumbnailPhotoContentType(DEFAULT_THUMBNAIL_PHOTO_CONTENT_TYPE)\n .fullPhoto(DEFAULT_FULL_PHOTO)\n .fullPhotoContentType(DEFAULT_FULL_PHOTO_CONTENT_TYPE)\n .fullPhotoUrl(DEFAULT_FULL_PHOTO_URL)\n .thumbnailPhotoUrl(DEFAULT_THUMBNAIL_PHOTO_URL);\n return ordersLine;\n }", "public CartLines() {\n }", "@Override\n\tpublic IAdhocTicket createTicket(String carparkId) {\n\t\tcurrentTicketNo++; // when a ticket is issued, ticketNo increments by 1\n\t\tIAdhocTicket adhocTicket = factory.make(carparkId, currentTicketNo); \n\t\t// make ticket in factory with the new ticketNo\n\t\tadhocTicketList.add(adhocTicket);\n\t\treturn adhocTicket;\n\t}", "public FileLines() {\r\n\t}", "private Line[] makeTenRandomLines() {\n Random rand = new Random(); // create a random-number generator\n Line[] lines = new Line[NUM_LINE];\n for (int i = 0; i < NUM_LINE; ++i) {\n int x1 = rand.nextInt(400) + 1; // get integer in range 1-400\n int y1 = rand.nextInt(300) + 1; // get integer in range 1-300\n int x2 = rand.nextInt(400) + 1; // get integer in range 1-400\n int y2 = rand.nextInt(300) + 1; // get integer in range 1-300\n lines[i] = new Line(x1, y1, x2, y2);\n }\n return lines;\n }", "public VentanaVentaTicket() {\n \n initComponents();\n VentanaVentaTicket.textoArea.append(\"************SPICY FACTORY***************\\n\");\n VentanaVentaTicket.textoArea.append(\"~~~~~~~~Detalle de la Venta ~~~~~~~~~~~~\\n\");\n VentanaVentaTicket.textoArea.append(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n\");\n \n }", "@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();", "public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n void setPassengerName(String passengerName);\n\n /**\n * Getter for the unique identification pertaining to the ticket's route.\n *\n * @return unique identification number related to the ticket in string format.\n */\n String getRouteID();\n\n /**\n * Setter for the unique identification pertaining to the ticket's route.\n *\n * @param routeID unique identification number related to the ticket in string format.\n */\n void setRoute(String routeID);\n\n /**\n * Getter for the departure city string.\n *\n * @return the departure city in string format.\n */\n String getDepartureLocation();\n\n /**\n * Getter for the arrival city string.\n *\n * @return the arrival city in string format.\n */\n String getArrivalLocation();\n\n /**\n * Setter for the ticket origin in using Locations enum.\n *\n * @param origination enum representing location.\n */\n void setOrigination(Locations origination);\n\n /**\n * Setter for the ticket destination using Locations enum.\n *\n * @param destination enum representing location.\n */\n void setDestination(Locations destination);\n\n /**\n * Getter for the departure date and time which is represented by util Calendar but printed out\n * in string format MM DD YYYY HH MM.\n *\n * @return the departure date and time in string format MM DD YYYY HH MM.\n */\n Calendar getDepartureDateAndTime();\n\n /**\n * Getter for the arrival date and time which is represented by util Calendar but printed out\n * in string format YYYY MM DD HH MM.\n *\n * @return the arrival date and time in string format YYYY MM DD HH MM.\n */\n Calendar getArrivalDateAndTime();\n\n /**\n * Setter for the trip dates using util Calendar for both departure and arrival in the format\n * YYYY Calendar.MONTH DD HH MM.\n *\n * @param departureDate Calendar departure date in the format YYYY Calendar.MONTH DD HH MM.\n * @param arrivalDate Calendar arrival date in the format YYYY Calendar.MONTH DD HH MM.\n */\n void setTripDates(Calendar departureDate, Calendar arrivalDate);\n\n /**\n * Getter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @return enum representing the class of service available on certain tickets.\n */\n ClassOfService getClassOfService();\n\n /**\n * Setter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @param serviceClass enum representing the class of service available on certain tickets.\n */\n void setClassOfService(ClassOfService serviceClass);\n }", "public String amendTicketById(int id, int numLines) {\r\n\t\t/*check if false, add lines, else return error message*/\r\n\t\tTicket ticket = getTicketById(id);\r\n\t\tif (ticket.getStatusCheck()==false) {\r\n\t\t\tList<Line> lineList = ticket.getLines();\r\n\t\t\tfor (int i=0; i < numLines; i++) {\r\n\t\t\t\tList<Integer> lineSeq = generateLine();\r\n\t\t\t\tint lineScore = generateScore(lineSeq);\r\n\t\t\t\tticket.setTotalScore(ticket.getTotalScore()+lineScore);\r\n\t\t\t\tLine line = new Line();\r\n\t\t\t\tline.setLine(lineSeq);\r\n\t\t\t\tline.setLineScore(lineScore);\r\n\t\t\t\tlineList.add(line);\r\n\t\t\t}\r\n\t\t\tticket.setLines(sortLines(lineList));\r\n\t\t\tticket.setNumLines(ticket.getNumLines()+numLines);\r\n\t\t\tticket.setStatusCheck(true);\r\n\t\t\treturn \"Ticket has been ammended.\";\r\n\t\t}else\r\n\t\t\treturn \"Sorry your ticket can no longer be ammended.\";\r\n\t\t\r\n\t}", "public void writeTicketToFile(){\n\t\ttry{\n\t\t\tString fileName = \"flight\";\n\t\t\tfileName += Integer.toString(flightNum);\n\t\t\tfileName += \"ticket\";\n\t\t\tfileName += Integer.toString(ticketNum);\n\t\t\tfileName += \".txt\";\n\t\t\tFileWriter fw = new FileWriter(fileName, false);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\t\n\n\t\t\tbw.write(\"ENSF Airline Ticket:\\n\\n\");\n\t\t\tbw.write(\"Passenger first name: \" + pass.firstName + \"\\n\");\n\t\t\tbw.write(\"Passenger last name: \" + pass.lastName + \"\\n\");\n\t\t\tbw.write(\"Passenger date of birth: \" + pass.dOB + \"\\n\\n\");\n\t\t\tbw.write(\"Flight number: \" + flightNum + \"\\n\");\n\t\t\tbw.write(\"Flight origin: \" + source + \"\\n\");\n\t\t\tbw.write(\"Flight destination: \" + dest + \"\\n\");\n\t\t\tbw.write(\"Flight date (YYYYMMDD): \" + date + \"\\n\");\n\t\t\tbw.write(\"Flight time (HH:MM): \" + time + \"\\n\");\n\t\t\tbw.write(\"Flight duration: \" + duration +\" hours\");\n\t\t\t\n\t\t\tbw.close();\n\t\t}\n\t\tcatch(IOException ex){\n\t\t\tSystem.out.println(\"Error writing to output file 1\\n\");\n\t\t}\n\t}", "protected abstract E createEntity(String line);", "public LineData()\n\t{\n\t}", "public phonecallTicket makeTicket(int id, String who, String phone,String tag, String date,String problem, String notes, String status){\n \n phonecallTicket ticket = new phonecallTicket(id, who, phone, tag, date, problem, notes, status);\n currentticket = ticket;\n return ticket;\n }", "public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }", "public Ticket() {\n\n }", "public BSPLine() {\n super();\n }", "private void makeTestLines(int n) {\n testLines = new ArrayList<>();\n for (int i = 0; i < n; i += 1) {\n testLines.add(\"Line \" + i);\n }\n }", "public LineStroker() {\n }", "public void generateLines(int lineAmount, PointManager pointManager, Triangle triangle, Circle circle) {\n pointManager.generatePointsOnCircle(lineAmount, circle);\n for (int i = 0; i < lineAmount; i++) {\n\n Line line = new Line();\n // randomly setting both points of line\n Random random = new Random();\n if (randomStartpoint) {\n line.setStartPoint(pointManager.getOnCirclePoints().get(random.nextInt(pointManager.getOnCirclePoints().size())));\n } else {\n line.setStartPoint(triangle.getFirstCorner());\n }\n line.setEndPoint(pointManager.getOnCirclePoints().get(random.nextInt(pointManager.getOnCirclePoints().size())));\n lines.add(line);\n }\n }", "public static Linea createEntity(EntityManager em) {\n Linea linea = new Linea()\n .nombre(DEFAULT_NOMBRE)\n .visible(DEFAULT_VISIBLE);\n return linea;\n }", "public Tickets createTicket(Users user) {\n Tickets tickets = new Tickets();\n tickets.setTicketId(UUID.randomUUID().toString());\n tickets.setId(user.getId());\n entityManager.persist(tickets);\n return tickets;\n }", "private void addNewLine(String timeAndDate, int steps) {\n\n String stepsString = Integer.toString(steps);\n\n TableRow newRow = new TableRow(this);\n\n // Create the Left hand side\n TextView left = new TextView(this);\n left.setText(timeAndDate);\n left.setGravity(Gravity.START);\n left.setPadding(10,5, 10,5);\n left.setTextSize(15);\n\n // Create the right hand side\n TextView right = new TextView(this);\n right.setText(stepsString);\n right.setGravity(Gravity.END);\n right.setPadding(10,5,10,5);\n right.setTextSize(15);\n\n // Add the TextView Components to the row\n newRow.addView(left);\n newRow.addView(right);\n\n // Add row to the TableLayout\n table.addView(newRow,new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n // Create Line to separate rows and add to end of the new row\n View line = new View(this);\n line.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,1));\n line.setBackgroundColor(Color.BLACK);\n table.addView(line);\n\n // Scroll to the newly added row\n scrollTo(newRow);\n }", "public static void createLineBot(com.azure.resourcemanager.botservice.BotServiceManager manager) {\n manager\n .channels()\n .createWithResponse(\n \"OneResourceGroupName\",\n \"samplebotname\",\n ChannelName.LINE_CHANNEL,\n new BotChannelInner()\n .withLocation(\"global\")\n .withProperties(\n new LineChannel()\n .withProperties(\n new LineChannelProperties()\n .withLineRegistrations(\n Arrays\n .asList(\n new LineRegistration()\n .withChannelSecret(\"channelSecret\")\n .withChannelAccessToken(\"channelAccessToken\"))))),\n Context.NONE);\n }", "public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n issueDateTime = new Date();\n \n }", "@Override\n\tpublic void createTicket(TicketData request , StreamObserver<TicketData> responseObserver) {\n\t\tSystem.out.println(\"Requested to store a new Ticket\");\n\n\t\tTicket t = SimpleTicketStore.CreateTicket(\n\t\t\t\trequest.getReporter()\n\t\t\t\t,request.getTopic()\n\t\t\t\t,de.uniba.rz.entities.Status.values()[request.getStatusValue()]\n\t\t\t\t\t\t,request.getDescription()\n\t\t\t\t\t\t,de.uniba.rz.entities.Type.values()[request.getTypeValue()]\n\t\t\t\t\t\t\t\t,Priority.values()[request.getPriorityValue()]\n\t\t\t\t);\n\n\t\tTicketData tdata = Ticket2TicketData(t);\n\n\t\tresponseObserver.onNext(tdata);\n\t\tresponseObserver.onCompleted();\n\n\t}", "private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }", "public static void main(String[] args) {\n TravelAgency Altayyar = new TravelAgency(20);\n \n //creating and storing object for processing using array\n Ticket[] ticketsToAdd = new Ticket[4];\n \n ticketsToAdd[0] = new BusTicket(\"Nora Ali\",\"Riyadh\",\"Jeddah\",\"28/02/2018\",\"Standard\",600);\n ticketsToAdd[1] = new AirlineTicket(\"Sara Saad\",\"Riyadh\",\"Khobar\",\"03/03/2018\",\"Business\",\"Flynas\");\n ticketsToAdd[2] = new AirlineTicket(\"Ahmad Ali\",\"Riyadh\",\"Dammam\",\"13/03/2018\",\"Economy\",\"Saudia\");\n ticketsToAdd[3] = new AirlineTicket(\"Maha Hamad\",\"Riyadh\",\"Jeddah\",\"20/04/2018\",\"Business\",\"Saudia\");\n \n //adding objects\n for (int i = 0; i < ticketsToAdd.length; i++) {\n \n boolean isAdded = Altayyar.addReservation(ticketsToAdd[i]);\n System.out.println((isAdded)?\"The Ticket was added successfully\":\"The Ticket was not added !\");\n }\n \n \n //display all the issued tickets \n Altayyar.display();\n \n\n //cancel a ticket\n boolean isCancelled = Altayyar.cancelReservation(0);\n System.out.println((isCancelled)?\"The ticket was found and cancelled successfully !\":\"Ticket was not found !\");\n \n \n \n \n \n //get and display all tickets belonging to Saudia \n Ticket[] saudiaTickets = Altayyar.allTickets(\"Saudia\");\n \n for (int i = 0; i < saudiaTickets.length; i++) {\n \n System.out.println(saudiaTickets[i].toString());\n }\n \n \n \n //display all the issued tickets after the update \n Altayyar.display();\n \n \n }", "public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t return Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t }", "public TestTicket() {\n\t}", "@RequestMapping(value = \"/Productlines\", method = RequestMethod.POST)\n\tpublic Productlines newProductlines(@ModelAttribute Productlines productlines) {\n\t\tproductlinesService.saveProductlines(productlines);\n\t\treturn productlinesDAO.findProductlinesByPrimaryKey(productlines.getProductLine());\n\t}", "public CustMnjOntSoObinSizline_LineEOImpl() {\n }", "int createTicketHistory(TicketHistory ticketHistory, int ticketId, int userId);", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);", "public CrnLineContainer() {\n }", "public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t\treturn Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t\t}", "@Test\n public void StuckInLine() {\n\n int[] line = {2,5,3,4,5};\n int position = 2;\n Assert.assertEquals(12,Computation.getNeededTickets(line,position));\n\n int[] line2 = {5,5,2,3};\n position = 3;\n Assert.assertEquals(11,Computation.getNeededTickets(line2,position));\n\n int[] line3 = {1,1,1,1};\n position = 0;\n Assert.assertEquals(1,Computation.getNeededTickets(line3,position));\n\n\n }", "public boolean crearNuevoTicket(Ticket ticket, Usuario usuario) {\n\n try {\n\n //Se determina el tiempo de vida del ticket según el SLA\n int tiempoDeVida = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeSolucion();\n Calendar c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeVida);\n ticket.setTiempoDeVida(c.getTime());\n //Se indica la fecha máxima de cierre\n ticket.setFechaDeCierre(c.getTime());\n //Se indica la fecha actual como fecha de creacion\n ticket.setFechaDeCreacion(new Date());\n //se ingresa la fecha de última modificación\n ticket.setFechaDeModificacion(ticket.getFechaDeCreacion());\n //Se determina el tiempo de actualizacion segun el SLA\n //int tiempoDeActualizacion = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion();\n //Información del ticket y el sla\n Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n int tiempoDeActualizacion = prioridadTicket.getValor() == 1 ? ticketSla.getTiempoRespuestaPrioridadAlta() : prioridadTicket.getValor() == 2 ? ticketSla.getTiempoRespuestaPrioridadMedia() : ticketSla.getTiempoRespuestaPrioridadBaja();\n //Se añade el tiempo de actualización para pos-validación según SLA\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeActualizacion);\n //Se hacen verificaciones por tipo de disponibilidad es decir 24x7 o 8x5\n int horaActual = c.get(Calendar.HOUR_OF_DAY);\n int diaDeLaSemana = c.get(Calendar.DAY_OF_WEEK);\n if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (diaDeLaSemana == Calendar.SATURDAY || diaDeLaSemana == Calendar.SUNDAY || (diaDeLaSemana == Calendar.FRIDAY && horaActual > 17))) {\n if (diaDeLaSemana == Calendar.FRIDAY) {\n c.add(Calendar.DAY_OF_MONTH, 3);\n } else if (diaDeLaSemana == Calendar.SATURDAY) {\n c.add(Calendar.DAY_OF_MONTH, 2);\n } else {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n } else if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (horaActual < 8 || horaActual > 17) && (diaDeLaSemana != Calendar.SATURDAY && diaDeLaSemana != Calendar.SUNDAY)) {\n if (horaActual > 17) {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n }\n ticket.setFechaDeProximaActualizacion(c.getTime());\n if (ticket.getFechaDeProximaActualizacion().compareTo(ticket.getFechaDeCierre()) > 0) {\n Calendar cierre = Calendar.getInstance();\n cierre.setTime(c.getTime());\n cierre.add(Calendar.HOUR, tiempoDeVida);\n ticket.setFechaDeCierre(cierre.getTime());\n }\n //Se indica la persona que crea el ticket\n ticket.setUsuarioidcreador(usuario);\n //Se indica el usuario propietario por defecto y el responsable (Soporte HELPDESK)\n Usuario usuarioHelpdek = this.usuarioFacade.obtenerUsuarioPorCorreoElectronico(\"[email protected]\");\n ticket.setUsuarioidpropietario(usuarioHelpdek);\n ticket.setUsuarioidresponsable(usuarioHelpdek);\n //Se indica el estado actual del ticket\n EstadoTicket estadoNuevo = this.estadoTicketFacade.find(1);\n ticket.setEstadoTicketcodigo(estadoNuevo);\n //Creamos el ticket\n this.ticketFacade.create(ticket);\n //Creamos el Notificador\n TareaTicketInfo tareaTicketInfo = new TareaTicketInfo(\"t_sla\" + ticket.getTicketNumber(), \"Notificador SLA ticket# \" + ticket.getTicketNumber(), \"LoteTareaNotificarSLA\", ticket);\n //Información del ticket y el sla\n //Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n //PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n String hora = prioridadTicket.getValor() == 1 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadAlta()) : prioridadTicket.getValor() == 2 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadMedia()) : String.valueOf(ticketSla.getTiempoRespuestaPrioridadBaja());\n //Definir la hora de inicio\n //c = Calendar.getInstance();\n //c.add(Calendar.HOUR, Integer.parseInt(hora));\n c.add(Calendar.MINUTE, -30);\n tareaTicketInfo.setStartDate(c.getTime());\n tareaTicketInfo.setEndDate(ticket.getFechaDeCierre());\n tareaTicketInfo.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n tareaTicketInfo.setMinute(String.valueOf(c.get(Calendar.MINUTE)) + \"/10\");\n tareaTicketInfo.setHour(String.valueOf(c.get(Calendar.HOUR_OF_DAY)));\n tareaTicketInfo.setMonth(\"*\");\n tareaTicketInfo.setDayOfMonth(\"*\");\n tareaTicketInfo.setDayOfWeek(ticketSla.getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") ? \"Mon, Tue, Wed, Thu, Fri\" : \"*\");\n tareaTicketInfo.setYear(\"*\");\n tareaTicketInfo.setDescription(\"Tarea SLA para ticket# \" + ticket.getTicketNumber());\n this.notificadorServicio.createJob(tareaTicketInfo);\n\n //Se añade un historico del evento\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(1));\n historialDeTicket.setFechaDelEvento(new Date());\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setUsuarioid(ticket.getUsuarioidcreador());\n historialDeTicket.setTicketticketNumber(ticket);\n this.historialDeTicketFacade.create(historialDeTicket);\n\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "private void Create_Path() {\n lines = new Line[getPoints().size()];\n for (int i = 1; i < getLines().length; i++) {\n lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());\n }\n lines[0] = new Line(getPoints().get(way[getLines().length - 1]).getX(), getPoints().get(way[getLines().length - 1]).getY(), getPoints().get(way[0]).getX(), getPoints().get(way[0]).getY());\n\n }", "int createTicket(Ticket ticket, int userId);", "private TicketLog createLog() throws SQLException {\n\t\t\t\t\treturn new TicketLog(rs.getLong(1), rs.getString(2),\n\t\t\t\t\t\t\trs.getLong(3),\n\t\t\t\t\t\t\tTicketLog.Action.valueOf(rs.getString(4)),\n\t\t\t\t\t\t\trs.getInt(5));\n\t\t\t\t}", "public ToUseTimeLineFactoryImpl() {\n\t\tsuper();\n\t}", "public void createLine(long id, SupplierSettlementLine line) throws CoreException {\n try (Response response = clientApi.post(SUPPLIER_SETTLEMENTS + id + \"/lines\", line)) {\n readResponse(response, String.class);\n // extract id from return location\n String locationUri = response.getHeaderString(\"Location\");\n Long lineId = Long.parseLong(locationUri.substring(locationUri.lastIndexOf(\"/\") + 1));\n line.setId(lineId);\n }\n }", "public void createTicke(String ticketNumber, String branchName, int numberOnQ, String service, long waitingTime,\n String ticketDate, String estimatedTicketDate){\n editor.putString(KEY_TICKET_NUMBER, ticketNumber);\n\n // Storing Password in pref\n editor.putString(KEY_BRANCE_NAME, branchName);\n\n // Storing Password in pref\n editor.putInt(KEY_NUMBER_ON_QUEUE, numberOnQ);\n\n // Storing Password in pref\n editor.putString(KEY_SERVICE, service);\n\n // Storing Password in pref\n editor.putLong(KEY_WAITING_TIME, waitingTime);\n\n // Storing Password in pref\n editor.putString(KEY_TICKET_DATE, ticketDate);\n\n // Storing Password in pref\n editor.putString(KEY_ESTIMATED_DATE, estimatedTicketDate);\n\n // commit changes\n editor.commit();\n }", "@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }", "@Test\n\tpublic void testCreateTicketOk() {\n\t\tArrayList<Object> p = new ArrayList<Object>();\n\t\tp.add(new TGame(\"FORTNITE\", 6, 20.0, 1, 2, \"descripcion\", \"Shooter\"));\n\t\tTTicket tt = new TTicket(1, p);\n\t\tassertEquals();\n\t}", "public Lines(CharSequence text) {\n Parameters.notNull(\"text\", text);\n this.text = text;\n initLines();\n }", "public ArrayList<Fact> createFacts (MAcctSchema as)\r\n\t{\r\n\t\t// create Fact Header\r\n\t\tFact fact = new Fact(this, as, Fact.POST_Actual);\r\n\t\tsetC_Currency_ID (as.getC_Currency_ID());\r\n\r\n\t\t// Line pointer\r\n\t\tFactLine fl = null;\r\n\t\tX_M_Production prod = (X_M_Production)getPO();\r\n\t\tHashMap<String, BigDecimal> costMap = new HashMap<String, BigDecimal>();\r\n\r\n\t\tfor (int i = 0; i < p_lines.length; i++)\r\n\t\t{\r\n\t\t\tDocLine line = p_lines[i];\r\n\t\t\t//\tCalculate Costs\r\n\t\t\tBigDecimal costs = BigDecimal.ZERO;\r\n\t\t\t\r\n\t\t\tX_M_ProductionLine prodline = (X_M_ProductionLine)line.getPO();\r\n\t\t\tMProductionLineMA mas[] = MProductionLineMA.get(getCtx(), prodline.get_ID(), getTrxName());\r\n\t\t\tMProduct product = (MProduct) prodline.getM_Product();\r\n\t\t\tString CostingLevel = product.getCostingLevel(as);\r\n\r\n\t\t\tif (MAcctSchema.COSTINGLEVEL_BatchLot.equals(CostingLevel) ) \r\n\t\t\t{\r\n\t\t\t\tif (line.getM_AttributeSetInstance_ID() == 0 && (mas!=null && mas.length> 0 )) \r\n\t\t\t\t{\r\n\t\t\t\t\tfor (int j = 0; j < mas.length; j++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tMProductionLineMA ma = mas[j];\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tMCostDetail cd = MCostDetail.get (as.getCtx(), \"M_ProductionLine_ID=?\",\r\n\t\t\t\t\t\t\t\tline.get_ID(), ma.getM_AttributeSetInstance_ID(), as.getC_AcctSchema_ID(), getTrxName());\t\r\n\t\t\t\t\t\tif (cd != null)\r\n\t\t\t\t\t\t\tcosts = costs.add(cd.getAmt());\t\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tProductCost pc = line.getProductCost();\r\n\t\t\t\t\t\t\tpc.setQty(ma.getMovementQty());\r\n\t\t\t\t\t\t\tpc.setM_M_AttributeSetInstance_ID(ma.getM_AttributeSetInstance_ID());\r\n\t\t\t\t\t\t\tcosts = costs.add(line.getProductCosts(as, line.getAD_Org_ID(), false));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcostMap.put(line.get_ID()+ \"_\"+ ma.getM_AttributeSetInstance_ID(), costs);\r\n\t\t\t\t\t}\r\n\t\t\t\t} \r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tMCostDetail cd = MCostDetail.get (as.getCtx(), \"M_ProductionLine_ID=?\",\r\n\t\t\t\t\t\t\tline.get_ID(), line.getM_AttributeSetInstance_ID(), as.getC_AcctSchema_ID(), getTrxName());\r\n\t\t\t\t\tif (cd != null) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcosts = cd.getAmt();\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\tcosts = line.getProductCosts(as, line.getAD_Org_ID(), false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcostMap.put(line.get_ID()+ \"_\"+ line.getM_AttributeSetInstance_ID(), costs);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t} \r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\r\n\t\t\t\t// MZ Goodwill\r\n\t\t\t\t// if Production CostDetail exist then get Cost from Cost Detail\r\n\t\t\t\tMCostDetail cd = MCostDetail.get (as.getCtx(), \"M_ProductionLine_ID=?\",\r\n\t\t\t\t\t\tline.get_ID(), line.getM_AttributeSetInstance_ID(), as.getC_AcctSchema_ID(), getTrxName());\r\n\t\t\t\tif (cd != null) \r\n\t\t\t\t{\r\n\t\t\t\t\tcosts = cd.getAmt();\r\n\t\t\t\t} \r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tint ProductLabor_ID = MSysConfig.getIntValue(\"PRODUCT_LABOR\", -1, prod.getAD_Client_ID());\r\n\t\t\t\t\tBigDecimal laborPrice = (BigDecimal) prod.get_Value (\"PriceEntered\");\r\n\t\t\t\t\t//\r\n\t\t\t\t\tif (ProductLabor_ID > 0 \r\n\t\t\t\t\t\t\t&& line.getM_Product_ID() == ProductLabor_ID\r\n\t\t\t\t\t\t\t&& laborPrice != null && laborPrice.signum() == 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcosts = laborPrice.multiply(prod.getProductionQty().negate());\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\tcosts = line.getProductCosts(as, line.getAD_Org_ID(), false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcostMap.put(line.get_ID()+ \"_\"+ line.getM_AttributeSetInstance_ID(), costs);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tBigDecimal bomCost = Env.ZERO;\t\r\n\t\t\tBigDecimal qtyProduced = null;\r\n\t\t\tif (line.isProductionBOM())\r\n\t\t\t{\r\n\t\t\t\tX_M_ProductionLine endProLine = (X_M_ProductionLine)line.getPO();\r\n\t\t\t\tObject parentEndPro = prod.isUseProductionPlan()?endProLine.getM_ProductionPlan_ID():endProLine.getM_Production_ID();\r\n\t\t\t\t\r\n\t\t\t\t//\tGet BOM Cost - Sum of individual lines\t\t\t\t\r\n\t\t\t\tfor (int ii = 0; ii < p_lines.length; ii++)\r\n\t\t\t\t{\r\n\t\t\t\t\tDocLine line0 = p_lines[ii];\r\n\t\t\t\t\tX_M_ProductionLine bomProLine = (X_M_ProductionLine)line0.getPO();\r\n\t\t\t\t\tObject parentBomPro = prod.isUseProductionPlan()?bomProLine.getM_ProductionPlan_ID():bomProLine.getM_Production_ID();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!parentBomPro.equals(parentEndPro))\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tif (!line0.isProductionBOM()) {\r\n\t\t\t\t\t\tMProduct product0 = (MProduct) bomProLine.getM_Product();\r\n\t\t\t\t\t\tString CostingLevel0 = product0.getCostingLevel(as);\r\n\t\t\t\t\t\tif (MAcctSchema.COSTINGLEVEL_BatchLot.equals(CostingLevel0) )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (bomProLine.getM_AttributeSetInstance_ID() == 0 ) \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tMProductionLineMA bomLineMA[] = MProductionLineMA.get(getCtx(), line0.get_ID(), getTrxName());\r\n\t\t\t\t\t\t\t\tif (bomLineMA!=null && bomLineMA.length> 0 )\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t // get cost of children for batch costing level (auto generate)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tBigDecimal costs0 = BigDecimal.ZERO ;\r\n\t\t\t\t\t\t\t\t\tfor (int j = 0; j < bomLineMA.length; j++)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tBigDecimal maCost = BigDecimal.ZERO ;\r\n\t\t\t\t\t\t\t\t\t\tMProductionLineMA ma = bomLineMA[j];\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t// get cost of children\r\n\t\t\t\t\t\t\t\t\t\tMCostDetail cd0 = MCostDetail.get (as.getCtx(), \"M_ProductionLine_ID=?\",\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tline0.get_ID(), ma.getM_AttributeSetInstance_ID(), as.getC_AcctSchema_ID(), getTrxName());\r\n\t\t\t\t\t\t\t\t\t\tif (cd0 != null) \r\n\t\t\t\t\t\t\t\t\t\t\tmaCost = cd0.getAmt();\r\n\t\t\t\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tProductCost pc = line0.getProductCost();\r\n\t\t\t\t\t\t\t\t\t\t\tpc.setQty(ma.getMovementQty());\r\n\t\t\t\t\t\t\t\t\t\t\tpc.setM_M_AttributeSetInstance_ID(ma.getM_AttributeSetInstance_ID());\r\n\t\t\t\t\t\t\t\t\t\t\tmaCost = line0.getProductCosts(as, line0.getAD_Org_ID(), false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tcostMap.put(line0.get_ID()+ \"_\"+ ma.getM_AttributeSetInstance_ID(),maCost);\r\n\t\t\t\t\t\t\t\t\t\tcosts0 = costs0.add(maCost);\r\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tbomCost = bomCost.add(costs0.setScale(2,RoundingMode.HALF_UP));\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tp_Error = \"Failed to post - No Attribute Set for line\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// get cost of children for batch costing level \r\n\t\t\t\t\t\t\t\tMCostDetail cd0 = MCostDetail.get (as.getCtx(), \"M_ProductionLine_ID=?\",\r\n\t\t\t\t\t\t\t\t\t\tline0.get_ID(), line0.getM_AttributeSetInstance_ID(), as.getC_AcctSchema_ID(), getTrxName());\r\n\t\t\t\t\t\t\t\tBigDecimal costs0;\r\n\t\t\t\t\t\t\t\tif (cd0 != null) \r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcosts0 = cd0.getAmt();\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcosts0 = line0.getProductCosts(as, line0.getAD_Org_ID(), false);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcostMap.put(line0.get_ID()+ \"_\"+ line0.getM_AttributeSetInstance_ID(),costs0);\r\n\t\t\t\t\t\t\t\tbomCost = bomCost.add(costs0.setScale(2,RoundingMode.HALF_UP));\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t// get cost of children\r\n\t\t\t\t\t\t\tMCostDetail cd0 = MCostDetail.get (as.getCtx(), \"M_ProductionLine_ID=?\",\r\n\t\t\t\t\t\t\t\t\tline0.get_ID(), line0.getM_AttributeSetInstance_ID(), as.getC_AcctSchema_ID(), getTrxName());\r\n\t\t\t\t\t\t\tBigDecimal costs0;\r\n\t\t\t\t\t\t\tif (cd0 != null) \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcosts0 = cd0.getAmt();\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tint ProductLabor_ID = MSysConfig.getIntValue(\"PRODUCT_LABOR\", -1, prod.getAD_Client_ID());\r\n\t\t\t\t\t\t\t\tBigDecimal laborPrice = (BigDecimal) prod.get_Value (\"PriceEntered\");\r\n\t\t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\t\tif (ProductLabor_ID > 0 \r\n\t\t\t\t\t\t\t\t\t\t&& line0.getM_Product_ID() == ProductLabor_ID\r\n\t\t\t\t\t\t\t\t\t\t&& laborPrice != null && laborPrice.signum() == 1)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcosts0 = laborPrice.multiply(prod.getProductionQty().negate());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcosts0 = line.getProductCosts(as, line0.getAD_Org_ID(), false);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcostMap.put(line0.get_ID()+ \"_\"+ line0.getM_AttributeSetInstance_ID(),costs0);\r\n\t\t\t\t\t\t\tbomCost = bomCost.add(costs0.setScale(2,RoundingMode.HALF_UP));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tqtyProduced = manipulateQtyProduced (mQtyProduced, endProLine, prod.isUseProductionPlan(), null);\r\n\t\t\t\tif (line.getQty().compareTo(qtyProduced) != 0) \r\n\t\t\t\t{\r\n\t\t\t\t\tBigDecimal factor = line.getQty().divide(qtyProduced, 12, RoundingMode.HALF_UP);\r\n\t\t\t\t\tbomCost = bomCost.multiply(factor).setScale(2,RoundingMode.HALF_UP);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (MAcctSchema.COSTINGLEVEL_BatchLot.equals(CostingLevel))\r\n\t\t\t\t{\r\n\t\t\t\t\t//post roll-up \r\n\t\t\t\t\tfl = fact.createLine(line, \r\n\t\t\t\t\t\t\tline.getAccount(ProductCost.ACCTTYPE_P_Asset, as),\r\n\t\t\t\t\t\t\tas.getC_Currency_ID(), bomCost.negate()); \r\n\t\t\t\t\tif (fl == null) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tp_Error = \"Couldn't post roll-up \" + line.getLine() + \" - \" + line; \r\n\t\t\t\t\t\treturn null; \r\n\t\t\t\t\t}\r\n\t\t\t\t\tfl.setQty(qtyProduced);\t\t\t\t\r\n\t\t\t\t} \r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tint precision = as.getStdPrecision();\r\n\t\t\t\t\tBigDecimal variance = (costs.setScale(precision, RoundingMode.HALF_UP)).subtract(bomCost.negate());\r\n\t\t\t\t\t// only post variance if it's not zero \r\n\t\t\t\t\tif (variance.signum() != 0) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//post variance \r\n//\t\t\t\t\t\tfl = fact.createLine(line, \r\n//\t\t\t\t\t\t\t\tline.getAccount(ProductCost.ACCTTYPE_P_RateVariance, as),\r\n//\t\t\t\t\t\t\t\tas.getC_Currency_ID(), variance.negate()); \r\n//\t\t\t\t\t\tif (fl == null) \r\n//\t\t\t\t\t\t{ \r\n//\t\t\t\t\t\t\tp_Error = \"Couldn't post variance \" + line.getLine() + \" - \" + line; \r\n//\t\t\t\t\t\t\treturn null; \r\n//\t\t\t\t\t\t}\r\n//\t\t\t\t\t\tfl.setQty(Env.ZERO);\r\n\t\t\t\t\t\tcosts = costs.add(variance.negate());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// end MZ\r\n\r\n\t\t\t// Inventory DR CR\r\n\t\t\tif (!(line.isProductionBOM() && MAcctSchema.COSTINGLEVEL_BatchLot.equals(CostingLevel)))\r\n\t\t\t{\r\n\t\t\t\tfl = fact.createLine(line,\r\n\t\t\t\t\tline.getAccount(ProductCost.ACCTTYPE_P_Asset, as),\r\n\t\t\t\t\tas.getC_Currency_ID(), costs);\r\n\t\t\t\tif (fl == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tp_Error = \"No Costs for Line \" + line.getLine() + \" - \" + line;\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tfl.setM_Locator_ID(line.getM_Locator_ID());\r\n\t\t\t\tfl.setQty(line.getQty());\r\n\t\t\t}\r\n\r\n\t\t\t//\tCost Detail\r\n\t\t\tString description = line.getDescription();\r\n\t\t\tif (description == null)\r\n\t\t\t\tdescription = \"\";\r\n\t\t\tif (line.isProductionBOM())\r\n\t\t\t\tdescription += \"(*)\";\r\n\t\t\tif (MAcctSchema.COSTINGLEVEL_BatchLot.equals(CostingLevel)) \r\n\t\t\t{\r\n\t\t\t\tif (line.isProductionBOM())\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!MCostDetail.createProduction(as, line.getAD_Org_ID(),\r\n\t\t\t\t\t\t\tline.getM_Product_ID(), line.getM_AttributeSetInstance_ID(),\r\n\t\t\t\t\t\t\tline.get_ID(), 0,\r\n\t\t\t\t\t\t\tbomCost.negate(), qtyProduced,\r\n\t\t\t\t\t\t\tdescription, getTrxName()))\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t p_Error = \"Failed to create cost detail record\";\r\n\t\t\t\t\t\t return null;\r\n\t\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.getM_AttributeSetInstance_ID() == 0 && (mas!=null && mas.length> 0 ))\r\n\t\t\t\t{\r\n\t\t\t\t\t for (int j = 0; j < mas.length; j++)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\tMProductionLineMA ma = mas[j];\r\n\t\t\t\t\t\tBigDecimal maCost = costMap.get(line.get_ID()+ \"_\"+ ma.getM_AttributeSetInstance_ID());\t\t\r\n\t\t\t\t\t\tif (!MCostDetail.createProduction(as, line.getAD_Org_ID(),\r\n\t\t\t\t\t\t\t\tline.getM_Product_ID(), ma.getM_AttributeSetInstance_ID(),\r\n\t\t\t\t\t\t\t\tline.get_ID(), 0,\r\n\t\t\t\t\t\t\t\tmaCost, ma.getMovementQty(),\r\n\t\t\t\t\t\t\t\tdescription, getTrxName()))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp_Error = \"Failed to create cost detail record\";\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t }\r\n\t\t\t\t } \r\n\t\t\t\t else\r\n\t\t\t\t {\r\n\t\t\t\t\t \r\n\t\t\t\t\t if (!MCostDetail.createProduction(as, line.getAD_Org_ID(),\r\n\t\t\t\t\t\t\tline.getM_Product_ID(), line.getM_AttributeSetInstance_ID(),\r\n\t\t\t\t\t\t\tline.get_ID(), 0,\r\n\t\t\t\t\t\t\tcosts, line.getQty(),\r\n\t\t\t\t\t\t\tdescription, getTrxName()))\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t p_Error = \"Failed to create cost detail record\";\r\n\t\t\t\t\t\t return null;\r\n\t\t\t\t\t } \r\n\t\t\t\t }\r\n\t\t\t} \r\n\t\t\telse\r\n\t\t\t{\t\t\t \r\n\t\t\t\tif (!MCostDetail.createProduction(as, line.getAD_Org_ID(),\r\n\t\t\t\t\tline.getM_Product_ID(), line.getM_AttributeSetInstance_ID(),\r\n\t\t\t\t\tline.get_ID(), 0,\r\n\t\t\t\t\tcosts, line.getQty(),\r\n\t\t\t\t\tdescription, getTrxName()))\r\n\t\t\t\t{\r\n\t\t\t\t\tp_Error = \"Failed to create cost detail record\";\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//\r\n\t\tArrayList<Fact> facts = new ArrayList<Fact>();\r\n\t\tfacts.add(fact);\r\n\t\treturn facts;\r\n\t}", "public TicketLogEntry(int i, int r, String l, User u, Timestamp d){\n\t\tid = i;\n\t\tticketID = r;\n\t\tlogEntry = l;\n\t\tperformedBy = u;\n\t\tperformedDate = d;\n\t}", "public LogLinesTable(int pageSize, DataGrid.Resources resources) {\n super(pageSize, resources);\n this.setHeight(\"100%\");\n Cell<String> lineNumCell = new TextCell();\n lineNumCol = new Column<LogLine, String>(lineNumCell) {\n @Override\n public String getValue(LogLine line) {\n return ((Integer) line.getLineNum()).toString();\n }\n };\n this.addColumn(lineNumCol, \"Line #\");\n\n Cell<String> lineCell = new TextCell();\n lineCol = new Column<LogLine, String>(lineCell) {\n @Override\n public String getValue(LogLine line) {\n return line.getLine();\n }\n };\n this.addColumn(lineCol, \"Line\");\n this.setWidth(\"100%\");\n // The log line number column is 70px wide\n this.setColumnWidth(lineNumCol, 70, Unit.PX);\n // The log line text column is 100% wide (rest of table width)\n this.setColumnWidth(lineCol, 100, Unit.PCT);\n }", "@Override\n\tpublic MaintenanceRequestTask createERSFeeLine(\n\t\t\tMaintenanceRequest mrq, String username) {\n\t\t\n\t\tList<String> listSupplierCodes = new ArrayList<String>();\n\t\tBigDecimal miscERSFee = new BigDecimal(0.00); \t\t\n\t\tMaintenanceRequestTask task;\n\t\tMaintenanceRequestTask newFeeTask = new MaintenanceRequestTask();\n\t\tString defaultMaintERSFeeCategoryCode = willowConfigService.getConfigValue(\"MAINT_ERS_CAT_CODE\");\n\t\tString defaultMaintERSFeeRechargeCode = willowConfigService.getConfigValue(\"MAINT_ERS_RECH_CODE\");\n\t\tString defaultMaintERSFeeCode = willowConfigService.getConfigValue(\"MAINT_ERS_FEE_CODE\");\t\t\n\t\tString defualtERSSupplierCodes = willowConfigService.getConfigValue(\"MAINT_ERS_VENDOR_CODE\");\n\t\tList<String> selectedRechargeFlagList = new ArrayList<String>(); \n\t\t\n\t\tLong maxLineNumber = nextMRTLineNumber(mrq);\n\t\t\n\t\tif(defualtERSSupplierCodes != null)\n\t\t{\n\t\t\tlistSupplierCodes = new ArrayList<String>(Arrays.asList(defualtERSSupplierCodes.split(\",\")));\n\t\t}\n\t\t\n\t\tfor(Iterator<MaintenanceRequestTask> iter = mrq.getMaintenanceRequestTasks().iterator(); iter.hasNext();){\n\t\t\ttask = (MaintenanceRequestTask)iter.next();\n\t\t\tif(!MALUtilities.isEmpty(task.getMaintCatCode()) && task.getMaintCatCode().equals(defaultMaintERSFeeCategoryCode) &&\n\t\t\t\t\ttask.getMaintenanceCode().getCode().equals(defaultMaintERSFeeCode)){\t\t\t\t\n\t\t\t\titer.remove();\n\t\t\t}\n\t\t\tif(!MALUtilities.isEmpty(task.getMaintCatCode()) && task.getMaintCatCode().equals(defaultMaintERSFeeCategoryCode)&&\n\t\t\t\t\t!task.getMaintenanceCode().getCode().equals(defaultMaintERSFeeCode) ){\n\t\t\t\tselectedRechargeFlagList.add(task.getRechargeFlag());\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tmiscERSFee = calculateVehicleRentalFee(mrq);\n\t\t\n \tif(miscERSFee.compareTo(new BigDecimal(0.00)) != 0 && listSupplierCodes.contains(mrq.getServiceProvider().getServiceProviderNumber()) ){\t\n \t\tnewFeeTask.setMaintenanceRequest(mrq);\n \t\tnewFeeTask.setMaintCatCode(defaultMaintERSFeeCategoryCode);\n \t\tnewFeeTask.setMaintenanceCode(convertMaintenanceCode(defaultMaintERSFeeCode));\n \t\tnewFeeTask.setMaintenanceCodeDesc(convertMaintenanceCode(defaultMaintERSFeeCode).getDescription()); \n \t\tnewFeeTask.setWorkToBeDone(newFeeTask.getMaintenanceCodeDesc());\n \t\tnewFeeTask.setTaskQty(new BigDecimal(1));\n \t\tnewFeeTask.setUnitCost(new BigDecimal(0.00));\n \t\tnewFeeTask.setTotalCost(new BigDecimal(0.00));\n \t\tif(selectedRechargeFlagList!= null && selectedRechargeFlagList.size()>0){\n\t \t\tif(selectedRechargeFlagList.contains(\"Y\")){\n\t \t\t\tnewFeeTask.setRechargeFlag(MalConstants.FLAG_Y); \n\t \t\t}else{\n\t \t\t\tnewFeeTask.setRechargeFlag(MalConstants.FLAG_N);}\n \t\t}\n \t\tnewFeeTask.setRechargeCode(defaultMaintERSFeeRechargeCode);\n \t\tnewFeeTask.setRechargeQty(new BigDecimal(1));\n \t\tnewFeeTask.setRechargeUnitCost(miscERSFee);\n \t\tnewFeeTask.setRechargeTotalCost(newFeeTask.getRechargeUnitCost().multiply(newFeeTask.getRechargeQty()));\n \t\tnewFeeTask.setActualRechargeCost(newFeeTask.getRechargeTotalCost());\n \t\tnewFeeTask.setDiscountFlag(MalConstants.FLAG_N);\n \t\tnewFeeTask.setOutstanding(DataConstants.DEFAULT_N);\n \t\tnewFeeTask.setWasOutstanding(DataConstants.DEFAULT_N); \n \t\tnewFeeTask.setAuthorizePerson(username);\n \t\tnewFeeTask.setAuthorizeDate(Calendar.getInstance().getTime());\n \t\tnewFeeTask.setLineNumber(maxLineNumber+=1);\n \t}\t\n\n\t\treturn newFeeTask;\n\t}", "public ticket() {\n initComponents();\n autoID();\n }", "public ArrayList<Ticket> readTickets(String command) {\r\n try{\r\n ResultSet results = Connect.readSp(command);\r\n \r\n while (results.next()) {\r\n Ticket tkt = new Ticket();\r\n tkt.setTktNo(results.getInt(\"tktNo\"));\r\n tkt.setPersonellNo(results.getInt(\"staffNo\"));\r\n tkt.setProcessLeadNo(results.getInt(\"processLeadNo\"));\r\n tkt.setTktName(results.getString(\"name\"));\r\n tkt.setStatus(results.getString(\"status\"));\r\n tkt.setCategory(results.getString(\"category\"));\r\n System.out.println(\"this effin ticket \" + tkt.getTktNo());\r\n tkt.readComments();\r\n tkt.readTasks();\r\n tickets.add(tkt);\r\n }\r\n results.close();\r\n }\r\n catch (SQLException e) {\r\n System.out.println(\"Failure\"+e.getMessage( ));\r\n }\r\n return tickets;\r\n }", "private static void newLeadLines(String... params) {\n // Set initial menu for the lead creation\n if (params.length == 0) {\n setMenuLines(\"\", 1, 7, 9, 11, 13, 14, 15, 16, 17, 18, 19, 21);\n setMenuLines(HIGHLIGHT_COLOR + \"Create New Lead\" + HIGHLIGHT_COLOR, 4);\n setMenuLines(\"Name: \", 6);\n setMenuLines(\"Phone Number: \", 8);\n setMenuLines(\"Email: \", 10);\n setMenuLines(\"Company Name: \", 12);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Lead Name: \" + HIGHLIGHT_COLOR, 20);\n } else if (params.length == 2) {\n // Update the menu for each lead creation part\n switch (params[0].toLowerCase()) {\n case \"name\":\n setMenuLines(getMenuLine(6) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 6);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Lead Phone Number: \" + HIGHLIGHT_COLOR, 20);\n break;\n case \"phone\":\n setMenuLines(getMenuLine(8) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 8);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Lead Email: \" + HIGHLIGHT_COLOR, 20);\n break;\n case \"email\":\n setMenuLines(getMenuLine(10) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 10);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Lead Company Name: \" + HIGHLIGHT_COLOR, 20);\n break;\n case \"company\":\n setMenuLines(getMenuLine(12) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 12);\n setMenuLines(HIGHLIGHT_COLOR + \"ENTER \" + ANSI_RESET + \"- confirm Lead creation | \" +\n HIGHLIGHT_COLOR + \"back \" + ANSI_RESET + \"- cancel Lead creation\", 20);\n break;\n }\n } else {\n throw new IllegalArgumentException(\"Incorrect number of parameters\");\n }\n }", "private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }", "public OMAbstractLine() {\n super();\n }", "public tickets ()\r\n {\r\n firstName = \" \"; //set to empty string. Pass in user input.\r\n lastName = \" \";\r\n venueName = \"Litchfield Recreation Center\"; \r\n performanceName = \"Hamlet\";\r\n performanceDate = \"May 8, 2020\";\r\n performanceTime = \"6:30PM\";\r\n \r\n }", "public static ExtendedTextLine createEntity(EntityManager em) {\n ExtendedTextLine extendedTextLine = new ExtendedTextLine()\n .timestamp(DEFAULT_TIMESTAMP)\n .tableName(DEFAULT_TABLE_NAME)\n .no(DEFAULT_NO)\n .textNo(DEFAULT_TEXT_NO)\n .lineNo(DEFAULT_LINE_NO)\n .text(DEFAULT_TEXT);\n return extendedTextLine;\n }", "public TAccountTicketFlow(){}", "public Ticket printTicket(String boxOfficeId, Seat seat, int client) {\r\n\t\tif (seat == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tTicket ticket = new Ticket(show, boxOfficeId, seat, client);\r\n\t\t\tSystem.out.println(ticket.toString());\r\n\t\t\ttickets.add(ticket);\r\n\t\t\treturn ticket;\r\n\t\t}\r\n\t}", "public String add(Ticket ticket){\n Receipt receipt = new Receipt(ticket);\n receipts.put(receipt.getReceiptId(), receipt);\n return receipt.getAmountDueString();\n }", "private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}", "public abstract void onNewPatchset(TicketModel ticket);", "public LineManager(LinkedList<ControlPoint> controlPoints, Pane pane){\n\t\tthis.controlPoints = controlPoints;\n\t\tlineLists = new LinkedList<>();\n\t\tlineLists.add(new LinkedList<Line>());\n\t\tbezierCurve = new LinkedList<Line>();\n\t\tthis.pane = pane;\n\t}", "public Ticket(String name, String descrip, int caseNum, int status, int priority, String solution) {\n\tthis.name = name;\n\tthis.descrip = descrip;\n\tthis.caseNum = caseNum;\n\tthis.status = status;\n\tthis.priority = priority;\n\tthis.solution = solution;\n }", "private LineData generateDataLine(int cnt) {\n\n ArrayList<Entry> e1 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e1.add(new Entry(i, (int) (Math.random() * 65) + 40));\n }\n\n LineDataSet d1 = new LineDataSet(e1, \"New DataSet \" + cnt + \", (1)\");\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n d1.setHighLightColor(Color.rgb(244, 117, 117));\n d1.setDrawValues(false);\n\n ArrayList<Entry> e2 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e2.add(new Entry(i, e1.get(i).getY() - 30));\n }\n\n LineDataSet d2 = new LineDataSet(e2, \"New DataSet \" + cnt + \", (2)\");\n d2.setLineWidth(2.5f);\n d2.setCircleRadius(4.5f);\n d2.setHighLightColor(Color.rgb(244, 117, 117));\n d2.setColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setCircleColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setDrawValues(false);\n\n ArrayList<ILineDataSet> sets = new ArrayList<ILineDataSet>();\n sets.add(d1);\n sets.add(d2);\n\n LineData cd = new LineData(sets);\n return cd;\n }", "public static void main(String[] args) throws Exception{\n TicketManager manager = new TicketManager();\n\n BufferedWriter fileOpen = new BufferedWriter(new FileWriter(\"open_tickets.txt\", true));\n Scanner inputFile = new Scanner(new File(\"open_tickets.txt\"));\n\n String dateFormat = \"EEE MMM dd hh:mm:ss z yyyy\";\n SimpleDateFormat format = new SimpleDateFormat(dateFormat);\n\n while (inputFile.hasNext())\n {\n Ticket open = new Ticket(inputFile.nextLine(), Integer.parseInt(inputFile.nextLine()),\n inputFile.nextLine(), format.parse(inputFile.nextLine()), null, null);\n\n ticketQueue.add(open);\n }\n fileOpen.close();\n\n //TODO problem 8 load open tickets from a file\n\n //TODO Problem 9 how will you know what ticket ID to start with?\n\n manager.mainMenu();\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 }", "@Test\n public void createBillingLineTestHappyPath() {\n\n Billinglines BillingLineObj = new Billinglines();\n\n BillingLineObj.setOrderId(\"b1375915-6c3d-4df5-aac2-aaf400e3ebab\");\n BillingLineObj.setPlannerId(\"90C44CAE-2A4A-4B5D-A5EC-AA9500A6C839\");\n BillingLineObj.setProductId(\"3B50FC9A-26B1-42C7-A7B4-AACB0084B9E4\");\n BillingLineObj.setStartMonth(\"2019-11-30\");\n BillingLineObj.setDurationInMonths(2);\n\n // final JSONArray arr = new JSONArray();\n\n /*for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"id\", p.getId());\n arr.add(obj);\n }\n\n\n for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"date\", new MyDateFormatter().getStringFromDateDifference(p.getCreationDate()));\n obj.add(\"value\", p.getValue());\n }*/\n\n BillingLineObj.setBillingLineBuyingAreaRevenues(Arrays.asList(new String[]{\"id\",\"8798f1f5-cd1b-455e-b44a-aacb00845536\"}));\n BillingLineObj.setMonthBuyingAreaRevenues(Arrays.asList(new String[]{\"date\",\"2019-11-30\"}));\n //BillingLineObj.setValue(444);\n BillingLineObj.setRevenue(444);\n String json = Utilities.createJsonObject(BillingLineObj);\n System.out.println(\">>>>>>>\\n\\n\\n\" + json);\n\n Response response = APIRequests.PostAPI(path, json);\n Assert.assertEquals(\"Check status codes for successful response \", 200,response.getStatusCode());\n System.out.println(\">>>>> \" + response.getStatusCode());\n\n }", "void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }", "public Line voToLine() {\n Line line = new Line();\n if (this.getLineId() != null) {\n line.setLineId(this.getLineId());\n }\n line.setAppmodelId(this.getAppmodelId());\n line.setDriverName(this.getDriverName());\n line.setDriverPhone(this.getDriverPhone());\n line.setLineName(this.getLineName());\n line.setProvinceId(this.provinceId);\n line.setCityId(this.cityId);\n line.setAreaId(this.areaId);\n return line;\n }", "public LineInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\t//print the top row of the ticket\r\n\t\t\tString str = \"\";\r\n\t\t\tfor (int i = 0; i < 31; i++) {\r\n\t\t\t\tstr+=\"-\";\r\n\t\t\t}\r\n\t\t\t//print the show\r\n\t\t\tstr += \"\\n\";\r\n\t\t\tString temp = \"| Show: \" + show;\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the box office id\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\ttemp = \"| Box Office ID: \" + boxOfficeId;\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the seat number\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\ttemp = \"| Seat: \" + seat.toString();\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the client id\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\ttemp = \"| Client: \" + client;\r\n\t\t\tstr += temp;\r\n\t\t\tfor (int i = 0; i < (31 - temp.length())-1; i++) {\r\n\t\t\t\tstr += \" \";\r\n\t\t\t}\r\n\t\t\t//print the bottom of the ticket\r\n\t\t\tstr += \"|\\n\";\r\n\t\t\tfor (int i = 0; i < 31; i++) {\r\n\t\t\t\tstr+=\"-\";\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}", "boolean createTicketAssignments(List<Ticket> tickets);", "private LineDataSet createSet(){\n LineDataSet set = new LineDataSet(null, \"SPL Db\");\n set.setDrawCubic(true);\n set.setCubicIntensity(0.2f);\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n set.setColor(ColorTemplate.getHoloBlue());\n set.setLineWidth(2f);\n set.setCircleSize(4f);\n set.setFillAlpha(65);\n set.setFillColor(ColorTemplate.getHoloBlue());\n set.setHighLightColor(Color.rgb(244,117,177));\n set.setValueTextColor(Color.WHITE);\n set.setValueTextSize(10f);\n\n return set;\n }", "public static void LineCreate(WebDriver driver) throws Exception\n\t\n\t{\n\t\ttry {\n\t\t\tLine_Page_Objects.Left_Menu_Line(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.Site_Selection(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickPartialLinkText(driver, ExcelUtils.getCellData(1, 6));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Add_Line(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.DirectoryNum_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 0));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Route_Partition_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 1));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Description_Txt(driver).sendKeys(ExcelUtils.getCellData(1, 2));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Calling_Search_Space_Name_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 3));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.VoiceMail_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 4));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Auto_Answer_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 5));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Save_Button(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.SaveSuccessMsg(driver).getText().equalsIgnoreCase(\"Line create request submitted successfully\");\n\t\t\tLine_Page_Objects.waitFor3000();\n\t\t\tReporter.reportStep(\"Line Create Passed\", \"PASS\");\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tReporter.reportStep(\"Line Create Failed\", \"FAIL\");\n\t\t}\n\t}", "TRule createTRule();" ]
[ "0.7692357", "0.64925206", "0.64611703", "0.6306172", "0.60693705", "0.6004325", "0.59934396", "0.5948389", "0.5886856", "0.58727586", "0.5869867", "0.58689654", "0.5800984", "0.576457", "0.571515", "0.57083035", "0.5655888", "0.56556785", "0.5637944", "0.5632556", "0.562701", "0.55599385", "0.5541784", "0.55342215", "0.55258656", "0.5519888", "0.55094445", "0.54865026", "0.5428672", "0.53959054", "0.53788936", "0.5362508", "0.5354613", "0.53444743", "0.5343103", "0.5333547", "0.5330502", "0.5307803", "0.5307316", "0.5306896", "0.52911603", "0.5282981", "0.5274038", "0.52535844", "0.5238521", "0.5237055", "0.52305883", "0.5228345", "0.5225842", "0.52245957", "0.5223051", "0.52165973", "0.52002", "0.51698184", "0.5167486", "0.5164721", "0.5161381", "0.5159555", "0.5156333", "0.51561475", "0.51507795", "0.5147901", "0.51432616", "0.513967", "0.5135559", "0.5135209", "0.51341134", "0.513255", "0.51318395", "0.5119759", "0.51185465", "0.5113846", "0.5112459", "0.5109069", "0.5104828", "0.5094924", "0.5080346", "0.50758046", "0.50736314", "0.5064234", "0.5060138", "0.5055786", "0.50552225", "0.5053411", "0.50492364", "0.5044592", "0.5032348", "0.50243115", "0.5010149", "0.49897587", "0.49771926", "0.49747267", "0.49689344", "0.49653208", "0.49637875", "0.49622837", "0.4951424", "0.49400446", "0.4938829", "0.49290794" ]
0.7810738
0
Generate integers between and including 0 and 2
private int generateRandomNumber() { return new SplittableRandom().nextInt(0, 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int RandomGenerator0To29 (){\n\t\t int randomInt2 = 0;\n\t\t Random randomGenerator2 = new Random();\n\t\t for (int idx2 = 1; idx2 <= 10; ++idx2) {\n\t\t\t randomInt2 = randomGenerator2.nextInt(30);\n\t\t }\n\t\t return randomInt2;\n\t }", "static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}", "int RandomGeneratorZeroToThree (){\n\t\t int randomInt = 0;\n\t\t Random randomGenerator = new Random();\n\t\t for (int idx = 1; idx <= 10; ++idx) {\n\t\t\t randomInt = randomGenerator.nextInt(4);\n\n\t\t }\n\t\t return randomInt;\n\t }", "private int generatePiece()\n\t{\n\t\tint toReturn = 0;\n\t\tint max = 1;\n\t\tint min = -1;\n\t\t\n\t\twhile(toReturn == 0)\n\t\t{\n\t\t\ttoReturn = r.nextInt((max - min) + 1) + min;\n\t\t}\n\t\tSystem.out.println(toReturn);\n\t\treturn toReturn;\n\t}", "private int getRandomInteger(int start, int end){\n\t\tif (start > end) {\n\t\t\tthrow new IllegalArgumentException(\"Start cannot exceed End.\");\n\t\t}\n\t\tRandom random = new Random();\n\t\tlong range = (long)end - (long)start + 1;\n\t\tlong fraction = (long)(range * random.nextDouble());\n\t\tint randomNumber = (int)(fraction + start); \n\t\treturn(randomNumber);\n\t}", "public static int generate(int min, int max) {\n\t\n\treturn min + (int) (Math.random() * ((max - min) + 1));\n\t\n\t}", "public static void main(String[] args) {\n Random rd = new Random();\n int num;\n for (int i = 1; i < 2; i++) {\n num = rd.nextInt(8)+1;\n System.out.println(num);\n }\n }", "public static int generatesRandomIntBetween(int start, int end) {\n return start + (int) Math.round(Math.random() * (end - start));\n }", "private int randomInt(final int start, final int end) {\n return random.nextInt(end - start + 1) + start;\n }", "public static int randInt() {\n\t\tint min = 10;\n\t\tint max = 99999999;\n\t\tRandom rand = new Random();\n\t\tint randomNum = (rand.nextInt((max - min) + 1) + rand.nextInt((max - min) + 1)) / 2;\n\t\treturn randomNum;\n\t}", "public static int next(int n)\n { \n int x = 0;\n if(n%2 == 0)\n {\n return n/2;\n }\n else\n {\n return (3*n)+1;\n }\n }", "public static int nextPowerOfTwo(final int value) {\r\n final int exp = (int) Math.ceil(Math.log(value) / Math.log(2));\r\n return (int) Math.pow(2, exp);\r\n }", "int nextInt(int origin, int bound);", "private static int newSecretNumber(int min, int max)\n {\n Random rnd = new Random();\n return rnd.nextInt((max + 1 - min) + min);\n }", "public static int randomNumber(int start, int end) {\n long range = (long) end - (long) start + 1;\n // compute a fraction of the range, 0 <= frac < range\n long fraction = (long) (range * RANDOM.nextDouble());\n return (int) (fraction + start);\n }", "public static int generateIntRange(int min, int max) {\n return random.nextInt(max - min + 1) + min;\n }", "private static int randomInteger(int a, int b) {\n return (int) (Math.random() * (b - a) + a);\n }", "@Override\n public int generateNumber(int n) {\n if (n == 0) {\n return 0;\n } else if (n == 1) {\n return 1;\n } else {\n // We need the following nums to do the calculation by themselves\n int num1 = 0;\n int num2 = 1;\n int num3 = 0;\n // Starting from i = 1 is because we have done the first two in num1 and num2\n for (int i = 1; i < n; i++) {\n num3 = num1 + num2;\n num1 = num2;\n num2 = num3;\n }\n return num3;\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateInteger_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private static int randomNumberBetween(final int start, final int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}", "public int nextInt(int n) {\n return 0;\n }", "public static int nextPowerOfTwo(int x) {\n if (x == 0) return 1;\n x--;\n x |= x >> 1;\n x |= x >> 2;\n x |= x >> 4;\n x |= x >> 8;\n return (x | x >> 16) + 1;\n }", "private int randomInteger(int n) {\n return (int) (randGen.random() * (n - 1));\n }", "private int nextPowerOf2(int n)\n {\n if (n > 0 && (n & (n - 1)) == 0)\n return n;\n \n int count = 0;\n for (;n != 0; n = n >> 1)\n count += 1;\n \n return 1 << count;\n }", "public static List<Integer> generateNumbers(int min, int max) {\n\t\treturn IntStream.rangeClosed(min, max).boxed().collect(Collectors.toList());\n\t}", "@Test\r\n\tpublic void testPositiveGenerateInteger_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public int compete() {\r\n\t\tint max = 20;\r\n\t\tint min = 10;\r\n\t\tRandom Rand = new Random();\r\n\t\tint ranNum = Rand.nextInt(max - min) + min;\r\n\t\treturn ranNum;\r\n\t}", "public static Integer randomInt(int start, int end){\n\t\tif (start >= end) {\n\t\t\tthrow new IllegalArgumentException(\"start must be greater than end\");\n\t\t}\n\t\tRandom r = new Random();\n\t\treturn r.nextInt((end - start) ) + start;\n\t}", "private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }", "public static int generateRandom(int left,int right)\n\t{\n\t\tRandom random = new Random();\n\t\tint gap = right -left + 1;\n\t\treturn random.nextInt(Integer.MAX_VALUE)%gap + left;\n\t}", "private int generateRandomNumber() {\n\t\treturn (int) Math.floor(Math.random() * Constants.RANDOM_NUMBER_GENERATOR_LIMIT);\n\t}", "public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}", "public int generate(int k) {\n // PUT YOUR CODE HERE\n }", "public int getRandomPositiveInt(){\r\n long gen = (a*seed+c)%m;\r\n seed = gen;\r\n return (int)gen;\r\n }", "public static int uniform( int a, int b ) {\n return a + uniform( b - a );\n }", "protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }", "public static int getRandomInt(int start, int end) {\n\t\tint randomInt = start + (int)((end - start) * Math.random());\n\t\treturn randomInt;\n\t}", "private static List<Integer> nextInt() {\n\t\tRandom rnd = new Random();\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tfor (;;) {\n\t\t\tfinal int r = rnd.nextInt(5);\n\t\t\tif (!l.contains(r)) {\n\t\t\t\tl.add(r);\n\t\t\t}\n\t\t\tif (l.size() == 5)\n\t\t\t\treturn l;\n\t\t}\n\t}", "public int nextInt(int range) {\n int i = Math.abs(rand.nextInt());\n return (i % (range));\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private static int generateRandomNumber(int min, int max) {\n return (int)Math.floor(Math.random() * (max - min + 1)) + min;\n }", "private static int randInt(final int min, final int max) {\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n return rand.nextInt((max - min) + 1) + min;\n }", "public static int randomNumberAlg(){\r\n int max = 10;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "public int getInt () {\n \tif (number1 == number2)\n \t\treturn number1;\n \telse\t{\n \t\treturn r.nextInt(number2 - number1 + 1) + number1;\n \t}\t\n }", "public int getNextIntRange(int[] range) {\n\t\tint low = Math.min(range[0], range[1]);\r\n\t\tint high = Math.max(range[0], range[1]);\r\n\t\tint val = (int)((high - low)*this.rand.nextDouble() + (double)low);\r\n\t\treturn val;\r\n\t}", "public int originalgetRandomPositiveInt(int min, int max){\r\n int number = getRandomPositiveInt(); \r\n return (int)number%(max - min + 1)+min;\r\n }", "public int generate(int k) {\n int r = 0;\n for (int i = 0; i < k; i++) {\n r = (r*2) + step();\n }\n return r;\n }", "public int nextInt(int limit){\r\n\t\treturn (nextInt() & 0x7FFFFFFF) % limit;\r\n\t}", "private int random(int from, int to) {\n return from + (int) (Math.random() * (to - from + 1));\n }", "public int nextInt(int n) {\n return twister.nextInt(n);\n }", "public static String generateRandomInteger() {\n SecureRandom random = new SecureRandom();\n int aStart = 1;\n long aEnd = 999999999;\n long range = aEnd - (long) aStart + 1;\n long fraction = (long) (range * random.nextDouble());\n long randomNumber = fraction + (long) aStart;\n return String.valueOf(randomNumber);\n }", "public static int nextInt (int min, int max) {\n int x = get().nextInt(max-min+1);\n return x+min;\n }", "int next(int bits);", "public int generate(int k) {\n int result = 0;\n\n for (int i = 0; i < k; i++) {\n result = 2 * result + step();\n }\n return result;\n }", "private static int generateRandom(int min, int max) {\n // max - min + 1 will create a number in the range of min and max, including max. If you don´t want to include it, just delete the +1.\n // adding min to it will finally create the number in the range between min and max\n return r.nextInt(max-min+1) + min;\n }", "private int generateRandomNb(int min, int max) {\n Random random = new Random();\n\n return random.nextInt((max - min) + 1) + min;\n }", "public static int nextInt (int n) {\n return get().nextInt(n);\n }", "public int RandomNegativeNumbers() {\n\t\tint result = 0;\n\t\tresult = rnd.nextInt(10) - 10;\n\t\treturn result;\n\t}", "public int next() {\r\n\t\t// Get a random value\r\n\t\tint index = random.nextInt(values.length);\r\n\t\tint byteValue = values[index] + 128; // For an unsigned value\r\n\t\tint value = byteValue * 3;\r\n\t\t// If byteValue = 255 (max), then choose between 765000 and 799993\r\n\t\tif (byteValue == 255) {\r\n\t\t\tvalue += random.nextInt(800-765+1);\r\n\t\t}\r\n\t\t// Otherwise, choose between value and value + 2 (inc)\r\n\t\telse {\r\n\t\t\tvalue += random.nextInt(3);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "static int getRandint(int min, int max) {\r\n\t\tRandom r = new Random();\r\n\t\treturn r.nextInt((max - min) + 1) + min;\r\n\t}", "private int randomIntRange(int min, int max) {\r\n Random random = new Random();\r\n if (min < 0 || max < 0) {\r\n return (random.nextInt(Math.abs(max - min)) + Math.abs(min) + 1) * -1;\r\n }\r\n return random.nextInt(max - min) + min + 1;\r\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static int randomInt(int startInclusive, int endExclusive) {\n checkArgument(startInclusive <= endExclusive, \"End must be greater than or equal to start\");\n if (startInclusive == endExclusive) {\n return startInclusive;\n }\n return RANDOM.ints(1, startInclusive, endExclusive).sum();\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private static int randomInt(int i, int j) {\n\t\tRandom generator = new Random();\r\n\t\treturn i + generator.nextInt(j);\r\n\t}", "public static int generateRandomIntegerNumber(int minNumber, int maxNumber){\n\n Random rndmGnrtr = new Random();\n return rndmGnrtr.nextInt(maxNumber - minNumber + 1) + minNumber; // minNumber + for avoid 0\n }", "public static int randIntDigits(int min, int max) {\n\t\tRandom rand = new Random();\n\t\tint randomNum = (rand.nextInt((max - min) + 1) + rand.nextInt((max - min) + 1)) / 2;\n\t\treturn randomNum;\n\t}", "public static int pseudo(int min, int max) {\n int value = generator.nextInt();\n return value < 0 ? (-value) % (max - min + 1) + min : value % (max - min + 1) + min;\n }", "private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }", "public static int createRandom(int min, int max){\n\t\tif (min == max){\n\t\t\treturn min;\n\t\t}\n\t\telse{\t\t\t\n\t\t\treturn (int)(Math.random() * (max - min) + min); \n\t\t}\n\t}", "private static String createRandomInteger(int aStart, long aEnd,Random aRandom){\n \tif ( aStart > aEnd ) {\n\t throw new IllegalArgumentException(\"Start cannot exceed End.\");\n\t }\n\t long range = aEnd - (long)aStart + 1;\n\t long fraction = (long)(range * aRandom.nextDouble());\n\t long randomNumber = fraction + (long)aStart;\n\t return Long.toString(randomNumber);\n\t }", "public static int[] sumOfTwoDice(int n) {\n int[] dice = new int[11];\n for(int b = n; b > 0; b--) {\n\t\tint d = ThreadLocalRandom.current().nextInt(1, 7);\n int d1 = ThreadLocalRandom.current().nextInt(1, 7);\n int i = d+d1-2;\n dice[i]+=1; \n\t}\n return dice;\n }", "private static int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n }", "public static int nextInt(int minVal, int maxVal) {\n\t\treturn minVal + Utilities.rand.nextInt((maxVal - minVal));\n\t}", "private int randBetween(int start, int end) {\n\t\treturn start + (int)Math.round(Math.random() * (end - start));\n\t}", "public int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n}", "private int randomGen(int upperBound) {\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(upperBound);\n\t}", "public static int randomInt(int a, int b) {\n if (a > b) {\n return 0;\n }\n return (int)(Math.random() * (b - a + 1)) + a;\n }", "public int getRandomNumber(int bound1, int bound2) {\n int min = Math.min(bound1, bound2);\n int max = Math.max(bound1, bound2);\n //math.random gives random number from 0 to 1\n return (int) (min + (Math.random() * (max - min)));\n }", "public int getRandomNumberInInterval() {\n\t\treturn getRandomNumberUsingNextInt(min, max);\n\t}", "public static long nextPowerOfTwo(long x) {\n if (x == 0) return 1;\n x--;\n x |= x >> 1;\n x |= x >> 2;\n x |= x >> 4;\n x |= x >> 8;\n x |= x >> 16;\n return (x | x >> 32) + 1;\n }", "public static int intSample(int range) throws IllegalArgumentException {\n return random_.nextInt(range);\n }", "public static int getRandomInt(int a, int b) {\n return a + (int) (Math.random() * b);\n }", "public static int uniform(int N) {\r\n return random.nextInt(N);\r\n }", "public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }", "@Override\n public int[] next() {\n min = rand.nextInt(100);\n max = rand.nextInt(100);\n Thread.yield();\n if (min > max) max = min;\n int[] ia = {min, max};\n return ia;\n }", "public int getRandomNum (int first, int last)\n\t{\n\t\tint smallerNum, largerNum;\n\t\tsmallerNum = Math.min(first, last);\n\t\tlargerNum = Math.max(first, last);\n\t\t\n\t\t return (int)(smallerNum + Math.random() * (largerNum-smallerNum+1));\n\t}", "public static int nextInt() {\n\treturn 0;\r\n}", "private int[] generateRandomNumbers(int max) {\n\t\tRandom random = new Random();\n\t\tint[] rand_array = new int[max];\n\t\tint cntr = 0;\n\t\t\n\t\t//fill array with a number not coming in random numbers range.\n\t\tfor( int i=0; i<max; i++ )\n\t\t\trand_array[i] = 1111111111;\n\t\t\n\t\twhile( cntr < max ){\n\t\t\tint rand_index = random.nextInt(max);\n\n\t\t\tif(!( in_array(rand_array, rand_index ))){\n\t\t\t\trand_array[cntr] = rand_index;\n\t\t\t\tSystem.out.println(cntr+\" : \"+rand_index);\n\t\t\t\tcntr++;\n\t\t\t}\n\t\t}\n\t\treturn rand_array;\n\t}", "public int randomNum() {\n\t\treturn 1 + (int) (Math.random() * 3); // randomNum = minimum + (int)(Math.random() * maximum);\n\t}", "private static int randomInt(int min, int max) {\n if (min >= max) {\n throw new IllegalArgumentException(\"max must be greater than min\");\n }\n\n Random r = new Random();\n return r.nextInt(max - min) + min;\n }", "public int coordinateGenerator(int max, int min) {\n\t\tRandom r = new Random();\n\t\tint a =r.nextInt(max - min) + min;\n\t\treturn a;\n\t}", "@Test\r\n\tpublic void testPositiveGenerateSignedInteger_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegers(10, 0, 10, false);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[].class);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }", "public static int randomNumber(){\r\n int max = 10;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}", "private int generateWholoeNumInRange( int min, int max ) {\r\n\r\n // Evaluate random number from min to max including min and max\r\n return (int)(Math.random()*(max - min + 1) + min);\r\n\r\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_6() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static int uniform( int N ) {\n return random.nextInt( N + 1 );\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 10, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, int[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}" ]
[ "0.65196925", "0.63430923", "0.6311622", "0.6294277", "0.6289069", "0.6269597", "0.625065", "0.6240759", "0.6172047", "0.61538565", "0.61383915", "0.61285025", "0.61218345", "0.6102152", "0.6080808", "0.60666066", "0.60429764", "0.6040334", "0.6031832", "0.6027739", "0.6025312", "0.6002725", "0.5997354", "0.5980451", "0.5966963", "0.5885466", "0.5877357", "0.584897", "0.58488816", "0.5836166", "0.58279085", "0.5825981", "0.58255464", "0.5820632", "0.5818369", "0.5810249", "0.5800276", "0.57976276", "0.578936", "0.57862914", "0.578305", "0.5765391", "0.5758267", "0.5756701", "0.57513964", "0.57471746", "0.57396585", "0.57388043", "0.5733871", "0.573106", "0.57220834", "0.57132787", "0.5710729", "0.56956387", "0.56929195", "0.5686055", "0.56845766", "0.5675464", "0.56754375", "0.5672249", "0.5669179", "0.5654677", "0.56224793", "0.5621654", "0.5612669", "0.56078357", "0.560356", "0.5580497", "0.55766356", "0.5575241", "0.5570267", "0.55685055", "0.5560394", "0.55509734", "0.5549929", "0.55494547", "0.55438715", "0.55413073", "0.55316484", "0.5524961", "0.550947", "0.5505519", "0.55016536", "0.54941", "0.54917103", "0.5490529", "0.54896563", "0.5487607", "0.548753", "0.5484315", "0.54838085", "0.5483348", "0.54775625", "0.5475951", "0.5465524", "0.54583824", "0.5451368", "0.54491067", "0.54445744", "0.543792" ]
0.59355104
25
Generate outcomes as per rules and return int value
public int getOutcome(int first, int second, int third) { if (first + second + third == 2) { return 10; } else if (first == second && first == third && second == third) { return 5; } else if (first != second && first != third) { return 1; } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int evaluate() {\n return (int) (Math.random() * 8);\n }", "public int evaluateAsInt();", "public Result determineOutcome() {\n for (int row = 0; row < TicTacToeModel.BOARD_DIMENSION; row++) {\n if (rowScore[row] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (rowScore[row] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n for (int col = 0; col < TicTacToeModel.BOARD_DIMENSION; col++) {\n if (colScore[col] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (colScore[col] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n if (leftDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (rightDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (leftDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n if (rightDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n\n if (freeSpace == 0) return Result.DRAW;\n\n return Result.INCOMPLETE;\n }", "public Integer aiAction() {\r\n\t\t//if the first dice is less then six, throw the second dice \r\n\t\t//if the both throws > 10 the ai has lost, and will return 0\r\n\t\t//if the first dice == 7, return first dice\r\n\t\tInteger totalSum = 0;\r\n\t\tRandom aiRandom = new Random();\r\n\t\tInteger firstDice = aiRandom.nextInt(7) + 1;\r\n\t\tSystem.out.println(\"First dice: \" + (totalSum += firstDice));\r\n\t\tif (firstDice < 6) {\r\n\t\t\tInteger secondDice = aiRandom.nextInt(7) + 1;\r\n\t\t\tSystem.out.println(\"Second dice value is: \" + secondDice);\r\n\t\t\tSystem.out.println(\"Sum of both throws: \" + (totalSum += secondDice));\r\n\t\t\tif(totalSum > 10){\r\n\t\t\t\treturn 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn totalSum;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Ai scored :\" + (firstDice));\r\n\t\t\treturn firstDice;\r\n\t\t}\r\n\r\n\t}", "public abstract int calculateOutput();", "public int computeStatus() {\n\t\tif(isOutcomeExceeded()) return 0;\r\n\t\t\r\n\t\t//the new loan is too expensive\r\n\t\tif(isOutcomeExceeded(mMonthlyLoan)) return 0;\r\n\t\t\r\n\t\tint domainCoeff = DBOperations.getDomainCoeffById(mDomainId); // (0, 10] \r\n\t\tint expCoeff = DBOperations.getExperienceCoeffById(mExperienceId); // (0, 5]\r\n\t\t\r\n\t\tint backgroundCoeff = domainCoeff * expCoeff; // (0, 50]\r\n\t\tif(isIncomeRaising) backgroundCoeff *= 2; // (0, 100]\r\n\t\t\r\n\t\tint incomeCoeff = getIncomeWeight(mMonthlyIncome); // (0, 100]\r\n\t\t\r\n\t\tint coeff = (int) ((backgroundCoeff * 0.20) + (incomeCoeff * 0.55)); // (0, 75]\r\n\t\tif(mHadOtherLoans) coeff += 5; // (0, 80]\r\n\t\tif(mHasDelayedPays) coeff -= 10; // (0, 80]\r\n\t\t\r\n\t\tif((mMonthlyIncome - mMonthlyOutcome) * MAXIMUM_SURE_OUTCOME_PERCENTAGE / 100 >= mMonthlyLoan) {\r\n\t\t\tcoeff += 20; // (0, 100]\r\n\t\t}\r\n\t\t\r\n\t\tif(coeff <= 25) return 0;\r\n\t\treturn coeff < 55 ? 1 : 2;\r\n\t}", "public void checkResult(){\n\t\tif(throwNum == 0){\n\t\t\tthis.firstThrow = this.sumOfDice;\n\t\t}\n\n\t\tif((this.sumOfDice == 7 || this.sumOfDice==11) && throwNum==0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse if(this.sumOfDice ==2 || this.sumOfDice== 3 ||this.sumOfDice==12){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.game == gameStatus.CONTINUE && this.sumOfDice == 7)){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.sumOfDice== this.firstThrow) && throwNum!=0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse{\n\t\t\tthis.game = gameStatus.CONTINUE;\n\t\t}\n\t}", "int getWrongAnswers();", "int getResultValue();", "int getResultValue();", "private int evaluateState() {\r\n\r\n\t\t// add up score\r\n\t\t//\r\n\t\tint scoreWhite = 0;\r\n\t\tint scoreBlack = 0;\r\n\t\tfor (Piece piece : this.chessGame.getPieces()) {\r\n\t\t\tif(piece.getColor() == Piece.COLOR_BLACK){\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else if( piece.getColor() == Piece.COLOR_WHITE){\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else{\r\n\t\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\t\"unknown piece color found: \"+piece.getColor());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// return evaluation result depending on who's turn it is\r\n\t\tint gameState = this.chessGame.getGameState();\r\n\t\t\r\n\t\tif( gameState == ChessGame.GAME_STATE_BLACK){\r\n\t\t\treturn scoreBlack - scoreWhite;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_WHITE){\r\n\t\t\treturn scoreWhite - scoreBlack;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_END_WHITE_WON\r\n\t\t\t\t|| gameState == ChessGame.GAME_STATE_END_BLACK_WON){\r\n\t\t\treturn Integer.MIN_VALUE + 1;\r\n\t\t\r\n\t\t}else{\r\n\t\t\tthrow new IllegalStateException(\"unknown game state: \"+gameState);\r\n\t\t}\r\n\t}", "private int scoreCounter(int result) {\n result +=1;\n return result;\n }", "static int score(int[] state) {\n int no = 0;\n for (int i = 1; i < 10; i++) {\n if (state[i] == 1) {\n no *= 10; no += i;\n }\n }\n return no;\n }", "private static int eval(Board board) {\n if (board.piecesContiguous(board.turn())) {\n return Integer.MAX_VALUE;\n } else if (board.piecesContiguous(board.turn().opposite())) {\n return Integer.MIN_VALUE;\n } else {\n Random r = new Random();\n return r.nextInt();\n }\n }", "public static int yatzy(int scoreVal, int... result) {\n int score = 0;\n long uniqueValues = IntStream.of(result).distinct().count();\n if (uniqueValues == 1 && result.length > 1) {\n score = scoreVal;\n }\n return score;\n }", "public static void main(String[] args) {\n int num = 14;\n int output = 6;\n System.out.println((numberOfSteps(num)) == output ? \"CASE 1 PASS\" : \"X CASE 1 FAIL\");\n\n // TEST CASE 2: Input: num = 8 Output: 4\n num = 8;\n output = 4;\n System.out.println((numberOfSteps(num)) == output ? \"CASE 2 PASS\" : \"X CASE 2 FAIL\");\n\n // TEST CASE 3: Input: num = 123 Output: 12\n num = 123;\n output = 12;\n System.out.println((numberOfSteps(num)) == output ? \"CASE 3 PASS\" : \"X CASE 3 FAIL\");\n }", "int getPokeballValue();", "CheckSum generateCheckSum();", "int getResultMonster();", "int getScoreValue();", "public int eval()\n\t\t{\n\t\t\tif (p[BLACK]==0) return MAX+1;\t//black=0 then white win then return max\n\t\t\tif (p[WHITE]==0) return MIN-1;\t//white=0 then black win then return min\n\t\t\tint bl=getNumberOne(p[0]);int wh=getNumberOne(p[1]);\n\t\t\treturn wh-bl;\n\t\t}", "public static void outcomes(){\n switch(outcome){\n case 1:\n System.out.println(\"Player 1 is the Winner\");\n System.exit(0);\n break;\n case 2:\n System.out.println(\"Player 2 is the Winner\");\n System.exit(0);\n break;\n case 3:\n System.out.println(\"Tie\");\n System.exit(0);\n break;\n\n }\n }", "@Override\n public SolverOutcome outcome(){\n return outcome;\n }", "public int generateRoll() {\n\t\tint something = (int) (Math.random() * 100) + 1;\n\t\tif (something <= 80) {\n\t\t\tint allNumRoll = (int) (Math.random() * getNumSides()) + 1;\n\t\t\tint roll = allNumRoll * 2 - 1;\n\t\t\treturn roll;\n\t\t} else {\n\t\t\tint allNumRoll = (int) (Math.random() * getNumSides()) + 1;\n\t\t\tint roll = allNumRoll * 2;\t\t\n\t\t\treturn roll;\n\t\t}\n\t}", "int getResult();", "public static int getAlterOutcome() {\r\n return alterOutcome;\r\n }", "public int Check(){\n return 6;\n }", "@Test\n public void testCalculation() {\n int expResult = 321;\n game.calculation(180);\n int result = Integer.valueOf(game.getRemainigScore());\n assertEquals(\"testCalculation: \",expResult, result);\n }", "public static int tower(int... result) {\n\n int score = nSame(4, 6, result);\n int firstMatch = score/4;\n\n result = IntStream.of(result).filter(val -> val != firstMatch).toArray();\n score = nSame(2, 6, result);\n int secondMatch = score/2;\n\n if (firstMatch*secondMatch > 0) {\n score = 4*firstMatch + 2*secondMatch;\n } else {\n score = 0;\n }\n\n return score;\n }", "public int evaluate() {\n\t\treturn history + heuristic;\n\t}", "private int evaluate(Board board)\n {\n if (computerWin(board))\n return 4*size;\n else if (playerWin(board))\n return -4*size;\n else if (draw(board))\n return 3*size;\n else\n return count(board, COMPUTER);\n }", "public int evaluate(int[][] gameBoard) {\n for (int r = 0; r < 3; r++) {\n if (gameBoard[r][0] == gameBoard[r][1] && gameBoard[r][1] == gameBoard[r][2]) {\n if (gameBoard[r][0] == ai)\n return +10;\n else if (gameBoard[r][0] == human)\n return -10;\n }\n }\n // Checking for Columns for victory.\n for (int c = 0; c < 3; c++) {\n if (gameBoard[0][c] == gameBoard[1][c] && gameBoard[1][c] == gameBoard[2][c]) {\n //gameLogic.getWinType();\n if (gameBoard[0][c] == ai)\n return +10;\n else if (gameBoard[0][c] == human)\n return -10;\n }\n }\n // Checking for Diagonals for victory.\n if (gameBoard[0][0] == gameBoard[1][1] && gameBoard[1][1] == gameBoard[2][2]) {\n if (gameBoard[0][0] == ai)\n return +10;\n else if (gameBoard[0][0] == human)\n return -10;\n }\n if (gameBoard[0][2] == gameBoard[1][1] && gameBoard[1][1] == gameBoard[2][0]) {\n if (gameBoard[0][2] == ai)\n return +10;\n else if (gameBoard[0][2] == human)\n return -10;\n }\n // Else if none of them have won then return 0\n return 0;\n }", "public int[] getOutcomes() {\n int outcomes[] = new int[this.faces];\n for (int outcome = 0; outcome < this.faces; outcome++) {\n outcomes[outcome] = outcome + 1;\n }\n return outcomes;\n }", "int score();", "int score();", "int definePassingScore(Speciality speciality) throws LogicException;", "public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }", "public int generateScore(List<Integer> line){\r\n\t\tif (line.get(0)+line.get(1)+line.get(2)==2 ) {\r\n\t\t\treturn 10;\r\n\t\t}\r\n\t\telse if (line.get(0)==line.get(1)&&line.get(1)==line.get(2) && line.get(0)==line.get(2)) {\r\n\t\t\treturn 5;\r\n\t\t}\r\n\t\telse if (line.get(0)!=line.get(1)&&line.get(0)!=line.get(2)) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\t\r\n\t\r\n\t}", "int getEvaluations();", "private static int getInt()\n\t{\n\t\tScanner kb;\n\t\tint Val;\n\t\tkb = new Scanner(System.in);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\n\t\twhile (!kb.hasNextInt())\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\tkb = new Scanner(System.in);\n\t\t}\n\t\t\n\t\tVal = kb.nextInt();\n\t\t\n\t\twhile (Val < 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Fail. Try harder!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\t\n\t\t\twhile (!kb.hasNextInt())\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\t\tkb = new Scanner(System.in);\n\t\t\t}\n\t\t\tVal = kb.nextInt();\n\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t\treturn Val;\n\t\t\n\t}", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public int defaultAnomaly(int total);", "private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }", "@Override\n\tpublic Integer evaluate() {\n\t\treturn Integer.parseInt(this.getValue());\n\t}", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "private int generatePiece()\n\t{\n\t\tint toReturn = 0;\n\t\tint max = 1;\n\t\tint min = -1;\n\t\t\n\t\twhile(toReturn == 0)\n\t\t{\n\t\t\ttoReturn = r.nextInt((max - min) + 1) + min;\n\t\t}\n\t\tSystem.out.println(toReturn);\n\t\treturn toReturn;\n\t}", "int getAbilityValue(Unit source);", "public int getResult() {\n whiteTotal = 0;\n blackTotal = 0;\n rest = 0;\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int column = 0; column < BOARD_SIZE; column++) {\n if (board[row][column] == BLACK) {\n blackTotal++;\n } else if (board[row][column] == WHITE) {\n whiteTotal++;\n } else {\n rest++;\n }\n }\n }\n int winner = -1;\n if (rest == 0) {\n if (blackTotal < whiteTotal) {\n winner = 1;\n } else if (blackTotal > whiteTotal) {\n winner = 2;\n } else {\n winner = 0;\n }\n }\n\n if (blackTotal == 0 || whiteTotal == 0) {\n\n if (blackTotal != 0) {\n winner = 2;\n } else if (whiteTotal != 0) {\n winner = 1;\n }\n }\n\n if (getValidateMoveList('W', 'B').isEmpty() && getValidateMoveList('B', 'W').isEmpty()) {\n\n if (blackTotal < whiteTotal) {\n winner = 1;\n } else if (blackTotal > whiteTotal) {\n winner = 2;\n } else {\n winner = 0;\n }\n }\n return winner;\n }", "@Override\n public int calculateBattleValue() {\n return calculateBattleValue(false, false);\n }", "public int getOfYourChoiceOutput() {\n return ofYourChoiceOutput;\n }", "public int computeGameSituation() {\n\t\treturn computeGameSituation(checkerboard);\n\t}", "private static Integer getOutcome(List<String> row) {\n\t return Integer.parseInt(row.get(8));\n\t}", "public int evalBoard(){\n if (wins('o')){\n return 3;\n }\n // Return 0 if human wins\n else if (wins('b')){\n return 0;\n }\n //Return 2 if game is draw\n else if (isDraw()){\n return 2;\n }\n // Game is not a draw and no player has won. Game is still undecided.\n else {\n return 1;\n }\n }", "@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}", "public int getAnswer(){\n return getVectorOne().getSteps() + getVectorTwo().getSteps();\n }", "public int calcPassedCourseNum(){\n int score = 0;\n \n score += course1.isPassed() ? 1 : 0;\n score += course2.isPassed() ? 1 : 0;\n score += course3.isPassed() ? 1 : 0;\n \n return score;\n }", "public int calculate() {\n \ttraversal(root);\n \tif(!calResult.isEmpty()){\n \t\tint answer = Integer.parseInt(calResult.pop());\n \t\treturn answer;\n \t}\n return 0;\n }", "public static int getRulesPassed(){\r\n\t\treturn rulesPassed;\r\n\t}", "private int run() {\r\n int[] num = new int[13];\r\n boolean IsRun = false;\r\n int count = 0, index=0, combination=1;\r\n for (String aCard : Card) {\r\n switch (aCard.substring(0, 1)) {\r\n case \"A\":\r\n num[0]++;\r\n continue;\r\n case \"2\":\r\n num[1]++;\r\n continue;\r\n case \"3\":\r\n num[2]++;\r\n continue;\r\n case \"4\":\r\n num[3]++;\r\n continue;\r\n case \"5\":\r\n num[4]++;\r\n continue;\r\n case \"6\":\r\n num[5]++;\r\n continue;\r\n case \"7\":\r\n num[6]++;\r\n continue;\r\n case \"8\":\r\n num[7]++;\r\n continue;\r\n case \"9\":\r\n num[8]++;\r\n continue;\r\n case \"T\":\r\n num[9]++;\r\n continue;\r\n case \"J\":\r\n num[10]++;\r\n continue;\r\n case \"Q\":\r\n num[11]++;\r\n continue;\r\n case \"K\":\r\n num[12]++;\r\n }\r\n }\r\n\r\n for (int i = 1; i < 14; i++) {\r\n if (num[i-1]!=0){\r\n count++;\r\n index=i-1;\r\n }\r\n if (count>=3){\r\n IsRun=true;\r\n }\r\n if (i<13) {\r\n if (num[i] == 0 && IsRun) { //if there is a run already, break the recursion if the next num doesn't exist.\r\n break;\r\n }\r\n if (num[i] == 0 && !IsRun) {\r\n count = 0;\r\n index = 0;\r\n }\r\n }\r\n }\r\n\r\n if (IsRun){\r\n for (int i = index-count+1; i < index+1; i++) {\r\n combination*=num[i];\r\n }\r\n return combination*count;\r\n }\r\n return 0;\r\n }", "public int evaluate() {\n return Condition.INDETERMINATE;\n }", "protected abstract int evaluate(GameState state, String playername);", "int getComparisons();", "public static int getRandomTask() {\n double p = rand.nextDouble(); // required probs given in Question\n for (int i = 0; i < 6; i++) {\n if (p <= prob[i])\n return i;\n }\n return 1;\n }", "public String run() {\n\t\tint[][] ways = new int[COINS.length + 1][TOTAL + 1];\n\t\tways[0][0] = 1;\n\t\tfor (int i = 0; i < COINS.length; i++) {\n\t\t\tfor (int j = 0; j <= TOTAL; j++)\n\t\t\t\tways[i + 1][j] = ways[i][j] + (j >= COINS[i] ? ways[i + 1][j - COINS[i]] : 0); // Dynamic programming\n\t\t}\n\t\treturn Integer.toString(ways[COINS.length][TOTAL]);\n\t}", "public static int getExamScore(boolean SAT_Score, String prompt) \n {\n if(SAT_Score)\n {\n System.out.println(\"\\t Enter \" + prompt + \" score between 200 and 800: \");\n int response = console.nextInt();\n if(response>=200 && response <=800)\n {\n return response;\n }\n else\n {\n throw new IllegalArgumentException(\"Value must be between 200 and 800.\");\n }\n }\n else\n {\n System.out.println(\"\\t Enter \" + prompt + \" score between 1 and 36: \");\n int response = console.nextInt();\n if(response>=1 && response <=36)\n {\n return response;\n }\n else\n {\n throw new IllegalArgumentException(\"Value must be between 200 and 800.\");\n }\n }\n }", "@Test\r\n public void testCalcScore() {\r\n \r\n //initialize variables\r\n int year = 0;\r\n int wheat = 0;\r\n int population = 0;\r\n int acres = 0;\r\n double expResult = 0;\r\n double result = 0;\r\n \r\n //test one - valid test\r\n System.out.println(\"Test 01\");\r\n year = 1;\r\n wheat = 100;\r\n population = 50;\r\n acres = 50;\r\n expResult = 1200.0;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test two - invalid year\r\n System.out.println(\"Test 02\");\r\n year = 0;\r\n wheat = 100;\r\n population = 50;\r\n acres = 50;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test three - invalid wheat\r\n System.out.println(\"Test 03\");\r\n year = 3;\r\n wheat = -350;\r\n population = 100;\r\n acres = 5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test four - invalid acres\r\n System.out.println(\"Test 04\");\r\n year = 1;\r\n wheat = 25;\r\n population = 5;\r\n acres = -5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test five - invalid population\r\n System.out.println(\"Test 05\");\r\n year = 2;\r\n wheat = 35;\r\n population = -50;\r\n acres = 3;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test six - multiple invalids\r\n System.out.println(\"Test 06\");\r\n year = -1;\r\n wheat = -100;\r\n population = -5;\r\n acres = -1;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test seven - single invalid, positive result\r\n System.out.println(\"Test 07\");\r\n year = 2;\r\n wheat = 100;\r\n population = -50;\r\n acres = 5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n }", "private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }", "public static void getGameSituationTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 17060 };\n\n\t\tint tempResult;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempResult = tempEnvironment.computeGameSituation(tempTestStates[i]);\n\t\t\tSystem.out.println(\"The game situation of \" + tempTestStates[i] + \" is: \" + tempResult);\n\t\t} // Of for i\n\t}", "private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }", "public int attackRoll(){\r\n\t\treturn (int) (Math.random() * 100);\r\n\t}", "public Result getResult(IMatch m) {\n if (m.getHomeTeam().equals(\"Sporting\")) return Result.AWAY;\n if (m.getAwayTeam().equals(\"Sporting\")) return Result.HOME;\n \n return gen.getRandomResult();\n }", "public int logic4()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "default int[] runAll(String playerAChoice, String playerBChoice) throws IOException{\n\t\tfinal int[] result = new int[2];\n\t\tresult[0] = getNumber(true, playerAChoice);\n\t\tresult[1] = getNumber(false, playerBChoice);\n\t\treturn result;\n\t}", "public void decideResult() {\n\t\t\n\t\tif (mUser.getHandValue() < 22 && mUser.getHandValue() > mDealer.getHandValue()) {\n\t\t\tmResult = \"win\";\n\t\t}else if(mUser.getHandValue() < 22 && mUser.getHandValue() == mDealer.getHandValue()) {\n\t\t\tmResult = \"draw\";\n\t\t}else {\n\t\t\tmResult = \"lose\";\n\t\t}\n\t\t\n\t}", "public int setRollResult(int diceAmount, int diceSides) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < diceAmount; i++) {\n\t\t\tresult += diceBag.rollDice(diceSides);\n\t\t}\n\t\treturn result;\n\t}", "private int calculateResultQ4(boolean radioButton1) {\n int result = 0;\n if (radioButton1) {\n result = 1;\n }\n return result;\n }", "@Test\n public void testGetFuelNeeded() {\n System.out.println(\"getFuelNeeded\");\n \n // Test case 1\n \n System.out.println(\"\\tTest case #1\");\n \n //input values for test case 1\n int quadrantCount = 5;\n int sectorCount = 6;\n \n int expResult = 31; //expcected output\n \n \n //create instance of FuelNeededControl\n FuelNeededControl instance = new FuelNeededControl();\n \n //call function to run test\n int result = instance.getFuelNeeded(quadrantCount, sectorCount);\n \n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n //Test case #2\n \n System.out.println(\"\\tTest case #2\");\n \n //input vales for test case 2\n \n quadrantCount = -1;\n sectorCount = 0;\n \n expResult = -1; //expected output of returned value\n \n //call function to run test\n result = instance.getFuelNeeded(quadrantCount, sectorCount);\n \n //compare expected return value with the actual value returned\n assertEquals(expResult, result);\n \n \n \n//Test case #3\n \n System.out.println(\"\\tTest case #3\");\n \n //input vales for test case 3\n \n quadrantCount = 0;\n sectorCount = -1;\n \n expResult = -2; //expected output of returned value\n \n //call function to run test\n result = instance.getFuelNeeded(quadrantCount, sectorCount);\n \n //compare expected return value with the actual value returned\n assertEquals(expResult, result);\n \n \n\n//Test case #4\n \n System.out.println(\"\\tTest case #4\");\n \n //input vales for test case 4\n \n quadrantCount = -1;\n sectorCount = -1;\n \n expResult = -1; //expected output of returned value\n \n //call function to run test\n result = instance.getFuelNeeded(quadrantCount, sectorCount);\n \n //compare expected return value with the actual value returned\n assertEquals(expResult, result);\n \n \n \n \n //Test case #5\n \n System.out.println(\"\\tTest case #5\");\n \n //input vales for test case 5\n \n quadrantCount = 5;\n sectorCount = 0;\n \n expResult = 25; //expected output of returned value\n \n //call function to run test\n result = instance.getFuelNeeded(quadrantCount, sectorCount);\n \n //compare expected return value with the actual value returned\n assertEquals(expResult, result);\n \n \n \n //Test case #6\n \n System.out.println(\"\\tTest case #6\");\n \n //input vales for test case 6\n \n quadrantCount = 0;\n sectorCount = 6;\n \n expResult = 6; //expected output of returned value\n \n //call function to run test\n result = instance.getFuelNeeded(quadrantCount, sectorCount);\n \n //compare expected return value with the actual value returned\n assertEquals(expResult, result);\n \n \n \n \n //Test case #7\n \n System.out.println(\"\\tTest case #7\");\n \n //input vales for test case 7\n \n quadrantCount = 5;\n sectorCount = 6;\n \n expResult = 31; //expected output of returned value\n \n //call function to run test\n result = instance.getFuelNeeded(quadrantCount, sectorCount);\n \n //compare expected return value with the actual value returned\n assertEquals(expResult, result);\n }", "public int getWinner();", "public int logic1()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\r\n\t\t\r\n\t\treturn changesMade;\r\n\t\t\t\t\t\r\n\t}", "protected abstract boolean canGenerateScore();", "@Test\r\n\tpublic void testPositiveGenerateInteger_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "int getScore();", "public int readDifficulty() {\n\t\t\t\t\tSystem.out.println(\"Choose difficulty level: \\n 1 \\n 2 \\n 3 \\n 4\");\n\t\t\t\t\tint j= 0;\n\t\t\t\t\tj = resp.nextInt();\n\t\t\t\t\tswitch (j) {\n\t\t\t\t\t//A difficulty level of 1 shall limit random numbers to the range of 0-9, inclusive\n\t\t case 1: j = 10; \n\t\t break;\n\t\t //A difficulty level of 2 shall limit random numbers to the range of 0-99, inclusive\n\t\t case 2: j = 100;\n\t\t break;\n\t\t // A difficulty level of 3 shall limit random numbers to the range of 0-999, inclusive\n\t\t case 3: j = 1000;\n\t\t break;\n\t\t //A difficulty level of 3 shall limit random numbers to the range of 0-999, inclusive\n\t\t case 4: j = 10000;\n\t\t break;}\n\t\t return j;\n\t\t\t\t\t\n\t\t\t\t\t\n\n\n\t\t}", "public int getValue();", "public int getValue();", "public abstract int getLapResult();", "public char calculate() {\r\n\t\tchar resultado=0;\r\n\t\tint sumatoria=0;\r\n\t\tint promedio=0;\r\n\t\t\r\n\tfor (int i = 0; i < testScores.length; i++) {\r\n\t\t\r\n\t\tsumatoria += testScores[i];\r\n\t\tpromedio=sumatoria/testScores.length;\r\n\t\t\r\n\t\tif (promedio>=90 && promedio <=100) {\r\n\t\t\tresultado='O';\r\n\t\t}else\r\n\t\tif (promedio>=80 && promedio <90) {\r\n\t\t\tresultado='E';\r\n\t\t}else\r\n\t\tif (promedio>=70 && promedio <80) {\r\n\t\t\tresultado='A';\r\n\t\t}else\r\n\t\tif (promedio>=55 && promedio <70) {\r\n\t\t\tresultado='P';\r\n\t\t}else\r\n\t\tif (promedio>=40 && promedio <55) {\r\n\t\t\tresultado='D';\r\n\t\t}else\r\n\t\t\tresultado='T';\r\n\t\t\r\n\t}\r\n\t return resultado;\t\r\n\t\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateInteger_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public int getTrueValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start getTrueValue Method ***************/\n\n // Return true value\n return trueValue;\n\n }", "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "int getNumber(boolean playerA, String playerChoice) throws IOException;", "List<Ranking> calculateOutcomeRanks(List<Instruction> instructions);", "private static void evaluateCase() {\n try {\n int n = SYS_IN.nextInt();\n int m = SYS_IN.nextInt();\n SYS_IN.nextLine();\n int mn = Integer.MAX_VALUE;\n long sum = 0L;\n int num;\n int sign = 1;\n for (int ni = 0; ni < n; ni++) {\n for (int mi = 0; mi < m; mi++) {\n num = SYS_IN.nextInt();\n if (num < 0) {\n sign *= -1;\n num = -num;\n }\n sum += num;\n mn = Math.min(mn, num);\n }\n SYS_IN.nextLine();\n }\n if (sign == -1) {\n sum -= 2 * mn;\n }\n System.out.println(sum);\n } catch (Exception e) {}\n }", "public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }", "@Test\n public void shouldCurrentGameBeZeroWhenStartingGame() {\n\n int expResult = 0 ;\n int result = scoreService.getCurrentGame() ;\n assertThat(expResult, is(result) ) ;\n }", "@Test\n public void testCalculateScore() {\n System.out.println(\"calculateScore\");\n String input1 = \"8 0 3 1 6 5 -2 4 7 1 3 -2 6\";\n String input2 = \"8 0 3 1 6 5 -2 4 7 3 2 -2 6\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult1 = 2;\n int expResult2 = 4;\n int result1 = instance.calculateScore(input1);\n assertEquals(result1, expResult1);\n int result2 = instance.calculateScore(input2);\n assertEquals(result2, expResult2);\n }" ]
[ "0.6800778", "0.6571504", "0.6127514", "0.6072367", "0.60653096", "0.5999212", "0.59728473", "0.5913684", "0.5862464", "0.5862464", "0.58316493", "0.58198494", "0.58083403", "0.5781404", "0.5770064", "0.57669085", "0.5747497", "0.5735086", "0.57149184", "0.57011384", "0.5700131", "0.5677872", "0.566484", "0.5640582", "0.5612675", "0.560601", "0.5570618", "0.5566827", "0.5563201", "0.5557568", "0.55525386", "0.5550551", "0.55475014", "0.55397344", "0.55397344", "0.5538112", "0.5519603", "0.5516375", "0.5503391", "0.55022055", "0.5496329", "0.5496329", "0.5496329", "0.5496329", "0.5496329", "0.5493271", "0.54907376", "0.54526097", "0.5452298", "0.5448243", "0.5447462", "0.54419255", "0.5440388", "0.5431484", "0.5431276", "0.54229534", "0.5421926", "0.54181105", "0.54141873", "0.5411602", "0.5409657", "0.54089934", "0.5400473", "0.5399182", "0.53960127", "0.5392054", "0.53893244", "0.53827363", "0.5374867", "0.53712904", "0.53700745", "0.53585887", "0.5355346", "0.5346006", "0.5340042", "0.53254837", "0.53231704", "0.5319575", "0.5319114", "0.5311578", "0.53073084", "0.52993757", "0.52955294", "0.52905804", "0.5290512", "0.5286419", "0.52859795", "0.528523", "0.528523", "0.52848", "0.52847683", "0.52827317", "0.528121", "0.5272966", "0.5271129", "0.52641934", "0.5245811", "0.5244457", "0.52432066", "0.5241233" ]
0.60285836
5
module implement IoC pattern
private EventLogger initEventLogger(Review review) { //reduce coupling EventLogger eventLogger = loggerMap.get(getRating(review).toString()); if (eventLogger==null){ eventLogger = loggerMap.get(DEFAULT); } return eventLogger; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}", "private ModuleServiceImpl(){\n\t\t//initialize local data.\n\t\tfactories = new ConcurrentHashMap<String, IModuleFactory>();\n\t\tstorages = new ConcurrentHashMap<String, IModuleStorage>();\n\t\tcache = new ConcurrentHashMap<String, Module>();\n\t\tmoduleListeners = new ConcurrentHashMap<String, IModuleListener>();\n\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"Created new ModuleServiceImplementation\");\n\t\t}\n\n\t\tConfigurationManager.INSTANCE.configure(this);\n\t}", "@Singleton\n@Component(\n modules = {\n AppModule.class,\n ObjectBoxModule.class\n })\npublic interface AppComponent {\n void inject(ToDoListActivity activity);\n void inject(TaskEditorActivity activity);\n //void inject(ICommonRepository repository);\n //ICommonRepository repo();\n}", "public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}", "public interface IApplicationInjector {\r\n\t\r\n\tpublic Runnable getServerListener(int port, int poolSize) throws ApplicationException;\r\n\t\r\n\tpublic Runnable getWorker(Socket socket) throws ApplicationException;\r\n\t\r\n\tpublic IFileUtil getFileUtil() throws ApplicationException;\r\n\r\n}", "@Singleton @Component(modules = {ApplicationModule.class, ApiModule.class})\npublic interface ApplicationComponent {\n Context getContext();\n Bus getBus();\n TRApi getTRApi();\n\n void inject(ZhihuApplication zhihuApplication);\n\n void inject(BaseNewActivity baseNewActivity);\n}", "public interface InitConnectionService {\n void initConnection();\n\n void destroyConnection();\n\n void freeConnection();\n}", "@Singleton\n@Component (modules = {\n PagoPaAPIModule.class,\n NetModule.class,\n LogModule.class\n})\npublic interface PagoPaAPIComponent {\n PagoPaAPI getPagoPaAPI();\n}", "@Singleton\n@Component(modules = {AppModule.class, NetworkModule.class,PresenterModule.class})\npublic interface AppComponent {\n\n // void inject(DisplayMovieActivity displayMovieActivity );\n\n //register main activity it will need objects for injection\n void inject(MoviesListFragment moviesListFragment);\n\n //register MainPresenter it will need objects for injection\n void inject(MoviesListPresenter moviesListPresenter);\n\n void inject(MoviesDetailsFragment moviesDetailsFragment);\n void inject(MoviesDetailsPresenter moviesDetailsPresenter);\n\n\n}", "@Singleton\n@Component(modules = {AppModule.class, NetModule.class, DataModule.class})\npublic interface NetComponent {\n Retrofit retrofit();\n\n UserDatabase userDatabase();\n\n UserDao userDao();\n}", "interface Injector {\n void inject(InternalContext context, Object o);\n }", "public interface ModuleCall {\n void initContext(Context context);\n}", "public interface CacheConfigService {\n Cache init();\n\n void close();\n}", "@Component(modules = WheelsModule.class)\npublic interface CarComponent {\n Car getCar();\n void inject(MainActivity activity); //se necesita declarar especificamente la activity para la forma 2\n}", "public interface IGameDAO {\n static final Logger LOG = LoggerFactory.getLogger(IGameDAO.class);\n\n public Game getGame(Game example);\n\n public Game createOrUpdate(Game game);\n\n public static class FACTORY {\n\n private static IGameDAO instance = null;\n\n public static IGameDAO getInstance() {\n if(instance == null) {\n synchronized (IGameDAO.class) {\n if(instance == null) {\n try {\n instance = Factory.getImplementation(IGameDAO.class);\n } catch(Exception e) {\n LOG.error(\"Exception getting instance of IGameDAO\", e);\n }\n }\n }\n }\n return instance;\n }\n }\n}", "@Singleton\r\n@Component(modules = {UIModule.class, InteractorModule.class, MockModelModule.class, MockNetworkModule.class})\r\npublic interface MockAnimalFindApplicationComponent extends AnimalFindApplicationComponent {\r\n}", "public interface Provider{\n Service newService();\n}", "private ServiceLocator(){}", "private RecipleazBackendService() {\n }", "@Singleton\n@Component(modules = ImeiMainModule.class)\npublic interface ImeiMainComponent {\n void inject(ImeiAplication app);\n\n //Exposed to sub-graphs.\n ImeiAplication app();\n}", "@Component(modules = {ApplicationModule.class,HttpModule.class})\npublic interface ApplicationComponent {\n\n MyApp getApplication();\n\n NewsApi getNetEaseApi();\n\n JanDanApi getJanDanApi();\n\n Context getContext();\n\n}", "public interface IModuleRepo {\n\n /**\n * @return true if this repository has been initialized.\n */\n boolean isInitialized();\n\n /**\n * Initializes the repository.\n */\n void initialize(int shards, Integer shardIndex, File testsDir, Set<IAbi> abis,\n List<String> deviceTokens, List<String> testArgs, List<String> moduleArgs,\n Set<String> mIncludeFilters, Set<String> mExcludeFilters,\n MultiMap<String, String> metadataIncludeFilters,\n MultiMap<String, String> metadataExcludeFilters,\n IBuildInfo buildInfo);\n\n /**\n * @return a {@link LinkedList} of all modules to run on the device referenced by the given\n * serial.\n */\n LinkedList<IModuleDef> getModules(String serial, int shardIndex);\n\n /**\n * @return the number of shards this repo is initialized for.\n */\n int getNumberOfShards();\n\n /**\n * @return the modules which do not have token and have not been assigned to a device.\n */\n List<IModuleDef> getNonTokenModules();\n\n /**\n * @return the modules which have token and have not been assigned to a device.\n */\n List<IModuleDef> getTokenModules();\n\n /**\n * @return An array of all module ids in the repo.\n */\n String[] getModuleIds();\n\n /**\n * Clean up all internal references.\n */\n void tearDown();\n}", "public interface Initialiser {\n\n /**\n * This is the method that prepare the environment.Any prerequisites are supposed to be downloaded and prepped\n */\n File prepareEnvironment();\n\n void writeBuildGradleTemplate(File projectRootDir);\n\n void writeWebXmlFile(File projectRootDir);\n\n void writeGitIgnoreFile( File projectRootDir);\n\n void writeServiceModuleClass(File projRootDir);\n\n void writeRootRouterClass(File projRootDir);\n\n void writeMetaRouterClass(File projectRootDir);\n\n void writePingResourceClass(File projectRootDir);\n}", "private Injector() {\n }", "@Component(\n modules = {\n ComputerModule.class,\n AccessoriesModule.class,\n DrinksModule.class\n }\n)\npublic interface DemoComponent {\n\n Programmer programmer();\n void inject(MainActivity activity);\n\n}", "public interface MainProvider extends IProvider {\n void providerMain(Context context);\n}", "@Singleton\n@Component(\n modules = {\n AppModule.class,\n DataModule.class,\n InfoModule.class,\n FlavorModule.class\n }\n)\npublic interface AppComponent {\n\n void inject(HardwiredApp app);\n void inject(AddComputerDialog dialog);\n void inject(ComputerRecyclerAdapter adapter);\n\n DirectoryComponent plus(DirectoryModule module);\n DetailComponent plus(DetailModule module);\n}", "public interface ConfigService {\n\n\n /**\n * eureka配置\n *\n * @param sb\n * @param addr\n */\n void eureka(StringBuilder sb, String addr);\n\n /**\n * redis配置\n *\n * @param sb\n * @param addr\n */\n void redis(StringBuilder sb, String addr);\n\n\n /**\n * 数据源配置\n *\n * @param sb\n */\n void thymeleafAndDatasource(StringBuilder sb);\n\n\n /**\n * 关于mybatis的配置\n *\n * @param sb\n * @param packages\n */\n void mybatis(StringBuilder sb, String packages);\n\n\n /**\n * 分页插件配置\n *\n * @param sb\n */\n void pagehelper(StringBuilder sb);\n\n /**\n * 生成application.yml\n *\n * @param name\n */\n void application(String name);\n\n\n /**\n * 生成application-xxx.yml\n *\n * @param branch\n * @param packages\n */\n void applicationBranch(String branch, String packages);\n\n\n /**\n * log文件\n *\n */\n void logBack();\n}", "public interface IPresenter {\n\n /**\n * 做一些初始化操作\n */\n void onStart();\n\n /**\n * 在框架中会默认调用\n */\n void onDestroy();\n\n}", "public interface ModuleService {\n\n /**\n * 获取所有模块信息\n * @return\n */\n List<Module> getAllModule();\n\n Show getModuleAndPart();\n\n List<Module> findModuleByPartId(int typeNum);\n\n /**\n * 添加模块\n * @param partId\n * @param name\n * @param description\n * @param photo\n * @return\n */\n Show addModule(int partId, String name, String description, String photo);\n\n /**\n * 模块图片上传至服务器\n * @param stream\n * @param path\n * @param file\n */\n void savepic(InputStream stream, String path, String file);\n\n /**\n * 修改模块名称\n * @param id\n * @param name\n * @return\n */\n Show changeModuleName(int id, String name);\n\n /**\n * 修改模块描述信息\n * @param id\n * @param description\n * @return\n */\n Show changeModuleDescription(int id, String description);\n\n /**\n * 修改模块图片信息\n * @param id\n * @param photo\n * @return\n */\n Show changeModulePhoto(int id, String photo);\n\n /**\n * 移除模块\n * @param id\n * @return\n */\n Show moveModule(int id);\n\n \n Module findModuleById(int moduleId);\n}", "@Singleton\n@Component(modules = {RecipeRepositoryModule.class, DbModule.class,\n PreferenceModule.class, BakingAppModule.class})\npublic interface RecipeRepositoryComponent {\n DataRepository getDataRecipeRepository();\n}", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n @ApplicationContext\n Context context();\n\n void inject(ZoloApplication zoloApplication);\n\n DataManagerLogic datamangerLogic();\n\n Application application();\n\n}", "@Component(dependencies = ApplicationComponent.class)\npublic interface HttpComponent {\n\n void inject(VideoFragment videoFragment);\n\n void inject(DetailFragment detailFragment);\n\n void inject(JdDetailFragment jdDetailFragment);\n\n void inject(ImageBrowseActivity imageBrowseActivity);\n\n void inject( com.lunioussky.orirea.ui.news.DetailFragment detailFragment);\n\n void inject(ArticleReadActivity articleReadActivity);\n\n void inject(NewsFragment newsFragment);\n\n}", "public interface IApiManager {\n public BoatitService getSERVICE();\n}", "public interface Provider {\n Service newService();\n}", "public interface Provider {\n Service newService();\n}", "@Component(modules = {LocalModule.class, NetworkModule.class}, dependencies = ApplicationComponent.class)\npublic interface BaseComponent {\n\n OKHttp getOkHTTP();\n\n Retrofit getRetrofit();\n\n LocalDataCache getLocalDataCache();\n}", "public interface PointAService {\r\n\r\n\t/**\r\n\t * Initialisation function called directly after construction\r\n\t * \r\n\t * @param pParams\r\n\t * Map containing parameters specified in PointAConfig.xml\r\n\t */\r\n\tpublic void init(Map<String, String> pParams, Application pApp) throws Exception;\r\n}", "public interface HomeModuleService extends ModuleCall{\n}", "private static interface Service {}", "private void inject() {\n }", "public interface BaseModel {\n public static IHttp iHttp = HttpFactory.create();\n\n public static IHttp getiHttp=HttpFactory.create1();\n}", "public interface RegisterIntegrationObjectService\n{\n\t/**\n\t * For the given ICC create the exposed destinations\n\t *\n\t * @param destinationTargets given destination targets\n\t * @param inboundChannelConfig given ICC\n\t * @param credential given credentials to be used for the exposed destination\n\t */\n\tvoid createExposedDestinations(List<DestinationTargetModel> destinationTargets,\n\t InboundChannelConfigurationModel inboundChannelConfig,\n\t AbstractCredentialModel credential);\n\n\t/**\n\t * Create exposed OAuth credential for the exposed destination\n\t *\n\t * @param integrationCCD given integration CCD\n\t */\n\tvoid createExposedOAuthCredential(IntegrationClientCredentialsDetailsModel integrationCCD);\n\n\t/**\n\t * Create basic credential based on the an existing employee\n\t *\n\t * @param username given employee ID\n\t * @param password given employee password\n\t * @return returns associated basic credential with the employee\n\t */\n\tAbstractCredentialModel createBasicCredential(String username, String password);\n\n\t/**\n\t * Create OAuth credential based on the an existing employee\n\t *\n\t * @param employee given employee\n\t * @return returns associated OAuth credential with the employee\n\t */\n\tAbstractCredentialModel createOAuthCredential(EmployeeModel employee);\n\n\t/**\n\t * Read destination targets\n\t *\n\t * @return destination targets\n\t */\n\tList<DestinationTargetModel> readDestinationTargets();\n\n\t/**\n\t * Read basic credentials\n\t *\n\t * @return basic credentials\n\t */\n\tList<BasicCredentialModel> readBasicCredentials();\n\n\t/**\n\t * Read exposed OAuth credentials\n\t *\n\t * @return exposed OAuth credentials\n\t */\n\tList<ExposedOAuthCredentialModel> readExposedOAuthCredentials();\n\n\t/**\n\t * Read employees\n\t *\n\t * @return employees\n\t */\n\tList<EmployeeModel> readEmployees();\n}", "private InjectorManager() {\n // no prepared injectors\n }", "public interface MineService {\n}", "@GinModules(InjectorModule.class)\npublic interface Injector extends Ginjector {\n PlaceHistoryHandler getPlaceHistoryHandler();\n MainView getAppWidget();\n}", "@Component(modules = ActivityModule.class)\npublic interface ActivityComponent {\n\n void injectMainActivity(MainActivity activity);\n\n void injectGankActivity(GankActivity activity);\n\n void injectListActivity(ListActivity activity);\n\n void injectMeiziActivity(MeiziActivity activity);\n\n void injectVideoActivity(VideoActivity activity);\n\n void injectWebActivity(WebActivity activity);\n\n}", "@Singleton\n@Component(modules = {ApiModule.class, CarWashCardModule.class})\npublic interface CarWashCardComponent {\n void Inject(CarWashCardFrgm carWashCardFrgm);\n void Inject(CardBagAct cardBagAct);\n}", "@Singleton\n@Component(modules = {NetModule.class})\npublic interface NetComponent {\n void inject(OrderListActivityPresenter presenter);\n\n void inject(MapActivityPresenter presenter);\n\n void inject(LoginActivityPresenter presenter);\n}", "public interface Provider {\n Service newService();\n }", "public interface ModuleConnector {\n /**\n * Connection the reader through serial port.\n * @param port The serial port;\n * @param baud The baud rate;\n * @return if true connecting success,or failed.\n */\n ReaderHelper connectCom(final String port, final int baud);\n\n /**\n * Connection the reader through the network;\n * @param host The ip address;\n * @param port The prot;\n * @return if true connecting success,or failed.\n */\n ReaderHelper connectNet(final String host, final int port);\n\n /**\n * Different data transmission form can import via I/O stream. \n * @param in read steam.\n * @param out write steam.\n * @return {@link #ReaderHelper} return the core class to operate Reader.\n */\n ReaderHelper connect(final InputStream in, final OutputStream out);\n /**\n * Verify the the connection is available or not.\n * @return if true connection available,or unavailable;\n */\n boolean isConnected();\n\n /**\n * Interrupt the connection;\n */\n void disConnect();\n}", "@Component(modules = { MarketBillingModule.class })\npublic interface MarketBillingComponent {\n MarketBilling make();\n}", "@Singleton\n@Component(modules = {ApplicationModule.class, NetModule.class})\npublic interface ApplicationComponent {\n Realm realm();\n\n SharedPreferencesStore sharedPreferencesStore();\n\n Retrofit retrofit();\n\n void inject(MyApplication application);\n\n}", "public interface IManagerService {\n public boolean login(String account, String password);\n public void setInfo(Books[] books);\n public void checkBookType(Books [] books);\n public void checkBookTypeInfo(Books [] books,String type);\n public void setBookNum(Books [] books,int bookId, int bookNum);\n public void modifyInfo(Books [] books,int bookId);\n}", "@Singleton\n@Component(modules = {\n ApplicationModule.class,\n PreferenceModule.class,\n NetworkModule.class,\n ServiceModule.class\n})\npublic interface DiComponent {\n void inject(MainActivity activity);\n}", "@Singleton\n@Component(modules = {ModelModule.class, PresenterModule.class})\npublic interface AppComponent {\n void inject(ModelImpl dataRepository);\n\n void inject(BasePresenter basePresenter);\n\n void inject(PresenterSearch presenterSearch);\n\n void inject(FavouriteActivity favouriteActivity);\n}", "@Inject\n public MachineMonkeyRestApiImpl() {\n }", "@Singleton\n@Component(modules = {UseCaseModule.class, RepositoryModule.class})\npublic interface IRepositoryComponent {\n}", "protected Injector() {\n }", "public interface MainService {\n\n\tMain getMain(Main main) throws DataAccessException;\n\n\tvoid putMain(Main main) throws DataAccessException;\n\n\n}", "@Singleton\n @Component(modules = { DripCoffeeModule.class })\n public interface Coffee {\n CoffeeMaker maker();\n }", "public interface AtmosphereObjectFactory<Z> extends AtmosphereConfigAware {\n\n /**\n * Delegate the creation of Object to the underlying object provider like Spring, Guice, etc.\n *\n * When creating a class, it is important to check if the class can be configured via its implementation\n * of the {@link org.atmosphere.inject.AtmosphereConfigAware}. {@link org.atmosphere.inject.AtmosphereConfigAware#configure(AtmosphereConfig)}\n * should be called in that case.\n *\n * @param classType The class' type to be created\n * @param defaultType a class to be created @return an instance of T\n * @throws InstantiationException\n * @throws IllegalAccessException\n */\n public <T, U extends T> T newClassInstance(Class<T> classType, Class<U> defaultType) throws InstantiationException, IllegalAccessException;\n\n /**\n * Pass information to the underlying Dependency Injection Implementation\n * @param z an Z\n * @return this\n */\n public AtmosphereObjectFactory allowInjectionOf(Z z);\n}", "public interface HttpComponent {\n void inject(MainActivity mainActivity);\n}", "public interface Manager {\n\n}", "public interface ModulesService {\n public static final String BEAN_ID = \"modulesService\";\n\n public Modules findById(Long id);\n\n public List<Modules> findAll();\n\n public Modules save(Modules entity);\n\n public void delete(Modules entity);\n}", "@Singleton\n@Component(modules = UserModule.class, dependencies = FlowerComponent.class)\npublic interface UserComponent {\n User getUser();\n}", "private FacadeCommandOfService() {\n // We retrieve the UserDao\n this.DAO = CommandOfServiceDAO.getInstance();\n this.userDAO = UserDAO.getInstance();\n }", "public interface Comunicator {\n \n\n}", "public static void initializeDiContainer() {\n addDependency(new CamelCaseConverter());\n addDependency(new JavadocGenerator());\n addDependency(new TemplateResolver());\n addDependency(new PreferenceStoreProvider());\n addDependency(new CurrentShellProvider());\n addDependency(new ITypeExtractor());\n addDependency(new DialogWrapper(getDependency(CurrentShellProvider.class)));\n addDependency(new PreferencesManager(getDependency(PreferenceStoreProvider.class)));\n addDependency(new ErrorHandlerHook(getDependency(DialogWrapper.class)));\n\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new GeneratedAnnotationPredicate());\n addDependency(new GenericModifierPredicate());\n addDependency(new IsPrivatePredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsStaticPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsPublicPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new GeneratedAnnotationContainingBodyDeclarationFilter(getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new PrivateConstructorRemover(getDependency(IsPrivatePredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new BuilderClassRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class),\n getDependency(IsPrivatePredicate.class),\n getDependency(IsStaticPredicate.class),\n getDependency(PreferencesManager.class)));\n addDependency(new JsonDeserializeRemover(getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderInterfaceRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new StaticBuilderMethodRemover(getDependency(IsStaticPredicate.class), getDependency(IsPublicPredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BuilderAstRemover(getDependencyList(BuilderRemoverChainItem.class)));\n\n addDependency(new BuilderRemover(getDependency(PreferencesManager.class), getDependency(ErrorHandlerHook.class),\n getDependency(BuilderAstRemover.class)));\n addDependency(new CompilationUnitSourceSetter());\n addDependency(new HandlerUtilWrapper());\n addDependency(new WorkingCopyManager());\n addDependency(new WorkingCopyManagerWrapper(getDependency(HandlerUtilWrapper.class)));\n addDependency(new CompilationUnitParser());\n addDependency(new GeneratedAnnotationPopulator(getDependency(PreferencesManager.class)));\n addDependency(new MarkerAnnotationAttacher());\n addDependency(new ImportRepository());\n addDependency(new ImportPopulator(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new BuilderMethodNameBuilder(getDependency(CamelCaseConverter.class),\n getDependency(PreferencesManager.class),\n getDependency(TemplateResolver.class)));\n addDependency(new PrivateConstructorAdderFragment());\n addDependency(new JsonPOJOBuilderAdderFragment(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new EmptyBuilderClassGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocGenerator.class),\n getDependency(TemplateResolver.class),\n getDependency(JsonPOJOBuilderAdderFragment.class)));\n addDependency(new BuildMethodBodyCreatorFragment());\n addDependency(new BuildMethodDeclarationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(TemplateResolver.class)));\n addDependency(new JavadocAdder(getDependency(JavadocGenerator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuildMethodCreatorFragment(getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(BuildMethodBodyCreatorFragment.class)));\n addDependency(new FullyQualifiedNameExtractor());\n addDependency(new StaticMethodInvocationFragment());\n addDependency(new OptionalInitializerChainItem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new BuiltInCollectionsInitializerChainitem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new FieldDeclarationPostProcessor(getDependency(PreferencesManager.class), getDependency(FullyQualifiedNameExtractor.class),\n getDependency(ImportRepository.class), getDependencyList(FieldDeclarationPostProcessorChainItem.class)));\n addDependency(new BuilderFieldAdderFragment(getDependency(FieldDeclarationPostProcessor.class)));\n addDependency(new WithMethodParameterCreatorFragment(getDependency(PreferencesManager.class), getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new RegularBuilderWithMethodAdderFragment(getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new BuilderFieldAccessCreatorFragment());\n addDependency(new TypeDeclarationToVariableNameConverter(getDependency(CamelCaseConverter.class)));\n addDependency(new FieldSetterAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new IsRegularBuilderInstanceCopyEnabledPredicate(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderCopyInstanceConstructorAdderFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new PublicConstructorWithMandatoryFieldsAdderFragment());\n addDependency(new RegularBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(RegularBuilderWithMethodAdderFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(RegularBuilderCopyInstanceConstructorAdderFragment.class),\n getDependency(PublicConstructorWithMandatoryFieldsAdderFragment.class)));\n addDependency(new StaticBuilderMethodSignatureGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new BlockWithNewBuilderCreationFragment());\n addDependency(\n new RegularBuilderBuilderMethodCreator(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new PrivateConstructorMethodDefinitionCreationFragment(getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new SuperFieldSetterMethodAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new PrivateConstructorBodyCreationFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(FieldSetterAdderFragment.class),\n getDependency(BuilderFieldAccessCreatorFragment.class),\n getDependency(SuperFieldSetterMethodAdderFragment.class)));\n addDependency(new ConstructorInsertionFragment());\n addDependency(new PrivateInitializingConstructorCreator(\n getDependency(PrivateConstructorMethodDefinitionCreationFragment.class),\n getDependency(PrivateConstructorBodyCreationFragment.class),\n getDependency(ConstructorInsertionFragment.class)));\n addDependency(new FieldPrefixSuffixPreferenceProvider(getDependency(PreferenceStoreProvider.class)));\n addDependency(new FieldNameToBuilderFieldNameConverter(getDependency(PreferencesManager.class),\n getDependency(FieldPrefixSuffixPreferenceProvider.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new TypeDeclarationFromSuperclassExtractor(getDependency(CompilationUnitParser.class),\n getDependency(ITypeExtractor.class)));\n addDependency(new BodyDeclarationVisibleFromPredicate());\n addDependency(new ApplicableFieldVisibilityFilter(getDependency(BodyDeclarationVisibleFromPredicate.class)));\n addDependency(new ClassFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(ApplicableFieldVisibilityFilter.class)));\n addDependency(new RecordFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class)));\n addDependency(new BodyDeclarationFinderUtil(getDependency(CamelCaseConverter.class)));\n addDependency(new SuperConstructorParameterCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(BodyDeclarationVisibleFromPredicate.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new SuperClassSetterFieldCollector(getDependency(PreferencesManager.class),\n getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(CamelCaseConverter.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new ApplicableBuilderFieldExtractor(Arrays.asList(\n getDependency(SuperConstructorParameterCollector.class),\n getDependency(ClassFieldCollector.class),\n getDependency(SuperClassSetterFieldCollector.class),\n getDependency(RecordFieldCollector.class))));\n addDependency(new ActiveJavaEditorOffsetProvider());\n addDependency(new ParentITypeExtractor());\n addDependency(new IsTypeApplicableForBuilderGenerationPredicate(getDependency(ParentITypeExtractor.class)));\n addDependency(new CurrentlySelectedApplicableClassesClassNameProvider(getDependency(ActiveJavaEditorOffsetProvider.class),\n getDependency(IsTypeApplicableForBuilderGenerationPredicate.class),\n getDependency(ParentITypeExtractor.class)));\n addDependency(new BuilderOwnerClassFinder(getDependency(CurrentlySelectedApplicableClassesClassNameProvider.class),\n getDependency(PreferencesManager.class), getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new BlockWithNewCopyInstanceConstructorCreationFragment());\n addDependency(new CopyInstanceBuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new RegularBuilderCopyInstanceBuilderMethodCreator(getDependency(BlockWithNewCopyInstanceConstructorCreationFragment.class),\n getDependency(CopyInstanceBuilderMethodDefinitionCreatorFragment.class),\n getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new JsonDeserializeAdder(getDependency(ImportRepository.class)));\n addDependency(new GlobalBuilderPostProcessor(getDependency(PreferencesManager.class), getDependency(JsonDeserializeAdder.class)));\n addDependency(new DefaultConstructorAppender(getDependency(ConstructorInsertionFragment.class), getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new RegularBuilderCompilationUnitGenerator(getDependency(RegularBuilderClassCreator.class),\n getDependency(RegularBuilderCopyInstanceBuilderMethodCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(RegularBuilderBuilderMethodCreator.class), getDependency(ImportPopulator.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new RegularBuilderUserPreferenceDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new RegularBuilderDialogDataConverter());\n addDependency(new RegularBuilderUserPreferenceConverter(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderUserPreferenceProvider(getDependency(RegularBuilderUserPreferenceDialogOpener.class),\n getDependency(PreferencesManager.class),\n getDependency(RegularBuilderDialogDataConverter.class),\n getDependency(RegularBuilderUserPreferenceConverter.class)));\n addDependency(new RegularBuilderCompilationUnitGeneratorBuilderFieldCollectingDecorator(getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(RegularBuilderCompilationUnitGenerator.class),\n getDependency(RegularBuilderUserPreferenceProvider.class)));\n addDependency(new IsEventOnJavaFilePredicate(getDependency(HandlerUtilWrapper.class)));\n\n // staged builder dependencies\n addDependency(new StagedBuilderInterfaceNameProvider(getDependency(PreferencesManager.class),\n getDependency(CamelCaseConverter.class),\n getDependency(TemplateResolver.class)));\n addDependency(new StagedBuilderWithMethodDefiniationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new StagedBuilderInterfaceTypeDefinitionCreatorFragment(getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderInterfaceCreatorFragment(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new StagedBuilderCreationBuilderMethodAdder(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new NewBuilderAndWithMethodCallCreationFragment());\n addDependency(new StagedBuilderCreationWithMethodAdder(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(NewBuilderAndWithMethodCallCreationFragment.class), getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderStaticBuilderCreatorMethodCreator(getDependency(StagedBuilderCreationBuilderMethodAdder.class),\n getDependency(StagedBuilderCreationWithMethodAdder.class),\n getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderWithMethodAdderFragment(\n getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new InterfaceSetter());\n addDependency(new StagedBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(StagedBuilderWithMethodAdderFragment.class),\n getDependency(InterfaceSetter.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new StagedBuilderStagePropertyInputDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new StagedBuilderStagePropertiesProvider(getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(StagedBuilderStagePropertyInputDialogOpener.class)));\n addDependency(new StagedBuilderCompilationUnitGenerator(getDependency(StagedBuilderClassCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(StagedBuilderStaticBuilderCreatorMethodCreator.class),\n getDependency(ImportPopulator.class),\n getDependency(StagedBuilderInterfaceCreatorFragment.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new StagedBuilderCompilationUnitGeneratorFieldCollectorDecorator(\n getDependency(StagedBuilderCompilationUnitGenerator.class),\n getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(StagedBuilderStagePropertiesProvider.class)));\n\n // Generator chain\n addDependency(new GenerateBuilderExecutorImpl(getDependency(CompilationUnitParser.class),\n getDependencyList(BuilderCompilationUnitGenerator.class),\n getDependency(IsEventOnJavaFilePredicate.class), getDependency(WorkingCopyManagerWrapper.class),\n getDependency(CompilationUnitSourceSetter.class),\n getDependency(ErrorHandlerHook.class),\n getDependency(BuilderOwnerClassFinder.class)));\n addDependency(new GenerateBuilderHandlerErrorHandlerDecorator(getDependency(GenerateBuilderExecutorImpl.class),\n getDependency(ErrorHandlerHook.class)));\n addDependency(new StatefulBeanHandler(getDependency(PreferenceStoreProvider.class),\n getDependency(WorkingCopyManagerWrapper.class), getDependency(ImportRepository.class)));\n addDependency(\n new StateInitializerGenerateBuilderExecutorDecorator(\n getDependency(GenerateBuilderHandlerErrorHandlerDecorator.class),\n getDependency(StatefulBeanHandler.class)));\n }", "public interface HelloService extends IProvider{\n void sayHello(String name);\n}", "@Singleton\n@Component(modules = DriverModule.class)\npublic interface AppComponent {\n Driver getDriver();\n}", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n// void inject(BaseActivity baseActivity);\n\n // provide\n Context getContext();\n RxBus getRxBus();\n DaoSession getDaoSession();\n}", "@Singleton\n@Component(modules = {AppModule.class, RetrofitModule.class})\npublic interface AppComponent {\n Context getContext();\n KyApiService getKyApiService();\n WyApiService getWyApiService();\n OpApiService getOpApiService();\n ToutiaoVideoApiService getToutiaoVideoApiService();\n LiveApiService getLiveApiService();\n CloudMusicApiService getCloudMusicApiService();\n}", "public AppModuleImpl() {\n }", "public AppModuleImpl() {\n }", "@Component(modules = { ApplicationModule.class, SettingsDataModule.class, UserDataModule.class, RecipeDataModule.class })\n@ApplicationScope\npublic interface ApplicationComponent {\n\n void inject(HoppyApplication application);\n\n @ApplicationContext\n Context applicationContext();\n Navigator navigator();\n\n UserRepository userRepository();\n RecipeRepository recipeRepository();\n SettingsRepository settingsRepository();\n GetCurrentUserInteractor getCurrentUserInteractor();\n}", "@Singleton\n@Component(modules = {AppModule.class, AppClientModule.class})\npublic interface AppComponent {\n Application getApplication();\n MainViewInteraction getWeatherInteractor();\n}", "@Singleton\n@Component(modules = {ApplicationModule.class, NetWorkModule.class})\npublic interface ApplicationComponent {\n\n Application getApplication();\n\n NetworkApi getNetworkApi();\n\n}", "public interface IWechatService {\n CodeRe sumbit(String image1, String image2, String image3, String billno, String openid, String appid, String nick, String tAppid);\n\n WechatPublicServer getWechatPublic(String id);\n\n WechatUserInfo getUser(String openid);\n\n CodeRe<UserConfig> getUserConfig(Serializable id);\n}", "public interface ConnectionFactory {\r\n\r\n\tString testdir = System.getenv(\"SERVER_MODULES_DIR\");\r\n\tint timeout = 139;\r\n\tList<String> modules = Arrays.asList(\r\n/*\t\t\ttestdir + \"/mod_test.so\",\r\n\t\t\ttestdir + \"/mod_test_dict.so\",*/\r\n\t\t\t\"/usr/lib/rad/module/mod_pam.so\",\r\n/*\t\t\ttestdir + \"/mod_test_enum.so\",\r\n\t\t\ttestdir + \"/mod_test_list.so\",*/\r\n\t\t\t\"/usr/lib/rad/protocol/mod_proto_rad.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tls.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tcp.so\");\r\n\r\n\tpublic Connection createConnection() throws Exception;\r\n\tpublic String getDescription();\r\n}", "@Singleton\n@Component(modules = {ServiceAPIModule.class})\npublic interface ServiceModelComponent {\n void inject(AccountModel model);\n void inject(DataModel model);\n void inject(ImageModel model);\n void inject(ManagerModel model);\n void inject(StethoOkHttpGlideModule module);\n}", "@Singleton\n@Component(modules = {BooksRepositoryModule.class, ApplicationModule.class})\npublic interface BooksRepositoryComponent {\n BooksRepository getBooksRepository();\n}", "@Singleton\n@Component(modules = { AppModule.class, NetModule.class })\npublic interface NetComponent {\n void inject(MainHandler handler);\n}", "@ApplicationScope\n@Component(modules = {ContextModule.class,ServiceModule.class}) // tell which modules to use in order to generate this instance\npublic interface ApplicationComponent {\n\n\n\n SharedPreferencesClass getSharedPrefs();\n\n RequestManager getGlide();\n\n void injectRepo(ProjectRepository repository);\n\n}", "private ServiceFactory() {}", "@Component(modules = CarModule.class)\npublic interface ManComponent {\n void injectMan(Man man);\n}", "public interface LoginRegisterService {\n /**\n *\n * @param user 已经知道账号和密码\n * @return 返回提示字符串\n */\n String login(User user, HttpServletRequest request, HttpServletResponse response);\n //注册\n String register(User user);\n\n //android端登录的service\n Map<String,Objects> androidLogin(User user);\n //android端注册账号\n Map<String,Objects> androidRegister(User user);\n //android端查询用户通过用户的id\n Map androidSelectUserByUserId(User user);\n}", "@Singleton\n@Component(modules = {NetworkModule.class,})\npublic interface CarsComponent {\n void inject(CarsActivity carsActivity);\n\n}", "@Singleton\n@Component( modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n //Exposed to sub-graphs\n Context context();\n\n ThreadExecutor threadExecutor();\n\n PostExecutionThread postExecutionThread();\n\n ObserverController observerController();\n\n Bundle parametersFactory();\n\n void inject(DevxitActivityDelegateImpl<DevxitView, DevxitPresenter<DevxitView>> devxitActivityDelegate);\n}", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public interface IUserService {\n}", "private ORMServiceFactory() { }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@Singleton\n@Component(modules = {AppModule.class, NetModule.class})\npublic interface NetComponent {\n void inject(FragmentInfoTwo fragmentInfoTwo);\n void inject(InfoConfirmActivity infoConfirmActivity);\n void inject(InfoCreateAccount infoCreateAccount);\n void inject(InfoSelectPriceActivity infoSelectPriceActivity);\n void inject(InfoSubscribeStripeActivity infoSubscribeStripeActivity);\n void inject(InfoUpgradeChooseCardActivity infoUpgradeChooseCardActivity);\n void inject(ActivityAuthorization activityAuthorization);\n void inject(ActivityCalendar activityCalendar);\n void inject(ActivityExoPlayer activityExoPlayer);\n void inject(ActivityForgotPassword activityForgotPassword);\n void inject(ActivityLoading activityLoading);\n void inject(FragmentChangePassword fragmentChangePassword);\n void inject(FragmentChannelsUkr fragmentChannelsUkr);\n void inject(FragmentEditProfile fragmentEditProfile);\n void inject(FragmentLanguage fragmentLanguage);\n void inject(FragmentPlanSettings fragmentPlanSettings);\n void inject(FragmentPlanSettingsCurrent fragmentPlanSettingsCurrent);\n void inject(FragmentTimeZone fragmentTimeZone);\n\n}", "@Singleton\n@Component(modules = {AppModule.class, ConnexionModule.class})\npublic interface ConnexionComponent {\n void inject(ConnexionActivity activity);\n void inject(ChatFragment fragment);\n}", "@Singleton\n@Component(modules={\n AccountServiceModule.class,\n UserServiceModule.class,\n ConnectionModule.class,\n RemoteAccountModule.class,\n DaoModule.class,\n AuthenticationModule.class,\n CSVGeneratorModule.class,\n EmailServiceModule.class\n})\npublic interface ApplicationComponent {\n\n /**\n * The view needs classes defined in the services. The inject method\n * lets us do this.\n * Create an inject method for every different classes (controllers) in the views that would need them\n * @param myMoneyApplication\n */\n void inject(MyMoneyApplication myMoneyApplication);\n\n void inject(LoginController loginController);\n\n void inject(AccountListController accountListController);\n\n void inject(SignUpController signUpController);\n\n void inject(TransactionTableController tableController);\n\n void inject(UpdateUserAccountController updateUserAccountController);\n\n void inject(AllTransactionsController allTransactionsController);\n\n void inject(AccountDetailsController accountDetailsController);\n}", "public interface ISessionService {\n\n /**\n * Indicates what's the current server's bank.\n * @return\n */\n shared.data.Bank getBank();\n\n /**\n * Sets the current server's bank at startup.\n * Should not be changed once server is online.\n * @param bank\n */\n void setBank(shared.data.Bank bank);\n\n /**\n * Returns a file logger where to write the logs for the server.\n * @return\n */\n IFileLogger log();\n}", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface BasicComponent {\n\tvoid inject(AddContactActivity addContactActivity);\n\tvoid inject(MainActivity mainActivity);\n\tvoid inject (MainActivityFragment mainActivityFragment);\n\tvoid inject (HandleClickFromRecyclerContactsModel handleClickFromRecyclerContactsModel);\n}", "public interface BlogLibTestMasterAppModule extends ApplicationModule {\r\n String helloMasterModule(String param);\r\n}", "public interface Scope {\n /**\n * scope name(which is auto uniquify to a {@link JvmUnique#uniqueNameWithRandom(String)}\n */\n String getName();\n\n boolean isRoute();\n\n /**\n * set timeout of call\n *\n * @param timeout maximum call waiting\n */\n void setTimeout(@Nullable Duration timeout);\n\n /**\n * change debug mode\n *\n * @param debug whether open debug mode\n */\n void setDebug(boolean debug);\n\n void setTrace(boolean trace);\n\n /**\n * create a new RSocket Server\n *\n * @param name simple server name\n * @param config server configuration\n */\n void startServer(String name, Config.ServerConfig config);\n\n /**\n * create a new RSocket Client\n *\n * @param name simple client name\n * @param config client configuration\n */\n void startClient(String name, Config.ClientConfig config);\n\n /**\n * release and close all cache ,include all RS server and client\n */\n void release();\n\n /**\n * build a Proxy Rpc Service\n *\n * @param clientKlass service ( must be a interface)\n * @param argumentProcessor parameter and result processor for each method (<b>if there is some interface parameter or result or else with nested interface that Implement may not exists in remote service</b>)\n * @param useFNF use fireAndForgot for void return method\n * @param <T> service type\n * @return the Instance\n */\n <T> T createClientService(Class<T> clientKlass, @Nullable Map<String, Function<Object[], Object[]>> argumentProcessor, boolean useFNF);\n\n /**\n * register a local service to serve\n *\n * @param service the service instance\n * @param serviceKlass the define interface of the service\n * @param resultProcessor parameter and result processor for each method (<b>if there is some interface parameter or result or else with nested interface that Implement may not exists in remote service</b>)\n * @param <T> type\n */\n <T> void registerService(\n T service,\n Class<T> serviceKlass,\n @Nullable Map<String, Function<Object, Object>> resultProcessor\n );\n\n /**\n * service list\n */\n @Unmodifiable List<String> names();\n\n /**\n * close a named Server\n *\n * @param name server name\n */\n boolean dispose(@NotNull String name);\n}", "private OrderFacade(){\n\t\tAbstractDAOFactory f = new MySQLDAOFactory();\n \tthis.odao = f.getOrderDAO();\n\t}" ]
[ "0.66470474", "0.6513075", "0.6465432", "0.6457923", "0.64578456", "0.6343651", "0.63305837", "0.6317897", "0.62226367", "0.6221499", "0.622123", "0.62017995", "0.61953443", "0.6148781", "0.61342853", "0.6133832", "0.6128922", "0.6113409", "0.6109876", "0.60996133", "0.60904807", "0.6070322", "0.60648215", "0.6063296", "0.60603404", "0.6045185", "0.6044706", "0.60369897", "0.6036133", "0.603321", "0.6031849", "0.6030706", "0.60234416", "0.60154885", "0.60137784", "0.60137784", "0.6011527", "0.60111856", "0.59985304", "0.5983803", "0.59774035", "0.59764814", "0.5973442", "0.5972197", "0.5963513", "0.59592783", "0.59529954", "0.59470564", "0.59455115", "0.5944257", "0.5943707", "0.59434634", "0.5942831", "0.5941632", "0.59398395", "0.59367824", "0.5933467", "0.5928861", "0.5911645", "0.59096074", "0.5899205", "0.58847034", "0.5878403", "0.5878229", "0.58774114", "0.58711344", "0.58665687", "0.5865138", "0.5863012", "0.58601034", "0.5858083", "0.58495164", "0.58495116", "0.5847508", "0.5847508", "0.5847198", "0.5845521", "0.5844556", "0.58445525", "0.5824319", "0.5817658", "0.58157843", "0.5813548", "0.5803012", "0.5790077", "0.5788412", "0.57844704", "0.5784121", "0.5781278", "0.57811785", "0.5780378", "0.57764816", "0.5774762", "0.5769859", "0.57654613", "0.57606226", "0.5756768", "0.5756579", "0.575252", "0.57484406", "0.57440114" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("hello"); System.out.println("hello worle"); String[] names; names = new String[] { "hello", "world" }; for (int i = 0; i < names.length; i++) { System.out.println(names[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
System.out.println("Resolviendo destinos para : "+bean);
private String[] resolverDestino(Object bean){ if(Abono.class.isAssignableFrom(bean.getClass()) ){ Abono abono=(Abono)bean; if(abono.getSucursal().getId().equals(new Long(1))){ return new String[]{"OFICINAS"}; } return new String[]{abono.getSucursal().getNombre()}; }else if(bean instanceof AplicacionDeNota ){ Aplicacion a=(Aplicacion)bean; if(a.getCargo().getOrigen().equals(OrigenDeOperacion.CAM)){ String suc=a.getCargo().getSucursal().getNombre(); return new String[]{suc}; }else{ return new String[0]; } }else if(bean instanceof AplicacionDePago ){ Aplicacion a=(Aplicacion)bean; if(a.getCargo().getOrigen().equals(OrigenDeOperacion.CAM)){ String suc=a.getCargo().getSucursal().getNombre(); return new String[]{suc}; }else{ return new String[0]; } }else if(bean instanceof Embarque){ Embarque e=(Embarque)bean; return new String[]{e.getSucursal()}; }else if(bean instanceof Entrega){ Entrega e=(Entrega)bean; return new String[]{e.getEmbarque().getSucursal()}; }else if(bean instanceof EntregaDet){ EntregaDet e=(EntregaDet)bean; return new String[]{e.getEntrega().getEmbarque().getSucursal()}; }else if(Cargo.class.isAssignableFrom(bean.getClass()) ){ Cargo cargo=(Cargo)bean; if(cargo.getSucursal().getId().equals(new Long(1))){ return new String[]{"ND"}; } return new String[]{cargo.getSucursal().getNombre()}; }else if (bean instanceof SolicitudDeDeposito){ SolicitudDeDeposito sol=(SolicitudDeDeposito)bean; return new String[]{sol.getSucursal().getNombre()}; }else if(bean instanceof Compra2){ Compra2 compra=(Compra2)bean; if(compra.isImportacion()){ return getDestinos().toArray(new String[0]); }else if(compra.getConsolidada()){ Set<String> sucs=new HashSet<String>(); for(CompraUnitaria cu:compra.getPartidas()){ sucs.add(cu.getSucursal().getNombre()); } return sucs.toArray(new String[0]); } return new String[]{compra.getSucursal().getNombre()}; }else if(bean instanceof CompraUnitaria){ CompraUnitaria com=(CompraUnitaria)bean; if( (com.getCompra()!=null) && com.getCompra().isImportacion()){ System.out.println("la compra es de importacion" +com.getId()); return getDestinos().toArray(new String[0]); }if(com.getCompra()==null){ System.out.println("la compra es de importacion" +com.getId()); return getDestinos().toArray(new String[0]); }else System.out.println("La compra no es de importacion "+com.getId()+"**********" ); return new String[]{com.getSucursal().getNombre()}; }else if(bean instanceof NotaDeCredito){ NotaDeCredito nota=(NotaDeCredito)bean; if(nota.getOrigenAplicacion().equals("CAM")){ Aplicacion a=nota.getAplicaciones().iterator().next(); String suc=a.getCargo().getSucursal().getNombre(); return new String[]{suc}; }else{ return new String[0]; } }else if(bean instanceof CargoPorTesoreria){ CargoPorTesoreria cargo=(CargoPorTesoreria)bean; if(cargo.getOrigen().equals(OrigenDeOperacion.CAM)){ return new String[]{cargo.getSucursal().getNombre()}; }else{ return new String[0]; } }else if(bean instanceof AsignacionVentaCE){ AsignacionVentaCE a=(AsignacionVentaCE)bean; return new String[]{a.getVenta().getSucursal().getNombre()}; }else if(bean instanceof SolicitudDeModificacion){ SolicitudDeModificacion a=(SolicitudDeModificacion)bean; return new String[]{a.getSucursal().getNombre()}; } else return new String[]{"ND"}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void exportar(Object bean) {\n\t\t\r\n\t}", "public void testbusquedaAvanzada() {\n// \ttry{\n\t \t//indexarODEs();\n\t\t\tDocumentosVO respuesta =null;//this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"agregatodos identificador:es-ma_20071119_1_9115305\", \"\"));\n\t\t\t/*\t\tObject [ ] value = { null } ;\n\t\t\tPropertyDescriptor[] beanPDs = Introspector.getBeanInfo(ParamAvanzadoVO.class).getPropertyDescriptors();\n\t\t\tString autor=autor\n\t\t\tcampo_ambito=ambito\n\t\t\tcampo_contexto=contexto\n\t\t\tcampo_descripcion=description\n\t\t\tcampo_edad=edad\n\t\t\tcampo_fechaPublicacion=fechaPublicacion\n\t\t\tcampo_formato=formato\n\t\t\tcampo_idiomaBusqueda=idioma\n\t\t\tcampo_nivelEducativo=nivelesEducativos\n\t\t\tcampo_palabrasClave=keyword\n\t\t\tcampo_procesoCognitivo=procesosCognitivos\n\t\t\tcampo_recurso=tipoRecurso\n\t\t\tcampo_secuencia=conSinSecuencia\n\t\t\tcampo_titulo=title\n\t\t\tcampo_valoracion=valoracion\n\t\t\tfor (int j = 0; j < beanPDs.length; j++) {\n\t\t\t\tif(props.getProperty(\"campo_\"+beanPDs[j].getName())!=null){\n\t\t\t\t\tvalue[0]=\"valor a cargar\";\n\t\t\t\t\tsetPropValue(Class.forName(ParamAvanzadoVO.class.getName()).newInstance(), beanPDs[j],value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t*/\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\tcomprobarRespuesta(respuesta.getResultados()[0]);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pruebatitulo\", \"\"));\n//\t\t\tSystem.err.println(\"aparar\");\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nivel*\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nived*\"));\n//\t\t\tassertNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nivel\"));\n//\t\t\tassertNotNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"\", \"nivel\"));\n//\t\t\tassertNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"}f2e_-i3299(--5\"));\n//\t\t\tassertNull(respuesta.getResultados());\n\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"verso estrofa\", \"universal pepito\",\"\"));\n//\t\t\tassertNull(respuesta.getResultados());\n\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"descwildcard\", \"ambito0\",\"\"));\n//\t\t\tassertEquals(respuesta.getSugerencias().length, 1);\n//\t\t\t\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"desc*\", \"\",\"\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 2);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion compuesta\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion pru*\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"descwild*\", \"\",\"\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n// \t}catch(Exception e){\n//\t\t \tlogger.error(\"ERROR: fallo en test buscador-->\",e);\n//\t\t\tthrow new RuntimeException(e);\n// \t}finally{\n// \t\teliminarODE(new String [] { \"asdf\",\"hjkl\"});\n// \t}\n\t\t\tassertNull(respuesta);\n }", "String getEmpresa() {\n return empresa; //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void printEndBean() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void printStartBean() {\n\t\t\r\n\t}", "public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }", "Object getBean();", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "public void show() \n{\n\tSystem.out.println(this.getContenido().toString());//NOSONAR\n\t\n}", "public ContactoBean() {\n nombres = \"\";\n apellidos = \"\";\n email = \"\";\n asunto = \"\";\n mensaje = \"\";\n }", "public GrlFornecedorNovoBean()\n {\n fornecedor = getInstanciaFornecedor();\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public String getTelefono(){\n return telefono;\n }", "public void desplegarInformacion() { //\n\n System.out.println(nombre);\n System.out.println(apellido);\n\n }", "public void buscarPessoa(){\n\t\tstrCelular = CareFunctions.limpaStrFone(strCelular);\n\t\t System.out.println(\"Preparar \" + strCelular);//\n\t\t \n\t\tif (strCelular.trim().length() > 0){\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tList<Usuario> lstusuario = usuarioDAO.listPorcelular(strCelular);\n\t\t\tSystem.out.println(\"Buscou \" + lstusuario.size());\n\t\t\tsetBooIdentifiquese(false);\n\t\t\tif (lstusuario.size() > 0){\n\t\t\t\tusuario = lstusuario.get(0);\n\t\t\t\tsetBooSelecionouUsuario(true);\n\t\t\t}else{\n\t\t\t\tsetBooSelecionouUsuario(false);\t\t\t\t\n\t\t\t\tsetBooCadastrandose(true);\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setUsu_celular(strCelular);\n\t\t\t}\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Ahoe\", \"Bem Vindo\"));\t\n\t\t}else{\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Você deve informar o Celular\", \"Não foi possível pesquisar\"));\t\t\t\n\t\t}\n\t}", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "public ClasificacionBean() {\r\n }", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "public void mostrarDatos(Object obj) throws Exception {\r\n\t\tHis_parto his_parto = (His_parto) obj;\r\n\t\ttry {\r\n\t\t\ttbxCodigo_historia.setValue(his_parto.getCodigo_historia());\r\n\t\t\tdtbxFecha_inicial.setValue(his_parto.getFecha_inicial());\r\n\r\n\t\t\tPaciente paciente = new Paciente();\r\n\t\t\tpaciente.setCodigo_empresa(his_parto.getCodigo_empresa());\r\n\t\t\tpaciente.setCodigo_sucursal(his_parto.getCodigo_sucursal());\r\n\t\t\tpaciente.setNro_identificacion(his_parto.getIdentificacion());\r\n\t\t\tpaciente = getServiceLocator().getPacienteService().consultar(\r\n\t\t\t\t\tpaciente);\r\n\r\n\t\t\tElemento elemento = new Elemento();\r\n\t\t\telemento.setCodigo(paciente.getSexo());\r\n\t\t\telemento.setTipo(\"sexo\");\r\n\t\t\telemento = getServiceLocator().getElementoService().consultar(\r\n\t\t\t\t\telemento);\r\n\r\n\t\t\ttbxIdentificacion.setValue(his_parto.getIdentificacion());\r\n\t\t\ttbxNomPaciente.setValue((paciente != null ? paciente.getNombre1()\r\n\t\t\t\t\t+ \" \" + paciente.getApellido1() : \"\"));\r\n\t\t\ttbxTipoIdentificacion.setValue((paciente != null ? paciente\r\n\t\t\t\t\t.getTipo_identificacion() : \"\"));\r\n\t\t\ttbxEdad.setValue(Util.getEdad(new java.text.SimpleDateFormat(\r\n\t\t\t\t\t\"dd/MM/yyyy\").format(paciente.getFecha_nacimiento()),\r\n\t\t\t\t\tpaciente.getUnidad_medidad(), false));\r\n\t\t\ttbxSexo.setValue((elemento != null ? elemento.getDescripcion() : \"\"));\r\n\t\t\tdbxNacimiento.setValue(paciente.getFecha_nacimiento());\r\n\t\t\ttbxDireccion.setValue(paciente.getDireccion());\r\n\r\n\t\t\tAdministradora administradora = new Administradora();\r\n\t\t\tadministradora.setCodigo(paciente.getCodigo_administradora());\r\n\t\t\tadministradora = getServiceLocator().getAdministradoraService()\r\n\t\t\t\t\t.consultar(administradora);\r\n\r\n\t\t\ttbxCodigo_eps.setValue(administradora != null ? administradora\r\n\t\t\t\t\t.getCodigo() : \"\");\r\n\t\t\ttbxNombre_eps.setValue(administradora != null ? administradora\r\n\t\t\t\t\t.getNombre() : \"\");\r\n\r\n\t\t\tContratos contratos = new Contratos();\r\n\t\t\tcontratos.setCodigo_empresa(his_parto.getCodigo_empresa());\r\n\t\t\tcontratos.setCodigo_sucursal(his_parto.getCodigo_sucursal());\r\n\t\t\tcontratos.setCodigo_administradora(paciente.getCodigo_administradora());\r\n//\t\t\tcontratos.setId_plan(paciente.getId_plan());\r\n\t\t\tcontratos = getServiceLocator().getContratosService().consultar(contratos);\r\n\r\n\t\t\ttbxCodigo_contrato.setValue(contratos != null ? contratos.getId_plan()\r\n\t\t\t\t\t: \"\");\r\n\t\t\ttbxContrato.setValue(contratos != null ? contratos.getNombre() : \"\");\r\n\r\n\t\t\tfor (int i = 0; i < lbxCodigo_dpto.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCodigo_dpto.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(paciente.getCodigo_dpto())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCodigo_dpto.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlistarMunicipios(lbxCodigo_municipio, lbxCodigo_dpto);\r\n\r\n\t\t\ttbxConyugue.setValue(his_parto.getConyugue());\r\n\t\t\ttbxId_conyugue.setValue(his_parto.getId_conyugue());\r\n\t\t\ttbxEdad_conyugue.setValue(his_parto.getEdad_conyugue());\r\n\r\n\t\t\tNivel_educativo nivel_educativo = new Nivel_educativo();\r\n\t\t\tnivel_educativo.setId(his_parto.getEscolaridad_conyugue());\r\n\t\t\tnivel_educativo = getServiceLocator().getNivel_educativoService()\r\n\t\t\t\t\t.consultar(nivel_educativo);\r\n\t\t\ttbxEscolaridad_nombre\r\n\t\t\t\t\t.setValue(nivel_educativo != null ? nivel_educativo\r\n\t\t\t\t\t\t\t.getNombre() : \"\");\r\n\t\t\ttbxEscolaridad_conyugue\r\n\t\t\t\t\t.setValue(nivel_educativo != null ? nivel_educativo.getId()\r\n\t\t\t\t\t\t\t: \"\");\r\n\r\n\t\t\ttbxMotivo.setValue(his_parto.getMotivo());\r\n\t\t\ttbxEnfermedad_actual.setValue(his_parto.getEnfermedad_actual());\r\n\t\t\ttbxAntecedentes_familiares.setValue(his_parto\r\n\t\t\t\t\t.getAntecedentes_familiares());\r\n\t\t\tRadio radio = (Radio) rdbPreeclampsia.getFellow(\"Preeclampsia\"\r\n\t\t\t\t\t+ his_parto.getPreeclampsia());\r\n\t\t\tradio.setChecked(true);\r\n\t\t\tRadio radio1 = (Radio) rdbHipertension.getFellow(\"Hipertension\"\r\n\t\t\t\t\t+ his_parto.getHipertension());\r\n\t\t\tradio1.setChecked(true);\r\n\t\t\tRadio radio2 = (Radio) rdbEclampsia.getFellow(\"Eclampsia\"\r\n\t\t\t\t\t+ his_parto.getEclampsia());\r\n\t\t\tradio2.setChecked(true);\r\n\t\t\tRadio radio3 = (Radio) rdbH1.getFellow(\"H1\" + his_parto.getH1());\r\n\t\t\tradio3.setChecked(true);\r\n\t\t\tRadio radio4 = (Radio) rdbH2.getFellow(\"H2\" + his_parto.getH2());\r\n\t\t\tradio4.setChecked(true);\r\n\t\t\tRadio radio5 = (Radio) rdbPostimadurez.getFellow(\"Postimadurez\"\r\n\t\t\t\t\t+ his_parto.getPostimadurez());\r\n\t\t\tradio5.setChecked(true);\r\n\t\t\tRadio radio6 = (Radio) rdbRot_pre.getFellow(\"Rot_pre\"\r\n\t\t\t\t\t+ his_parto.getRot_pre());\r\n\t\t\tradio6.setChecked(true);\r\n\t\t\tRadio radio7 = (Radio) rdbPolihidramnios.getFellow(\"Polihidramnios\"\r\n\t\t\t\t\t+ his_parto.getPolihidramnios());\r\n\t\t\tradio7.setChecked(true);\r\n\t\t\tRadio radio8 = (Radio) rdbRcui.getFellow(\"Rcui\"\r\n\t\t\t\t\t+ his_parto.getRcui());\r\n\t\t\tradio8.setChecked(true);\r\n\t\t\tRadio radio9 = (Radio) rdbPelvis.getFellow(\"Pelvis\"\r\n\t\t\t\t\t+ his_parto.getPelvis());\r\n\t\t\tradio9.setChecked(true);\r\n\t\t\tRadio radio10 = (Radio) rdbFeto_macrosonico\r\n\t\t\t\t\t.getFellow(\"Feto_macrosonico\"\r\n\t\t\t\t\t\t\t+ his_parto.getFeto_macrosonico());\r\n\t\t\tradio10.setChecked(true);\r\n\t\t\tRadio radio11 = (Radio) rdbIsoinmunizacion\r\n\t\t\t\t\t.getFellow(\"Isoinmunizacion\"\r\n\t\t\t\t\t\t\t+ his_parto.getIsoinmunizacion());\r\n\t\t\tradio11.setChecked(true);\r\n\t\t\tRadio radio12 = (Radio) rdbAo.getFellow(\"Ao\" + his_parto.getAo());\r\n\t\t\tradio12.setChecked(true);\r\n\t\t\tRadio radio13 = (Radio) rdbCirc_cordon.getFellow(\"Circ_cordon\"\r\n\t\t\t\t\t+ his_parto.getCirc_cordon());\r\n\t\t\tradio13.setChecked(true);\r\n\t\t\tRadio radio14 = (Radio) rdbPostparto.getFellow(\"Postparto\"\r\n\t\t\t\t\t+ his_parto.getPostparto());\r\n\t\t\tradio14.setChecked(true);\r\n\t\t\tRadio radio15 = (Radio) rdbDiabetes.getFellow(\"Diabetes\"\r\n\t\t\t\t\t+ his_parto.getDiabetes());\r\n\t\t\tradio15.setChecked(true);\r\n\t\t\tRadio radio16 = (Radio) rdbCardiopatia.getFellow(\"Cardiopatia\"\r\n\t\t\t\t\t+ his_parto.getCardiopatia());\r\n\t\t\tradio16.setChecked(true);\r\n\t\t\tRadio radio17 = (Radio) rdbAnemias.getFellow(\"Anemias\"\r\n\t\t\t\t\t+ his_parto.getAnemias());\r\n\t\t\tradio17.setChecked(true);\r\n\t\t\tRadio radio18 = (Radio) rdbEnf_autoinmunes\r\n\t\t\t\t\t.getFellow(\"Enf_autoinmunes\"\r\n\t\t\t\t\t\t\t+ his_parto.getEnf_autoinmunes());\r\n\t\t\tradio18.setChecked(true);\r\n\t\t\tRadio radio19 = (Radio) rdbEnf_renales.getFellow(\"Enf_renales\"\r\n\t\t\t\t\t+ his_parto.getEnf_renales());\r\n\t\t\tradio19.setChecked(true);\r\n\t\t\tRadio radio20 = (Radio) rdbInf_urinaria.getFellow(\"Inf_urinaria\"\r\n\t\t\t\t\t+ his_parto.getInf_urinaria());\r\n\t\t\tradio20.setChecked(true);\r\n\t\t\tRadio radio21 = (Radio) rdbEpilepsia.getFellow(\"Epilepsia\"\r\n\t\t\t\t\t+ his_parto.getEpilepsia());\r\n\t\t\tradio21.setChecked(true);\r\n\t\t\tRadio radio22 = (Radio) rdbTbc\r\n\t\t\t\t\t.getFellow(\"Tbc\" + his_parto.getTbc());\r\n\t\t\tradio22.setChecked(true);\r\n\t\t\tRadio radio23 = (Radio) rdbMiomas.getFellow(\"Miomas\"\r\n\t\t\t\t\t+ his_parto.getMiomas());\r\n\t\t\tradio23.setChecked(true);\r\n\t\t\tRadio radio24 = (Radio) rdbHb.getFellow(\"Hb\" + his_parto.getHb());\r\n\t\t\tradio24.setChecked(true);\r\n\t\t\tRadio radio25 = (Radio) rdbFumadora.getFellow(\"Fumadora\"\r\n\t\t\t\t\t+ his_parto.getFumadora());\r\n\t\t\tradio25.setChecked(true);\r\n\t\t\tRadio radio26 = (Radio) rdbInf_puerperal.getFellow(\"Inf_puerperal\"\r\n\t\t\t\t\t+ his_parto.getInf_puerperal());\r\n\t\t\tradio26.setChecked(true);\r\n\t\t\tRadio radio27 = (Radio) rdbInfertilidad.getFellow(\"Infertilidad\"\r\n\t\t\t\t\t+ his_parto.getInfertilidad());\r\n\t\t\tradio27.setChecked(true);\r\n\t\t\ttbxMenarquia.setValue(his_parto.getMenarquia());\r\n\t\t\ttbxCiclos.setValue(his_parto.getCiclos());\r\n\t\t\ttbxVida_marital.setValue(his_parto.getVida_marital());\r\n\t\t\ttbxVida_obstetrica.setValue(his_parto.getVida_obstetrica());\r\n\t\t\tfor (int i = 0; i < lbxNo_gestaciones.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxNo_gestaciones.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getNo_gestaciones())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxNo_gestaciones.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxParto.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxParto.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString().equals(his_parto.getParto())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxParto.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxAborto.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxAborto.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getAborto())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxAborto.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxCesarias.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCesarias.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getCesarias())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCesarias.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdtbxFecha_um.setValue(his_parto.getFecha_um());\r\n\t\t\ttbxUm.setValue(his_parto.getUm());\r\n\t\t\ttbxFep.setValue(his_parto.getFep());\r\n\t\t\tfor (int i = 0; i < lbxGemerales.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxGemerales.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getGemerales())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxGemerales.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxMalformados.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxMalformados.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getMalformados())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxMalformados.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxNacidos_vivos.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxNacidos_vivos.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getNacidos_vivos())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxNacidos_vivos.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxNacidos_muertos.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxNacidos_muertos.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getNacidos_muertos())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxNacidos_muertos.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxPreterminos.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxPreterminos.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getPreterminos())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxPreterminos.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tchbMedico.setChecked(his_parto.getMedico());\r\n\t\t\tchbEnfermera.setChecked(his_parto.getEnfermera());\r\n\t\t\tchbAuxiliar.setChecked(his_parto.getAuxiliar());\r\n\t\t\tchbPartera.setChecked(his_parto.getPartera());\r\n\t\t\tchbOtros.setChecked(his_parto.getOtros());\r\n\t\t\tRadio radio28 = (Radio) rdbControlado.getFellow(\"Controlado\"\r\n\t\t\t\t\t+ his_parto.getControlado());\r\n\t\t\tradio28.setChecked(true);\r\n\t\t\tRadio radio29 = (Radio) rdbLugar_consulta\r\n\t\t\t\t\t.getFellow(\"Lugar_consulta\" + his_parto.getLugar_consulta());\r\n\t\t\tradio29.setChecked(true);\r\n\t\t\tfor (int i = 0; i < lbxNo_consultas.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxNo_consultas.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getNo_consultas())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxNo_consultas.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tchbEspecialistas.setChecked(his_parto.getEspecialistas());\r\n\t\t\tchbGeneral.setChecked(his_parto.getGeneral());\r\n\t\t\tchbPartera_consulta.setChecked(his_parto.getPartera_consulta());\r\n\t\t\tRadio radio30 = (Radio) rdbSangrado_vaginal\r\n\t\t\t\t\t.getFellow(\"Sangrado_vaginal\"\r\n\t\t\t\t\t\t\t+ his_parto.getSangrado_vaginal());\r\n\t\t\tradio30.setChecked(true);\r\n\t\t\tRadio radio31 = (Radio) rdbCefalias.getFellow(\"Cefalias\"\r\n\t\t\t\t\t+ his_parto.getCefalias());\r\n\t\t\tradio31.setChecked(true);\r\n\t\t\tRadio radio32 = (Radio) rdbEdema.getFellow(\"Edema\"\r\n\t\t\t\t\t+ his_parto.getEdema());\r\n\t\t\tradio32.setChecked(true);\r\n\t\t\tRadio radio33 = (Radio) rdbEpigastralgia.getFellow(\"Epigastralgia\"\r\n\t\t\t\t\t+ his_parto.getEpigastralgia());\r\n\t\t\tradio33.setChecked(true);\r\n\t\t\tRadio radio34 = (Radio) rdbVomitos.getFellow(\"Vomitos\"\r\n\t\t\t\t\t+ his_parto.getVomitos());\r\n\t\t\tradio34.setChecked(true);\r\n\t\t\tRadio radio35 = (Radio) rdbTinutus.getFellow(\"Tinutus\"\r\n\t\t\t\t\t+ his_parto.getTinutus());\r\n\t\t\tradio35.setChecked(true);\r\n\t\t\tRadio radio36 = (Radio) rdbEscotomas.getFellow(\"Escotomas\"\r\n\t\t\t\t\t+ his_parto.getEscotomas());\r\n\t\t\tradio36.setChecked(true);\r\n\t\t\tRadio radio37 = (Radio) rdbInfeccion_urinaria\r\n\t\t\t\t\t.getFellow(\"Infeccion_urinaria\"\r\n\t\t\t\t\t\t\t+ his_parto.getInfeccion_urinaria());\r\n\t\t\tradio37.setChecked(true);\r\n\t\t\tRadio radio38 = (Radio) rdbInfeccion_vaginal\r\n\t\t\t\t\t.getFellow(\"Infeccion_vaginal\"\r\n\t\t\t\t\t\t\t+ his_parto.getInfeccion_vaginal());\r\n\t\t\tradio38.setChecked(true);\r\n\t\t\ttbxOtros_embarazo.setValue(his_parto.getOtros_embarazo());\r\n\t\t\ttbxCardiaca.setValue(his_parto.getCardiaca());\r\n\t\t\ttbxRespiratoria.setValue(his_parto.getRespiratoria());\r\n\t\t\ttbxPeso.setValue(his_parto.getPeso());\r\n\t\t\ttbxTalla.setValue(his_parto.getTalla());\r\n\t\t\ttbxTempo.setValue(his_parto.getTempo());\r\n\t\t\ttbxPresion.setValue(his_parto.getPresion());\r\n\t\t\ttbxPresion2.setValue(his_parto.getPresion2());\r\n\t\t\ttbxInd_masa.setValue(his_parto.getInd_masa());\r\n\t\t\ttbxSus_masa.setValue(his_parto.getSus_masa());\r\n\t\t\ttbxCabeza_cuello.setValue(his_parto.getCabeza_cuello());\r\n\t\t\ttbxCardiovascular.setValue(his_parto.getCardiovascular());\r\n\t\t\ttbxMamas.setValue(his_parto.getMamas());\r\n\t\t\ttbxPulmones.setValue(his_parto.getPulmones());\r\n\t\t\ttbxAbdomen.setValue(his_parto.getAbdomen());\r\n\t\t\ttbxUterina.setValue(his_parto.getUterina());\r\n\t\t\ttbxSituacion.setValue(his_parto.getSituacion());\r\n\t\t\ttbxPresentacion.setValue(his_parto.getPresentacion());\r\n\t\t\ttbxV_presentacion.setValue(his_parto.getV_presentacion());\r\n\t\t\ttbxPosicion.setValue(his_parto.getPosicion());\r\n\t\t\ttbxV_posicion.setValue(his_parto.getV_posicion());\r\n\t\t\ttbxC_uterina.setValue(his_parto.getC_uterina());\r\n\t\t\ttbxTono.setValue(his_parto.getTono());\r\n\t\t\ttbxFcf.setValue(his_parto.getFcf());\r\n\t\t\ttbxGenitales.setValue(his_parto.getGenitales());\r\n\t\t\ttbxDilatacion.setValue(his_parto.getDilatacion());\r\n\t\t\ttbxBorramiento.setValue(his_parto.getBorramiento());\r\n\t\t\ttbxEstacion.setValue(his_parto.getEstacion());\r\n\t\t\ttbxMembranas.setValue(his_parto.getMembranas());\r\n\t\t\ttbxExtremidades.setValue(his_parto.getExtremidades());\r\n\t\t\ttbxSnc.setValue(his_parto.getSnc());\r\n\t\t\ttbxObservacion.setValue(his_parto.getObservacion());\r\n\t\t\tfor (int i = 0; i < lbxFinalidad_cons.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxFinalidad_cons.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getFinalidad_cons())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxFinalidad_cons.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tseleccionarProgramaPyp();\r\n\r\n\t\t\tfor (int i = 0; i < lbxCausas_externas.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCausas_externas.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getCausas_externas())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCausas_externas.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxCodigo_consulta_pyp.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCodigo_consulta_pyp.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getCodigo_consulta_pyp())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCodigo_consulta_pyp.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxTipo_disnostico.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxTipo_disnostico.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_parto.getTipo_disnostico())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxTipo_disnostico.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tCie cie = new Cie();\r\n\t\t\tcie.setCodigo(his_parto.getTipo_principal());\r\n\t\t\t//log.info(\"antes: \" + cie);\r\n\t\t\tcie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n\t\t\t//log.info(\"despues: \" + cie);\r\n\t\t\ttbxTipo_principal.setValue(his_parto.getTipo_principal());\r\n\t\t\ttbxNomDx.setValue((cie != null ? cie.getNombre() : \"\"));\r\n\r\n\t\t\t/* relacionado 1 */\r\n\t\t\tcie = new Cie();\r\n\t\t\tcie.setCodigo(his_parto.getTipo_relacionado_1());\r\n\t\t\t//log.info(\"antes: \" + cie);\r\n\t\t\tcie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n\t\t\t//log.info(\"despues: \" + cie);\r\n\r\n\t\t\ttbxTipo_relacionado_1.setValue(his_parto.getTipo_relacionado_1());\r\n\t\t\ttbxNomDxRelacionado_1\r\n\t\t\t\t\t.setValue((cie != null ? cie.getNombre() : \"\"));\r\n\r\n\t\t\t/* relacionado 2 */\r\n\t\t\tcie = new Cie();\r\n\t\t\tcie.setCodigo(his_parto.getTipo_relacionado_2());\r\n\t\t\t//log.info(\"antes: \" + cie);\r\n\t\t\tcie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n\t\t\t//log.info(\"despues: \" + cie);\r\n\r\n\t\t\ttbxTipo_relacionado_2.setValue(his_parto.getTipo_relacionado_2());\r\n\t\t\ttbxNomDxRelacionado_2\r\n\t\t\t\t\t.setValue((cie != null ? cie.getNombre() : \"\"));\r\n\r\n\t\t\t/* relacionado 3 */\r\n\t\t\tcie = new Cie();\r\n\t\t\tcie.setCodigo(his_parto.getTipo_relacionado_3());\r\n\t\t\t//log.info(\"antes: \" + cie);\r\n\t\t\tcie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n\t\t\t//log.info(\"despues: \" + cie);\r\n\r\n\t\t\ttbxTipo_relacionado_3.setValue(his_parto.getTipo_relacionado_3());\r\n\t\t\ttbxNomDxRelacionado_3\r\n\t\t\t\t\t.setValue((cie != null ? cie.getNombre() : \"\"));\r\n\r\n\t\t\ttbxTratamiento.setValue(his_parto.getTratamiento());\r\n\r\n\t\t\t// Mostramos la vista //\r\n\t\t\ttbxAccion.setText(\"modificar\");\r\n\t\t\taccionForm(true, tbxAccion.getText());\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(\"Este dato no se puede editar\", \"Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}", "public RegistroBean() {\r\n }", "public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }", "public FuncionarioBean() {\n }", "public void mostrarDatos(Object obj) throws Exception {\r\n Hospitalizacion hospitalizacion = (Hospitalizacion) obj;\r\n try {\r\n deshabilitarCampos(false);\r\n tbxNro_factura.setValue(hospitalizacion.getNro_factura());\r\n listarIngresos(lbxNro_ingreso,\r\n listarAdmisiones(hospitalizacion, true), false);\r\n Utilidades.seleccionarListitem(lbxNro_ingreso,\r\n hospitalizacion.getNro_ingreso());\r\n\r\n Paciente paciente = new Paciente();\r\n paciente.setCodigo_empresa(hospitalizacion.getCodigo_empresa());\r\n paciente.setCodigo_sucursal(hospitalizacion.getCodigo_sucursal());\r\n paciente.setNro_identificacion(hospitalizacion\r\n .getNro_identificacion());\r\n paciente = getServiceLocator().getPacienteService().consultar(\r\n paciente);\r\n tbxNro_identificacion.seleccionarRegistro(paciente, hospitalizacion\r\n .getNro_identificacion(),\r\n (paciente != null ? paciente.getNombreCompleto() : \"\"));\r\n datos_seleccion\r\n .put(\"tipo_identificacion\",\r\n (paciente != null ? paciente\r\n .getTipo_identificacion() : \"\"));\r\n datos_seleccion.put(\"sexo\", (paciente != null ? paciente.getSexo()\r\n : \"\"));\r\n datos_seleccion.put(\r\n \"fecha_nac\",\r\n (paciente != null ? new SimpleDateFormat(\"dd/MM/yyyy\")\r\n .format(paciente.getFecha_nacimiento()) : \"\"));\r\n tbxNacimiento.setValue(new java.text.SimpleDateFormat(\"dd/MM/yyyy\")\r\n .format(paciente.getFecha_nacimiento()));\r\n tbxSexo.setValue(Utilidades.getNombreElemento(paciente.getSexo(),\r\n \"sexo\", HospitalizacionAction.this));\r\n tbxEstrato.setValue(paciente.getEstrato());\r\n tbxEdad.setValue(Util.getEdad(new java.text.SimpleDateFormat(\r\n \"dd/MM/yyyy\").format(paciente.getFecha_nacimiento()), \"1\",\r\n true));\r\n tbxTipo_afiliado.setValue(Utilidades.getNombreElemento(\r\n paciente.getTipo_afiliado(), \"tipo_afiliado\",\r\n HospitalizacionAction.this));\r\n\r\n Prestadores prestadores = new Prestadores();\r\n prestadores.setCodigo_empresa(hospitalizacion.getCodigo_empresa());\r\n prestadores\r\n .setCodigo_sucursal(hospitalizacion.getCodigo_sucursal());\r\n prestadores.setNro_identificacion(hospitalizacion\r\n .getCodigo_prestador());\r\n prestadores = getServiceLocator().getPrestadoresService()\r\n .consultar(prestadores);\r\n\r\n tbxCodigo_prestador.seleccionarRegistro(prestadores,\r\n hospitalizacion.getCodigo_prestador(),\r\n (prestadores != null ? prestadores.getNombres() + \" \"\r\n + prestadores.getApellidos() : \"\"));\r\n\r\n datos_seleccion.put(\"codigo_administradora\",\r\n hospitalizacion.getCodigo_administradora());\r\n datos_seleccion.put(\"id_plan\", hospitalizacion.getId_plan());\r\n\r\n Administradora administradora = new Administradora();\r\n administradora.setCodigo_empresa(hospitalizacion\r\n .getCodigo_empresa());\r\n administradora.setCodigo_sucursal(hospitalizacion\r\n .getCodigo_sucursal());\r\n administradora\r\n .setCodigo(hospitalizacion.getCodigo_administradora());\r\n administradora = getServiceLocator().getAdministradoraService()\r\n .consultar(administradora);\r\n\r\n Contratos contratos = new Contratos();\r\n contratos.setCodigo_empresa(hospitalizacion.getCodigo_empresa());\r\n contratos.setCodigo_sucursal(hospitalizacion.getCodigo_sucursal());\r\n contratos.setCodigo_administradora(hospitalizacion\r\n .getCodigo_administradora());\r\n contratos.setId_plan(hospitalizacion.getId_plan());\r\n contratos = getServiceLocator().getContratosService().consultar(\r\n contratos);\r\n tbxAseguradora.setValue((administradora != null ? administradora\r\n .getNombre() : \"\")\r\n + \" - \"\r\n + (contratos != null ? contratos.getNombre() : \"\"));\r\n\r\n Utilidades.seleccionarListitem(lbxVia_ingreso,\r\n hospitalizacion.getVia_ingreso());\r\n dtbxFecha_ingreso.setValue(hospitalizacion.getFecha_ingreso());\r\n tbxNumero_autorizacion.setValue(hospitalizacion\r\n .getNumero_autorizacion());\r\n Utilidades.seleccionarListitem(lbxCausa_externa,\r\n hospitalizacion.getCausa_externa());\r\n Utilidades.seleccionarListitem(lbxEstado_salida,\r\n hospitalizacion.getEstado_salida());\r\n dtbxFecha_egreso.setValue(hospitalizacion.getFecha_egreso());\r\n\r\n Cie cie = new Cie();\r\n cie.setCodigo(hospitalizacion.getCodigo_diagnostico_principal());\r\n cie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n tbxCodigo_diagnostico_principal.seleccionarRegistro(cie,\r\n hospitalizacion.getCodigo_diagnostico_principal(),\r\n (cie != null ? cie.getNombre() : \"\"));\r\n datos_seleccion.put(\"cie_diagnostico_principal\", cie);\r\n\r\n cie = new Cie();\r\n cie.setCodigo(hospitalizacion.getCodigo_diagnostico1());\r\n cie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n tbxCodigo_diagnostico1.seleccionarRegistro(cie, hospitalizacion\r\n .getCodigo_diagnostico1(), (cie != null ? cie.getNombre()\r\n : \"\"));\r\n datos_seleccion.put(\"cie_diagnostico_1\", cie);\r\n\r\n cie = new Cie();\r\n cie.setCodigo(hospitalizacion.getCodigo_diagnostico2());\r\n cie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n tbxCodigo_diagnostico2.seleccionarRegistro(cie, hospitalizacion\r\n .getCodigo_diagnostico2(), (cie != null ? cie.getNombre()\r\n : \"\"));\r\n datos_seleccion.put(\"cie_diagnostico_2\", cie);\r\n\r\n cie = new Cie();\r\n cie.setCodigo(hospitalizacion.getCodigo_diagnostico3());\r\n cie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n tbxCodigo_diagnostico3.seleccionarRegistro(cie, hospitalizacion\r\n .getCodigo_diagnostico3(), (cie != null ? cie.getNombre()\r\n : \"\"));\r\n datos_seleccion.put(\"cie_diagnostico_3\", cie);\r\n\r\n cie = new Cie();\r\n cie.setCodigo(hospitalizacion.getComplicacion());\r\n cie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n tbxComplicacion.seleccionarRegistro(cie,\r\n hospitalizacion.getComplicacion(),\r\n (cie != null ? cie.getNombre() : \"\"));\r\n datos_seleccion.put(\"cie_complicacion\", cie);\r\n\r\n cie = new Cie();\r\n cie.setCodigo(hospitalizacion.getCausa_muerte());\r\n cie = getServiceLocator().getServicio(GeneralExtraService.class).consultar(cie);\r\n tbxCausa_muerte.seleccionarRegistro(cie,\r\n hospitalizacion.getCausa_muerte(),\r\n (cie != null ? cie.getNombre() : \"\"));\r\n\r\n datos_seleccion.put(\"cie_causa_muerte\", cie);\r\n\r\n validarRegistroEditar(hospitalizacion);\r\n\r\n // Mostramos la vista //\r\n tbxAccion.setText(\"modificar\");\r\n accionForm(true, tbxAccion.getText());\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/pruebaFacade.do\")\n public String pruebaFacade(Model model)\n {\n prueba pruebaa = new prueba();\n pruebaa.prueba(instanciaFacade);\n //model.addAttribute(\"organizaciones\", consulta.getOrganizacionesPreRegistradas());\n return \"/paginaPrueba\";\n }", "public String getNombre(){\n return nombre;\n }", "RoomstlogBean()\n {\n }", "public clientesBean() {\n this.clie = new Clientes();\n }", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "public static void main(String[] args) {\n\t\tPersona p1 = context.getBean(\"personaBean\",Persona.class);\n\t\tPersona p2 = context.getBean(\"personaBean\",Persona.class);\n\t\tPersona p3 = context.getBean(\"personaBean\",Persona.class);\n\t\t//el ciclo de vida de essas personas depende de nosotros\n\t\t\n\t\tList<Persona> listaPersonas = context.getBean(\"listaPersonas\", List.class);\n\t\tlistaPersonas.add(p1);\n\t\tlistaPersonas.add(p2);\n\t\tlistaPersonas.add(p3);\n\t\t\n\t\tPersona carlos = context.getBean(\"carlos\",Persona.class);\n\t\tSystem.out.println(carlos);\n\t\t\n\t}", "public void mostrarCompra() {\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\tSystem.out.println(bean.toString());\n\t\treturn Action.SUCCESS;\n\t}", "public PanelRegistro getRegistro(){\n return registro;\n }", "public Movimiento(MovimientoBean movimientoBean) {\r\n\r\n\t\t// Cantidad de Movimiento\r\n\t\tthis.cantidadMovimiento = movimientoBean.getCantidadMovimiento();\r\n\t\t// Estado Movimiento\r\n\t\tEstadomovimiento estadomovimiento = new Estadomovimiento();\r\n\t\testadomovimiento.setPkCodigoEstadomovimiento(movimientoBean.getEstadomovimiento().getCodigo());\r\n\t\tthis.estadomovimiento = estadomovimiento;\r\n\t\t// Factor Volquete Movimiento\r\n\t\tthis.factorVolqueteMovimiento = movimientoBean.getFactorVolqueteMovimiento();\r\n\t\t// Fecha Movimiento\r\n\t\tthis.fechaMovimiento = movimientoBean.getFechaMovimiento();\r\n\t\t// Linea Negocio\r\n\t\tLineanegocio lineanegocio = new Lineanegocio();\r\n\t\tlineanegocio.setPkCodigoLineanegocio(movimientoBean.getLineanegocio().getCodigo());\r\n\t\tthis.lineanegocio = lineanegocio;\r\n\t\t// Medio Almacenamiento\r\n\t\tif (movimientoBean.getMedioalmacenamiento() != null && movimientoBean.getMedioalmacenamiento().getCodigo() != null) {\r\n\t\t\tMedioalmacenamiento medioalmacenamiento = new Medioalmacenamiento();\r\n\t\t\tmedioalmacenamiento.setPkCodigoMedioalmacenamiento(movimientoBean.getMedioalmacenamiento().getCodigo());\r\n\t\t\tthis.medioalmacenamiento = medioalmacenamiento;\r\n\t\t}\r\n\t\t// Numero Viajes Movimiento\r\n\t\tthis.numeroViajesMovimiento = movimientoBean.getNumeroViajesMovimiento();\r\n\t\t// Producto\r\n\t\tProducto producto = new Producto();\r\n\t\tproducto.setPkCodigoProducto(movimientoBean.getProducto().getCodigo());\r\n\t\tthis.producto = producto;\r\n\t\t// Tipo Movimiento\r\n\t\tTipomovimiento tipomovimiento = new Tipomovimiento();\r\n\t\ttipomovimiento.setPkCodigoTipomovimiento(movimientoBean.getTipomovimiento().getCodigo());\r\n\t\tthis.tipomovimiento = tipomovimiento;\r\n\t\t// Ubicacion Origen\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionOrigen() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionOrigen = new Ubicacion();\r\n\t\t\tubicacionOrigen.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionOrigen = ubicacionOrigen;\r\n\t\t}\r\n\t\t// Ubicacion Destino\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionDestino() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionDestino = new Ubicacion();\r\n\t\t\tubicacionDestino.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionDestino = ubicacionDestino;\r\n\t\t}\r\n\t\t// Unidad Medida\r\n\t\tUnidadmedida unidadmedida = new Unidadmedida();\r\n\t\tunidadmedida.setPkCodigoUnidadMedida(movimientoBean.getUnidadmedida().getCodigo());\r\n\t\tthis.unidadmedida = unidadmedida;\r\n\t\tthis.origenMovimiento = \"\";\r\n\t\tthis.factorHumedad = 0d;\r\n\t\tthis.cantidadMovimientoHumedad = movimientoBean.getCantidadMovimiento();\r\n\t\tthis.codigoSapproductoMovimiento = movimientoBean.getCodigoSapproducto();\r\n\r\n\t}", "public FacturaBean() {\n }", "private void out(Object obj) {\r\n\t\tSystem.out.println(deb + obj.toString());\r\n\t}", "public void buscarGestor(){\r\n\t\t\r\n\t}", "private void mostrarEmenta (){\n }", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "public TiposDocumentosBean(){\r\n }", "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "public String getNombre(){\n return nombre;\n }", "@PostConstruct\n public void CargarTimbresMasivosBean() {\n try {\n objectContext = cargarComponenteAjaxObjectContext();\n loggerApp = objectContext.getConfigApp().loggerApp;\n cargarTimbresMasivosObjectContext = new CargarTimbresMasivosObjectContext(getRequestFaces(), getResponseFaces());\n if (objectContext != null) {\n init();\n }\n } catch (Exception ex) {\n abrirModal(\"SARA\", \"Error\", ex);\n }\n }", "public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }", "public String getNombre(){\n return nombre;\n }", "public String getNombre(){\n return nombre;\n }", "public ProductoListarBean() {\r\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public ReservaBean() {\r\n nrohabitacion=1;\r\n createLista(nrohabitacion);\r\n editable=true;\r\n sino=\"\";\r\n \r\n reserva = new TReserva();\r\n }", "public static void main(String[] args) {\n\n\n\n\n\n ClassPathXmlApplicationContext contexto=new ClassPathXmlApplicationContext(\"applicationContext3.xml\");\n \n \n\n Empleados Maria=contexto.getBean(\"secretarioEmpleado2\",Empleados.class);\n\n \n \n \n //System.out.println(\"Tareas del director: \"+Maria.getTareas());\n System.out.println(\"Informes del director: \"+Maria.getInformes());\n //System.out.println(\"El correo es: \"+Maria.getEmail());\n //System.out.println(\"El nombre de la empresa es: \"+Maria.getNombreEmpresa());\n \n\n contexto.close();\n\n\n \n }", "public ConsultarPersona() {\n \n initComponents();\n try{\n provincias = (ProvinciasFacadeRemote) servidor.lookup(ProvinciasFacadeRemote.class.getName());\n }catch(NamingException ex) {\n JOptionPane.showMessageDialog(rootPane, \"No se ha podido cargar el Bean - \"+ ex.getMessage() , \"ERROR\", 2);\n this.dispose();\n }\n try{\n localidades = (LocalidadesFacadeRemote) servidor.lookup(LocalidadesFacadeRemote.class.getName());\n }catch(NamingException ex) {\n JOptionPane.showMessageDialog(rootPane, \"No se ha podido cargar el Bean - \"+ ex.getMessage() , \"ERROR\", 2);\n this.dispose();\n }\n try{\n personas = (PersonasFacadeRemote) servidor.lookup(PersonasFacadeRemote.class.getName());\n }catch(NamingException ex) {\n JOptionPane.showMessageDialog(rootPane, \"No se ha podido cargar el Bean - \"+ ex.getMessage() , \"ERROR\", 2);\n this.dispose();\n }\n this.setAlwaysOnTop(true);\n }", "public ProductosBean() {\r\n }", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "private void mostrarUsuario(Usuario usuario) {\n\t\tSystem.out.println(usuario.getId()+\" - \"+usuario.getNombre()+\" \"+usuario.getApellido()+\" / \"+usuario.getEdad()+\" / \"+usuario.getDni()+\" / \"+usuario.getFecha_nac());\r\n\t}", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "public String getNombre(){\r\n return nombre;\r\n }", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext contexto= new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t \r\n\t\tdirectorEmpleado Juan=contexto.getBean(\"miEmpleado\",directorEmpleado.class);\r\n\t\tSystem.out.println(Juan.getTareas());\r\n\t\tSystem.out.println(Juan.getInforme());\r\n\t\tSystem.out.println(Juan.getEmail());\r\n\t\tSystem.out.println(Juan.getNombreEmpresa());\r\n\t\t\r\n\t\t/*secretarioEmpleado Maria=contexto.getBean(\"miSecretarioEmpleado\",secretarioEmpleado.class);\r\n\t\tSystem.out.println(Maria.getTareas());\r\n\t\tSystem.out.println(Maria.getInforme());\r\n\t\tSystem.out.println(\"Email= \"+Maria.getEmail());\r\n\t\tSystem.out.println(\"Nombre Empresa= \"+Maria.getNombreEmpresa());*/\r\n\t\t\r\n\t\tcontexto.close();\r\n\t}", "public void recuperarFactura(){\n int id = datosFactura.recuperarFacturaID();\n Factura factura = almacen.getFactura(id);\n System.out.println(\"\\n\");\n if(factura != null)\n System.out.print(factura.toString());\n System.out.println(\"\\n\");\n }", "@Override\n public void comunicar() {\n System.out.println(\"miauuuu\");\n\n }", "public String getnombre(){\n return nombre;\n }", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "public void mostrarDatos(Object obj) throws Exception {\r\n\t\tHis_atencion_embarazada his_atencion_embarazada = (His_atencion_embarazada) obj;\r\n\t\ttry {\r\n\t\t\ttbxCodigo_historia.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getCodigo_historia());\r\n\t\t\tdtbxFecha_inicial.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getFecha_inicial());\r\n\r\n\t\t\tAdministradora administradora = new Administradora();\r\n\t\t\tadministradora.setCodigo(his_atencion_embarazada.getCodigo_eps());\r\n\t\t\tadministradora = getServiceLocator().getAdministradoraService()\r\n\t\t\t\t\t.consultar(administradora);\r\n\r\n\t\t\ttbxCodigo_eps.setValue(administradora != null ? administradora\r\n\t\t\t\t\t.getCodigo() : \"\");\r\n\t\t\ttbxNombre_eps.setValue(administradora != null ? administradora\r\n\t\t\t\t\t.getNombre() : \"\");\r\n\r\n\t\t\tfor (int i = 0; i < lbxCodigo_dpto.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCodigo_dpto.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getCodigo_dpto())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCodigo_dpto.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlistarMunicipios(lbxCodigo_municipio, lbxCodigo_dpto);\r\n\r\n\t\t\tPaciente paciente = new Paciente();\r\n\t\t\tpaciente.setCodigo_empresa(his_atencion_embarazada\r\n\t\t\t\t\t.getCodigo_empresa());\r\n\t\t\tpaciente.setCodigo_sucursal(his_atencion_embarazada\r\n\t\t\t\t\t.getCodigo_sucursal());\r\n\t\t\tpaciente.setNro_identificacion(his_atencion_embarazada\r\n\t\t\t\t\t.getIdentificacion());\r\n\t\t\tpaciente = getServiceLocator().getPacienteService().consultar(\r\n\t\t\t\t\tpaciente);\r\n\r\n\t\t\tElemento elemento = new Elemento();\r\n\t\t\telemento.setCodigo(paciente.getSexo());\r\n\t\t\telemento.setTipo(\"sexo\");\r\n\t\t\telemento = getServiceLocator().getElementoService().consultar(\r\n\t\t\t\t\telemento);\r\n\r\n\t\t\ttbxIdentificacion.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getIdentificacion());\r\n\t\t\ttbxNomPaciente.setValue((paciente != null ? paciente.getNombre1()\r\n\t\t\t\t\t+ \" \" + paciente.getApellido1() : \"\"));\r\n\t\t\ttbxTipoIdentificacion.setValue((paciente != null ? paciente\r\n\t\t\t\t\t.getTipo_identificacion() : \"\"));\r\n\t\t\ttbxEdad_madre.setValue(Util.getEdad(new java.text.SimpleDateFormat(\r\n\t\t\t\t\t\"dd/MM/yyyy\").format(paciente.getFecha_nacimiento()),\r\n\t\t\t\t\tpaciente.getUnidad_medidad(), false));\r\n\t\t\ttbxSexo_madre.setValue((elemento != null ? elemento\r\n\t\t\t\t\t.getDescripcion() : \"\"));\r\n\t\t\tdbxNacimiento.setValue(paciente.getFecha_nacimiento());\r\n\r\n\t\t\ttbxMotivo.setValue(his_atencion_embarazada.getDireccion());\r\n\t\t\ttbxTelefono.setValue(his_atencion_embarazada.getTelefono());\r\n\t\t\tRadio radio = (Radio) rdbSeleccion.getFellow(\"Seleccion\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getSeleccion());\r\n\t\t\tradio.setChecked(true);\r\n\t\t\tfor (int i = 0; i < lbxGestaciones.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxGestaciones.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getGestaciones())) {\r\n\t\t\t\t\ti = lbxGestaciones.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxPartos.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxPartos.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getPartos())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxPartos.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxCesarias.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCesarias.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getCesarias())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCesarias.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxAbortos.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxAbortos.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getAbortos())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxAbortos.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxEspontaneo.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxEspontaneo.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getEspontaneo())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxEspontaneo.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxProvocado.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxProvocado.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getProvocado())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxProvocado.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxNacido_muerto.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxNacido_muerto.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getNacido_muerto())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxNacido_muerto.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxPrematuro.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxPrematuro.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getPrematuro())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxPrematuro.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxHijos_menos.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxHijos_menos.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getHijos_menos())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxHijos_menos.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxHijos_mayor.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxHijos_mayor.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getHijos_mayor())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxHijos_mayor.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxMalformado.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxMalformado.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getMalformado())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxMalformado.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxHipertension.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxHipertension.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getHipertension())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxHipertension.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdtbxFecha_ultimo_parto.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getFecha_ultimo_parto());\r\n\t\t\tfor (int i = 0; i < lbxCirugia.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCirugia.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getCirugia())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCirugia.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxOtro_antecedente.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getOtro_antecedente());\r\n\t\t\tfor (int i = 0; i < lbxHemoclasificacion.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxHemoclasificacion.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getHemoclasificacion())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxHemoclasificacion.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxRh.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxRh.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getRh())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxRh.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxPeso.setValue(his_atencion_embarazada.getPeso());\r\n\t\t\ttbxTalla.setValue(his_atencion_embarazada.getTalla());\r\n\t\t\ttbxImc.setValue(his_atencion_embarazada.getImc());\r\n\t\t\ttbxTa.setValue(his_atencion_embarazada.getTa());\r\n\t\t\ttbxFc.setValue(his_atencion_embarazada.getFc());\r\n\t\t\ttbxFr.setValue(his_atencion_embarazada.getFr());\r\n\t\t\ttbxTemperatura.setValue(his_atencion_embarazada.getTemperatura());\r\n\t\t\ttbxCroomb.setValue(his_atencion_embarazada.getCroomb());\r\n\t\t\tdtbxFecha_ultima_mestruacion.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getFecha_ultima_mestruacion());\r\n\t\t\tdtbxFecha_probable_parto.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getFecha_probable_parto());\r\n\t\t\ttbxEdad_gestacional.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getEdad_gestacional());\r\n\t\t\tfor (int i = 0; i < lbxControl.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxControl.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getControl())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxControl.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxNum_control.setValue(his_atencion_embarazada.getNum_control());\r\n\t\t\tfor (int i = 0; i < lbxFetales.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxFetales.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getFetales())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxFetales.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxFiebre.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxFiebre.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getFiebre())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxFiebre.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxLiquido.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxLiquido.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getLiquido())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxLiquido.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxFlujo.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxFlujo.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getFlujo())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxFlujo.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxEnfermedad.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxEnfermedad.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getEnfermedad())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxEnfermedad.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxCual_enfermedad.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getCual_enfermedad());\r\n\t\t\tfor (int i = 0; i < lbxCigarrillo.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxCigarrillo.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getCigarrillo())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxCigarrillo.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxAlcohol.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxAlcohol.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getAlcohol())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxAlcohol.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxCual_alcohol.setValue(his_atencion_embarazada.getCual_alcohol());\r\n\t\t\tfor (int i = 0; i < lbxDroga.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxDroga.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getDroga())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxDroga.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxCual_droga.setValue(his_atencion_embarazada.getCual_droga());\r\n\t\t\tfor (int i = 0; i < lbxViolencia.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxViolencia.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getViolencia())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxViolencia.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxCual_violencia.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getCual_violencia());\r\n\t\t\tfor (int i = 0; i < lbxToxoide.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxToxoide.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getToxoide())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxToxoide.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxDosis.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxDosis.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getDosis())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxDosis.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxObservaciones_gestion.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getObservaciones_gestion());\r\n\t\t\ttbxAltura_uterina.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getAltura_uterina());\r\n\t\t\tchbCorelacion.setChecked(his_atencion_embarazada.getCorelacion());\r\n\t\t\tchbEmbarazo_multiple.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getEmbarazo_multiple());\r\n\t\t\tchbTrasmision_sexual.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getTrasmision_sexual());\r\n\t\t\tRadio radio1 = (Radio) rdbAnomalia.getFellow(\"Anomalia\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getAnomalia());\r\n\t\t\tradio1.setChecked(true);\r\n\t\t\tRadio radio2 = (Radio) rdbEdema_gestion.getFellow(\"Edema_gestion\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getEdema_gestion());\r\n\t\t\tradio2.setChecked(true);\r\n\t\t\tRadio radio3 = (Radio) rdbPalidez.getFellow(\"Palidez\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getPalidez());\r\n\t\t\tradio3.setChecked(true);\r\n\t\t\tRadio radio4 = (Radio) rdbConvulciones.getFellow(\"Convulciones\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getConvulciones());\r\n\t\t\tradio4.setChecked(true);\r\n\t\t\tRadio radio5 = (Radio) rdbConciencia.getFellow(\"Conciencia\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getConciencia());\r\n\t\t\tradio5.setChecked(true);\r\n\t\t\tRadio radio6 = (Radio) rdbCavidad_bucal.getFellow(\"Cavidad_bucal\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getCavidad_bucal());\r\n\t\t\tradio6.setChecked(true);\r\n\t\t\ttbxHto.setValue(his_atencion_embarazada.getHto());\r\n\t\t\ttbxHb.setValue(his_atencion_embarazada.getHb());\r\n\t\t\ttbxToxoplasma.setValue(his_atencion_embarazada.getToxoplasma());\r\n\t\t\ttbxVdrl1.setValue(his_atencion_embarazada.getVdrl1());\r\n\t\t\ttbxVdrl2.setValue(his_atencion_embarazada.getVdrl2());\r\n\t\t\ttbxVih1.setValue(his_atencion_embarazada.getVih1());\r\n\t\t\ttbxVih2.setValue(his_atencion_embarazada.getVih2());\r\n\t\t\ttbxHepb.setValue(his_atencion_embarazada.getHepb());\r\n\t\t\ttbxOtro.setValue(his_atencion_embarazada.getOtro());\r\n\t\t\ttbxEcografia.setValue(his_atencion_embarazada.getEcografia());\r\n\t\t\tRadio radio7 = (Radio) rdbClasificacion_gestion\r\n\t\t\t\t\t.getFellow(\"Clasificacion_gestion\"\r\n\t\t\t\t\t\t\t+ his_atencion_embarazada\r\n\t\t\t\t\t\t\t\t\t.getClasificacion_gestion());\r\n\t\t\tradio7.setChecked(true);\r\n\t\t\tfor (int i = 0; i < lbxContracciones.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxContracciones.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getContracciones())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxContracciones.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxNum_contracciones.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxNum_contracciones.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getNum_contracciones())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxNum_contracciones.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxHemorragia.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxHemorragia.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getHemorragia())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxHemorragia.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxLiquido_vaginal.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxLiquido_vaginal.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getLiquido_vaginal())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxLiquido_vaginal.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxColor_liquido.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getColor_liquido());\r\n\t\t\tfor (int i = 0; i < lbxDolor_cabeza.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxDolor_cabeza.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getDolor_cabeza())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxDolor_cabeza.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxVision.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxVision.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getDolor_cabeza())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxVision.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxConvulcion.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxConvulcion.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getConvulcion())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxConvulcion.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxObservaciones_parto.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getObservaciones_parto());\r\n\t\t\ttbxContracciones_min.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getContracciones_min());\r\n\t\t\ttbxFc_fera.setValue(his_atencion_embarazada.getFc_fera());\r\n\t\t\ttbxDilatacion_cervical.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getDilatacion_cervical());\r\n\t\t\tRadio radio8 = (Radio) rdbPreentacion.getFellow(\"Preentacion\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getPreentacion());\r\n\t\t\tradio8.setChecked(true);\r\n\t\t\ttbxOtra_presentacion.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getOtra_presentacion());\r\n\t\t\tRadio radio9 = (Radio) rdbEdema.getFellow(\"Edema\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getEdema());\r\n\t\t\tradio9.setChecked(true);\r\n\t\t\tfor (int i = 0; i < lbxHemorragia_vaginal.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxHemorragia_vaginal.getItemAtIndex(i);\r\n\t\t\t\tif (listitem\r\n\t\t\t\t\t\t.getValue()\r\n\t\t\t\t\t\t.toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getHemorragia_vaginal())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxHemorragia_vaginal.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxHto_parto.setValue(his_atencion_embarazada.getHto_parto());\r\n\t\t\ttbxHb_parto.setValue(his_atencion_embarazada.getHb_parto());\r\n\t\t\ttbxHepb_parto.setValue(his_atencion_embarazada.getHepb_parto());\r\n\t\t\ttbxVdrl_parto.setValue(his_atencion_embarazada.getVdrl_parto());\r\n\t\t\ttbxVih_parto.setValue(his_atencion_embarazada.getVih_parto());\r\n\t\t\tRadio radio10 = (Radio) rdbClasificacion_parto\r\n\t\t\t\t\t.getFellow(\"Clasificacion_parto\"\r\n\t\t\t\t\t\t\t+ his_atencion_embarazada.getClasificacion_parto());\r\n\t\t\tradio10.setChecked(true);\r\n\t\t\tdtbxFecha_nac.setValue(his_atencion_embarazada.getFecha_nac());\r\n\t\t\ttbxIdentificacion_nac.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getIdentificacion_nac());\r\n\t\t\tfor (int i = 0; i < lbxSexo.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxSexo.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getSexo())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxSexo.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxPeso_nac.setValue(his_atencion_embarazada.getPeso_nac());\r\n\t\t\ttbxTalla_nac.setValue(his_atencion_embarazada.getTalla_nac());\r\n\t\t\ttbxPc_nac.setValue(his_atencion_embarazada.getPc_nac());\r\n\t\t\ttbxFc_nac.setValue(his_atencion_embarazada.getFc_nac());\r\n\t\t\ttbxTemper_nac.setValue(his_atencion_embarazada.getTemper_nac());\r\n\t\t\ttbxEdad.setValue(his_atencion_embarazada.getEdad());\r\n\t\t\ttbxAdgar1.setValue(his_atencion_embarazada.getAdgar1());\r\n\t\t\ttbxAdgar5.setValue(his_atencion_embarazada.getAdgar5());\r\n\t\t\ttbxAdgar10.setValue(his_atencion_embarazada.getAdgar10());\r\n\t\t\ttbxAdgar20.setValue(his_atencion_embarazada.getAdgar20());\r\n\t\t\ttbxObservaciones_nac.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getObservaciones_nac());\r\n\t\t\tRadio radio11 = (Radio) rdbClasificacion_nac\r\n\t\t\t\t\t.getFellow(\"Clasificacion_nac\"\r\n\t\t\t\t\t\t\t+ his_atencion_embarazada.getClasificacion_nac());\r\n\t\t\tradio11.setChecked(true);\r\n\t\t\tchbReani_prematuro.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_prematuro());\r\n\t\t\tchbReani_meconio.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_meconio());\r\n\t\t\tchbReani_respiracion.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_respiracion());\r\n\t\t\tchbReani_hipotonico.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_hipotonico());\r\n\t\t\tchbReani_apnea.setChecked(his_atencion_embarazada.getReani_apnea());\r\n\t\t\tchbReani_jadeo.setChecked(his_atencion_embarazada.getReani_jadeo());\r\n\t\t\tchbReani_deficultosa.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_deficultosa());\r\n\t\t\tchbReani_gianosis.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_gianosis());\r\n\t\t\tchbReani_bradicardia.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_bradicardia());\r\n\t\t\tchbReani_hipoxemia.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_hipoxemia());\r\n\t\t\tchbReani_estimulacion.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_estimulacion());\r\n\t\t\tchbReani_ventilacion.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_ventilacion());\r\n\t\t\tchbReani_comprensiones.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_comprensiones());\r\n\t\t\tchbReani_intubacion.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getReani_intubacion());\r\n\t\t\ttbxMedicina.setValue(his_atencion_embarazada.getMedicina());\r\n\t\t\tRadio radio12 = (Radio) rdbClasificacion_reani\r\n\t\t\t\t\t.getFellow(\"Clasificacion_reani\"\r\n\t\t\t\t\t\t\t+ his_atencion_embarazada.getClasificacion_reani());\r\n\t\t\tradio12.setChecked(true);\r\n\t\t\tfor (int i = 0; i < lbxRuptura.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxRuptura.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getRuptura())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxRuptura.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxTiempo_ruptura.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxTiempo_ruptura.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getTiempo_ruptura())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxTiempo_ruptura.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxLiquido_neo.setValue(his_atencion_embarazada.getLiquido_neo());\r\n\t\t\tfor (int i = 0; i < lbxFiebre_neo.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxFiebre_neo.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getFiebre_neo())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxFiebre_neo.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < lbxTiempo_neo.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxTiempo_neo.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getTiempo_neo())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxTiempo_neo.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxCoricamniotis.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getCoricamniotis());\r\n\t\t\tRadio radio17 = (Radio) rdbIntrauterina.getFellow(\"Intrauterina\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getIntrauterina());\r\n\t\t\tradio17.setChecked(true);\r\n\t\t\tfor (int i = 0; i < lbxMadre20.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxMadre20.getItemAtIndex(i);\r\n\t\t\t\tif (listitem.getValue().toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada.getMadre20())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxMadre20.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tchbAlcohol_neo.setChecked(his_atencion_embarazada.getAlcohol_neo());\r\n\t\t\tchbDrogas_neo.setChecked(his_atencion_embarazada.getDrogas_neo());\r\n\t\t\tchbCigarrillo_neo.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getCigarrillo_neo());\r\n\t\t\tRadio radio13 = (Radio) rdbRespiracion_neo\r\n\t\t\t\t\t.getFellow(\"Respiracion_neo\"\r\n\t\t\t\t\t\t\t+ his_atencion_embarazada.getRespiracion_neo());\r\n\t\t\tradio13.setChecked(true);\r\n\t\t\tRadio radio14 = (Radio) rdbLlanto_neo.getFellow(\"Llanto_neo\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getLlanto_neo());\r\n\t\t\tradio14.setChecked(true);\r\n\t\t\tRadio radio15 = (Radio) rdbVetalidad_neo.getFellow(\"Vetalidad_neo\"\r\n\t\t\t\t\t+ his_atencion_embarazada.getVetalidad_neo());\r\n\t\t\tradio15.setChecked(true);\r\n\t\t\tchbTaquicardia_neo.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getTaquicardia_neo());\r\n\t\t\tchbBradicardia_neo.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getBradicardia_neo());\r\n\t\t\tchbPalidez_neo.setChecked(his_atencion_embarazada.getPalidez_neo());\r\n\t\t\tchbCianosis_neo.setChecked(his_atencion_embarazada\r\n\t\t\t\t\t.getCianosis_neo());\r\n\t\t\tfor (int i = 0; i < lbxAnomalias_congenitas.getItemCount(); i++) {\r\n\t\t\t\tListitem listitem = lbxAnomalias_congenitas.getItemAtIndex(i);\r\n\t\t\t\tif (listitem\r\n\t\t\t\t\t\t.getValue()\r\n\t\t\t\t\t\t.toString()\r\n\t\t\t\t\t\t.equals(his_atencion_embarazada\r\n\t\t\t\t\t\t\t\t.getAnomalias_congenitas())) {\r\n\t\t\t\t\tlistitem.setSelected(true);\r\n\t\t\t\t\ti = lbxAnomalias_congenitas.getItemCount();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttbxCual_anomalias.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getCual_anomalias());\r\n\t\t\ttbxLesiones.setValue(his_atencion_embarazada.getLesiones());\r\n\t\t\ttbxOtras_alter.setValue(his_atencion_embarazada.getOtras_alter());\r\n\t\t\tRadio radio16 = (Radio) rdbClasificacion_neo\r\n\t\t\t\t\t.getFellow(\"Clasificacion_neo\"\r\n\t\t\t\t\t\t\t+ his_atencion_embarazada.getClasificacion_neo());\r\n\t\t\tradio16.setChecked(true);\r\n\t\t\ttbxAlarma.setValue(his_atencion_embarazada.getAlarma());\r\n\t\t\ttbxConsulta_control.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getConsulta_control());\r\n\t\t\ttbxMedidas_preventiva.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getMedidas_preventiva());\r\n\t\t\ttbxRecomendaciones.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getRecomendaciones());\r\n\t\t\ttbxDiagnostico.setValue(his_atencion_embarazada.getDiagnostico());\r\n\t\t\ttbxCodigo_diagnostico.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getCodigo_diagnostico());\r\n\t\t\ttbxTratamiento.setValue(his_atencion_embarazada.getTratamiento());\r\n\t\t\ttbxRecomendacion_alimentacion.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getRecomendacion_alimentacion());\r\n\t\t\ttbxEvolucion_servicio.setValue(his_atencion_embarazada\r\n\t\t\t\t\t.getEvolucion_servicio());\r\n\r\n\t\t\t// Mostramos la vista //\r\n\t\t\ttbxAccion.setText(\"modificar\");\r\n\t\t\taccionForm(true, tbxAccion.getText());\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(\"Este dato no se puede editar\", \"Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}", "public String getDescripcion(){\n return descripcion;\n }", "public static void main(String[] args) {\n\t\tEmployeeBean employeeBean = new EmployeeBean(\"Dileep\", \"Software Engineer\");\r\n\t\t//System.out.println(employeeBean.ADDRESS);\r\n\r\n\t}", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public static void main(String[] args){\n ApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n TestMVC test = (TestMVC)context.getBean(\"MVC\"); //SpringIoC\n test.setControleur( (Controleur)context.getBean(\"Controleur\") ); //SpringIoC\n test.setVueg( (VueG)context.getBean(\"Vue\") ); //SpringIoC\n \n Panier p = new Panier(10); \n test.getControleur().setPanier(p); \n \n p.addObserver(test.getVueg());\n test.getVueg().addControleur(test.getControleur());\n \n VueConsole vuec = new VueConsole();\n p.addObserver(vuec);\n }", "public String getMarca(){\n return marca;\n }", "@Override\n\tpublic void RecevoireRequete(Requete requete) {\n\t\tSystem.out.println(\"from \" + requete.getExpediteur().getNom() + \" to \" + requete.getDestinataire());\n\t}", "@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}", "public String getCorreo(){\r\n return correo;\r\n }", "public CatalogoBean obtenerCatalogoPorNombre(String nombre) throws Exception;", "public static void main(String[] args) throws Exception\n\t\t{\n\t\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t\t\t\n\t\t\t//HelloBean helloBean = (HelloBean) bean.getBean(\"myBean\");\n\t\t\tHelloBean helloBean = (HelloBean) context.getBean(\"myBean\");\n\t\t\thelloBean.getMessage();\n\t\t\t//System.out.println(helloBean.getAdd());\n\t\t\t\n\t\t\t\n//\t\t\tExpression expression = expressionParser.parseExpression(\"'Hello SpEL'\");\n//\t\t\tString strVal = (String) expression.getValue();\n//\t System.out.println(\"STR VALUE: \" + strVal);\n\t\t}", "public void ciudad(){\n System.out.println(\"ciudad londres\");\n }", "public FinPagamentosListagemBean()\n {\n }", "public ContactoFormBean() {\r\n setContexto();\r\n }", "public void salvarProdutos(Produto produto){\n }", "public void deskripsi() {\r\n System.out.println(this.nama + \" bekerja di Perusahaan \" + Employee.perusahaan + \" dengan usia \" + this.usia + \" tahun\");\r\n }", "public DelZadBean() {\n }", "public ExportaDatosWSBean() {\n }", "public String getDireccion(){\n return direccion;\n }", "public static void main(String[] args) {\n\n IOCBeanLoadByXML iocBeanLoadByXML = (IOCBeanLoadByXML) BeanFactory.getBean(\"beanLoadByXML\");\n iocBeanLoadByXML.say();\n// IIOCBean iocBeanWithField = (IIOCBean) BeanFactory.getBean(\"testautowired\");\n// iocBeanWithField.say(\"param1\");\n }", "public String getEmpresa() {\r\n return empresa;\r\n }", "@Test\n public void testGetTitulo() {\n System.out.println(\"getTitulo\");\n Cobertura instance = cobertura;\n String expResult = \"Incendio\";\n String result = instance.toDTO().getTitulo();\n assertEquals(expResult, result);\n\n }", "public DonusturucuBean() {\n }", "public static void main(String[] args) {\n\t\tProvaBean bean = new ProvaBean();\r\n\t\tNomeCognome nomCogn = new NomeCognome();\r\n\t\tnomCogn.setNome(\"Massimo\");\r\n\t\tnomCogn.setCognome(\"Mojetta\");\r\n\t\t\r\n\t\tbean.setEta(22);\r\n\t\tbean.setNomeCognome(nomCogn);\r\n\t\tXMLEncoder encoder = null;\r\n\t\ttry {\r\n\t\t\tencoder = new XMLEncoder(\r\n\t\t\t new BufferedOutputStream(\r\n\t\t\t new FileOutputStream(\"Beanarchive.xml\")));\r\n\t\t\tencoder.writeObject(bean);\r\n\t\t\tSystem.out.println(\"Object ProvaBean Serialized\");\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif ( encoder != null ) {\r\n\t\t\t\tencoder.close(); \r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t}", "@PostConstruct\n public void postConstructFn (){\n LOOGER.info(\" ==== post constructor of the bean ====> {}:\");\n }", "@PostConstruct\n\tpublic void inicializar() {\n\t}", "public AtributoAsientoBean() {\n }", "public CalificacionBean() {\n }", "public Object elGetReference(Object bean);", "public void execProInventarioCarga(CatalogoBean catalogoBean) throws Exception;", "void testeAcessos() {\n System.out.println(formaDeFalar);// acessa por herança\n System.out.println(todosSabem);\n }", "public static void main(String[] args) {\n\t\tApplicationContext appContext=(ApplicationContext) new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\t\n\t\tEtudiant etu1=(Boursier) appContext.getBean(\"etudiant-boursier\");\n\t\tEtudiant etu2=(NonBousier) appContext.getBean(\"etudiant-non-boursier\");\n\t\tEtudiantServiceImp serviceEtudiant=(EtudiantServiceImp) appContext.getBean(\"service-etudiant\");\n\t\tClasseServiceImp serviceClasse= (ClasseServiceImp) appContext.getBean(\"service-classe\");\n\t\t\n\t\tSystem.out.println(\"etudiant boursier : \"+etu1.toString());\n\t\tSystem.out.println(\"etudiant non boursier: \"+etu2.toString());\n\t\t\n\t\t//Etudiant et=null;\n //double total=1000;\n //et=serviceEtudiant.creerEtudiantt(false);\n //serviceEtudiant.afficherNomComplet(et);\n System.out.println(\"scolarite: \"+serviceEtudiant.CalculScolarite(etu1));\n\t\t\n\n\t\t\n\t\t//List<Etudiant> etudiants = new ArrayList<Etudiant>();\n\t\t//etudiants.add(nonBEtudiant);\n\t\t//etudiants.add(boursier);\n\t\t//System.out.println(serviceClasse.SommeScollarite(etudiants));\n\t}", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "@Test\n public void beanFactoryPostProcessir() {\n Person p1 = (Person) applicationContext.getBean(\"p1\");\n //System.out.println(p1.getAge());\n\n // applicationContext.getBean(\"p3\");\n }", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "@Test\n public void t() throws Exception {\n TestAutow ta = new TestAutow();\n Class<? extends TestAutow> clazz = ta.getClass();\n Field[] fields = clazz.getDeclaredFields();\n Arrays.asList(fields).stream().forEach(System.out::println);\n System.out.println(ta.getI()+\":\"+ta.getStr());\n\n Field field_i=clazz.getDeclaredField(\"i\");\n //获得许可\n field_i.setAccessible(true);\n field_i.set(ta,7);\n System.out.println(ta.getI()+\":\"+ta.getStr());\n\n\n }", "public void mostrarDatos(Object obj) throws Exception {\n\t\tHisc_urgencia_odontologico hisc_urgencia_odontologico = (Hisc_urgencia_odontologico) obj;\n\t\ttry {\n\t\t\tcargarInformacion_paciente();\n\t\t\tinfoPacientes.setCodigo_historia(hisc_urgencia_odontologico\n\t\t\t\t\t.getCodigo_historia());\n\n\t\t\tinitMostrar_datos(hisc_urgencia_odontologico);\n\n\t\t\t// tbxCodigo_historia.setValue(hisc_urgencia_odontologico.getCodigo_historia());\n\t\t\t// tbxIdentificacion.setValue(hisc_urgencia_odontologico.getIdentificacion());\n\t\t\t// dtbxFecha_inicial.setValue(hisc_urgencia_odontologico.getFecha_inicial());\n\t\t\t// tbxNro_ingreso.setValue(hisc_urgencia_odontologico.getNro_ingreso());\n\t\t\t// tbxCodigo_prestador.setValue(hisc_urgencia_odontologico\n\t\t\t// .getCodigo_prestador());\n\t\t\t// dtbxFecha_ingreso.setValue(hisc_urgencia_odontologico.getFecha_ingreso());\n\t\t\ttbxAcompaniante.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAcompaniante());\n\t\t\tfor (int i = 0; i < lbxRelacion.getItemCount(); i++) {\n\t\t\t\tListitem listitem = lbxRelacion.getItemAtIndex(i);\n\t\t\t\tif (listitem.getValue().toString()\n\t\t\t\t\t\t.equals(hisc_urgencia_odontologico.getRelacion())) {\n\t\t\t\t\tlistitem.setSelected(true);\n\t\t\t\t\ti = lbxRelacion.getItemCount();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttbxTel_acompaniante.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getTel_acompaniante());\n\t\t\ttbxMotivo_consulta.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getMotivo_consulta());\n\t\t\ttbxEnfermedad_actual.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getEnfermedad_actual());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_tratamiento,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_tratamiento());\n\t\t\ttbxAnam_cual_tratamiento.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_tratamiento());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_toma_medicamentos,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_toma_medicamentos());\n\t\t\ttbxAnam_cual_toma_medicamentos.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_toma_medicamentos());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_alergias,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_alergias());\n\t\t\ttbxAnam_cual_alergias.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_alergias());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_cardiopatias,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_cardiopatias());\n\t\t\ttbxAnam_cual_cardiopatias.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_cardiopatias());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_alteracion_presion,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_alteracion_presion());\n\t\t\ttbxAnam_cual_alteracion_presion.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_alteracion_presion());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_embarazo,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_embarazo());\n\t\t\ttbxAnam_cual_embarazo.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_embarazo());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_diabetes,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_diabetes());\n\t\t\tfor (int i = 0; i < lbxAnam_cual_diabetes.getItemCount(); i++) {\n\t\t\t\tListitem listitem = lbxAnam_cual_diabetes.getItemAtIndex(i);\n\t\t\t\tif (listitem\n\t\t\t\t\t\t.getValue()\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(hisc_urgencia_odontologico\n\t\t\t\t\t\t\t\t.getAnam_cual_diabetes())) {\n\t\t\t\t\tlistitem.setSelected(true);\n\t\t\t\t\ti = lbxAnam_cual_diabetes.getItemCount();\n\t\t\t\t}\n\t\t\t}\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_hepatitis,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_hepatitis());\n\t\t\tfor (int i = 0; i < lbxAnam_cual_hepatitis.getItemCount(); i++) {\n\t\t\t\tListitem listitem = lbxAnam_cual_hepatitis.getItemAtIndex(i);\n\t\t\t\tif (listitem\n\t\t\t\t\t\t.getValue()\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(hisc_urgencia_odontologico\n\t\t\t\t\t\t\t\t.getAnam_cual_hepatitis())) {\n\t\t\t\t\tlistitem.setSelected(true);\n\t\t\t\t\ti = lbxAnam_cual_hepatitis.getItemCount();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_irradiaciones,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_irradiaciones());\n\t\t\ttbxAnam_cual_irradiaciones.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_irradiaciones());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_discracias,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_discracias());\n\t\t\ttbxAnam_cual_discracias.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_discracias());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_fiebre_reumatica,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_fiebre_reumatica());\n\t\t\ttbxAnam_cual_fiebre_reumatica.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_fiebre_reumatica());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_enfermedad_renal,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_enfermedad_renal());\n\t\t\ttbxAnam_cual_enfermedad_renal.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_enfermedad_renal());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_inmunosupresion,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_inmunosupresion());\n\t\t\ttbxAnam_cual_inmunosupresion.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_inmunosupresion());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_trastornos,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_trastornos());\n\t\t\ttbxAnam_cual_trastornos.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_trastornos());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_patologia,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_patologia());\n\t\t\ttbxAnam_cual_patologia.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_patologia());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_trastornos_gastricos,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_trastornos_gastricos());\n\t\t\ttbxAnam_cual_trastornos_gastricos\n\t\t\t\t\t.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t\t\t.getAnam_cual_trastornos_gastricos());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_epilepsia,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_epilepsia());\n\t\t\ttbxAnam_cual_epilepsia.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_epilepsia());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_cirugias,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_cirugias());\n\t\t\ttbxAnam_cual_cirugias.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_cirugias());\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_protasis,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_protasis());\n\t\t\tfor (int i = 0; i < lbxAnam_cual_protasis.getItemCount(); i++) {\n\t\t\t\tListitem listitem = lbxAnam_cual_protasis.getItemAtIndex(i);\n\t\t\t\tif (listitem\n\t\t\t\t\t\t.getValue()\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(hisc_urgencia_odontologico\n\t\t\t\t\t\t\t\t.getAnam_cual_protasis())) {\n\t\t\t\t\tlistitem.setSelected(true);\n\t\t\t\t\ti = lbxAnam_cual_protasis.getItemCount();\n\t\t\t\t}\n\t\t\t}\n\t\t\tUtilidades.seleccionarRadio(rdbAnam_otro,\n\t\t\t\t\thisc_urgencia_odontologico.getAnam_otro());\n\t\t\ttbxAnam_cual_otros.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getAnam_cual_otros());\n\t\t\tUtilidades.seleccionarRadio(rdbSintoma_respiratorio,\n\t\t\t\t\thisc_urgencia_odontologico.getSintoma_respiratorio());\n\t\t\tUtilidades.seleccionarRadio(rdbSintoma_piel,\n\t\t\t\t\thisc_urgencia_odontologico.getSintoma_piel());\n\n\t\t\tcargarImpresionDiagnostica(hisc_urgencia_odontologico);\n\n\t\t\t// dbxPulso.setValue(hisc_urgencia_odontologico.getPulso());\n\t\t\t// dbxTemperatura\n\t\t\t// .setValue(hisc_urgencia_odontologico.getTemperatura());\n\t\t\t// dbxTension_arterial.setValue(hisc_urgencia_odontologico\n\t\t\t// .getTension_arterial());\n\t\t\t// dbxPeso.setValue(hisc_urgencia_odontologico.getPeso());\n\t\t\t// dbxTalla.setValue(hisc_urgencia_odontologico.getTalla());\n\t\t\t// dbxRespiracion\n\t\t\t// .setValue(hisc_urgencia_odontologico.getRespiracion());\n\t\t\t// for (int i = 0; i < lbxGrupo_s.getItemCount(); i++) {\n\t\t\t// Listitem listitem = lbxGrupo_s.getItemAtIndex(i);\n\t\t\t// if (listitem.getValue().toString()\n\t\t\t// .equals(hisc_urgencia_odontologico.getGrupo_s())) {\n\t\t\t// listitem.setSelected(true);\n\t\t\t// i = lbxGrupo_s.getItemCount();\n\t\t\t// }\n\t\t\t// }\n\t\t\t// for (int i = 0; i < lbxRh.getItemCount(); i++) {\n\t\t\t// Listitem listitem = lbxRh.getItemAtIndex(i);\n\t\t\t// if (listitem.getValue().toString()\n\t\t\t// .equals(hisc_urgencia_odontologico.getRh())) {\n\t\t\t// listitem.setSelected(true);\n\t\t\t// i = lbxRh.getItemCount();\n\t\t\t// }\n\t\t\t// }\n\t\t\t// dbxDiastolica.setValue(hisc_urgencia_odontologico.getDiastolica());\n\t\t\t// tbxObservaciones_temp.setValue(hisc_urgencia_odontologico\n\t\t\t// .getObservaciones_temp());\n\t\t\tfor (int i = 0; i < lbxCausas_externas.getItemCount(); i++) {\n\t\t\t\tListitem listitem = lbxCausas_externas.getItemAtIndex(i);\n\t\t\t\tif (listitem\n\t\t\t\t\t\t.getValue()\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(hisc_urgencia_odontologico.getCausas_externas())) {\n\t\t\t\t\tlistitem.setSelected(true);\n\t\t\t\t\ti = lbxCausas_externas.getItemCount();\n\t\t\t\t}\n\t\t\t\t// Muestra el texbox de otos cuando seleccionan la opcion en\n\t\t\t\t// causas externas\n\t\t\t\tif (lbxCausas_externas.getSelectedItem().getValue().toString()\n\t\t\t\t\t\t.equals(\"15\")) {\n\t\t\t\t\ttbxOtro_causas_externas.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttbxOtro_causas_externas.setValue(hisc_urgencia_odontologico\n\t\t\t\t\t.getOtro_causas_externas());\n\t\t\tfor (int i = 0; i < lbxTipo_disnostico.getItemCount(); i++) {\n\t\t\t\tListitem listitem = lbxTipo_disnostico.getItemAtIndex(i);\n\t\t\t\tif (listitem\n\t\t\t\t\t\t.getValue()\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(hisc_urgencia_odontologico.getTipo_disnostico())) {\n\t\t\t\t\tlistitem.setSelected(true);\n\t\t\t\t\ti = lbxTipo_disnostico.getItemCount();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttbxTratamiento\n\t\t\t\t\t.setValue(hisc_urgencia_odontologico.getTratamiento());\n\t\t\tUtilidades.seleccionarRadio(rdbHa_sufrido_violencia,\n\t\t\t\t\thisc_urgencia_odontologico.getHa_sufrido_violencia());\n\t\t\tUtilidades.seleccionarRadio(rdbFisico,\n\t\t\t\t\thisc_urgencia_odontologico.getFisico());\n\t\t\tUtilidades.seleccionarRadio(rdbSexual,\n\t\t\t\t\thisc_urgencia_odontologico.getSexual());\n\t\t\tUtilidades.seleccionarRadio(rdbEmocional,\n\t\t\t\t\thisc_urgencia_odontologico.getEmocional());\n\t\t\tUtilidades.seleccionarRadio(rdbSiente_riesgo,\n\t\t\t\t\thisc_urgencia_odontologico.getSiente_riesgo());\n\t\t\tUtilidades.seleccionarRadio(rdbQuiere_hablar_del_tema,\n\t\t\t\t\thisc_urgencia_odontologico.getQuiere_hablar_del_tema());\n\n\t\t\t// cargarSignosVitales(hisc_urgencia_odontologico);\n\t\t\t// Mostramos la vista //\n\t\t\ttbxAccion.setText(\"modificar\");\n\t\t\taccionForm(true, tbxAccion.getText());\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public ObjetosBeans() {\n this.init();\n }", "@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}" ]
[ "0.6244155", "0.5921236", "0.5896955", "0.58081335", "0.57833177", "0.57693094", "0.5752729", "0.56749845", "0.5659136", "0.5607659", "0.5597189", "0.55431336", "0.55279815", "0.5517488", "0.5509433", "0.55033773", "0.5501833", "0.5493354", "0.54816437", "0.5476899", "0.5467797", "0.5467356", "0.54481095", "0.54471004", "0.5443202", "0.54318714", "0.542946", "0.5428665", "0.5422328", "0.54141235", "0.54002243", "0.53775793", "0.53755695", "0.5361373", "0.5356652", "0.53560126", "0.53389645", "0.5330086", "0.5327646", "0.5326139", "0.5313142", "0.5310976", "0.53076375", "0.53061134", "0.53061134", "0.5299744", "0.529838", "0.5297165", "0.52872586", "0.5286324", "0.52679557", "0.5267335", "0.5262088", "0.52543813", "0.52414876", "0.5237134", "0.52364737", "0.5235009", "0.5230799", "0.5223193", "0.521966", "0.5217639", "0.5213244", "0.52129006", "0.52108043", "0.5203324", "0.5202309", "0.52015454", "0.52010727", "0.51994234", "0.5190697", "0.51883495", "0.5185263", "0.5178412", "0.5175983", "0.51599985", "0.5159637", "0.5158175", "0.5157849", "0.51571625", "0.51565665", "0.5152761", "0.51472354", "0.5145919", "0.51434827", "0.5135387", "0.5122968", "0.5122166", "0.51185423", "0.511813", "0.51147556", "0.5114688", "0.5114357", "0.51123255", "0.51013917", "0.5095819", "0.5095804", "0.50845724", "0.5081411", "0.50773" ]
0.6188485
1
Created by liuyw on 2015/11/24.
public interface RegisterService { /** * 获取验证码 * @param para * @return */ RegisterResult getPictureCode(RegisterEnter para); /** * 注册用户 * @param para * @return */ RegisterResult registerUser(RegisterEnter para); /** * 个人用户注册设置密码 * @param para * @return */ @Role RegisterResult register_person(RegisterEnter para); /** * 插入注册推荐人公司信息 * @param dept */ void insertReferrerDept(String dept,String mobileNo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void poetries() {\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\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void kk12() {\n\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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 initialize() \n {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void strin() {\n\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 einkaufen() {\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "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\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n public void init() {}", "public void mo6081a() {\n }", "private void init() {\n\n\n\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo55254a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void initialize() { \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private void m50366E() {\n }", "static void feladat4() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "static void feladat9() {\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}" ]
[ "0.61426264", "0.6115469", "0.6012155", "0.59749585", "0.5912353", "0.5876299", "0.5876299", "0.5874969", "0.58626854", "0.57752264", "0.57736814", "0.576934", "0.57657605", "0.5723867", "0.5719237", "0.5718955", "0.57168627", "0.5711879", "0.5710715", "0.57020104", "0.57020104", "0.57020104", "0.57020104", "0.57020104", "0.5696504", "0.5696504", "0.5688902", "0.5684921", "0.56729233", "0.5672605", "0.5663013", "0.5654429", "0.563732", "0.5624937", "0.5617735", "0.56096184", "0.5608388", "0.5608388", "0.5608388", "0.56052995", "0.56044745", "0.5603615", "0.560251", "0.55950284", "0.55950284", "0.5587074", "0.5584757", "0.5581842", "0.5581842", "0.5581842", "0.55753976", "0.55663294", "0.5566127", "0.556488", "0.556488", "0.55549926", "0.55347806", "0.55347806", "0.55347806", "0.55227244", "0.55227244", "0.55227244", "0.55227244", "0.55227244", "0.55227244", "0.55227244", "0.5522718", "0.55211926", "0.5521163", "0.55093217", "0.55093217", "0.55093217", "0.55093217", "0.55093217", "0.55093217", "0.5502549", "0.55009425", "0.54996145", "0.5488759", "0.54865086", "0.54862785", "0.5484113", "0.5482505", "0.5481943", "0.5480149", "0.5472918", "0.5468625", "0.5455367", "0.5452519", "0.54482025", "0.5443631", "0.5436274", "0.54331964", "0.5425881", "0.5423994", "0.54210114", "0.5409983", "0.5404755", "0.5404755", "0.5398158", "0.5392247" ]
0.0
-1
Instantiates a new combo listener.
@SuppressWarnings("rawtypes") public ComboListener(JComboBox cbListenerParam, Vector vectorParam) { cbListener = cbListenerParam; vector = vectorParam; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ComboManager()\n {\n comboSize = Math.min(SkillAPI.getSettings().getComboSize(), Click.MAX_COMBO_SIZE);\n clicks = SkillAPI.getSettings().getEnabledClicks();\n }", "private void initListeners() {\n comboBox.comboBoxListener(this::showProgramData);\n view.refreshListener(actionEvent -> scheduledUpdate());\n\n }", "public ComboBox1() {\n initComponents();\n agregarItems();\n\n }", "public static interface MenuCreationListener {\n public void menuCreated(LimeComboBox comboBox, JPopupMenu menu);\n }", "@Override\r\n\tprotected void InitComboBox() {\n\t\t\r\n\t}", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\", \"root\", \"\");\n listeConstructeur = bddManager2.select(\"SELECT * FROM constructeur;\");\n bddManager2.stop();\n for (int i = 0; i < listeConstructeur.size(); i++) {\n comboConstructeur.getItems().addAll(listeConstructeur.get(i).get(1));\n\n\n }\n\n\n\n\n\n\n }", "@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t((Combobox) event.getTarget()).open();\n\t\t\t}", "public void addComboBoxListener(Controller controller){\n\t\tfilmComboBox.addActionListener(controller);\n\t\tmusicComboBox.addActionListener(controller);\n\t}", "public static JComboBox createComboBox() {\n JComboBox comboBox = new JComboBox();\n initFormWidget(comboBox);\n comboBox.setBackground(Color.WHITE);\n return comboBox;\n }", "public void countryComboBoxListener() {\n countryComboBox.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> buildDivisionComboBox());\n }", "public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }", "public EditableComboBoxCellEditor(JComboBox<String> pComboBox)\n {\n myComboBox = pComboBox;\n myComboBox.addActionListener(this);\n myComboBox.getEditor().getEditorComponent().addKeyListener(this);\n myComboBox.addPropertyChangeListener(this);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n counselorDetailsBEAN = new CounselorDetailsBEAN();\n counselorDetailsBEAN = Context.getInstance().currentProfile().getCounselorDetailsBEAN();\n ENQUIRY_ID = counselorDetailsBEAN.getEnquiryID();\n // JOptionPane.showMessageDialog(null, ENQUIRY_ID);\n countryCombo();\n cmbCountry.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n \n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n //JOptionPane.showMessageDialog(null, cmbCountry.getSelectionModel().getSelectedItem().toString());\n String[] parts = cmbCountry.getSelectionModel().getSelectedItem().toString().split(\",\");\n String value = parts[0];\n locationcombo(value);\n }\n\n private void locationcombo(String value) {\n List<String> locations = SuggestedCourseDAO.getLocation(value);\n for (String s : locations) {\n location.add(s);\n }\n cmbLocation.setItems(location);\n }\n\n });\n cmbLocation.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n universityCombo(cmbLocation.getSelectionModel().getSelectedItem().toString());\n }\n\n private void universityCombo(String value) {\n List<String> universities = SuggestedCourseDAO.getUniversities(value);\n for (String s : universities) {\n university.add(s);\n }\n cmbUniversity.setItems(university);\n }\n \n });\n cmbUniversity.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n levetCombo(cmbUniversity.getSelectionModel().getSelectedItem().toString());\n }\n\n private void levetCombo(String value) {\n List<String> levels = SuggestedCourseDAO.getLevels(value);\n for (String s : levels) {\n level.add(s);\n }\n cmbLevel.setItems(level);\n }\n });\n\n }", "public ItemPro() {\n initComponents();\n comboFill();\n }", "public void init() {\n cupDataChangeListener = new CupDataChangeListener(dataBroker);\n }", "public void buildConsultantComboBox(){\r\n combo_user.getSelectionModel().selectFirst(); // Select the first element\r\n \r\n // Update each timewindow to show the string representation of the window\r\n Callback<ListView<User>, ListCell<User>> factory = lv -> new ListCell<User>(){\r\n @Override\r\n protected void updateItem(User user, boolean empty) {\r\n super.updateItem(user, empty);\r\n setText(empty ? \"\" : user.getName());\r\n }\r\n };\r\n \r\n combo_user.setCellFactory(factory);\r\n combo_user.setButtonCell(factory.call(null)); \r\n }", "private JComboBox getJComboBox() {\r\n if (jComboBox == null) {\r\n jComboBox = new JComboBox();\r\n jComboBox.setEnabled(false); \r\n\r\n ActionListener al = new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n String animal = getCurrentAnimal();\r\n if (animal != null) {\r\n jTabbedPane.removeAll();\r\n createFlowTab(animal);\r\n createResourcesTab(animal);\r\n createChartTab(animal);\r\n }\r\n }\r\n };\r\n\r\n // Ensures that the default listener will be executed first.\r\n jComboBoxListeners.addLast(al);\r\n }\r\n return jComboBox;\r\n }", "public VBusqueda() {\n initComponents();\n buscador= new Buscador(new InvocadorEventoSwing());\n buscador.addListener(this);\n }", "public AbstractListenerDialog() {\n\t\tlisteners = new ArrayList<>();\n\t}", "@Override\r\n\tprotected SelectionListener createAddButtonActionListener() {\r\n\t\t// the value must by initialized! (don't return new AddActionListener()) \r\n\t\tthis.addButtonListener = new EventTypeAddActionListener();\r\n\t\t\r\n\t\treturn addButtonListener;\r\n\t}", "private void connectListeners() {\n\t\tcurrencyAdapter =\n\t\t\t\tnew ArrayAdapter<String>(\n\t\t\t\t\t\tthis, \n\t\t\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item,\n\t\t\t\t\t\texchangeRates.getCurrencyList()\n\t\t\t\t\t\t);\n\t\t\n\t\tfromSpinner.setAdapter(currencyAdapter);\n\t\ttoSpinner.setAdapter(currencyAdapter);\n\t\t\n\t\tfromSpinner.setOnItemSelectedListener(new OnCurrencySelectedListener());\n\t\ttoSpinner.setOnItemSelectedListener(new OnCurrencySelectedListener());\n\t\tamountEdit.addTextChangedListener(new EditTextListener());\n\t}", "private void installShowingListener(ComboBox<String> combo2) {\r\n combo.valueProperty().addListener((s, ov, nv) -> {\r\n LOG.info(\"value changed \" + nv);\r\n });\r\n ComboBoxListViewSkin skin = (ComboBoxListViewSkin) combo2.getSkin();\r\n combo.showingProperty().addListener((s, ov, nv) -> {\r\n if (nv) {\r\n ListView list = skin.getListView();\r\n list.refresh();\r\n }\r\n });\r\n }", "protected Control createControl(Composite parent) {\n combo = new Combo(parent, SWT.DROP_DOWN);\n combo.addSelectionListener(new SelectionListener() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n handleWidgetSelected(e);\n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent e) {\n handleWidgetDefaultSelected(e);\n }\n });\n combo.addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent e) {\n // do nothing\n }\n\n @Override\n public void focusLost(FocusEvent e) {\n refresh(false);\n }\n });\n\n // Initialize width of combo\n combo.setItems(initStrings);\n toolitem.setWidth(computeWidth(combo));\n refresh(true);\n return combo;\n }", "private void initComboBox() {\n jComboBox1.removeAllItems();\n listaDeInstrutores = instrutorDao.recuperarInstrutor();\n listaDeInstrutores.forEach((ex) -> {\n jComboBox1.addItem(ex.getNome());\n });\n }", "public OnlineCon() {\n initComponents();\n fillcombo();\n }", "public void addCombo(Combo newCombo){\n ComboList.add(newCombo);\n\n }", "public NderroPass() {\n initComponents();\n loadComboBox();\n }", "private void addListeners() {\n table.addValueChangeListener((Property.ValueChangeListener) this);\n// selectedCustomer.comboBoxSelectCustomer.addValueChangeListener((Property.ValueChangeListener) this);\n }", "protected ChangeListener createChangeListener(JComponent paramJComponent) {\n/* 66 */ return new MotifChangeHandler((JMenu)paramJComponent, this);\n/* */ }", "private void createComboMemBank() {\r\n\t\tcomboMemBank = new Combo(sShell, SWT.READ_ONLY);\r\n\t\t\r\n\t\tcomboMemBank.setBounds(new Rectangle(54, 55, 92, 21));\r\n\t\tString items[] = new String[]{ \"Reserved\", \"EPC\", \"TID\", \"User\" };\r\n\t\tcomboMemBank.setItems(items);\r\n\t\tcomboMemBank.select(1);\r\n\r\n\t\t\r\n\t}", "public L5MyList() {\n \n window.setLayout(new BorderLayout());\n window.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n panel = new JPanel();\n\n cBox = new JComboBox(colorNames);\n cBox.setMaximumRowCount(5);\n cBox.addItemListener(this);\n\n panel.add(cBox);\n window.add(panel, BorderLayout.CENTER);\n\n window.setSize(500, 300);\n window.setVisible(true);\n }", "private void initializeComboboxes() {\n ObservableList<Integer> options = FXCollections.observableArrayList(vertexesCurrentlyOnScreen);\n startingVertex = new ComboBox<>(options);\n finalVertex = new ComboBox<>(options);\n startingVertex.setBorder((new Border(new BorderStroke(Color.LIGHTGRAY, BorderStrokeStyle.SOLID, new CornerRadii(2), new BorderWidths(1.5)))));\n finalVertex.setBorder(new Border(new BorderStroke(Color.LIGHTGRAY, BorderStrokeStyle.SOLID, new CornerRadii(2), new BorderWidths(1.5))));\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //Preenche o comboBox sexo\r\n cb_sexo.setItems(listSexo);\r\n cb_uf.setItems(listUf);\r\n cb_serie.setItems(listSerie);\r\n\r\n// // Preenche o comboBox UF\r\n// this.cb_uf.setConverter(new ConverterDados(ConverterDados.GET_UF));\r\n// this.cb_uf.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n//\r\n// //Preenche o comboBox Serie\r\n// this.cb_serie.setConverter(new ConverterDados(ConverterDados.GET_SERIE));\r\n// this.cb_serie.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n this.codAluno.setCellValueFactory(cellData -> cellData.getValue().getCodigoProperty().asObject());\r\n this.nomeAluno.setCellValueFactory(cellData -> cellData.getValue().getNomeProperty());\r\n this.sexoAluno.setCellValueFactory(cellData -> cellData.getValue().getSexoProperty());\r\n this.enderecoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnderecoProperty());\r\n this.cepAluno.setCellValueFactory(cellData -> cellData.getValue().getCepProperty());\r\n this.nascimentoAluno.setCellValueFactory(cellData -> cellData.getValue().getNascimentoProperty());\r\n this.ufAluno.setCellValueFactory(cellData -> cellData.getValue().getUfProperty());\r\n this.maeAluno.setCellValueFactory(cellData -> cellData.getValue().getMaeProperty());\r\n this.paiAluno.setCellValueFactory(cellData -> cellData.getValue().getPaiProperty());\r\n this.telefoneAluno.setCellValueFactory(cellData -> cellData.getValue().getTelefoneProperty());\r\n this.serieAluno.setCellValueFactory(cellData -> cellData.getValue().getSerieProperty());\r\n this.ensinoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnsinoProperty());\r\n\r\n //bt_excluir.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n //bt_editar.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n }", "public TableComboBox() {}", "public void setGuiListeners()\n\t{\n\t\tcustomerList.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent event)\n\t\t\t{\n\t\t\t\tint index = customerList.getSelectionIndex();\n\t\t\t\tif (index >= 0 && index <= mCollect.getList().size())\n\t\t\t\t{\n\t\t\t\t\tmeasureText.setText(mCollect.getList().get(index).getMeasurementData());\n\t\t\t\t\taData = new AddressData(mCollect.getMesID(index));\n\t\t\t\t\tcustomerText.setText(aData.getCustomerData());\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tsetTaskData(mCollect.getMesID(index));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\tpriorityCombo.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\n\t\t\t\tif (priorityCombo.getText().equals(\"HIGH\"))\n\t\t\t\t{\n\t\t\t\t\tcustomerList.removeAll();\n\t\t\t\t\tmCollect.highPriorityfilter();\n\t\t\t\t\tfor (Measurement mObject : mCollect.getList())\n\t\t\t\t\t{\n\t\t\t\t\t\taData = new AddressData(mObject.getId());\n\t\t\t\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\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\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tstatusBar.setText(\"List filtered according High priority\");\n\n\t\t\t\t}\n\t\t\t\telse if (priorityCombo.getText().equals(\"MEDIUM\"))\n\t\t\t\t{\n\t\t\t\t\tcustomerList.removeAll();\n\t\t\t\t\tmCollect.mediumPriorityfilter();\n\t\t\t\t\tfor (Measurement mObject : mCollect.getList())\n\t\t\t\t\t{\n\t\t\t\t\t\taData = new AddressData(mObject.getId());\n\t\t\t\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\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\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tstatusBar.setText(\"List filtered according Medium priority\");\n\n\t\t\t\t}\n\t\t\t\telse if (priorityCombo.getText().equals(\"LOW\"))\n\t\t\t\t{\n\t\t\t\t\tcustomerList.removeAll();\n\t\t\t\t\tmCollect.lowPriorityfilter();\n\t\t\t\t\tfor (Measurement mObject : mCollect.getList())\n\t\t\t\t\t{\n\t\t\t\t\t\taData = new AddressData(mObject.getId());\n\t\t\t\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\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\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tstatusBar.setText(\"List filtered according Low priority\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// register listener for the electrode combo\n\t\telectrodeCombo.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tif (electrodeCombo.getText().equals(\"Simple\"))\n\t\t\t\t{\n\t\t\t\t\trestApiUpdate(\"Simple\", \"electrode\");\n\t\t\t\t}\n\t\t\t\telse if (electrodeCombo.getText().equals(\"Test\"))\n\t\t\t\t{\n\t\t\t\t\trestApiUpdate(\"Test\", \"electrode\");\n\t\t\t\t}\n\t\t\t\telse if (electrodeCombo.getText().equals(\"New\"))\n\t\t\t\t{\n\t\t\t\t\trestApiUpdate(\"New\", \"electrode\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\t// delete all data on gui, update list and set text fields to first selected item\n\t\tupdateButton.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tresetGuiData();\n\t\t\t\tsetData();\n\t\t\t\tstatusBar.setText(\"List updated successfully\");\n\t\t\t}\n\t\t});\n\n\t\t// register listener for the selection event\n\t\tconfigButton.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (ConnectionManager.getInstance().currentSensor(0).getBatteryVoltage() < 3.8)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessageCode = batteryWarning();\n\t\t\t\t\t\tif (messageCode == 32)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tconfigurateSensor();\n\t\t\t\t\t\t\tconfigButton.setEnabled(false);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tconfigurateSensor();\n\t\t\t\t\t\tconfigButton.setEnabled(false);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SensorNotFoundException e1)\n\t\t\t\t{\n\t\t\t\t\tstatusBar.setText(e1.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tshell.addShellListener(new ShellAdapter()\n\t\t{\n\t\t\tpublic void shellDeactivated(ShellEvent shellEvent)\n\t\t\t{\n\t\t\t\tshellCheck = false;\n\t\t\t\tTimer timer = new Timer();\n\t\t\t\ttimer.schedule(new TimerTask()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tDisplay.getDefault().asyncExec(new Runnable()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile (!shellCheck)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tstatusBar.setText(\"Operator access requesting.....\");\n\t\t\t\t\t\t\t\t\tInputDialog opdialog = new InputDialog(shell, SWT.DIALOG_TRIM);\n\t\t\t\t\t\t\t\t\topdialog.createDialogArea();\n\t\t\t\t\t\t\t\t\tstatusBar.setText(\"You have logged in as \" + login);\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\n\t\t\t\t\t}\n\n\t\t\t\t}, 600000);\n\n\t\t\t}\n\n\t\t\tpublic void shellActivated(ShellEvent arg1)\n\t\t\t{\n\t\t\t\tshellCheck = true;\n\n\t\t\t}\n\t\t});\n\n\t}", "public OSDarkLAFComboBoxButton(JComboBox<Object> comboBox, Icon ic, boolean editable, CellRendererPane renderPane, JList<Object> list)\r\n {\r\n super(comboBox, ic, editable, renderPane, list);\r\n\r\n myEffectListener = new MouseRolloverEffectListener();\r\n addMouseListener(myEffectListener);\r\n addFocusListener(myEffectListener);\r\n }", "private void comboClienteActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void initialize() {\n fillCombobox();\n }", "private void registerListeners() {\n\t\t\n\t\t//Vertical coupler action listener\n\t\tvC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button not enabled for couplers\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button not enabled for couplers\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Setting cursor icon configuration for vertical coupler\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore vertical coupler option\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\n //Filter valid coupler verticals\n List<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n List<TypeCouplerMullion> validDividers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.DIVIDER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n validCouplers.addAll(validDividers);\n\n //Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n\t\t\t\tcouplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Horizontal coupler action listener\n\t\thC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Semaphore divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button disabled for horizontal coupler\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button disabled for horizontal coupler\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Setting cursor icon configuration for horizontal coupler\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore horizontal coupler option\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tvM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Vertical mullions position\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Level selected for mullions\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit button enabled for vertical mullions\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//Extends button enabled for vertical mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.VERTICAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\thM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Horizontal mullions position\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t//Selected level for mullions equals 2\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit panel enabled for mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\n //Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcancel.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Setting edit visible\n\t\t\t\tsetEditVisible(false, null);\n\t\t\t\t\n\t\t\t\tif (hM.isSelected() || vM.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t} else if (hC.isSelected() || vC.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Edit mullions action listener\n\t\tedit.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(false);\n\t\t\t\tedit.setSelected(true);\n\t\t\t\t\n\t\t\t\t//Call edit action event\n\t\t\t\tedit_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfCombo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcomboPF(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Coupler type comboBox listener\n\t\tthis.couplerTypeC.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcoupleTypeAction();\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.part.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif (part.isSelected()) {\n\t\t\t\t\tparts.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tparts.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.extend.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(true);\n\t\t\t\tedit.setSelected(false);\n\t\t\t\tcont_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeLT.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeLT.isSelected()) {\n\t\t\t\t\tlCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tlCut.setEnabled(false);\n\t\t\t\t\tif (!part.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeRB.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeRB.isSelected()) {\n\t\t\t\t\trCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\trCut.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfFormL.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (pfFormL.isSelected()) {\n\t\t\t\t\tpfCombo.setEnabled(true);\n\t\t\t\t\toffsetLT.setEnabled(true);\n\t\t\t\t\toffsetRB.setEnabled(true);\n\t\t\t\t\tdeltaL.setEnabled(true);\n\t\t\t\t\tdeltaR.setEnabled(true);\n\t\t\t\t\toffsetL.setEnabled(true);\n\t\t\t\t\toffsetR.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tpfCombo.setEnabled(false);\n\t\t\t\t\toffsetLT.setEnabled(false);\n\t\t\t\t\toffsetRB.setEnabled(false);\n\t\t\t\t\tdeltaL.setEnabled(false);\n\t\t\t\t\tdeltaR.setEnabled(false);\n\t\t\t\t\toffsetL.setEnabled(false);\n\t\t\t\t\toffsetR.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !part.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsetGo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tset_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void setHotKeysComboBoxGenerico(JComboBox jComboBox,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tif(sTipoBusqueda.contains(\"CON_EVENT_CHANGE\")) {\r\n\t\t\tif(Constantes2.CON_COMBOBOX_ITEMLISTENER) {\r\n\t\t\t\tjComboBox.addItemListener(new ComboBoxItemListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t} else {\r\n\t\t\t\tjComboBox.addActionListener(new ComboBoxActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t\tjComboBox.addFocusListener(new ComboBoxFocusListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void comboBox1ActionPerformed(ActionEvent e) {\n }", "public void observeComboListProposal(ComboViewer widget, String field, Object bean) {\n\t}", "public void addListeners(){\n\n //listener for artists ComboBox\n artists.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n genres.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for genres ComboBox\n genres.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for year ComboBox\n year.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Integer>() {\n @Override\n public void changed(ObservableValue<? extends Integer> observableValue, Integer integer, Integer t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n genres.getSelectionModel().clearSelection();\n }\n }\n });\n\n }", "private RComboBox getComboBox() {\n\tif (ComboBox == null) {\n\t\tComboBox = new RComboBox();\n\t\tComboBox.setName(\"ComboBox\");\n\t\tComboBox.setModelConfiguration(\"{/result \\\"\\\"/version \\\"3.0\\\"/icon \\\"\\\"/tooltip \\\"\\\"}\");\n\t}\n\treturn ComboBox;\n}", "public EditableComboBoxAutoCompletion(JComboBox comboBox) {\n this.comboBox = comboBox;\n editor = (JTextField)comboBox.getEditor().getEditorComponent();\n editor.addKeyListener(this);\n editor.addFocusListener(focusHandler);\n }", "@Override\n\tpublic void createCB(CB cb) {\n\t\t\n\t}", "public void addMySelectionListener(EventListener l);", "private void inicializarCombos() {\n\t\tlistaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tfor (GrupoUsuario grupo : listaGrupoUsuario) {\n\t\t\tthis.observableListaGrupoUsuario.add(grupo.getNombre());\n\t\t}\n\t\tthis.comboGrupoUsuario.setItems(this.observableListaGrupoUsuario);\n\t\tnew AutoCompleteComboBoxListener(comboGrupoUsuario);\n\n\t\tObservableList<String> status = FXCollections.observableArrayList(\"Bloqueado\",\"Activo\",\"Baja\");\n\t\tthis.comboStatus.setItems(status);\n\t\tthis.comboEmpleados.setItems(FXCollections.observableArrayList(this.listaEmpleados));\n\t}", "private void InitListeners() {\n craftRobot.addActionListener(e -> settler.CraftRobot());\n craftTp.addActionListener(e -> settler.CraftTeleportGate());\n placeTp.addActionListener(e -> settler.PlaceTeleporter());\n fill.addActionListener(e -> {\n if(!inventory.isSelectionEmpty()) settler.PlaceResource(inventory.getSelectedValue());\n });\n inventory.addListSelectionListener(e -> fill.setEnabled(!(inventory.isSelectionEmpty())\n && settler.GetOnAsteroid().GetResource()==null\n && settler.GetOnAsteroid().GetLayerCount()==0)\n );\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n loadTable();\n ObservableList<String> opt = FXCollections.observableArrayList(\n \"A01\",\n \"A02\",\n \"A02\",\n \"A03\",\n \"A04\",\n \"B01\",\n \"B02\",\n \"B03\",\n \"B04\",\n \"C01\",\n \"C02\",\n \"C03\",\n \"C04\",\n \"D01\",\n \"D02\",\n \"D03\",\n \"D04\");\n \n cb1.setItems(opt);\n \n \n \n \n ObservableList<String> options = FXCollections.observableArrayList();\n Connection cnx = Myconn.getInstance().getConnection();\n String e=\"\\\"\"+\"Etudiant\"+\"\\\"\";\n ResultSet rs = cnx.createStatement().executeQuery(\"select full_name from user where role=\"+e+\"\");\n while(rs.next()){\n options.add(rs.getString(\"full_name\"));\n \n }\n// ObservableList<String> options = FXCollections.observableArrayList(\"Option 1\",\"Option 2\",\"Option 3\");\n comboE.setItems(options);\n } catch (SQLException ex) {\n Logger.getLogger(SoutenanceController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "protected TextSelectGuiSubitemTestObject comboBoxcomboBox() \n\t{\n\t\treturn new TextSelectGuiSubitemTestObject(\n getMappedTestObject(\"comboBoxcomboBox\"));\n\t}", "private <T extends ComponentEvent> SelectionListener<T> getSelectListener() {\r\n return new SelectionListener<T>() {\r\n public void componentSelected(T event) {\r\n onComponentSelection();\r\n }\r\n };\r\n }", "private void ComboBoxLoader (){\n try {\n if (obslistCBOCategory.size()!=0)\n obslistCBOCategory.clear();\n /*add the records from the database to the ComboBox*/\n rset = connection.createStatement().executeQuery(\"SELECT * FROM category\");\n while (rset.next()) {\n String row =\"\";\n for(int i=1;i<=rset.getMetaData().getColumnCount();i++){\n row += rset.getObject(i) + \" \";\n }\n obslistCBOCategory.add(row); //add string to the observable list\n }\n\n cboCategory.setItems(obslistCBOCategory); //add observable list into the combo box\n //text alignment to center\n cboCategory.setButtonCell(new ListCell<String>() {\n @Override\n public void updateItem(String item, boolean empty) {\n super.updateItem(item, empty);\n if (item != null) {\n setText(item);\n setAlignment(Pos.CENTER);\n Insets old = getPadding();\n setPadding(new Insets(old.getTop(), 0, old.getBottom(), 0));\n }\n }\n });\n\n //listener to the chosen list in the combo box and displays it to the text fields\n cboCategory.getSelectionModel().selectedItemProperty().addListener((obs, oldValue, newValue)->{\n if(newValue!=null){\n Scanner textDisplay = new Scanner((String) newValue);\n txtCategoryNo.setText(textDisplay.next());\n txtCategoryName.setText(textDisplay.nextLine());}\n\n });\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "private void initListener() {\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Prov = new javax.swing.JComboBox<>();\n Ko = new javax.swing.JComboBox<>();\n Kec = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n Prov.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n Prov.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n ProvItemStateChanged(evt);\n }\n });\n Prov.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ProvActionPerformed(evt);\n }\n });\n\n Ko.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n Kec.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(79, 79, 79)\n .addComponent(Prov, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(Ko, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addComponent(Kec, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(79, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(247, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Prov, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Ko, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Kec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(108, 108, 108))\n );\n\n pack();\n }", "private void addingComponentOptionsActionListener() {\n componentOptions.addActionListener(e -> {\n List<String> bothNames = Arrays.asList(componentOptions.getSelectedItem().toString().split(\" \"));\n String longName = bothNames.get(1);\n try {\n Class swingClass = Class.forName(longName.substring(1, longName.length() - 1));\n modifyTextArea(swingClass);\n } catch (ClassNotFoundException classNotFoundException) {\n System.err.println(\"Class not found due to error!\");\n classNotFoundException.printStackTrace();\n }\n });\n }", "private void buildComboPanel(){\n //Create the combo panel\n comboPanel = new JPanel();\n \n //Combo box\n laneType = new JComboBox(lanes);\n \n //Allow the user to type input into combo field\n laneType.setEditable(true);\n \n comboLabel = new JLabel(\"Lane: \");\n \n //Add the components to the panel\n comboPanel.add(comboLabel);\n comboPanel.add(laneType);\n }", "private void initialize()\n {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(549,426));\n this.add(getComboBox(), com.ulcjava.base.application.ULCBorderLayoutPane.NORTH);\n }", "public void initListener() {\n this.mSearchView.setOnQueryTextListener(this);\n this.mTopDisplayAdapter.setOnItemClickListener(new BaseSearchContactActivity$$Lambda$2(this));\n this.mSearchAdapter.setOnItemClickListener(new BaseSearchContactActivity$$Lambda$3(this));\n }", "JComboBox gtkGetComboBox() {\n return comboBox;\n }", "public Groupe() {\n \n initComponents();\n FillCombo();\n conect=scl.obtenirconnexion();\n }", "public ClienteVisao() {\n initComponents();\n iniciaConexao();\n pesquisaCamposParaInserirComboBox();\n }", "private JComboBox accountSelector()\n\t{\n\t\tJComboBox viewSelectorDropdown = new JComboBox();\n\t\tviewSelectorDropdown.setBackground(ColorScheme.DARKER_GRAY_COLOR.darker());\n\t\tviewSelectorDropdown.setFocusable(false);\n\t\tviewSelectorDropdown.setForeground(ColorScheme.GRAND_EXCHANGE_PRICE);\n\t\tviewSelectorDropdown.setRenderer(new ComboBoxListRenderer());\n\t\tviewSelectorDropdown.setToolTipText(\"Select which of your account's trades list you want to view\");\n\t\tviewSelectorDropdown.addItemListener(event ->\n\t\t{\n\t\t\tif (event.getStateChange() == ItemEvent.SELECTED)\n\t\t\t{\n\t\t\t\tString selectedName = (String) event.getItem();\n\t\t\t\tplugin.changeView(selectedName);\n\t\t\t}\n\t\t});\n\n\t\treturn viewSelectorDropdown;\n\t}", "public FrmEjemploCombo() {\n initComponents();\n \n cargarAutos();\n }", "private void setupComboBox() {\n nodeSelectComboBox.setEditable(true);\n\n getNodes();\n\n // Set to all nodes\n nodeSelectComboBox.setItems(FXCollections.observableList(new LinkedList<String>(nodeIDs.keySet())));\n nodeSelectComboBox.setOnAction(param -> {\n longName = nodeSelectComboBox.getValue();\n nodeID = nodeIDs.get(longName);\n if(eventHandler != null) {\n eventHandler.handle(param);\n }\n });\n // Filter nodes based on user input\n nodeSelectComboBox.setOnKeyReleased(param -> {\n nodeSelectComboBox.setItems(FXCollections.observableList(new LinkedList<String>(nodeIDs.keySet()).stream()\n .filter(longName -> showNode(longName, nodeSelectComboBox.getValue())).collect(Collectors.toList())));\n });\n }", "public void Bindcombo() {\n\n MyQuery1 mq = new MyQuery1();\n HashMap<String, Integer> map = mq.populateCombo();\n for (String s : map.keySet()) {\n\n jComboBox1.addItem(s);\n\n }\n\n }", "private void configureCombo(ComboBox<BeanModel> combo, String label){\r\n\t\t\t\tcombo.setValueField(\"id\");\r\n\t\t\t\tcombo.setDisplayField(\"name\");\r\n\t\t\t\tcombo.setFieldLabel(label);\r\n\t\t\t\tcombo.setTriggerAction(TriggerAction.ALL);\t\r\n\t\t\t\tcombo.setEmptyText(\"choose a customer ...\");\r\n\t\t\t\tcombo.setLoadingText(\"loading please wait ...\");\r\n\t\t\t}", "public JComboBoxTesterTest(String name) {\n super(name);\n }", "public void createListeners() {\n\n addRow.addActionListener(e -> gui.addRow());\n deleteRow.addActionListener(e -> gui.deleteRow());\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n listeDansCB.addAll(Main.getHopital().listeSymptome());\n selecSymp.setItems(listeDansCB); \n \n listP = Main.getHopital().getListePatient();\n \n cbPatient.setOnMouseClicked(new EventHandler<MouseEvent>() {\n \n @Override\n public void handle(MouseEvent event) {\n \n lpat.clear();\n for(Patient p : listP){\n if(p.getNom().toLowerCase().contains(champRecherche.getText().toLowerCase())){\n lpat.add(p);\n }\n } \n }\n });\n cbPatient.itemsProperty().bind(listePatient);\n }", "public void initListener() {\n }", "public GUIListener(){}", "public AddNewJobPanel() {\n initComponents();\n\n DateTime now = new DateTime();\n initializeComboBoxes();\n }", "public interface IComboboxModel\r\n{\r\n\r\n public void addComboboxListener(IComboboxListener listener);\r\n\r\n public void removeComboboxListener(IComboboxListener listener);\r\n\r\n public Object getSelectedItem();\r\n\r\n public void setSelectedItem(Object node);\r\n\r\n}", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "private void comboBoxActionListener(JComboBox<String> comboBox, JLabel priceLabel,JButton addButton, JButton finalizeButton) throws NullPointerException {\n comboBox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String selectedItem = (String) comboBox.getSelectedItem();\n\n // Find selectedItem in products\n for (Product product : restaurant.getProducts()) {\n if (product.getName().equals(selectedItem)) {\n priceLabel.setText(product.getSellingPrice() + \" TL\");\n }\n }\n\n\n if (!selectedItem.equals(\"Select an item\")) {\n addButton.setEnabled(true);\n finalizeButton.setEnabled(true);\n } else {\n addButton.setEnabled(false);\n }\n }\n });\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n txtId.setDisable(true);\n txtNombre.setDisable(true);\n txtTelefono.setDisable(true);\n txtIdentificacion.setDisable(true);\n paneNotificar.setVisible(false);\n\n txtDescripcion.setDisable(true);\n txtPeridiocidad.setDisable(true);\n txtMonto.setDisable(true);\n cmbBusqueda.setItems(FXCollections.observableArrayList(\"Todos\", \"Identificacion\"));\n notificar(1);\n\n cmbMembresia.getSelectionModel().selectedItemProperty().addListener((ObservableValue<? extends MembresiaDTO> ov, MembresiaDTO t, MembresiaDTO t1) -> {\n txtDescripcion.setText(t1.getDescripcion());\n txtPeridiocidad.setText(t1.getPeriodicidad());\n txtMonto.setText(t1.getMonto().toString());\n membresiaFilt = t1;\n verificar(data.getIdentificacion(), t1.getDescripcion());\n });\n }", "private void initListener() {\n initPieceListener();\n initButtonsListener();\n }", "private void init() {\n listeners = new PropertyChangeSupport(this);\n }", "private void createUIComponents() {\n this.selectorApplication = new AzureArtifactComboBox(project, true);\n this.selectorApplication.refreshItems();\n }", "public void addClubSelector() {\n\n if (clubSelectorTour == null) {\n clubSelectorTour = calendarMenu.addItem(\"Set Club\", command -> {\n\n Window window = new Window(\"Select Club for Calendar Events\");\n window.setWidth(\"400px\");\n window.setHeight(\"200px\");\n getUI().addWindow(window);\n window.center();\n window.setModal(true);\n C<Club> cs = new C<>(Club.class);\n ComboBox clubs = new ComboBox(\"Club\", cs.c());\n clubs.setItemCaptionMode(ItemCaptionMode.ITEM);\n clubs.setNullSelectionAllowed(false);\n\n clubs.setFilteringMode(FilteringMode.CONTAINS);\n Button done = new Button(\"Done\");\n done.addClickListener(listener -> {\n window.close();\n Object id = clubs.getValue();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n calendar.markAsDirty();\n }\n });\n\n EVerticalLayout l = new EVerticalLayout(clubs, done);\n\n window.setContent(l);\n });\n }\n }", "public GCombo(PApplet theApplet, String[] options, int maxRows, int x, int y, int width){\n\t\tsuper(theApplet, x, y);\n\t\tthis.maxRows = PApplet.constrain(maxRows, 1, 25);\n\t\tcomboCtorCore(width);\n\t\tcreateOptions(options);\n\t\tcreateSlider();\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle resourceBundle) {\n trig_combo.getItems().addAll(\"SIN\",\"COS\",\"TAN\");\r\n \r\n //Selecting SIN as Initial Value\r\n trig_combo.setValue(\"SIN\");\r\n \r\n //adding number list up to 20 (20!)\r\n power_combo.getItems().addAll(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);\r\n \r\n //Disabling Power field at Starting\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n \r\n //Initial message as Instruction\r\n type.setTextFill(Color.DARKCYAN);\r\n type.setText(\"Angle Multiple and Power are only applicable to the First Angle\");\r\n }", "private SelectionListener createSelctionListener() {\n\t\tSelectionListener listener = new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif((table.getSelection()!= null) && table.getSelection().length > 0) {\n\t\t\t\t\tWebpage page = (Webpage)table.getSelection()[0].getData();\n\t\t\t\t\tsingleRating.setInput(page);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t};\n\t\treturn listener;\n\t}", "public void aTypeCBaddItemListener(ItemListener listener)\r\n\t{\r\n\t\tanswerTypeCb.addItemListener(listener);\r\n\t}", "private void componentsListeners() {\r\n\t\t// NIFs\r\n\t\tbtnRefrescarnifs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcb_nifCliente.setModel(new DefaultComboBoxModel(ContenedorPrincipal.getContenedorPrincipal().getContenedorClientes().getNifs()));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Clientes\r\n\t\tbtnClientes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarClientes();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Reparaciones\r\n\t\tbtnRepararVehvulo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarReparaciones();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Anterior vehiculo\r\n\t\tbuttonLeftArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarLeftArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Siguiente vehiculo\r\n\t\tbuttonRightArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarRightArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Atras\r\n\t\tbtnAtrs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarAtras();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Guarda el vehiculo\r\n\t\tbtnGuardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcontroladorVehiculos.guardarVehiculo();\r\n\t\t\t\t\t} catch (NumberFormatException e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Hay campos vacios\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Algo ha ido mal\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Borra el vehículo\r\n\t\tbtnBorrarVehiculo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarBorrarVehiculo();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public MyListener() {\r\n }", "public static JComboBox initComboBox(JComboBox comboBox, Dimension cboxSize, JPanel rightPanel) {\n comboBox = new JComboBox();\n setSizeComponent(comboBox, cboxSize);\n rightPanel.add(comboBox);\n return comboBox;\n }" ]
[ "0.64264506", "0.624552", "0.6091409", "0.60706586", "0.59916955", "0.5975688", "0.5974954", "0.59088457", "0.5891216", "0.5828714", "0.57585216", "0.57504195", "0.572134", "0.5720302", "0.57150024", "0.5690651", "0.56864905", "0.56748724", "0.56669414", "0.56610405", "0.5658579", "0.5637538", "0.5624604", "0.56141734", "0.5610472", "0.5578751", "0.5572137", "0.55705494", "0.5560535", "0.5559313", "0.5545439", "0.5545197", "0.55388707", "0.54744107", "0.5457246", "0.54563385", "0.5443803", "0.54419565", "0.54354185", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5433447", "0.5422846", "0.5392118", "0.53906995", "0.5390495", "0.5385884", "0.53772867", "0.5374168", "0.53704816", "0.5364972", "0.53632456", "0.5359665", "0.53555703", "0.5349112", "0.5346677", "0.5341672", "0.53411824", "0.5330918", "0.5321034", "0.5312604", "0.53117263", "0.53035927", "0.53002155", "0.528861", "0.5287636", "0.5284166", "0.52752995", "0.52595085", "0.5248912", "0.52418894", "0.5241365", "0.5232161", "0.52282566", "0.5222315", "0.5213284", "0.5210376", "0.52051985", "0.5199153", "0.51989496", "0.519888", "0.51967984", "0.51898676", "0.51894814", "0.5186134", "0.51853836", "0.51831245", "0.51719123", "0.5170446", "0.5170389" ]
0.6074927
3
Gets the filtered list.
@SuppressWarnings({ "rawtypes", "unchecked" }) public Vector getFilteredList(String text) { Vector v = new Vector(); if (text.length() > 2) { FuncaoDAOImpl funcaoDao = new FuncaoDAOImpl(); List<Funcao> lista = funcaoDao.getListByStrDescriptor(text); for (Funcao funcao : lista) { v.add(funcao.getStrFuncaoVerbo() + " " + funcao.getStrFuncaoObjeto()); } } return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SensorResponse> getFilteredList(){\n return filteredList;\n }", "List<String> getFilters();", "List<JSONObject> getFilteredItems();", "ObservableList<ReadOnlyEvent> getFilteredEventList();", "ObservableList<Patient> getFilteredPatientList();", "ObservableList<Deliverable> getFilteredDeliverableList();", "public List<T> getCopyOfUnfilteredItemList(){\n synchronized (listsLock){\n if (originalList != null){\n return new ArrayList<T>(originalList);\n } else {\n // if original list is null filtered list is unfiltered\n return new ArrayList<T>(filteredList);\n }\n }\n }", "ObservableList<Person> getFilteredPersonList();", "List<String> getActiveFilters();", "@Override\n public Filter getFilter() {\n return main_list_filter;\n }", "ObservableList<Module> getFilteredModuleList();", "ObservableList<Module> getFilteredModuleList();", "ObservableList<Booking> getFilteredBookingList();", "ObservableList<Link> getFilteredLinkList();", "ObservableList<Task> getFilteredTaskList();", "ObservableList<Venue> getFilteredVenueList();", "ObservableList<MenuItem> getFilteredMenuItemList();", "public List<COSName> getFilters() {\n/* 312 */ List<COSName> retval = null;\n/* 313 */ COSBase filters = this.stream.getFilters();\n/* 314 */ if (filters instanceof COSName) {\n/* */ \n/* 316 */ COSName name = (COSName)filters;\n/* 317 */ retval = new COSArrayList<COSName>(name, (COSBase)name, (COSDictionary)this.stream, COSName.FILTER);\n/* */ }\n/* 319 */ else if (filters instanceof COSArray) {\n/* */ \n/* 321 */ retval = ((COSArray)filters).toList();\n/* */ } \n/* 323 */ return retval;\n/* */ }", "ObservableList<Doctor> getFilteredDoctorList();", "public List<Filter> getFilters() {\n List<Filter> filters = new ArrayList<>();\n JsonArray filterInfos = definition.getArray(FILTERS);\n if (filterInfos == null) {\n return filters;\n }\n\n for (Object filterInfo : filterInfos) {\n try {\n filters.add(Serializer.<Filter>deserialize((JsonObject) filterInfo));\n }\n catch (SerializationException e) {\n continue;\n }\n }\n return filters;\n }", "ObservableList<Appointment> getFilteredAppointmentList();", "public static List<Student> filterExample(){\n\t\tList<Student> genderFilter = StudentDataBase.getAllStudents().stream()\n\t\t\t\t.filter(stu->stu.getGender().equals(\"female\")).collect(Collectors.toList());\n\t\treturn genderFilter;\n\t}", "public List<FilterItem> getFilterItems() {\n\t\treturn filterItems;\n\t}", "public List<COSName> getFilters()\n {\n COSBase filters = stream.getFilters();\n if (filters instanceof COSName)\n {\n return Collections.singletonList((COSName) filters);\n } \n else if (filters instanceof COSArray)\n {\n return (List<COSName>)((COSArray) filters).toList();\n }\n return Collections.emptyList();\n }", "@Override\n public Filter getFilter() {\n\n return new Filter() {\n @Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n\n String charString = charSequence.toString();\n\n if (charString.isEmpty()) {\n\n mDataset = mArrayList;\n } else {\n\n ArrayList<DataObject> filteredList = new ArrayList<>();\n\n for (DataObject data : mArrayList) {\n\n if (data.getid().toLowerCase().contains(charString.toLowerCase()) || data.getname().toLowerCase().contains(charString.toLowerCase())) {\n\n filteredList.add(data);\n }\n }\n\n mDataset = filteredList;\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = mDataset;\n return filterResults;\n }\n\n @Override\n protected void publishResults(CharSequence charSequence, FilterResults filterResults) {\n mDataset = (ArrayList<DataObject>) filterResults.values;\n notifyDataSetChanged();\n }\n };\n }", "@Override\r\n\tpublic List<Filtering> selectByAll() {\n\t\treturn filteringMapper.selectByAll();\r\n\t}", "ArrayList<Match> getMatchList( Filter filter ) {\n return list;\n }", "@Override\n public Filter getFilter() {\n return scenarioListFilter;\n }", "public List<StudentRecord> filter(IFilter filter) {\n\t\tList<StudentRecord> temporaryList = new ArrayList<>();\n\n\t\tfor (StudentRecord studentRecord : studentRecords) {\n\t\t\tif (filter.accepts(studentRecord)) {\n\t\t\t\ttemporaryList.add(studentRecord);\n\t\t\t}\n\t\t}\n\t\treturn temporaryList;\n\t}", "public List<RefineriesFilter> getRefineriesFilter();", "public List<String> build()\n {\n return filters;\n }", "private List<String> getFilteredWords() {\r\n\t\tArrayList<String> filteredWords = new ArrayList<String>(16);\r\n\t\t\r\n\t\tfor (String word : allWords) {\r\n\t\t\tif (matchesFilter(word) == true) {\r\n\t\t\t\tfilteredWords.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn filteredWords;\r\n\t}", "public List<MessageFilter> getFilters();", "public Map<String, Boolean> getFilteringResults() {\n return filteringResults;\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "public List<Element> filter(Predicate<Element> p)\n\t{\n\t\treturn recursive_filter(new ArrayList<Element>(), p, group);\n\t}", "List<List<String>> getFilters(String resource);", "ObservableList<Link> getUnfilteredLinkList();", "public Set<Filterable> getSelections();", "@GET\n @Path(\"/filter\")\n @Produces(\"text/plain\")\n public String getFilterWordList() throws JsonProcessingException {\n ObjectMapper mapper = new ObjectMapper();\n return mapper.writeValueAsString(FilterImpl.getList());\n }", "ObservableList<Task> getUnfilteredTaskList();", "java.util.List<com.google.monitoring.dashboard.v1.DashboardFilter> getDashboardFiltersList();", "public List<Product> getFilteredRecommendedProductsList() {\n return filteredRecommendedProductsList;\n }", "<E extends CtElement> List<E> getElements(Filter<E> filter);", "protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n EntityDescriptor ed = getDescriptor();\n properties = filters.stream()\n .map(filter -> Tuple.create(filter.getFirst(), ed.getProperty(filter.getSecond())))\n .toList();\n }\n\n return Collections.unmodifiableList(properties);\n }", "Map<String, String> getFilters();", "public ArrayList<FilteringRule> get_filters() {\n\t\treturn filters;\n\t}", "java.util.List<java.lang.String> getAnnotationFiltersList();", "public Hashtable getFilters() {\n // we need to build the hashtable dynamically\n return globalFilterSet.getFilterHash();\n }", "@GetMapping(\"/filtering-list\")\n\tpublic MappingJacksonValue retrieveListOfSomeBean() {\n\t\tList<SomeBean> list = Arrays.asList(new SomeBean(\"value1\", \"value2\", \"value3\"),\n\t\t\t\tnew SomeBean(\"value4\", \"value5\", \"value6\"));\n\n\t\tSimpleBeanPropertyFilter filter = SimpleBeanPropertyFilter.filterOutAllExcept(\"field2\", \"field3\");\n\n\t\tMappingJacksonValue mapping = filteringList(list, filter);\n\n\t\treturn mapping;\n\t}", "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "@Override\n\tpublic List<?> forFilterList(Class<?> clazz) {\n\t\treturn null;\n\t}", "public ArrayList<CustomerWithGoods> filterValued() {\n\t\tArrayList<CustomerWithGoods> richCustomers = new ArrayList<>();\n\t\t// uses method above to calculate average order price\n\t\tint averageOrderPrice = averageOrderPrice();\n\n\t\tfor (CustomerWithGoods customerWithGoods : allCustomers) {\n\t\t\tif (customerWithGoods.valueOfGoods() > averageOrderPrice) {\n\t\t\t\trichCustomers.add(customerWithGoods);\n\t\t\t}\n\t\t}\n\t\treturn richCustomers;\n\t}", "public void filterList(ArrayList<GroupChannel> filteredList) {\n }", "public List<String> getFileFilters() {\n/* 420 */ List<String> retval = null;\n/* 421 */ COSBase filters = this.stream.getDictionaryObject(COSName.F_FILTER);\n/* 422 */ if (filters instanceof COSName) {\n/* */ \n/* 424 */ COSName name = (COSName)filters;\n/* 425 */ retval = new COSArrayList<String>(name.getName(), (COSBase)name, (COSDictionary)this.stream, COSName.F_FILTER);\n/* */ \n/* */ }\n/* 428 */ else if (filters instanceof COSArray) {\n/* */ \n/* */ \n/* 431 */ retval = COSArrayList.convertCOSNameCOSArrayToList((COSArray)filters);\n/* */ } \n/* 433 */ return retval;\n/* */ }", "public List<FilterableProperty> filterableProperties() {\n return this.innerProperties() == null ? null : this.innerProperties().filterableProperties();\n }", "public static <T> List<T> filter(List<T> list, Predicate<T> p) {\n\t\tList<T> result = new ArrayList<>();\n\t\tfor (T t : list) {\n\t\t\tif (p.test(t)) {\n\t\t\t\tresult.add(t);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public List<AnnotatedLinkWrapper> getItemsUnfiltered() {\n return getDelegate().getExtendedItems().stream()\n .map(AnnotatedLinkWrapper::new)\n .filter(al -> al.getTarget() != null)\n .filter(al -> al.getTarget().isInProduction())\n .collect(Collectors.toList());\n }", "Collection<T> doFilter(RepositoryFilterContext context);", "public Map<String, Object> getFilters() {\n if (filters == null) {\n filters = new HashMap<String, Object>();\n }\n \n return filters;\n }", "public List<String> getList() {\n return Collections.unmodifiableList(_model.getList());\n }", "public static <T> List<T> filterList(List<T> list, Predicate<T> p) {\n\t\tList<T> result = new ArrayList<T>();\n\t\t\n\t\tfor (T t : list) {\n\t\t\tif (p.test(t)) {\n\t\t\t\tresult.add(t);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public Map<String, Filter> getFilters() {\n return filters;\n }", "ObservableList<Expense> getFilteredExpenseList() throws NoUserSelectedException;", "java.util.List<java.lang.String>\n getQueryItemsList();", "public cwterm.service.rigctl.xsd.Filter[] getFilters() {\n return localFilters;\n }", "void updateFilteredListToShowAll();", "void updateFilteredListToShowAll();", "@GetMapping(\"/filtering-list\")\r\n\tpublic MappingJacksonValue retrieveListBean() {\n\t\tList<SomeBean> list = Arrays.asList(new SomeBean(\"value1\",\"value2\",\"value3\"),\r\n\t\t\t\tnew SomeBean(\"value10\",\"value20\",\"value30\")\r\n\t\t\t\t);\r\n\t\tMappingJacksonValue mapping = new MappingJacksonValue(list);\r\n\t\tSimpleBeanPropertyFilter filter = SimpleBeanPropertyFilter.filterOutAllExcept(\"field3\", \"field2\");\r\n\t\tFilterProvider filters = new SimpleFilterProvider().addFilter(\"SomeBeanFilter\", filter);\r\n\t\tmapping.setFilters(filters);\r\n\t\treturn mapping;\r\n\t}", "@Override\n public List runFilter(String filter) {\n return runFilter(\"\", filter);\n }", "public List<IRuleFilter> getFilters() {\n return filters;\n }", "public static List getList() {\r\n return Arrays.asList(ALL);\r\n }", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "public String[] getFilterNames() {\r\n return this.filterNames;\r\n }", "public ArrayList<RowItem> getProductItems() {\n\t\treturn this.filteredList;\n\t}", "public String getFilter();", "boolean hasFiltered() {\n return filtered;\n }", "public void updateFilterList() {\n filteredList.clear();\n filteredList.addAll(searchList);\n filteredList.retainAll(mediaCategoryList);\n }", "private List<TestCandidate> getFilteredTestCandidates() {\n // Apply suite filters.\n if (!suiteFilters.isEmpty()) {\n for (Filter f : suiteFilters) {\n if (!f.shouldRun(suiteDescription)) {\n return Collections.emptyList();\n }\n }\n }\n \n // Apply method filters.\n if (testFilters.isEmpty()) {\n return testCandidates;\n }\n \n final List<TestCandidate> filtered = new ArrayList<TestCandidate>(testCandidates);\n for (Iterator<TestCandidate> i = filtered.iterator(); i.hasNext(); ) {\n final TestCandidate candidate = i.next();\n for (Filter f : testFilters) {\n if (!f.shouldRun(Description.createTestDescription(\n candidate.instance.getClass(), candidate.method.getName()))) {\n i.remove();\n break;\n }\n }\n }\n return filtered;\n }", "public static List<Student> filterMaleValues(){\n\n\t\tList<Student> filterMaleExe = StudentDataBase.getAllStudents().stream()\n\t\t\t\t.filter(k->k.getGradeLevel()>=3.9)\n\t\t\t\t.filter(j->j.getGender().equals(\"male\")).collect(Collectors.toList());\n\t\treturn filterMaleExe;\n\t}", "public List<SearchedItem> getAllSearchedItems(StaplerRequest req, String tokenList) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ServletException {\n Set<String> filteredItems= new TreeSet<String>();\n AbstractProject p;\n \n if(\"Filter\".equals(req.getParameter(\"submit\"))){ //user wanto to change setting for this search\n filteredItems = getFilter(req);\n }\n else{\n filteredItems = User.current().getProperty(SearchProperty.class).getFilter();\n }\n req.setAttribute(\"filteredItems\", filteredItems);\n return getResolvedAndFilteredItems(tokenList, req, filteredItems);\n }", "String getFilter();", "public ArrayList get(typeFU T) {\n ArrayList<FunctionalUnit> valueParent = new ArrayList<>(); \n ArrayList<FunctionalUnit> filtered = new ArrayList<>();\n valueParent = FU.get(T);\n for (int i = 0; i < valueParent.size(); i++) {\n if (valueParent.get(i).isActive() == true) {\n filtered.add(valueParent.get(i));\n }\n } \n return filtered;\n }", "protected List<Object> getPreFilters(List<Object> list, Class<T> entityClass, Pageable filter)\r\n {\r\n if (preFilterAccessor != null) {\r\n list.addAll(preFilterAccessor.getPreFilters(entityClass, filter));\r\n }\r\n return list;\r\n }", "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "java.lang.String getFilter();", "public Expression getFilter() {\n return this.filter;\n }", "public LSPFilter getFilter () {\r\n return filter;\r\n }", "void printFilteredItems();", "private List getList() {\n if(itemsList == null) {\n itemsList = new ArrayList<>();\n }\n return itemsList;\n }", "Filter getFilter();", "public List getList();", "@FXML\n public void filterIngredients(){\n String searchText = searchIngredient.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n ingredientsList.setItems(filterObservableList);\n }", "void updateFilteredListsToShowAll();", "public void filterList(String text) {\n filter.filter(text);\n }", "public List setFilter(java.lang.String filter) {\n this.filter = filter;\n return this;\n }", "public Filter getFilter(final boolean isHistory) {\n\t\tisHistory_global = isHistory;\n\t\tFilter filter = new Filter() {\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tprotected void publishResults(CharSequence constraint,\n\t\t\t\t\tFilterResults results) {\n\n\t\t\t\tbookingsList = (List<Bookings>) results.values;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t\temptyviewHandler.sendEmptyMessage(0);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected FilterResults performFiltering(CharSequence constraint) {\n\n\t\t\t\tFilterResults results = new FilterResults();\n\t\t\t\tfilteredBookingsList = new ArrayList<Bookings>();\n\n\t\t\t\tif (constraint == null || constraint.length() == 0) {\n\t\t\t\t\tresults.count = bookingsList.size();\n\t\t\t\t\tresults.values = bookingsList;\n\t\t\t\t} else {\n\t\t\t\t\tconstraint = constraint.toString().toLowerCase();\n\t\t\t\t\tfor (int i = 0; i < bookingsList.size(); i++) {\n\n\t\t\t\t\t\tif (isHistory) {\n\t\t\t\t\t\t\tif (bookingsList.get(i).getCompletedAt().equals(\"\")\n\t\t\t\t\t\t\t\t\t|| bookingsList.get(i).getStatus()\n\t\t\t\t\t\t\t\t\t\t\t.get(\"currentStatus\").toString()\n\t\t\t\t\t\t\t\t\t\t\t.equals(\"\")) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString pickupAddress, dropoffAddress;\n\t\t\t\t\t\tpickupAddress = bookingsList.get(i).getPickupLocation()\n\t\t\t\t\t\t\t\t.getAddressLine1().toString();\n\n\t\t\t\t\t\tdropoffAddress = bookingsList.get(i).getDropLocation()\n\t\t\t\t\t\t\t\t.getAddressLine1().toString();\n\n\t\t\t\t\t\tif (pickupAddress.toLowerCase().contains(\n\t\t\t\t\t\t\t\tconstraint.toString())\n\t\t\t\t\t\t\t\t|| dropoffAddress.toLowerCase().contains(\n\t\t\t\t\t\t\t\t\t\tconstraint.toString())) {\n\t\t\t\t\t\t\tfilteredBookingsList.add(bookingsList.get(i));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tresults.count = filteredBookingsList.size();\n\t\t\t\t\tresults.values = filteredBookingsList;\n\n\t\t\t\t}\n\n\t\t\t\treturn results;\n\t\t\t}\n\t\t};\n\n\t\treturn filter;\n\t}", "@Override\n public List<FilterByDefinition> getFilterByDefinitions() {\n return Collections.emptyList();\n }", "public Set<String> getFilterTerms() {\n\t\tSet<String> filterTerms = new HashSet<String>();\n\t\tfor(String filters : sessionBean.getFilters()) {\n\t\t\t// split by 0 or more spaces, followed by either 'and','or', comma or more spaces\n\t\t\tString[] filterTermsArray = filters.split(\"\\\\s*(and|or|,)\\\\s*\");\n\t\t\tCollections.addAll(filterTerms, filterTermsArray);\n\t\t}\n\t\treturn filterTerms;\n\t}", "public List<String> getSortedResults() {\r\n\t\tList<String> subset;\r\n\t\tif (filter == null) {\r\n\t\t\tsubset = allWords;\r\n\t\t} else {\r\n\t\t\tsubset = getFilteredWords();\r\n\t\t}\r\n\t\tsortResults(subset);\r\n\t\tint wordCount = Math.min(subset.size(), wordLimit);\r\n\t\tArrayList<String> result = new ArrayList<String>(wordCount);\t\r\n\t\tresult.addAll(subset.subList(0, wordCount));\r\n\t\treturn result;\r\n\t}" ]
[ "0.76004875", "0.744624", "0.7425063", "0.718296", "0.7174654", "0.7151332", "0.70975244", "0.707113", "0.7049913", "0.70308924", "0.6869721", "0.6869721", "0.6834401", "0.67945844", "0.67541814", "0.6753279", "0.6728503", "0.67229116", "0.6678008", "0.6671066", "0.6656516", "0.6631198", "0.6604699", "0.6553789", "0.65500456", "0.65065694", "0.6505971", "0.6485105", "0.6468755", "0.64527375", "0.64325815", "0.6424658", "0.6370961", "0.63572866", "0.63534516", "0.63534516", "0.63256824", "0.62907666", "0.6285875", "0.6270546", "0.6268683", "0.62675667", "0.62639", "0.6252163", "0.6236525", "0.6218518", "0.6195498", "0.6179523", "0.6157242", "0.6122738", "0.60944337", "0.6068828", "0.60685986", "0.6054313", "0.60538584", "0.6031284", "0.60136783", "0.6010816", "0.600931", "0.6008243", "0.5990705", "0.59780943", "0.5977422", "0.59621274", "0.5960321", "0.59501654", "0.5949473", "0.5936562", "0.5936562", "0.5926599", "0.592081", "0.5909874", "0.59078306", "0.58985186", "0.58910596", "0.5886425", "0.58849096", "0.58689547", "0.5866323", "0.5855173", "0.58529586", "0.58524364", "0.5842294", "0.58352506", "0.58265305", "0.5818559", "0.58175594", "0.58093745", "0.5799103", "0.5786326", "0.5782632", "0.5782488", "0.5771296", "0.57711643", "0.57662076", "0.576085", "0.5756487", "0.5750292", "0.5748928", "0.57472444", "0.57470155" ]
0.0
-1
Corresponds to attribute filterRes on the given filter element. Contains the X component of attribute filterRes.
public final OMSVGAnimatedInteger getFilterResX() { return ((SVGFilterElement)ot).getFilterResX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setFilterRes(int filterResX, int filterResY) throws JavaScriptException {\n ((SVGFilterElement)ot).setFilterRes(filterResX, filterResY);\n }", "public Element getFilterElement() {\n\t\tElement result = new Element(TAG_FILTER);\n\t\t\n\t\tElement desc = new Element(TAG_DESCRIPTION);\n\t\tdesc.setText(this.description);\n\t\tresult.addContent(desc);\n\t\t\n\t\tElement logdata = new Element(TAG_LOGDATA);\n\t\tlogdata.setText(\"\" + this.logData);\n\t\tresult.addContent(logdata);\n\t\t\n\t\tElement accepted = new Element(TAG_ACCEPTEDTYPES);\n\t\tif (acceptedEventTypes != null) {\n\t\t Set<String> keys = acceptedEventTypes.keySet();\n\t\t\t// sort output by event type name\n\t\t\tLinkedList<String> sortedKeyList = new LinkedList<String>(keys);\n\t\t\tCollections.sort(sortedKeyList);\n\t\t\tfor (String key : sortedKeyList) {\n\t\t\t\t// only save event types which are actually set for logging\n\t\t\t\tif (getEventTypePriority(key) != PRIORITY_OFF) {\n\t\t\t\t\tElement type = new Element(TAG_CLASS);\n\t\t\t\t\ttype.setText(key);\n\t\t\t\t\ttype.setAttribute(TAG_PRIORITY, \"\" + getEventTypePriorityString(key));\n\t\t\t\t\taccepted.addContent(type);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tresult.addContent(accepted);\n\t\t\n\t\treturn result;\n\t}", "public void setFilter(Expression filter) {\n this.filter = filter;\n }", "public void setFilterExpression(Expression filterExpr) {\n\t\tthis.filterExpr = filterExpr;\n\t}", "public final OMSVGAnimatedInteger getFilterResY() {\n return ((SVGFilterElement)ot).getFilterResY();\n }", "public void addFilterToAttributes(ViewerFilter filter);", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "private void applyFilterIcon() {\n addStyleName(\"appliedfilter\");\n icon.setSource(selectedTheam);\n }", "public String getFilterId() {\n return this.filterId;\n }", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public void setPointAttributeFilter( AttributeFilter filter )\n \t{\n \t\tpointAttributeFilter = filter;\n \t}", "public void setEdgeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tedgeAttributeFilter = filter;\n \t}", "public String getFilter() {\n\t\treturn filter;\n\t}", "public void setNodeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tnodeAttributeFilter = filter;\n \t}", "public Expression getFilter() {\n return this.filter;\n }", "public abstract INexusFilterDescriptor getFilterDescriptor();", "public LSPFilter getFilter () {\r\n return filter;\r\n }", "public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }", "public Filter getFilter() {\n\t\treturn (filter);\n\t}", "@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();", "public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}", "Filter getFilter();", "public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }", "void filterChanged(Filter filter);", "String getFilterName();", "java.lang.String getFilter();", "public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }", "public java.lang.String getFilter() {\n return filter;\n }", "void onFilterChanged(ArticleFilter filter);", "FeatureHolder filter(FeatureFilter filter);", "public String getFilter();", "String getFilter();", "FeedbackFilter getFilter();", "public Filter getFilterComponent()\n {\n return filterComponent;\n }", "public DDataFilter add(DDataFilter filter) throws DDataException {\n if (filter == null) return this;\n\n if (this.filters != null)\n if (attribute == ROOT_FILTER) {\n this.filters.add(filter);\n return this;\n } else for (Field field : attribute.getJavaType().getDeclaredFields())\n if (field.isEnumConstant()) {\n @SuppressWarnings(\"unchecked\")\n DDataAttribute atr = (DDataAttribute) Enum.valueOf((Class<? extends Enum>) attribute.getJavaType(), field.getName());\n if (atr.getPropertyName() != null && atr.getPropertyName().equals(filter.attribute.getPropertyName())) {\n this.filters.add(filter);\n return this;\n }\n }\n throw new DDataException(\"can't add filter by \" + filter.attribute.getPropertyName() + \" to \" + attribute.getPropertyName());\n }", "public void XtestSetGetAppFilter() throws Exception\n {\n fail(\"Unimplemented test\");\n\n /*\n * AppFilter filter = new AppFilter() { public boolean accept(AppID id)\n * { return false; } }; Manager mgr = AppManager.getInstance();\n * \n * AppFilter save = mgr.getAppFilter();\n * \n * mgr.setAppFilter(null);\n * assertNull(\"Retrieved appFilter should be set appFilter (null)\",\n * mgr.getAppFilter());\n * \n * mgr.setAppFilter(filter);\n * assertSame(\"Retrieved appFilter should be set appFilter (filter)\",\n * filter, mgr.getAppFilter());\n * \n * mgr.setAppFilter(save);\n * assertSame(\"Retrieved appFilter should be set appFilter (save)\",\n * save, mgr.getAppFilter());\n */\n }", "void setFilter(Filter f);", "java.lang.String getDataItemFilter();", "public ImageFilter getFilter() {\r\n\t\treturn filter;\r\n\t}", "public String getFilterLabel( )\n {\n return _strFilterLabel;\n }", "@Override\n\tpublic SVGFilterDescriptor toSVG(BufferedImageOp filter, Rectangle filterRect) {\n\t\tif (filter instanceof LookupOp)\n\t\t\treturn toSVG((LookupOp) filter);\n\t\telse\n\t\t\treturn null;\n\t}", "user_filter_reference getUser_filter_reference();", "@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }", "public ExtensionFilter getFilter () {\n return this.filter;\n }", "public void setFilteringResults(Map<String, Boolean> filteringResults) {\n this.filteringResults = filteringResults;\n }", "FilterInfo getActiveFilterInfoForFilter(String filter_id);", "public void setZqu__Filters__r(com.sforce.soap.enterprise.QueryResult zqu__Filters__r) {\r\n this.zqu__Filters__r = zqu__Filters__r;\r\n }", "public String getFilter() {\n\t\treturn(\"PASS\");\n\t}", "public String getUserFilter()\n {\n return this.userFilter;\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "void setFilter(String filter);", "public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public Long getIdFilter() {\n\t\treturn idFilter;\n\t}", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "public PSFilterResultSetWrapper(PSExecutionData data, ResultSet rs,\n IPSResultSetDataFilter filter)\n {\n if (data == null)\n throw new IllegalArgumentException(\"Need a valid execution data!\");\n\n if (rs == null)\n throw new IllegalArgumentException(\"There must be a result set!\");\n\n if (rs.getClass().isAssignableFrom(PSFilterResultSetWrapper.class))\n throw new IllegalArgumentException(\"Result set already wrapped!\");\n\n m_data = data;\n m_rs = rs;\n m_filter = filter;\n if (filter != null)\n {\n m_cols = m_filter.getColumns().toArray();\n }\n }", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "@Override\n\tpublic String name() {\n\t\treturn filter.name();\n\t}", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }", "private Filter readFilterComponent() {\n String word = readWord();\n if (word == null)\n {\n final String msg = String.format(\n \"End of input at position %d but expected a filter expression\",\n markPos);\n throw new IllegalArgumentException(msg);\n }\n\n\n final AttributePath filterAttribute;\n try {\n filterAttribute = AttributePath.parse(word, defaultSchema);\n } catch (final Exception e) {\n final String msg = String.format(\n \"Expected an attribute reference at position %d: %s\",\n markPos, e.getMessage());\n throw new IllegalArgumentException(msg);\n }\n\n final String operator = readWord();\n if (operator == null) {\n final String msg = String.format(\n \"End of input at position %d but expected an attribute operator\",\n markPos);\n throw new IllegalArgumentException(msg);\n }\n\n final Operator attributeOperator;\n try {\n attributeOperator = Operator.fromString(operator);\n } catch (Exception ex) {\n final String msg = String.format(\n \"Unrecognized attribute operator '%s' at position %d. \" +\n \"Expected: eq,co,sw,pr,gt,ge,lt,le\", operator, markPos);\n throw new IllegalArgumentException(msg);\n }\n final Object filterValue;\n if (!attributeOperator.equals(Operator.PRESENCE)) {\n filterValue = readValue();\n if (filterValue == null) {\n final String msg = String.format(\n \"End of input at position %d while expecting a value for \" +\n \"operator %s\", markPos, operator);\n throw new IllegalArgumentException(msg);\n }\n } else {\n filterValue = null;\n }\n\n final String filterValueString = (filterValue != null) ? filterValue.toString() : null;\n return new Filter(\n attributeOperator,\n filterAttribute,\n filterValueString,\n (filterValue != null) && (filterValue instanceof String),\n null);\n }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "Results processFilter(FilterSpecifier filter) throws SearchServiceException;", "com.google.protobuf.ByteString\n getFilterBytes();", "public FilterGridlet(int gridletID, int resID)\n {\n gridletID_ = gridletID;\n userID_ = -1;\n resID_ = resID;\n searchType_ = FIND_GRIDLET_WITH_RES_ID;\n tag_ = -1;\n }", "public double getResx() {\n return resx;\n }", "public MinaIpFilter(IpFilter filter) {\n this.filter = filter;\n }", "protected void setFilterLabel( String strFilterLabel )\n {\n _strFilterLabel = strFilterLabel;\n }", "public void setEffect(int effectIndex, int filterIndex) {\n\t\talSource3i(musicSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(musicSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(reverseSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(reverseSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(flangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(flangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t}", "public void resetFilterIcon() {\n removeStyleName(\"appliedfilter\");\n icon.setSource(defaultTheam);\n\n }", "public void removeFilter() {\r\n\t\tfilter = null;\r\n\t}", "public void setFilterId(String filterId) {\n this.filterId = filterId;\n }", "IViewFilter getViewFilter();", "public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }", "public void setFilter(Object[] filter) {\n nativeSetFilter(filter);\n }", "public void addFilterToComboRO(ViewerFilter filter);", "public Map<String, Boolean> getFilteringResults() {\n return filteringResults;\n }", "public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}", "public com.sforce.soap.enterprise.QueryResult getZqu__Filters__r() {\r\n return zqu__Filters__r;\r\n }", "@Override public Filter getFilter() { return null; }", "public String toXML() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(\"<logfilter>\\n\");\n\t\t// write description\n\t\tsb.append(\"<description>\" + description + \"</description>\\n\");\n\t\t// write logdata\n\t\tsb.append(\"<logdata>\" + logData + \"</logdata>\");\n\t\t// write accepted types\n\t\tsb.append(\"<acceptedtypes>\\n\");\n\t\tif (acceptedEventTypes != null) { \n\t\t\tSet<String> keys = acceptedEventTypes.keySet();\n\t\t\tfor (String key : keys) {\n\t\t\t\tsb.append(\"<class priority=\\\"\" + acceptedEventTypes.get(key) + \"\\\">\" + key + \"</class>\\n\");\n\t\t\t}\n\t\t}\n\t\tsb.append(\"</acceptedtypes>\\n\");\n\t\t\n\t\tsb.append(\"</logfilter>\");\n\t\t\n\t\treturn sb.toString();\n\t}", "public void filter(double[] X) {\r\n\t\tfilter(X, 0, X.length);\r\n\t}", "public void setFilter(EntityFilter filter);", "public void appendFeatureHolderStyle(FeatureFilter filter)\n\t{\n\t\tif(this.filter instanceof AndFilter)\n\t\t{\n\t\t\t((AndFilter)this.filter).add(filter);\n\t\t}\n\t\telse if(this.filter != null)\n\t\t{\n\t\t\tthis.filter = new AndFilter(this.filter, filter);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.filter = filter;\n\t\t}\n\t\t\n\t\tthis.valid = false;\n\t}", "public Element getPredicateVariable();", "public abstract void updateFilter();", "public void addFilters(cwterm.service.rigctl.xsd.Filter param) {\n if (localFilters == null) {\n localFilters = new cwterm.service.rigctl.xsd.Filter[] {};\n }\n localFiltersTracker = true;\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFilters);\n list.add(param);\n this.localFilters = (cwterm.service.rigctl.xsd.Filter[]) list.toArray(new cwterm.service.rigctl.xsd.Filter[list.size()]);\n }", "public boolean filter(Element e) {\n\t\t\t\tif(e.getRepresentedBy() instanceof AttributeElement) {\r\n\t\t\t\t\treturn ((AttributeElement) e.getRepresentedBy())\r\n\t\t\t\t\t\t.getRepresents().getName().equals(\"name\"); \r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}", "public DDataFilter() {\n filters = new ArrayList<>();\n operator = null;\n value = null;\n externalData = false;\n valueTo = null;\n attribute = ROOT_FILTER;\n }", "public int getFilterMode(){ return mFilterMode;}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t if (resultCode == RESULT_OK && requestCode == request_Code_Filter) {\n\t // Extract name value from result extras\n\t FilterSettings filterReturn = (FilterSettings) data.getSerializableExtra(\"filterSetting\");\n\n\t // If the Filter has been updated, notify the user with a Toast\n\t if (!((filterSetting.size.equals(filterReturn.size)) && (filterSetting.type.equals(filterReturn.type))\n\t \t\t && (filterSetting.color.equals(filterReturn.color)) && (filterSetting.site.equals(filterReturn.site)))) {\n\t \tToast.makeText(this, \"Filter has been Updated\", Toast.LENGTH_SHORT).show(); \n\t } \n\t \n\t filterSetting.size = filterReturn.size;\n\t filterSetting.type = filterReturn.type;\n\t filterSetting.color = filterReturn.color;\n\t filterSetting.site = filterReturn.site;\n\t \n\t }\n\t}", "void setRNRFilter(){\n\t\tString argument = cmd.getOptionValue(\"rnr\",\".5\");\n\t\tfloat valFloat = Float.parseFloat(argument);\n\t\tfilterValue = valFloat;\n\t}", "public final AfIPFilter getIPFilter() {\n return _ipFilter;\n }", "public void updateFilter() {\n Texture2dProgram.ProgramType programType;\n float[] kernel = null;\n float colorAdj = 0.0f;\n\n Log.d(TAG, \"Updating filter to \" + mNewFilter);\n switch (mNewFilter) {\n case CameraActivity.FILTER_NONE:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT;\n break;\n case CameraActivity.FILTER_BLACK_WHITE:\n // (In a previous version the TEXTURE_EXT_BW variant was enabled by a flag called\n // ROSE_COLORED_GLASSES, because the shader set the red channel to the B&W color\n // and green/blue to zero.)\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_BW;\n break;\n case CameraActivity.FILTER_BLUR:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 1f/16f, 2f/16f, 1f/16f,\n 2f/16f, 4f/16f, 2f/16f,\n 1f/16f, 2f/16f, 1f/16f };\n break;\n case CameraActivity.FILTER_SHARPEN:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 0f, -1f, 0f,\n -1f, 5f, -1f,\n 0f, -1f, 0f };\n break;\n case CameraActivity.FILTER_EDGE_DETECT:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n -1f, -1f, -1f,\n -1f, 8f, -1f,\n -1f, -1f, -1f };\n break;\n case CameraActivity.FILTER_EMBOSS:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 2f, 0f, 0f,\n 0f, -1f, 0f,\n 0f, 0f, -1f };\n colorAdj = 0.5f;\n break;\n default:\n throw new RuntimeException(\"Unknown filter mode \" + mNewFilter);\n }\n\n // Do we need a whole new program? (We want to avoid doing this if we don't have\n // too -- compiling a program could be expensive.)\n if (programType != mFullScreen.getProgram().getProgramType()) {\n mFullScreen.changeProgram(new Texture2dProgram(programType));\n // If we created a new program, we need to initialize the texture width/height.\n mIncomingSizeUpdated = true;\n }\n\n // Update the filter kernel (if any).\n if (kernel != null) {\n mFullScreen.getProgram().setKernel(kernel, colorAdj);\n }\n\n mCurrentFilter = mNewFilter;\n }", "public void setRowFilter(RowFilter rowFilter) {\n\n this.rowFilter = rowFilter;\n }", "void registerFilterListener(FilterListener listener);", "public Element setFilterState(boolean filter_state) {\n\t\tthis.filter_state = filter_state;\n\t\treturn (this);\n\t}", "com.google.protobuf.ByteString getDataItemFilterBytes();", "protected String mountSearchFilter(\r\n\t\tString[] parametroFiltro,\r\n\t\tString[] valoresArg) {\r\n\r\n\t\tif (log.isDebugEnabled())\r\n\t\t\tlog.debug( \" Entrou montaFiltroPesquisa\");\r\n\r\n\t\ttry {\r\n\r\n\t\t\tStringBuffer filtroPesquisa = new StringBuffer();\r\n\r\n\t\t\tif (parametroFiltro != null\r\n\t\t\t\t&& parametroFiltro.length > 0\r\n\t\t\t\t&& valoresArg != null\r\n\t\t\t\t&& valoresArg.length > 0\r\n\t\t\t\t&& parametroFiltro.length == valoresArg.length) {\r\n\r\n\t\t\t\tfiltroPesquisa.append(\"(&\");\r\n\r\n\t\t\t\tfor (int i = 0; i < parametroFiltro.length; i++) {\r\n\t\t\t\t\tif (valoresArg[i] != null) {\r\n\t\t\t\t\t\tfiltroPesquisa.append( \" (\" + parametroFiltro[i] + \"=\" + valoresArg[i] + \")\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfiltroPesquisa.append(\")\");\r\n\r\n\t\t\t\tif (log.isDebugEnabled())\r\n\t\t\t\t\tlog.debug( \"filtroPesquisa = \" + filtroPesquisa.toString());\r\n\r\n\t\t\t\treturn filtroPesquisa.toString();\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error( \r\n\t\t\t\t\"Erro no web-service ao montar filtro de pesquisa = \" + e,\r\n\t\t\t\te);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}" ]
[ "0.6021514", "0.5348354", "0.508172", "0.5073587", "0.5066995", "0.50579816", "0.49903288", "0.4971753", "0.49652562", "0.4950048", "0.49338785", "0.49277562", "0.4924896", "0.48890054", "0.48740754", "0.48621178", "0.48496217", "0.4845834", "0.4841458", "0.48071557", "0.47978857", "0.47839472", "0.47744715", "0.47473618", "0.4724297", "0.47187227", "0.47100875", "0.46881935", "0.46686956", "0.4641679", "0.46228558", "0.46099237", "0.4609563", "0.4607385", "0.45878714", "0.45670876", "0.45584118", "0.4558347", "0.45571852", "0.45519802", "0.4538428", "0.45349035", "0.45264184", "0.45059747", "0.4502455", "0.44933802", "0.4487521", "0.4460669", "0.44521606", "0.44353256", "0.44347295", "0.44142812", "0.44137016", "0.44137016", "0.44079235", "0.44075045", "0.44015867", "0.43993762", "0.439502", "0.43850908", "0.438223", "0.43796587", "0.43765572", "0.43733174", "0.4352834", "0.43509758", "0.4342511", "0.43414178", "0.4336275", "0.4326715", "0.4325989", "0.43246377", "0.43225783", "0.4318472", "0.43070456", "0.43005994", "0.42960382", "0.4293841", "0.429231", "0.42878363", "0.4274486", "0.427418", "0.42716458", "0.4267227", "0.4266051", "0.42636034", "0.42617625", "0.42602894", "0.42560226", "0.42549255", "0.42461738", "0.42461118", "0.42447156", "0.42429692", "0.42304394", "0.4229959", "0.4226246", "0.42259902", "0.42254913", "0.42168203" ]
0.68359345
0
Corresponds to attribute filterRes on the given filter element. Contains the Y component (possibly computed automatically) of attribute filterRes.
public final OMSVGAnimatedInteger getFilterResY() { return ((SVGFilterElement)ot).getFilterResY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final OMSVGAnimatedInteger getFilterResX() {\n return ((SVGFilterElement)ot).getFilterResX();\n }", "public final void setFilterRes(int filterResX, int filterResY) throws JavaScriptException {\n ((SVGFilterElement)ot).setFilterRes(filterResX, filterResY);\n }", "public double getResy() {\n return resy;\n }", "public ImageFilter getFilter() {\r\n\t\treturn filter;\r\n\t}", "public Filter getFilter() {\n\t\treturn (filter);\n\t}", "public void setEdgeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tedgeAttributeFilter = filter;\n \t}", "public void setPointAttributeFilter( AttributeFilter filter )\n \t{\n \t\tpointAttributeFilter = filter;\n \t}", "Filter getFilter();", "public void updateFilter() {\n Texture2dProgram.ProgramType programType;\n float[] kernel = null;\n float colorAdj = 0.0f;\n\n Log.d(TAG, \"Updating filter to \" + mNewFilter);\n switch (mNewFilter) {\n case CameraActivity.FILTER_NONE:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT;\n break;\n case CameraActivity.FILTER_BLACK_WHITE:\n // (In a previous version the TEXTURE_EXT_BW variant was enabled by a flag called\n // ROSE_COLORED_GLASSES, because the shader set the red channel to the B&W color\n // and green/blue to zero.)\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_BW;\n break;\n case CameraActivity.FILTER_BLUR:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 1f/16f, 2f/16f, 1f/16f,\n 2f/16f, 4f/16f, 2f/16f,\n 1f/16f, 2f/16f, 1f/16f };\n break;\n case CameraActivity.FILTER_SHARPEN:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 0f, -1f, 0f,\n -1f, 5f, -1f,\n 0f, -1f, 0f };\n break;\n case CameraActivity.FILTER_EDGE_DETECT:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n -1f, -1f, -1f,\n -1f, 8f, -1f,\n -1f, -1f, -1f };\n break;\n case CameraActivity.FILTER_EMBOSS:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 2f, 0f, 0f,\n 0f, -1f, 0f,\n 0f, 0f, -1f };\n colorAdj = 0.5f;\n break;\n default:\n throw new RuntimeException(\"Unknown filter mode \" + mNewFilter);\n }\n\n // Do we need a whole new program? (We want to avoid doing this if we don't have\n // too -- compiling a program could be expensive.)\n if (programType != mFullScreen.getProgram().getProgramType()) {\n mFullScreen.changeProgram(new Texture2dProgram(programType));\n // If we created a new program, we need to initialize the texture width/height.\n mIncomingSizeUpdated = true;\n }\n\n // Update the filter kernel (if any).\n if (kernel != null) {\n mFullScreen.getProgram().setKernel(kernel, colorAdj);\n }\n\n mCurrentFilter = mNewFilter;\n }", "public LSPFilter getFilter () {\r\n return filter;\r\n }", "public String getFilter() {\n\t\treturn filter;\n\t}", "FeedbackFilter getFilter();", "public Expression getFilter() {\n return this.filter;\n }", "public Element getFilterElement() {\n\t\tElement result = new Element(TAG_FILTER);\n\t\t\n\t\tElement desc = new Element(TAG_DESCRIPTION);\n\t\tdesc.setText(this.description);\n\t\tresult.addContent(desc);\n\t\t\n\t\tElement logdata = new Element(TAG_LOGDATA);\n\t\tlogdata.setText(\"\" + this.logData);\n\t\tresult.addContent(logdata);\n\t\t\n\t\tElement accepted = new Element(TAG_ACCEPTEDTYPES);\n\t\tif (acceptedEventTypes != null) {\n\t\t Set<String> keys = acceptedEventTypes.keySet();\n\t\t\t// sort output by event type name\n\t\t\tLinkedList<String> sortedKeyList = new LinkedList<String>(keys);\n\t\t\tCollections.sort(sortedKeyList);\n\t\t\tfor (String key : sortedKeyList) {\n\t\t\t\t// only save event types which are actually set for logging\n\t\t\t\tif (getEventTypePriority(key) != PRIORITY_OFF) {\n\t\t\t\t\tElement type = new Element(TAG_CLASS);\n\t\t\t\t\ttype.setText(key);\n\t\t\t\t\ttype.setAttribute(TAG_PRIORITY, \"\" + getEventTypePriorityString(key));\n\t\t\t\t\taccepted.addContent(type);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tresult.addContent(accepted);\n\t\t\n\t\treturn result;\n\t}", "public void addFilterToAttributes(ViewerFilter filter);", "public void setFilterExpression(Expression filterExpr) {\n\t\tthis.filterExpr = filterExpr;\n\t}", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "public double valeurEnReelleY(double pixel) {\n\t\treturn pixel/modele.getPixelsParUniteY();\n\t}", "public Filter getFilterComponent()\n {\n return filterComponent;\n }", "private Filter readFilterComponent() {\n String word = readWord();\n if (word == null)\n {\n final String msg = String.format(\n \"End of input at position %d but expected a filter expression\",\n markPos);\n throw new IllegalArgumentException(msg);\n }\n\n\n final AttributePath filterAttribute;\n try {\n filterAttribute = AttributePath.parse(word, defaultSchema);\n } catch (final Exception e) {\n final String msg = String.format(\n \"Expected an attribute reference at position %d: %s\",\n markPos, e.getMessage());\n throw new IllegalArgumentException(msg);\n }\n\n final String operator = readWord();\n if (operator == null) {\n final String msg = String.format(\n \"End of input at position %d but expected an attribute operator\",\n markPos);\n throw new IllegalArgumentException(msg);\n }\n\n final Operator attributeOperator;\n try {\n attributeOperator = Operator.fromString(operator);\n } catch (Exception ex) {\n final String msg = String.format(\n \"Unrecognized attribute operator '%s' at position %d. \" +\n \"Expected: eq,co,sw,pr,gt,ge,lt,le\", operator, markPos);\n throw new IllegalArgumentException(msg);\n }\n final Object filterValue;\n if (!attributeOperator.equals(Operator.PRESENCE)) {\n filterValue = readValue();\n if (filterValue == null) {\n final String msg = String.format(\n \"End of input at position %d while expecting a value for \" +\n \"operator %s\", markPos, operator);\n throw new IllegalArgumentException(msg);\n }\n } else {\n filterValue = null;\n }\n\n final String filterValueString = (filterValue != null) ? filterValue.toString() : null;\n return new Filter(\n attributeOperator,\n filterAttribute,\n filterValueString,\n (filterValue != null) && (filterValue instanceof String),\n null);\n }", "public void setFilter(Expression filter) {\n this.filter = filter;\n }", "public UnsignedDoubleTextFilter getTextFilter() {\n return filter;\n }", "public java.lang.String getFilter() {\n return filter;\n }", "void filterChanged(Filter filter);", "public double filter(double x) {\n y = b0 * x + b1 * x1 + b2 * x2 - a1 * y1 - a2 * y2;\n x2 = x1;\n x1 = x;\n y2 = y1;\n y1 = y;\n return (y);\n }", "public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }", "public String getFilterId() {\n return this.filterId;\n }", "public void setNodeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tnodeAttributeFilter = filter;\n \t}", "public String getFilterLabel( )\n {\n return _strFilterLabel;\n }", "String getFilter();", "@Override\n\tpublic RGB get(int x,int y)\n\t{\n\t\treturn getBase().get(x,y).filter(filter);\n\t}", "public String getFilter() {\n\t\treturn(\"PASS\");\n\t}", "java.lang.String getFilter();", "public abstract INexusFilterDescriptor getFilterDescriptor();", "public double getResx() {\n return resx;\n }", "public String getFilter();", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public static void addFilter(String str, Double[][] filter) {\n //setup kernals\n if (kernalMap == null) {\n kernalMap = new HashMap<>();\n //vertical\n Double[][] vertical = {{1.0, 0.0, -1.0}, {1.0, 0.0, -1.0}, {1.0, 0.0, -1.0}};\n kernalMap.put(\"v\", vertical);\n //horizontal\n Double[][] horizontal = {{1.0, 1.0, 1.0}, {0.0, 0.0, 0.0}, {-1.0, -1.0, -1.0}};\n kernalMap.put(\"h\", horizontal);\n //sobel vertical\n Double[][] sobel_v = {{1.0, 0.0, -1.0}, {2.0, 0.0, -2.0}, {1.0, 0.0, -1.0}};\n kernalMap.put(\"sobel v\", sobel_v);\n //sobel horizontal\n Double[][] sobel_h = {{0.0, 2.0, 1.0}, {0.0, 0.0, 0.0}, {-1.0, -2.0, -1.0}};\n kernalMap.put(\"sobel h\", sobel_h);\n //scharr vertical\n Double[][] scharr_v = {{3.0, 0.0, -3.0}, {10.0, 0.0, -10.0}, {3.0, 0.0, -3.0}};\n kernalMap.put(\"scharr v\", scharr_v);\n //scharr horizontal\n Double[][] scharr_h = {{3.0, 10.0, 3.0}, {0.0, 0.0, 0.0}, {-3.0, -10.0, -3.0}};\n kernalMap.put(\"scharr h\", scharr_h);\n }\n if (!kernalMap.containsKey(str)) {\n kernalMap.put(str, filter);\n }\n }", "public IntelligentTieringFilter getFilter() {\n return filter;\n }", "public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }", "public double getYPixel()\n {\n return yPixel;\n }", "public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }", "public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }", "void setFilter(Filter f);", "public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}", "public float getFreqY() {\n return freqY;\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "Integer getAutoencoderFilter();", "public ExtensionFilter getFilter () {\n return this.filter;\n }", "private void applyFilterIcon() {\n addStyleName(\"appliedfilter\");\n icon.setSource(selectedTheam);\n }", "public DDataFilter add(DDataFilter filter) throws DDataException {\n if (filter == null) return this;\n\n if (this.filters != null)\n if (attribute == ROOT_FILTER) {\n this.filters.add(filter);\n return this;\n } else for (Field field : attribute.getJavaType().getDeclaredFields())\n if (field.isEnumConstant()) {\n @SuppressWarnings(\"unchecked\")\n DDataAttribute atr = (DDataAttribute) Enum.valueOf((Class<? extends Enum>) attribute.getJavaType(), field.getName());\n if (atr.getPropertyName() != null && atr.getPropertyName().equals(filter.attribute.getPropertyName())) {\n this.filters.add(filter);\n return this;\n }\n }\n throw new DDataException(\"can't add filter by \" + filter.attribute.getPropertyName() + \" to \" + attribute.getPropertyName());\n }", "protected void setOutputFilter(OutputFilter filter) {\n this.outputFilter = filter;\n }", "public BsonDocument getFilter() {\n return filter;\n }", "FeatureHolder filter(FeatureFilter filter);", "public native int getFilter() throws MagickException;", "void onFilterChanged(ArticleFilter filter);", "void setRNRFilter(){\n\t\tString argument = cmd.getOptionValue(\"rnr\",\".5\");\n\t\tfloat valFloat = Float.parseFloat(argument);\n\t\tfilterValue = valFloat;\n\t}", "public int getNatureFilter();", "FilterInfo getActiveFilterInfoForFilter(String filter_id);", "public double getIntensity() {\n return iIntensity;\n }", "public String getUserFilter()\n {\n return this.userFilter;\n }", "public int getFilterMode(){ return mFilterMode;}", "@Override\n\tpublic SVGFilterDescriptor toSVG(BufferedImageOp filter, Rectangle filterRect) {\n\t\tif (filter instanceof LookupOp)\n\t\t\treturn toSVG((LookupOp) filter);\n\t\telse\n\t\t\treturn null;\n\t}", "String getFilterName();", "public Map<String, Boolean> getFilteringResults() {\n return filteringResults;\n }", "protected double getPixelsPerY() {\n\t\treturn m_pixelsPerY;\n\t}", "public final AfIPFilter getIPFilter() {\n return _ipFilter;\n }", "public final static Double[][] getFiler(String filterName) {\n //setup kernals\n if (kernalMap == null) {\n kernalMap = new HashMap<>();\n //vertical\n Double[][] vertical = {{1.0, 0.0, -1.0}, {1.0, 0.0, -1.0}, {1.0, 0.0, -1.0}};\n kernalMap.put(\"v\", vertical);\n //horizontal\n Double[][] horizontal = {{1.0, 1.0, 1.0}, {0.0, 0.0, 0.0}, {-1.0, -1.0, -1.0}};\n kernalMap.put(\"h\", horizontal);\n //sobel vertical\n Double[][] sobel_v = {{1.0, 0.0, -1.0}, {2.0, 0.0, -2.0}, {1.0, 0.0, -1.0}};\n kernalMap.put(\"sobel v\", sobel_v);\n //sobel horizontal\n Double[][] sobel_h = {{0.0, 2.0, 1.0}, {0.0, 0.0, 0.0}, {-1.0, -2.0, -1.0}};\n kernalMap.put(\"sobel h\", sobel_h);\n //scharr vertical\n Double[][] scharr_v = {{3.0, 0.0, -3.0}, {10.0, 0.0, -10.0}, {3.0, 0.0, -3.0}};\n kernalMap.put(\"scharr v\", scharr_v);\n //scharr horizontal\n Double[][] scharr_h = {{3.0, 10.0, 3.0}, {0.0, 0.0, 0.0}, {-3.0, -10.0, -3.0}};\n kernalMap.put(\"scharr h\", scharr_h);\n }\n if (!kernalMap.containsKey(filterName)) return null;\n return kernalMap.get(filterName);\n }", "com.google.protobuf.ByteString\n getFilterBytes();", "public void setEffect(int effectIndex, int filterIndex) {\n\t\talSource3i(musicSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(musicSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(reverseSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(reverseSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(flangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(flangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t}", "public abstract ParamNumber getParamY();", "@XmlAttribute (namespace= CommonNamespaces.RDF_NAMESPACE)\n @XmlSchemaType (name = \"anyURI\", namespace = XMLConstants.W3C_XML_SCHEMA_NS_URI)\n public URI getResource() {\n return resource;\n }", "public double Y_r() {\r\n \t\treturn getY();\r\n \t}", "IViewFilter getViewFilter();", "public MplsRxFilterValue(int cpuId) {\n super(cpuId);\n this.mplsLabel = null;\n }", "public ActionCriteria getUsageFilter() {\n\t\treturn usageFilter;\n\t}", "private static int getFilter(JSONObject jobj, String filterType){\n\t\tString filterString = jobj.optString(filterType);\n\t\tint filter = GL20.GL_NEAREST;\n\t\tif(filterString.equalsIgnoreCase(\"linear\"))\n\t\t\tfilter = GL20.GL_LINEAR;\n\t\t\n\t\treturn filter;\n\t}", "public ParticleMeasure filter(final Filter filter)\n\t\t{\n\t\tParticleMeasure out=new ParticleMeasure();\n\t\t\n\t\t//Copy all the columns\n\t\tout.columns.addAll(columns);\n\t\t\n\t\t//Copy all frames\n\t\tfor(Map.Entry<EvDecimal, FrameInfo> f:frameInfo.entrySet())\n\t\t\tif(filter.acceptFrame(f.getKey()))\n\t\t\t\t{\n\t\t\t\t//Create place-holder for frame\n\t\t\t\tfinal FrameInfo oldInfo=f.getValue();\n\t\t\t\tfinal FrameInfo newInfo=new FrameInfo();\n\t\t\t\tout.frameInfo.put(f.getKey(), newInfo);\n\n\t\t\t\t//Filter need to execute lazily as well\n\t\t\t\tnewInfo.calcInfo=new CalcInfo()\n\t\t\t\t\t{\n\t\t\t\t\tpublic void calc()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t//Execute calculation if not done already\n\t\t\t\t\t\tif(oldInfo.calcInfo!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\toldInfo.calcInfo.calc();\n\t\t\t\t\t\t\toldInfo.calcInfo=null;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Filter particles\n\t\t\t\t\t\tfor(int id:oldInfo.keySet())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tParticleInfo pInfo=oldInfo.get(id);\n\t\t\t\t\t\t\tif(filter.acceptParticle(id, pInfo))\n\t\t\t\t\t\t\t\tnewInfo.put(id,pInfo);\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\n\t\treturn out;\n\t\t}", "java.lang.String getDataItemFilter();", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "public float getYDest()\n {\n return yDest;\n }", "public String retrieveFilterAsJson() {\n return FilterMarshaller.toJson(getFilter());\n }", "public double getSumY() { \n\t\treturn sumY; \n\t}", "public Filter [] getFilters() {\n return this.Filters;\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }", "@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();", "public ArrayList<FilteringRule> get_filters() {\n\t\treturn filters;\n\t}", "@Override\n\tpublic Filter getFilter() {\n\t\tif (filter == null)\n\t\t\tfilter = new CountryFilter();\n\t\treturn filter;\n\t}", "List<SolarClassification> getAttributesByFilterSolar(String uuid, String filter, String value, List<Header> headers);", "user_filter_reference getUser_filter_reference();", "float getScaler();", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "public DDataFilter() {\n filters = new ArrayList<>();\n operator = null;\n value = null;\n externalData = false;\n valueTo = null;\n attribute = ROOT_FILTER;\n }", "public double getYValue(){\n return(yValue);\n }", "@JsonCreator\n public Filter(String filterStr) {\n Matcher matcher = FILTER_PATTERN.matcher(filterStr);\n if (matcher.find()) {\n _expression = filterStr;\n _leftOperand = getOperand(matcher.group(1));\n _operator = Operator.fromString(matcher.group(2).replaceAll(\"\\\\s+\", \"\"));\n _rightOperand = getOperand(matcher.group(4));\n } else {\n throw new IllegalArgumentException(\"Illegal filter string pattern: '\" + filterStr + \"'\");\n }\n }", "public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }", "public EdgeFilter getEdgeFilter() {\n return edgeFilter;\n }", "public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}", "public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }" ]
[ "0.63414896", "0.5902405", "0.5025033", "0.49816856", "0.4935654", "0.49349245", "0.48259306", "0.48073032", "0.48043913", "0.47757584", "0.4773639", "0.47731116", "0.47686347", "0.47594827", "0.47502565", "0.46943566", "0.46332186", "0.46236876", "0.46230498", "0.4622405", "0.4601052", "0.4575205", "0.45699975", "0.45634872", "0.45575038", "0.45164818", "0.45074683", "0.44949794", "0.44935435", "0.44883668", "0.44877315", "0.44731185", "0.44729534", "0.44413707", "0.4439817", "0.44284165", "0.44160667", "0.4414684", "0.44120413", "0.44072288", "0.43882653", "0.4370265", "0.43627682", "0.4360632", "0.43526378", "0.43368965", "0.43338057", "0.43317842", "0.4326669", "0.43174627", "0.4312771", "0.43120715", "0.43016458", "0.42957994", "0.4291853", "0.42869577", "0.4284426", "0.4283403", "0.427853", "0.42778018", "0.42720982", "0.42591304", "0.4256202", "0.42519635", "0.4251316", "0.42454997", "0.42391366", "0.4236612", "0.42356494", "0.42280477", "0.42205837", "0.4217414", "0.42112482", "0.419794", "0.41901553", "0.41768885", "0.41704", "0.41653875", "0.41606176", "0.41592416", "0.4155957", "0.4147033", "0.41467786", "0.41465524", "0.41465524", "0.41436845", "0.41373137", "0.41347983", "0.41290075", "0.41233793", "0.41221014", "0.41210765", "0.41180035", "0.41113532", "0.41104952", "0.41094705", "0.4103722", "0.4103363", "0.41020885", "0.41012365" ]
0.7253927
0
Sets the values for attribute filterRes.
public final void setFilterRes(int filterResX, int filterResY) throws JavaScriptException { ((SVGFilterElement)ot).setFilterRes(filterResX, filterResY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setFilter(int... values){\n filterList.clear();\n for(int i = 0; i < values.length; i++)\n filterList.add(values[i]);\n }", "void setFilter(Filter f);", "public void setFilter(Object[] filter) {\n nativeSetFilter(filter);\n }", "public void setFilters(int min, int mag) {\r\n \t\r\n \tthis.minFilter = min;\r\n \tthis.magFilter = mag;\r\n \tGLES10.glTexParameterf(GLES10.GL_TEXTURE_2D, GLES10.GL_TEXTURE_MIN_FILTER, this.minFilter);\r\n \tGLES10.glTexParameterf(GLES10.GL_TEXTURE_2D, GLES10.GL_TEXTURE_MAG_FILTER, this.magFilter);\r\n }", "public void setFilters(cwterm.service.rigctl.xsd.Filter[] param) {\n validateFilters(param);\n if (param != null) {\n localFiltersTracker = true;\n } else {\n localFiltersTracker = true;\n }\n this.localFilters = param;\n }", "public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}", "public void setValues(Parameter min, Parameter mag, Parameter wrapS, Parameter wrapT) {\n if (values == null) {\n values = new Parameter[4];\n }\n values[MIN_FILTER_INDEX] = min;\n values[MAG_FILTER_INDEX] = mag;\n values[WRAP_S_INDEX] = wrapS;\n values[WRAP_T_INDEX] = wrapT;\n validateValues();\n }", "private void setfilterImages() {\n\t\tIntent i = new Intent(this, SettingsActivity.class);\n i.putExtra(\"filterSetting\", filterSetting);\n startActivityForResult(i, request_Code_Filter);\n\t\t\n\t}", "public void setEdgeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tedgeAttributeFilter = filter;\n \t}", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "public void setFilters(Filter [] Filters) {\n this.Filters = Filters;\n }", "public void setFilters(Filter [] Filters) {\n this.Filters = Filters;\n }", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.RESOURCES,\n adderName = \"resources\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true)\n public void setResources(final Set<BwString> val) {\n resources = val;\n }", "public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }", "public void setPointAttributeFilter( AttributeFilter filter )\n \t{\n \t\tpointAttributeFilter = filter;\n \t}", "public void setFilteringResults(Map<String, Boolean> filteringResults) {\n this.filteringResults = filteringResults;\n }", "void setFilter(String filter);", "private void updateFilter(BasicOutputCollector collector) {\n if (updateFilter()){\n \tValues v = new Values();\n v.add(ImmutableList.copyOf(filter));\n \n collector.emit(\"filter\",v);\n \t\n }\n \n \n \n }", "public native void setFilter(int filter) throws MagickException;", "void setRNRFilter(){\n\t\tString argument = cmd.getOptionValue(\"rnr\",\".5\");\n\t\tfloat valFloat = Float.parseFloat(argument);\n\t\tfilterValue = valFloat;\n\t}", "public void setActiveAndInactiveFilterItems(SearchFilter filter) {\n String filterMapKey = filter.getFilterTypeMapKey();\n Function<CommonParams, List<String>> getter = FILTER_KEYS_TO_FIELDS.get(filterMapKey);\n if (getter == null) {\n throw new RuntimeException(\"Search Filter not configured with sane map key: \" + filterMapKey);\n }\n filter.setActiveAndInactiveFilterItems(getter.apply(this));\n }", "public void addFilterToAttributes(ViewerFilter filter);", "public void setRes(){\r\n \r\n }", "@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n set((List<Item>) results.values);\n }", "public void updateFilter() {\n Texture2dProgram.ProgramType programType;\n float[] kernel = null;\n float colorAdj = 0.0f;\n\n Log.d(TAG, \"Updating filter to \" + mNewFilter);\n switch (mNewFilter) {\n case CameraActivity.FILTER_NONE:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT;\n break;\n case CameraActivity.FILTER_BLACK_WHITE:\n // (In a previous version the TEXTURE_EXT_BW variant was enabled by a flag called\n // ROSE_COLORED_GLASSES, because the shader set the red channel to the B&W color\n // and green/blue to zero.)\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_BW;\n break;\n case CameraActivity.FILTER_BLUR:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 1f/16f, 2f/16f, 1f/16f,\n 2f/16f, 4f/16f, 2f/16f,\n 1f/16f, 2f/16f, 1f/16f };\n break;\n case CameraActivity.FILTER_SHARPEN:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 0f, -1f, 0f,\n -1f, 5f, -1f,\n 0f, -1f, 0f };\n break;\n case CameraActivity.FILTER_EDGE_DETECT:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n -1f, -1f, -1f,\n -1f, 8f, -1f,\n -1f, -1f, -1f };\n break;\n case CameraActivity.FILTER_EMBOSS:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 2f, 0f, 0f,\n 0f, -1f, 0f,\n 0f, 0f, -1f };\n colorAdj = 0.5f;\n break;\n default:\n throw new RuntimeException(\"Unknown filter mode \" + mNewFilter);\n }\n\n // Do we need a whole new program? (We want to avoid doing this if we don't have\n // too -- compiling a program could be expensive.)\n if (programType != mFullScreen.getProgram().getProgramType()) {\n mFullScreen.changeProgram(new Texture2dProgram(programType));\n // If we created a new program, we need to initialize the texture width/height.\n mIncomingSizeUpdated = true;\n }\n\n // Update the filter kernel (if any).\n if (kernel != null) {\n mFullScreen.getProgram().setKernel(kernel, colorAdj);\n }\n\n mCurrentFilter = mNewFilter;\n }", "private final void clearTRFilter() {\r\n\t\tadvanceFilterTRModel.setObjIdFilter(\"\");\r\n\t\tadvanceFilterTRModel.setAirplaneModelFilter(\"\");\r\n\t\tadvanceFilterTRModel.setObjTypeFilter(\"\");\r\n\t\tadvanceFilterTRModel.setObjNoFilter(\"\");\r\n\t\tadvanceFilterTRModel.setObjHeadingFilter(\"\");\r\n\t\tadvanceFilterTRModel.setObjTextFilter(\"\");\r\n\t\tadvanceFilterTRModel.setAssumptionFilter(\"\");\r\n\t\tadvanceFilterTRModel.setOwnerFilter(\"\");\r\n\t\tadvanceFilterTRModel.setDeviationsFilter(\"\");\r\n\t\tadvanceFilterTRModel.setModifiedAplicableFilter(\"\");\r\n\t\tadvanceFilterTRModel.setExpReqMtPhaseFilter(\"\");\r\n\t\tadvanceFilterTRModel.setAssgndToAssyPhaseFilter(\"\");\r\n\t\tadvanceFilterTRModel.setAssgndToFTPhaseFilter(\"\");\r\n\t\tadvanceFilterTRModel.setFocalFilter(\"\");\r\n\t\tadvanceFilterTRModel.setStsAssmblyPhaseFilter(\"\");\r\n\t\tadvanceFilterTRModel.setReqFirstFlightFilter(\"\");\r\n\t\tadvanceFilterTRModel.setRationaleForFunctionFilter(\"\");\r\n\t\tadvanceFilterTRModel.setFuncExcepFilter(\"\");\r\n\t\tadvanceFilterTRModel.setFunctionFilter(\"\");\r\n\t\tadvanceFilterTRModel.setApplicableDAASystemsFilter(\"\");\r\n\t\tadvanceFilterTRModel.setDevAssurApplicableFilter(\"\");\r\n\t\tadvanceFilterTRModel.setAllocationsFilter(\"\");\r\n\t\tadvanceFilterTRModel.setTraceReqmtsIDFilter(\"\");\r\n\t\tadvanceFilterTRModel.setDervdReqmtsFilter(\"\");\r\n\t\tadvanceFilterTRModel.setScdChildFilter(\"\");\r\n\t\tadvanceFilterTRModel.setRationaleforDerivedreqmtsFilter(\"\");\r\n\t\tadvanceFilterTRModel.setReqmt8reqdFilter(\"\");\r\n\t\tadvanceFilterTRModel.setReqmt8verfCloseOutFilter(\"\");\r\n\t\tadvanceFilterTRModel.setReqmt9reqdFilter(\"\");\r\n\t\tadvanceFilterTRModel.setReqmt9verfCloseOutFilter(\"\");\r\n\t\tadvanceFilterTRModel.setReqmt7reqdFilter(\"\");\r\n\t\tadvanceFilterTRModel.setReqmt7verfCloseOutFilter(\"\");\r\n\t\tadvanceFilterTRModel.setEstWorkFilter(\"\");\r\n\t\tadvanceFilterTRModel.setStatusWithSEFilter(\"\");\r\n\t\tadvanceFilterTRModel.setLinkStatusTRFilter(\"\");\r\n\t\tadvanceFilterTRModel.setMinorModFilter(\"\");\r\n\t\twsrdUtilController.pageSize((long) 0);\r\n\t\twsrdUtilController.getPageNumberByList();\r\n\t}", "public void setFilters(List<COSName> filters) {\n/* 333 */ COSArray cOSArray = COSArrayList.converterToCOSArray(filters);\n/* 334 */ this.stream.setItem(COSName.FILTER, (COSBase)cOSArray);\n/* */ }", "public void setFilter(Expression filter) {\n this.filter = filter;\n }", "public void setFilter(Filter.Statement filter) {\n this.setFilter(filter.toArray());\n }", "void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }", "public void setFiltered(boolean filtered) {\n this.filtered = filtered;\n }", "public void myFilter(int start, int end)\n {\n Pixel[] originPixel = this.getPixels();\n //loop through all pixels in the calling object and parameter \n for(int index=start;index<=end;index++){\n originPixel[index].setGreen(originPixel[index].getBlue());\n originPixel[index].setBlue(originPixel[index].getRed());\n originPixel[index].setRed(originPixel[index].getGreen()); \n }\n }", "private void applyFilters() {\r\n\t\t// create the new filters\r\n\t\tViewerFilter[] filters = new ViewerFilter[] { new TransportStateViewFilter(IProgramStatus.PROGRAM_STATUS_PREBOOKING),\r\n\t\t\t\tnew TransportDirectnessFilter(IDirectness.TOWARDS_BRUCK), transportDateFilter, transportViewFilter };\r\n\t\t// set up the filters for the view\r\n\t\tviewerBruck.setFilters(filters);\r\n\t\tviewerGraz.setFilters(filters);\r\n\t\tviewerWien.setFilters(filters);\r\n\t\tviewerMariazell.setFilters(filters);\r\n\t\tviewerKapfenberg.setFilters(filters);\r\n\t\tviewerLeoben.setFilters(filters);\r\n\t}", "public void setFilter(EntityFilter filter);", "public void setValues(List values) {\n/* 115 */ super.setValues(values);\n/* 116 */ for (Iterator<ConfigurableEffect.Value> iter = values.iterator(); iter.hasNext(); ) {\n/* 117 */ ConfigurableEffect.Value value = iter.next();\n/* 118 */ if (value.getName().equals(\"Wavelength\")) {\n/* 119 */ this.wavelength = ((Float)value.getObject()).floatValue(); continue;\n/* 120 */ } if (value.getName().equals(\"Amplitude\")) {\n/* 121 */ this.amplitude = ((Float)value.getObject()).floatValue();\n/* */ }\n/* */ } \n/* */ }", "@Override\n\t\t\tpublic void setColorFilter(ColorFilter cf) {\n\t\t\t\t\n\t\t\t}", "public void setFilter(java.lang.String[] value) {\n\t\tthis.setValue(FILTER, value);\n\t}", "public void onFilterSet(View view) {\n Spinner spnColor = (Spinner) findViewById(R.id.spnColor);\n Spinner spnImageSize = (Spinner) findViewById(R.id.spnImageSize);\n Spinner spnImageType = (Spinner) findViewById(R.id.spnImageType);\n EditText etSite = (EditText) findViewById(R.id.etSite);\n\n // load intent\n Intent data = new Intent();\n\n // FIXME: can I grab all the data at once and just build the object here? Instead of doing fromIntent? If so, make the image filter serializable\n String colorSpinner = spnColor.getSelectedItem().toString();\n String imageSizeSpinner = spnImageSize.getSelectedItem().toString();\n String imageTypeSpinner = spnImageType.getSelectedItem().toString();\n\n // don't set spinner defaults\n if (hasSpinnerPrompt(colorSpinner)) {\n colorSpinner = null;\n }\n if (hasSpinnerPrompt(imageSizeSpinner)) {\n imageSizeSpinner = null;\n }\n if (hasSpinnerPrompt(imageTypeSpinner)) {\n imageTypeSpinner = null;\n }\n\n data.putExtra(ImageFilter.COLOR, colorSpinner);\n data.putExtra(ImageFilter.SIZE, imageSizeSpinner);\n data.putExtra(ImageFilter.TYPE, imageTypeSpinner);\n data.putExtra(ImageFilter.SITE, etSite.getText().toString());\n\n setResult(RESULT_OK, data);\n\n this.finish();\n }", "@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}", "protected void initParams(){\n super.initParams();\n muMoiveFilterTextureLoc = GLES20.glGetUniformLocation(mProgramHandle, \"movieFilterTexture\");\n GlUtil.checkLocation(muMoiveFilterTextureLoc, \"movieFilterTexture\");\n }", "public DDataFilter() {\n filters = new ArrayList<>();\n operator = null;\n value = null;\n externalData = false;\n valueTo = null;\n attribute = ROOT_FILTER;\n }", "protected void setOutputFilter(OutputFilter filter) {\n this.outputFilter = filter;\n }", "public void setFilter(ArrayList<ProductImageModel> newList) {\n list = new ArrayList<>();\n list.addAll(newList);\n notifyDataSetChanged();\n }", "@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }", "public void resetFilters() {\n filtersSet.values().stream().forEach((filter) -> {\n filter.reset();\n });\n DatasetPieChartFiltersComponent.this.updateSystem(filterSelectionUnit());\n resetFilterIcon();\n }", "public void setFilters(InputFilter[] filters) {\n input.setFilters(filters);\n }", "public void setNodeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tnodeAttributeFilter = filter;\n \t}", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public abstract void updateFilter();", "public void setFilter(ImageFilter filterMode) {\r\n\t\trenderer.setFilter(texture, filterMode);\r\n\t\tthis.filter = filterMode;\r\n\t}", "public final OMSVGAnimatedInteger getFilterResX() {\n return ((SVGFilterElement)ot).getFilterResX();\n }", "public void setAuthorizationFilterArgs(final Object[] authorizationFilterArgs)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\n \"setting authorizationFilterArgs: \" +\n (authorizationFilterArgs == null ?\n \"null\" : Arrays.asList(authorizationFilterArgs)));\n }\n this.authorizationFilterArgs = authorizationFilterArgs;\n }", "public void resetFilter() {\n filters.clear();\n modifiedSinceLastResult = true;\n }", "public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }", "public void clearFilters() {\n // TODO [assignment_final] vycisteni aktualne nastavenych filtru\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "@Override\n protected void publishResults(CharSequence constraint, Filter.FilterResults results) {\n filtered = (List<Scenario>) results.values;\n notifyDataSetChanged();\n }", "@Override\n public void setColorFilter(ColorFilter colorFilter) {}", "public void resetFilter();", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "private void applyFilterIcon() {\n addStyleName(\"appliedfilter\");\n icon.setSource(selectedTheam);\n }", "public void setFiltering(int FILTERING) {\n\t\tswitch(FILTERING) {\n\t\tdefault :\n\t\tcase GPUImageInterface.NEAREST : \n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(2) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(2) ;\n\t\t\tbreak;\n\t\tcase GPUImageInterface.LINEAR :\n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(3) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(3) ;\n\t\t\tbreak;\n\t\tcase GPUImageInterface.BILINEAR :\n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(4) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(4) ;\n\t\t\tbreak;\n\t\tcase GPUImageInterface.TRILINEAR :\n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(5) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(5) ;\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t if (resultCode == RESULT_OK && requestCode == request_Code_Filter) {\n\t // Extract name value from result extras\n\t FilterSettings filterReturn = (FilterSettings) data.getSerializableExtra(\"filterSetting\");\n\n\t // If the Filter has been updated, notify the user with a Toast\n\t if (!((filterSetting.size.equals(filterReturn.size)) && (filterSetting.type.equals(filterReturn.type))\n\t \t\t && (filterSetting.color.equals(filterReturn.color)) && (filterSetting.site.equals(filterReturn.site)))) {\n\t \tToast.makeText(this, \"Filter has been Updated\", Toast.LENGTH_SHORT).show(); \n\t } \n\t \n\t filterSetting.size = filterReturn.size;\n\t filterSetting.type = filterReturn.type;\n\t filterSetting.color = filterReturn.color;\n\t filterSetting.site = filterReturn.site;\n\t \n\t }\n\t}", "public void setFilterIntensity(float value) {\n if(mNativeAddress != 0)\n nativeSetFilterIntensity(mNativeAddress, value);\n }", "public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}", "public void setEffect(int effectIndex, int filterIndex) {\n\t\talSource3i(musicSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(musicSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(reverseSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(reverseSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(flangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(flangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t}", "protected void setFilterLabel( String strFilterLabel )\n {\n _strFilterLabel = strFilterLabel;\n }", "public static void setRegexs(IteratorSetting si, String rowTerm, String cfTerm, String cqTerm, String valueTerm, boolean orFields) {\n if (rowTerm != null)\n si.addOption(RegExFilter.ROW_REGEX, rowTerm);\n if (cfTerm != null)\n si.addOption(RegExFilter.COLF_REGEX, cfTerm);\n if (cqTerm != null)\n si.addOption(RegExFilter.COLQ_REGEX, cqTerm);\n if (valueTerm != null)\n si.addOption(RegExFilter.VALUE_REGEX, valueTerm);\n if (orFields) {\n si.addOption(RegExFilter.OR_FIELDS, \"true\");\n }\n }", "public void setFilterExpression(Expression filterExpr) {\n\t\tthis.filterExpr = filterExpr;\n\t}", "private void initFilter() {\r\n if (filter == null) {\r\n filter = new VocabularyConceptFilter();\r\n }\r\n filter.setVocabularyFolderId(vocabularyFolder.getId());\r\n filter.setPageNumber(page);\r\n filter.setNumericIdentifierSorting(vocabularyFolder.isNumericConceptIdentifiers());\r\n }", "protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }", "public void set_filter(String field,String value){\n\t\tset_filter(field,value,\"\");\n\t}", "FilterInfo setCanaryFilter(String filter_id, int revision);", "protected void setQueryFilter(CalendarFilter filter) {\n this.queryFilter = filter;\n }", "@ZAttr(id=255)\n public Map<String,Object> setAuthLdapSearchFilter(String zimbraAuthLdapSearchFilter, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthLdapSearchFilter, zimbraAuthLdapSearchFilter);\n return attrs;\n }", "@Override\n public void adjustFilter(int key_min, int key_max) {\n //do nothing\n }", "public void setFilters(List<COSName> filters)\n {\n stream.setItem(COSName.FILTER, new COSArray(filters));\n }", "public void init_values(){\n\t\tint rows = (height / res);\n\t\tint cols = (width / res);\n\t\tvalues = new int [rows][cols];\n\t\tfor (int r = 0; r < rows; r++){\n\t\t\tfor (int c = 0; c < cols; c++){\n\t\t\t\tvalues[r][c] = 0;\n\t\t\t}\n\t\t}\t\n\t}", "public void changeFilterMode(int filter) {\n mNewFilter = filter;\n }", "private Filter setFilters(Filter originalFilter, DateRange temporalSubset, NumberRange<?> elevationSubset, GeneralEnvelope envelopeSubset, \n Map<String, List<Object>> dimensionSubset, StructuredGridCoverage2DReader reader, DimensionDescriptor timeDimension, \n DimensionDescriptor elevationDimension, List<DimensionDescriptor> additionalDimensions) \n throws IOException {\n List<Filter> filters = new ArrayList<Filter>();\n \n // Setting temporal filter\n Filter timeFilter = temporalSubset == null && timeDimension == null ? null\n : setTimeFilter(temporalSubset, timeDimension.getStartAttribute(),\n timeDimension.getEndAttribute());\n\n // Setting elevation filter\n Filter elevationFilter = elevationSubset == null && elevationDimension == null ? null\n : setElevationFilter(elevationSubset,\n elevationDimension.getStartAttribute(),\n elevationDimension.getEndAttribute());\n\n // setting envelope filter\n Filter envelopeFilter = setEnevelopeFilter(envelopeSubset, reader);\n\n // Setting dimensional filters\n Filter additionalDimensionsFilter = setAdditionalDimensionsFilter(dimensionSubset, additionalDimensions);\n\n // Updating filters \n if(originalFilter != null) {\n filters.add(originalFilter);\n }\n if (elevationFilter != null) {\n filters.add(elevationFilter);\n }\n if (timeFilter != null) {\n filters.add(timeFilter);\n }\n if (envelopeFilter != null) {\n filters.add(envelopeFilter);\n }\n if (additionalDimensionsFilter != null) {\n filters.add(additionalDimensionsFilter);\n }\n\n // Merging all filters\n Filter finalFilter = FF.and(filters);\n return finalFilter;\n }", "private void clearAllFilter() {\n }", "public static interface SetFilter extends KeyValueFilter {\r\n\t\tObject put(String name, Object value);\r\n\t}", "@Override\n\tpublic void setColorFilter(ColorFilter cf) {\n\n\t}", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "public PSFilterResultSetWrapper(PSExecutionData data, ResultSet rs,\n IPSResultSetDataFilter filter)\n {\n if (data == null)\n throw new IllegalArgumentException(\"Need a valid execution data!\");\n\n if (rs == null)\n throw new IllegalArgumentException(\"There must be a result set!\");\n\n if (rs.getClass().isAssignableFrom(PSFilterResultSetWrapper.class))\n throw new IllegalArgumentException(\"Result set already wrapped!\");\n\n m_data = data;\n m_rs = rs;\n m_filter = filter;\n if (filter != null)\n {\n m_cols = m_filter.getColumns().toArray();\n }\n }", "public GameFilter() {\r\n\t\tthis.category = 1;\r\n\t\tthis.mask = Long.MAX_VALUE;\r\n\t\tthis.v1 = null;\r\n\t\tthis.v2 = null;\r\n\t\tthis.noJoints = true;\r\n\t}", "public ExternalFilter() {\n\t\treset();\n\t\tenable_filter(true);\n\t\tset_sampling_parameter(15915.6);\n\t\tset_chip_model(ISIDDefs.chip_model.MOS6581);\n\t}", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "public Filter [] getFilters() {\n return this.Filters;\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "void filterChanged(Filter filter);", "public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }", "public void setFilter2(java.lang.String[] value) {\n\t\tthis.setValue(FILTER2, value);\n\t}", "public void setValues(TextureParameter source) {\n if (source.values == null) {\n throw new IllegalArgumentException(\"No texture parameters in source.\");\n }\n values = new Parameter[source.values.length];\n int index = 0;\n for (Parameter p : source.values) {\n if (p == null) {\n throw new IllegalArgumentException(\"Texture parameter value is null, invalid name in source?\");\n }\n values[index++] = p;\n }\n }", "public void setContactFilter(Filter filter);", "public FilterParameters(String filterAvregOrsak, String filterSekretessMarkering, String senasteAndringFBF) {\n this.filterSekretessMarkering = (filterSekretessMarkering != null && filterSekretessMarkering != \"\") ? JaNejTYPE.valueOf(filterSekretessMarkering) : null;\n this.filterAvregOrsak = (filterAvregOrsak != null) ? filterAvregOrsak : null;\n this.filterSenasteAndringFBF = senasteAndringFBF != null && !senasteAndringFBF.equals(\"\") ? senasteAndringFBF : null;\n }", "public void setAttributeFilter(@Nullable final ReloadableService<AttributeFilter> filterService) {\n checkSetterPreconditions();\n attributeFilterService = filterService;\n }", "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 }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "private void changePixelValues(ImageProcessor ip) {\n\t\t\tint[] pixels = (int[])ip.getPixels();\r\n\t\t\t\r\n\t\t\tfor (int y=0; y<height; y++) {\r\n\t\t\t\tfor (int x=0; x<width; x++) {\r\n\t\t\t\t\tint pos = y*width + x;\r\n\t\t\t\t\tint argb = origPixels[pos]; // Lesen der Originalwerte \r\n\t\t\t\t\t\r\n\t\t\t\t\tint r = (argb >> 16) & 0xff;\r\n\t\t\t\t\tint g = (argb >> 8) & 0xff;\r\n\t\t\t\t\tint b = argb & 0xff;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// anstelle dieser drei Zeilen später hier die Farbtransformation durchführen,\r\n\t\t\t\t\t// die Y Cb Cr -Werte verändern und dann wieder zurücktransformieren\r\n\t\t\t\t\t\r\n\t\t\t\t\tYUV c = new YUV(r, g, b);\r\n\t\t\t\t\t\r\n\t\t\t\t\tc.changeBrightness(brightness).changeContrast(contrast).changeSaturation(saturation).changeHue(hue);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint[] rgbNew = c.toRGB();\r\n\r\n\t\t\t\t\t// Hier muessen die neuen RGB-Werte wieder auf den Bereich von 0 bis 255 begrenzt werden\r\n\t\t\t\t\t\r\n\t\t\t\t\tpixels[pos] = (0xFF<<24) | (rgbNew[0]<<16) | (rgbNew[1]<<8) | rgbNew[2];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}" ]
[ "0.62181324", "0.5961481", "0.5828987", "0.5763497", "0.57477015", "0.57334197", "0.5693495", "0.56644756", "0.5607915", "0.5558239", "0.55548763", "0.55548763", "0.5449153", "0.5446016", "0.54451364", "0.54092175", "0.5399159", "0.5393019", "0.5319615", "0.53157705", "0.5303918", "0.5293472", "0.52808875", "0.5270483", "0.5262938", "0.52359694", "0.5226452", "0.51974857", "0.51926905", "0.5189681", "0.517525", "0.51724815", "0.51693964", "0.51589763", "0.5140824", "0.5140496", "0.513011", "0.51194084", "0.5118377", "0.51167387", "0.51156175", "0.5103922", "0.5101428", "0.50933343", "0.5080476", "0.5061707", "0.50608826", "0.50600255", "0.5031442", "0.50279504", "0.50172913", "0.50001866", "0.4998749", "0.4998268", "0.4975541", "0.49545076", "0.49537992", "0.49496436", "0.49290264", "0.49187133", "0.49024782", "0.4901949", "0.4900355", "0.48919344", "0.4888826", "0.48881432", "0.4879341", "0.4878271", "0.4872739", "0.48719946", "0.4863585", "0.48531812", "0.4849274", "0.48471582", "0.4838614", "0.48269132", "0.48235074", "0.48227823", "0.48226652", "0.48219463", "0.48162094", "0.478753", "0.4787272", "0.47807884", "0.4778733", "0.47782466", "0.47770104", "0.47761706", "0.47751096", "0.47751096", "0.47681922", "0.4764001", "0.47630388", "0.47618055", "0.47616988", "0.47535363", "0.47525707", "0.4750721", "0.47499976", "0.47487175" ]
0.70432067
0
Implementation of the svg::SVGLangSpace W3C IDL interface Corresponds to attribute xml:lang on the given element.
public final String getXmllang() { return ((SVGFilterElement)ot).getXmllang(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setXmlLang(java.lang.String xmlLang)\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(XMLLANG$26);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(XMLLANG$26);\n }\n target.setStringValue(xmlLang);\n }\n }", "public final void setXmllang(java.lang.String value) throws JavaScriptException {\n ((SVGFilterElement)ot).setXmllang(value);\n }", "public final String getXmlLangAttribute() {\n return getAttributeValue(\"xml:lang\");\n }", "public void setLang(java.lang.String lang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANG$28);\n }\n target.setStringValue(lang);\n }\n }", "public void setLang(String value) {\n setAttributeInternal(LANG, value);\n }", "public final String getLangAttribute() {\n return getAttributeValue(\"lang\");\n }", "@Override\r\n\t\tpublic void setLang(String lang)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void xsetXmlLang(org.apache.xmlbeans.XmlNMTOKEN xmlLang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(XMLLANG$26);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(XMLLANG$26);\n }\n target.set(xmlLang);\n }\n }", "@DISPID(-2147413103)\n @PropPut\n void lang(\n java.lang.String rhs);", "public void xsetLang(org.apache.xmlbeans.XmlLanguage lang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlLanguage target = null;\n target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlLanguage)get_store().add_attribute_user(LANG$28);\n }\n target.set(lang);\n }\n }", "public void setLang(AVT v)\n {\n m_lang_avt = v;\n }", "@DISPID(-2147413103)\n @PropGet\n java.lang.String lang();", "@Override\n public void setLanguage(String lang) {\n }", "String getLang();", "OldLanguage(Element oldLanguageElement) throws JDOMException, SAXException {\n\t\tthis.oldLangFile = null;\n\t\tparseOldLanguage(oldLanguageElement, false);\n\t}", "public java.lang.String getXmlLang()\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(XMLLANG$26);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "protected static void setLanguage(Language lang) {\r\n\t\tInterface.lang = lang;\r\n\t}", "@XmlAttribute\r\n public String getLanguage() {\r\n return language;\r\n }", "public java.lang.String getLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@DISPID(-2147413012)\n @PropPut\n void language(\n java.lang.String rhs);", "public String getLang() {\n return (String)getAttributeInternal(LANG);\n }", "public void addLanguage(String value) {\n/* 230 */ addStringToBag(\"language\", value);\n/* */ }", "public void setLanguage(final String lang)\r\n {\r\n // We grant to JavaScript the same privileges as the core applet\r\n\r\n AccessController.doPrivileged(new PrivilegedAction<Object>()\r\n {\r\n public Object run()\r\n {\r\n LabelManager.setLang(lang);\r\n return null;\r\n }\r\n });\r\n }", "public org.apache.xmlbeans.XmlNMTOKEN xgetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(XMLLANG$26);\n return target;\n }\n }", "public boolean isSetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(XMLLANG$26) != null;\n }\n }", "public void unsetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(XMLLANG$26);\n }\n }", "public void setLanguage(String language);", "public String getLang() {\n return lang;\n }", "public Builder setLanguageTag(String langtag) {\n LanguageTag tag = null;\n try {\n tag = LanguageTag.parse(langtag);\n } catch (InvalidLocaleIdentifierException e) {\n throw new IllegalArgumentException(e);\n }\n\n // base locale fields\n setLanguage(tag.getLanguage()).setScript(tag.getScript())\n .setRegion(tag.getRegion()).setVariant(tag.getVariant());\n\n // extensions\n Set<Extension> exts = tag.getExtensions();\n if (exts != null) {\n Iterator<Extension> itr = exts.iterator();\n while (itr.hasNext()) {\n Extension e = itr.next();\n setExtension(e.getSingleton(), e.getValue());\n }\n }\n return this;\n }", "public void setLang(LANG language) {\n\t\tthis.language = language;\n\t}", "public void setLanguage(String lang) {\n\t\tthis.language = lang;\n\t}", "public AVT getLang()\n {\n return m_lang_avt;\n }", "speech.multilang.Params.SemanticLangidParams getSemanticLangidParams();", "private void setTermbaseLangs(String p_xmlDefinition) throws Exception\n {\n XmlParser parser = XmlParser.hire();\n Document dom = parser.parseXml(p_xmlDefinition);\n Element root = dom.getRootElement();\n List langGrps = root.selectNodes(\"/definition/languages/language/name\");\n m_termbaseLangs = new ArrayList();\n for (int i = 0; i < langGrps.size(); i++)\n {\n Element e = (Element) langGrps.get(i);\n String lang = e.getText();\n m_termbaseLangs.add(lang);\n }\n XmlParser.fire(parser);\n\n }", "public void SetUsersLearningLanguage(String lang) {\n if (AppSettings.Instance().IsValidBCP47Code(lang))\n userLearningLang = lang;\n else\n throw new IllegalArgumentException(\"Tried to set Users Learning Language to: \" + lang + \" which is incorrect or unsupported\");\n }", "void updateLang() {\n if (lang == null)\n lang = game.q;\n }", "static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = strL;\r\n\r\n\t\t// need to reload it again!\r\n\t\tloadBundle();\r\n\t}", "void setLanguage(Language language);", "public org.apache.xmlbeans.XmlLanguage xgetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlLanguage target = null;\n target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$28);\n return target;\n }\n }", "@DISPID(-2147413012)\n @PropGet\n java.lang.String language();", "public void xsetLanguage(org.apache.xmlbeans.XmlNMTOKEN language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.set(language);\n }\n }", "public void xsetLanguage(org.apache.xmlbeans.XmlNMTOKEN language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.set(language);\n }\n }", "private void setLocale(String lang) {\n Locale myLocale = new Locale(lang);\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration conf = res.getConfiguration();\n conf.setLocale(myLocale);\n res.updateConfiguration(conf, dm);\n Intent refresh = new Intent(this, MainActivity.class);\n startActivity(refresh);\n finish();\n }", "@Override\r\n\t\tpublic String getLang()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public LetterSet(String lang) {\n this.lang = lang;\n }", "public void setOntologies20070510nid3Language(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE, value);\r\n\t}", "public Language(String lang) {\n this.lang = lang;\n /*\n lexerFactory = new LexerFactory();\n generatorFactory = new GeneratorFactory();\n parserFactory = new ParserFactory();\n */\n }", "public void SetUsersNativeLanguage(String lang) {\n if (AppSettings.Instance().IsValidBCP47Code(lang))\n userNativeLang = lang;\n else\n throw new IllegalArgumentException(\"Tried to set Users Native Language to: \" + lang + \" which is incorrect or unsupported\");\n }", "public void unsetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LANG$28);\n }\n }", "private void changeLanguage(Language lang) {\n this.resources = ResourceBundle.getBundle(UIController.RESOURCE_PATH + lang);\n uiController.setLanguage(lang);\n fileLoadButton.setText(resources.getString(\"LoadSimulationXML\"));\n uiController.setTitle(resources.getString(\"Launch\"));\n }", "public org.apache.xmlbeans.XmlNMTOKEN xgetLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n return target;\n }\n }", "public org.apache.xmlbeans.XmlNMTOKEN xgetLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n return target;\n }\n }", "private void changeLanguage(String selectedLang) {\n if (AppUtils.getInstance().isInternetAvailable(this)) {\n hitChangeLanguageApi(selectedLang);\n\n }\n }", "private String setSpeechFXLanguage(String language){\n String lang;\n if (!mSpeechFXon) {\n lang = language;\n } else if (mTts == null) {\n\t\t\tLog.i(TAG, \"TTS IS NULL!\");\n\t\t\tlang = language;\n\t\t} else {\n\t\t\tlang = Languages.setSpeechLanguage(language, mDefaultSpeechLang, mTts.ttsengine());\n\t\t\tif (mTts != null && lang != null && !lang.equals(\"\")) {\n\t\t\t\tLog.i(TAG, \"TTS set speech engine language: \" + lang);\n\t\t\t\tmTts.ttsengine().setLanguage(Languages.stringToLocale(lang));\n\t\t\t} else {\n\t\t\t\t// Unchanged, so return the pilot language\n\t\t\t\tlang = language;\n\t\t\t}\n\t\t\tLog.i(TAG, \"TTS LANG: \" + lang);\n\t\t}\n\n\t\treturn lang;\n\t}", "public void setRights(String lang, String value) {\n/* 279 */ setLangAlt(\"rights\", lang, value);\n/* */ }", "public void updateLanguage(String lang) {\n\t\tmyLanguages.clear();\n\t\tString location = String.format(\"%s%s\", LANGUAGE_BASE, lang);\n\t\tResourceBundle rb = ResourceBundle.getBundle(location);\n\t\tfor (String key : rb.keySet()) {\n\t\t\tString[] input = rb.getString(key).split(\"\\\\|\");\n\t\t\tfor (String s : input) {\n\t\t\t\tmyLanguages.put(s.replace(\"\\\\\", \"\"), key);\n\t\t\t}\n\t\t}\n\t}", "public void setLanguage(String s) {\n\t\tlanguage = s;\n\t}", "public void setAuthorizedLang(String value) {\n setAttributeInternal(AUTHORIZEDLANG, value);\n }", "public void setLanguage(java.lang.String language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.setStringValue(language);\n }\n }", "public void setLanguage(java.lang.String language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.setStringValue(language);\n }\n }", "@Override\r\n\tpublic DTextArea setHtmlLang(final String lang) {\r\n\t\tsuper.setHtmlLang(lang) ;\r\n\t\treturn this ;\r\n\t}", "java.lang.String getLanguage();", "java.lang.String getLanguage();", "public void setLanguage(Language lang) {\n\t\tGuiElements guiElems = GuiElements.getInstance();\n\t\tframe.setTitle(guiElems.getFrameTitle(lang));\n\t\tconvBtn.setText(guiElems.getConvertBtnText(lang));\n\t\tswitchBtn.setText(guiElems.getSwitchScalesText(lang));\n\t}", "public static Locale forLanguageTag(String langtag) {\n LanguageTag tag = null;\n while (true) {\n try {\n tag = LanguageTag.parse(langtag);\n break;\n } catch (InvalidLocaleIdentifierException e) {\n // remove the last subtag and try it again\n int idx = langtag.lastIndexOf('-');\n if (idx == -1) {\n // no more subtags\n break;\n }\n langtag = langtag.substring(0, idx);\n }\n }\n if (tag == null) {\n return Locale.ROOT;\n }\n\n Builder bldr = new Builder();\n\n bldr.setLanguage(tag.getLanguage()).setScript(tag.getScript())\n .setRegion(tag.getRegion()).setVariant(tag.getVariant());\n\n Set<Extension> exts = tag.getExtensions();\n if (exts != null) {\n Iterator<Extension> itr = exts.iterator();\n while (itr.hasNext()) {\n Extension e = itr.next();\n bldr.setExtension(e.getSingleton(), e.getValue());\n }\n }\n\n return bldr.create();\n }", "public String changeLeguage(){\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tLocale miLocale = new Locale(\"en\",\"US\");\r\n\t\tcontext.getViewRoot().setLocale(miLocale);\r\n\t\treturn \"login\";\r\n\t}", "String getLangId();", "void onLanguageSelected();", "String getLanguage();", "String getLanguage();", "String getLanguage();", "public void setLanguage(String lang, String country, String variant) {\n mSelf.setLanguage(lang, country, variant);\n }", "public static ULocale forLanguageTag(String languageTag) {\n/* 1207 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static void setOntologies20070510nid3Language(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, ONTOLOGIES20070510NID3LANGUAGE, value);\r\n\t}", "public String toLanguageTag() {\n/* 1098 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void addOntologies20070510nid3Language(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE, value);\r\n\t}", "Builder addInLanguage(String value);", "Builder addInLanguage(Text value);", "public static void setLanguage(String lang){\n String propFileName = lang==null ? \"resources_en\" : lang.equals(\"tr\") ? \"resources_tr\" : \"resources_en\";\n initializeStaticObjects(ResourceBundle.getBundle(\"market.dental.resources.resultProp\", lang==null ? Locale.ENGLISH : lang.equals(\"tr\") ? new Locale(\"tr\") : Locale.ENGLISH));\n }", "public boolean isSetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(LANG$28) != null;\n }\n }", "public void setLocale(Locale locale)\n throws SAXException\n {\n if (\"en\".equals(locale.getLanguage()))\n {\n return;\n }\n throw new SAXException (\"AElfred2 only supports English locales.\");\n }", "Lang(String message) {\n this.message = Chat.colourize(message);\n }", "public static void addOntologies20070510nid3Language(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ONTOLOGIES20070510NID3LANGUAGE, value);\r\n\t}", "speech.multilang.Params.SemanticLangidParamsOrBuilder getSemanticLangidParamsOrBuilder();", "public java.lang.String getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public void setOntologies20070510nid3Language( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE, value);\r\n\t}", "public String getLanguage();", "public Language(String lang) {\n\t\tif (INSTANCE == null) {\n\t\t\tif (lang.equals(\"en\")) {\n\t\t\t\tINSTANCE = ResourceBundle.getBundle(\"myBundle\",Locale.ENGLISH);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tINSTANCE = ResourceBundle.getBundle(\"myBundle\",Locale.FRANCE);\n\t\t\t}\n\t\t}\n\t}", "public String getLangMeaning() {\n return (String) getAttributeInternal(LANGMEANING);\n }", "public void setLangMeaning(String value) {\n setAttributeInternal(LANGMEANING, value);\n }", "public void handleSlovakLanguage(){\n Locale locale = new Locale(\"sk\", \"SK\");\n ResourceBundle bundle = ResourceBundle.getBundle(\"Lang\", locale, new UTF8Control());\n lr.setResources(bundle);\n stageManager.switchScene(FxmlView.LOGIN);\n }", "private void setLanguage(String currentLang) {\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE, currentLang);\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE_CODE, String.valueOf(languageCode));\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n switch (currentLang) {\n case Constants.AppConstant.CHINES_TRAD:\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.CHINES_SIMPLE:\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.MALAYALAM:\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.HINDI:\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.ARABIC:\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n default:\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n }\n }", "public void languageChanged(LanguageChangedEvent evt) {\n this.applyI18n();\n }", "private void switchLanguage( ){\n \tString xpathEnglishVersion = \"//*[@id=\\\"menu-item-4424-en\\\"]/a\";\n \tif( driver.findElement( By.xpath( xpathEnglishVersion ) ).getText( ).equals( \"English\" ) ) {\n \t\tSystem.out.println( \"Change language to English\" );\n \t\tdriver.findElement( By.xpath( xpathEnglishVersion ) ).click( );\n \t\tIndexSobrePage.sleepThread( );\n \t}\n }", "public void UpdateLang() {\n for (ParamButton selected : this.mBtnLang) {\n selected.setSelected(false);\n }\n int lang = FtSet.GetLangDef();\n if (lang < 0 || lang >= this.mBtnLang.length) {\n this.mBtnLang[0].setSelected(true);\n } else {\n this.mBtnLang[lang].setSelected(true);\n }\n }", "@Test\n\t@PerfTest(invocations = 10)\n\tpublic void defLang() {\n\t\tl.setLocale(l.getLocale().getDefault());\n\t\tassertEquals(\"Register\", Internationalization.resourceBundle.getString(\"btnRegister\"));\n\t}", "Builder addInLanguage(Language value);", "public void changeLanguage(View v) {\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration config = res.getConfiguration();\n\n String targetLanguage;\n\n // Log.d(\"en-US\", targetLanguage);\n\n if ( config.locale.toString().equals(\"pt\") ) {\n targetLanguage = \"en-US\";\n } else {\n targetLanguage = \"pt\";\n }\n\n Locale newLang = new Locale(targetLanguage);\n\n config.locale = newLang;\n res.updateConfiguration(config, dm);\n\n // Reload current page with new language\n Intent refresh = new Intent(this, Settings.class);\n startActivity(refresh);\n }", "@SuppressWarnings(\"deprecation\")\r\n public void setLanguage(String langTo) {\n Locale locale = new Locale(langTo);\r\n Locale.setDefault(locale);\r\n\r\n Configuration config = new Configuration();\r\n\r\n config.setLocale(locale);//config.locale = locale;\r\n\r\n if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N) {\r\n createConfigurationContext(config);\r\n } else {\r\n getResources().updateConfiguration(config, getResources().getDisplayMetrics());\r\n }\r\n\r\n //createConfigurationContext(config);\r\n getResources().updateConfiguration(config, getApplicationContext().getResources().getDisplayMetrics());//cannot resolve yet\r\n //write into settings\r\n SharedPreferences.Editor editor = mSettings.edit();\r\n editor.putString(APP_PREFERENCES_LANGUAGE, langTo);\r\n editor.apply();\r\n //get appTitle\r\n if(getSupportActionBar()!=null){\r\n getSupportActionBar().setTitle(R.string.app_name);\r\n }\r\n\r\n }" ]
[ "0.63735586", "0.6278406", "0.6242505", "0.62244666", "0.61137164", "0.60131234", "0.6007545", "0.59231436", "0.5919064", "0.58340263", "0.5756228", "0.56489533", "0.5626731", "0.538342", "0.53660697", "0.5352539", "0.5350514", "0.52851206", "0.5276971", "0.5275726", "0.5158243", "0.5123074", "0.508521", "0.5083542", "0.5060849", "0.50606275", "0.50452566", "0.504229", "0.5042198", "0.5020044", "0.5015932", "0.5010138", "0.5003883", "0.49539074", "0.4952509", "0.49253306", "0.49252117", "0.49204615", "0.48999304", "0.4899702", "0.48963916", "0.48963916", "0.48777002", "0.48500288", "0.48401132", "0.48248798", "0.4823769", "0.48229876", "0.48165053", "0.47871098", "0.47830576", "0.47830576", "0.47796172", "0.47736385", "0.4763802", "0.47537434", "0.47278294", "0.47228307", "0.4718615", "0.4718615", "0.47111797", "0.47045794", "0.47045794", "0.46971944", "0.46968397", "0.46774697", "0.46693206", "0.46686476", "0.46596214", "0.46596214", "0.46596214", "0.46577352", "0.46541247", "0.46504766", "0.464664", "0.46344694", "0.4631898", "0.46276417", "0.46201113", "0.4616111", "0.46160614", "0.45963544", "0.4581907", "0.4576597", "0.45720407", "0.45720407", "0.45643115", "0.45490798", "0.45442533", "0.45097068", "0.4507988", "0.4501059", "0.44844565", "0.44764832", "0.44674885", "0.44515684", "0.44459265", "0.44209412", "0.4414261", "0.44092944" ]
0.6115204
4
Corresponds to attribute xml:lang on the given element.
public final void setXmllang(java.lang.String value) throws JavaScriptException { ((SVGFilterElement)ot).setXmllang(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getXmlLangAttribute() {\n return getAttributeValue(\"xml:lang\");\n }", "public final String getLangAttribute() {\n return getAttributeValue(\"lang\");\n }", "public final String getXmllang() {\n return ((SVGFilterElement)ot).getXmllang();\n }", "@XmlAttribute\r\n public String getLanguage() {\r\n return language;\r\n }", "public void setXmlLang(java.lang.String xmlLang)\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(XMLLANG$26);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(XMLLANG$26);\n }\n target.setStringValue(xmlLang);\n }\n }", "public java.lang.String getXmlLang()\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(XMLLANG$26);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@DISPID(-2147413103)\n @PropGet\n java.lang.String lang();", "public java.lang.String getLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public void setLang(String value) {\n setAttributeInternal(LANG, value);\n }", "public String getLang() {\n return (String)getAttributeInternal(LANG);\n }", "String getLang();", "public void setLang(java.lang.String lang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANG$28);\n }\n target.setStringValue(lang);\n }\n }", "public String getLang() {\n return lang;\n }", "@Override\r\n\t\tpublic void setLang(String lang)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public org.apache.xmlbeans.XmlLanguage xgetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlLanguage target = null;\n target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$28);\n return target;\n }\n }", "public java.lang.String getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@DISPID(-2147413103)\n @PropPut\n void lang(\n java.lang.String rhs);", "public org.apache.xmlbeans.XmlNMTOKEN xgetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(XMLLANG$26);\n return target;\n }\n }", "String getLanguage();", "String getLanguage();", "String getLanguage();", "java.lang.String getLanguage();", "java.lang.String getLanguage();", "public boolean isSetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(XMLLANG$26) != null;\n }\n }", "public void xsetXmlLang(org.apache.xmlbeans.XmlNMTOKEN xmlLang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(XMLLANG$26);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(XMLLANG$26);\n }\n target.set(xmlLang);\n }\n }", "@Override\n public void setLanguage(String lang) {\n }", "public void xsetLang(org.apache.xmlbeans.XmlLanguage lang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlLanguage target = null;\n target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlLanguage)get_store().add_attribute_user(LANG$28);\n }\n target.set(lang);\n }\n }", "public String getLanguage();", "@DISPID(-2147413012)\n @PropGet\n java.lang.String language();", "public AVT getLang()\n {\n return m_lang_avt;\n }", "public org.apache.xmlbeans.XmlNMTOKEN xgetLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n return target;\n }\n }", "public org.apache.xmlbeans.XmlNMTOKEN xgetLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n return target;\n }\n }", "@Override\r\n\t\tpublic String getLang()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Test\n\t@PerfTest(invocations = 10)\n\tpublic void defLang() {\n\t\tl.setLocale(l.getLocale().getDefault());\n\t\tassertEquals(\"Register\", Internationalization.resourceBundle.getString(\"btnRegister\"));\n\t}", "public void unsetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(XMLLANG$26);\n }\n }", "public void setLang(AVT v)\n {\n m_lang_avt = v;\n }", "public void setLanguage(String language);", "public String getLangMeaning() {\n return (String) getAttributeInternal(LANGMEANING);\n }", "@Override\n public String getContentLang() {\n return \"en\";\n }", "public String getAuthorizedLang() {\n return (String)getAttributeInternal(AUTHORIZEDLANG);\n }", "String getLangId();", "public Language getLanguage() {\r\n\t\t\treturn lang;\r\n\t\t}", "@DISPID(-2147413012)\n @PropPut\n void language(\n java.lang.String rhs);", "public org.apache.xmlbeans.XmlAnySimpleType getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_default_attribute_value(LANGUAGE$14);\n }\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "CLanguage getClanguage();", "OldLanguage(Element oldLanguageElement) throws JDOMException, SAXException {\n\t\tthis.oldLangFile = null;\n\t\tparseOldLanguage(oldLanguageElement, false);\n\t}", "protected static void setLanguage(Language lang) {\r\n\t\tInterface.lang = lang;\r\n\t}", "Locale getLocale(TransformerImpl transformer, int contextNode)\n throws TransformerException\n {\n\n Locale locale = null;\n\n if (null != m_lang_avt)\n {\n XPathContext xctxt = transformer.getXPathContext();\n String langValue = m_lang_avt.evaluate(xctxt, contextNode, this);\n\n if (null != langValue)\n {\n\n // Not really sure what to do about the country code, so I use the\n // default from the system.\n // TODO: fix xml:lang handling.\n locale = new Locale(langValue.toUpperCase(), \"\");\n\n //Locale.getDefault().getDisplayCountry());\n if (null == locale)\n {\n transformer.getMsgMgr().warn(this, null, xctxt.getDTM(contextNode).getNode(contextNode),\n XSLTErrorResources.WG_LOCALE_NOT_FOUND,\n new Object[]{ langValue }); //\"Warning: Could not find locale for xml:lang=\"+langValue);\n\n locale = Locale.getDefault();\n }\n }\n }\n else\n {\n locale = Locale.getDefault();\n }\n\n return locale;\n }", "@AutoEscape\n\tpublic String getLanguage();", "public void setAuthorizedLang(String value) {\n setAttributeInternal(AUTHORIZEDLANG, value);\n }", "public boolean isSetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(LANG$28) != null;\n }\n }", "private SupportedLanguage getAndroidLang() {\n\t\treturn this.androidLang;\n\t}", "public String getLanguage() {\n return languageProperty.get();\n }", "public String returnLanguage() {\n\t\treturn this.registration_language.getAttribute(\"value\");\r\n\t}", "public void setLanguage(String lang) {\n\t\tthis.language = lang;\n\t}", "public void setLocale(Locale locale)\n throws SAXException\n {\n if (\"en\".equals(locale.getLanguage()))\n {\n return;\n }\n throw new SAXException (\"AElfred2 only supports English locales.\");\n }", "@Override\n public String getLang() {\n if (request != null) {\n return GuideUtils.getAcceptLang(request);\n } else {\n return FormContainer.super.getLang();\n }\n }", "void setLanguage(Language language);", "public void addLanguage(String value) {\n/* 230 */ addStringToBag(\"language\", value);\n/* */ }", "public static void setLanguage(String lang){\n String propFileName = lang==null ? \"resources_en\" : lang.equals(\"tr\") ? \"resources_tr\" : \"resources_en\";\n initializeStaticObjects(ResourceBundle.getBundle(\"market.dental.resources.resultProp\", lang==null ? Locale.ENGLISH : lang.equals(\"tr\") ? new Locale(\"tr\") : Locale.ENGLISH));\n }", "public String getLanguage() {\r\n return language;\r\n }", "public void setLang(LANG language) {\n\t\tthis.language = language;\n\t}", "public String getLanguage()\n {\n return mLanguage;\n }", "public Object language() {\n return this.language;\n }", "com.google.ads.googleads.v6.resources.LanguageConstant getLanguageConstant();", "public void setLanguage(java.lang.String language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.setStringValue(language);\n }\n }", "public void setLanguage(java.lang.String language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.setStringValue(language);\n }\n }", "Builder addInLanguage(Text value);", "private void setLocale(String lang) {\n Locale myLocale = new Locale(lang);\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration conf = res.getConfiguration();\n conf.setLocale(myLocale);\n res.updateConfiguration(conf, dm);\n Intent refresh = new Intent(this, MainActivity.class);\n startActivity(refresh);\n finish();\n }", "public String getLanguage() {\n return language;\n }", "public String getLanguage() {\n return language;\n }", "public String getLanguage()\n\t{\n\t\treturn language;\n\t}", "public String getLanguage()\r\n\t{\r\n\t\treturn (String) queryParams.get(AUTH_LANGUAGE);\r\n\t}", "String getLocalization();", "Builder addInLanguage(String value);", "void updateLang() {\n if (lang == null)\n lang = game.q;\n }", "private void setTermbaseLangs(String p_xmlDefinition) throws Exception\n {\n XmlParser parser = XmlParser.hire();\n Document dom = parser.parseXml(p_xmlDefinition);\n Element root = dom.getRootElement();\n List langGrps = root.selectNodes(\"/definition/languages/language/name\");\n m_termbaseLangs = new ArrayList();\n for (int i = 0; i < langGrps.size(); i++)\n {\n Element e = (Element) langGrps.get(i);\n String lang = e.getText();\n m_termbaseLangs.add(lang);\n }\n XmlParser.fire(parser);\n\n }", "public void unsetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LANG$28);\n }\n }", "public void xsetLanguage(org.apache.xmlbeans.XmlNMTOKEN language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.set(language);\n }\n }", "public void xsetLanguage(org.apache.xmlbeans.XmlNMTOKEN language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.set(language);\n }\n }", "public Builder setLanguageTag(String langtag) {\n LanguageTag tag = null;\n try {\n tag = LanguageTag.parse(langtag);\n } catch (InvalidLocaleIdentifierException e) {\n throw new IllegalArgumentException(e);\n }\n\n // base locale fields\n setLanguage(tag.getLanguage()).setScript(tag.getScript())\n .setRegion(tag.getRegion()).setVariant(tag.getVariant());\n\n // extensions\n Set<Extension> exts = tag.getExtensions();\n if (exts != null) {\n Iterator<Extension> itr = exts.iterator();\n while (itr.hasNext()) {\n Extension e = itr.next();\n setExtension(e.getSingleton(), e.getValue());\n }\n }\n return this;\n }", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "@Override\r\n\tpublic DTextArea setHtmlLang(final String lang) {\r\n\t\tsuper.setHtmlLang(lang) ;\r\n\t\treturn this ;\r\n\t}", "public String changeLeguage(){\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tLocale miLocale = new Locale(\"en\",\"US\");\r\n\t\tcontext.getViewRoot().setLocale(miLocale);\r\n\t\treturn \"login\";\r\n\t}", "public void setLocale(String value) {\n setAttributeInternal(LOCALE, value);\n }", "public void setLocale(String value) {\n setAttributeInternal(LOCALE, value);\n }", "public String getLanguage() {\n return this.language;\n }", "Language(Locale locale) {\n this.locale = locale;\n }", "public static Locale forLanguageTag(String langtag) {\n LanguageTag tag = null;\n while (true) {\n try {\n tag = LanguageTag.parse(langtag);\n break;\n } catch (InvalidLocaleIdentifierException e) {\n // remove the last subtag and try it again\n int idx = langtag.lastIndexOf('-');\n if (idx == -1) {\n // no more subtags\n break;\n }\n langtag = langtag.substring(0, idx);\n }\n }\n if (tag == null) {\n return Locale.ROOT;\n }\n\n Builder bldr = new Builder();\n\n bldr.setLanguage(tag.getLanguage()).setScript(tag.getScript())\n .setRegion(tag.getRegion()).setVariant(tag.getVariant());\n\n Set<Extension> exts = tag.getExtensions();\n if (exts != null) {\n Iterator<Extension> itr = exts.iterator();\n while (itr.hasNext()) {\n Extension e = itr.next();\n bldr.setExtension(e.getSingleton(), e.getValue());\n }\n }\n\n return bldr.create();\n }", "public String getLanguage() {\n return _language;\n }", "public String getLanguageKey();", "public String getUserLangage() {\n return sessionData.getUserLanguage();\n }", "public String toLanguageTag() {\n return LanguageTag.toLanguageTag(_baseLocale, _extensions);\n }", "public int getCxlangue() {\r\r\r\r\r\r\r\n return cxlangue;\r\r\r\r\r\r\r\n }", "protected String getLang(SharedPreferences prefs, Resources res) {\n Intent intent = getIntent();\n if (intent != null) {\n String lang = intent.getStringExtra(RecognizerIntent.EXTRA_LANGUAGE);\n if (lang != null) {\n return lang;\n }\n }\n return PreferenceUtils.getPrefString(prefs, res, R.string.keyLanguage, R.string.defaultLanguage);\n }", "public String toLanguageTag() {\n/* 1098 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean hasLanguageConstant();", "public String getLangCode() {\n\t\treturn langCode;\n\t}", "public java.lang.String getLanguage() {\n return language;\n }" ]
[ "0.78954834", "0.72481996", "0.67930233", "0.6616082", "0.6559277", "0.65510577", "0.6374292", "0.6318961", "0.6279018", "0.6263357", "0.6227289", "0.6179986", "0.6008768", "0.5956755", "0.58795106", "0.5866436", "0.5866436", "0.58467835", "0.5833319", "0.5812251", "0.5812251", "0.5812251", "0.58110344", "0.58110344", "0.5798929", "0.5753768", "0.5734817", "0.57340527", "0.57273877", "0.5699268", "0.5675304", "0.5647134", "0.5647134", "0.5585925", "0.5514236", "0.5426586", "0.53844535", "0.53720397", "0.53701824", "0.52972215", "0.52935666", "0.5291387", "0.5289231", "0.5288417", "0.5249548", "0.52163637", "0.52102214", "0.5203049", "0.5171771", "0.5164771", "0.5138957", "0.51364267", "0.51347095", "0.5113058", "0.5100352", "0.5082515", "0.50789523", "0.5066541", "0.50642", "0.50580335", "0.5054797", "0.504387", "0.5023618", "0.5022571", "0.50159705", "0.49979755", "0.49920782", "0.49920782", "0.49920756", "0.4990658", "0.49704227", "0.49704227", "0.49541098", "0.49473202", "0.49436265", "0.49335206", "0.49325836", "0.49258006", "0.49215513", "0.4911778", "0.4911778", "0.4910626", "0.49044234", "0.48905542", "0.4889549", "0.4877892", "0.4877892", "0.48726", "0.48683974", "0.4864245", "0.48604676", "0.48599228", "0.4838994", "0.48290685", "0.48223534", "0.48157975", "0.4810885", "0.47947347", "0.47828203", "0.4781052" ]
0.5963922
13
Corresponds to attribute xml:space on the given element.
public final String getXmlspace() { return ((SVGFilterElement)ot).getXmlspace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setXmlspace(java.lang.String value) throws JavaScriptException {\n ((SVGFilterElement)ot).setXmlspace(value);\n }", "private static boolean findPreserveSpace(/*@NotNull*/ TreeInfo doc) {\n if (doc instanceof TinyTree) {\n // Optimisation - see bug 2929. Makes a vast difference especially if there are few attributes in the tree\n return ((TinyTree)doc).hasXmlSpacePreserveAttribute();\n } else {\n AxisIterator iter = doc.getRootNode().iterateAxis(AxisInfo.DESCENDANT, NodeKindTest.ELEMENT);\n while (true) {\n NodeInfo node = iter.next();\n if (node == null) {\n return false;\n }\n String val = node.getAttributeValue(NamespaceConstant.XML, \"space\");\n if (\"preserve\".equals(val)) {\n return true;\n }\n }\n }\n }", "public Space getSpace() {\n return space;\n }", "public Long getSPACE() {\n return SPACE;\n }", "public void setSpacing(double space) {\n\tthis.space = space;\n }", "String getSpace();", "protected Space getSpace() {\n return space;\n }", "public double getSpace() {\n\treturn space;\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "public String getSPACE_TYPE() {\n return SPACE_TYPE;\n }", "private void storeAttribute(final Attr attribute) {\n if (attribute.getNamespaceURI() != null\r\n && attribute.getNamespaceURI().equals(\r\n XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) {\r\n // Default namespace xmlns=\"uri goes here\"\r\n if (attribute.getNodeName().equals(XMLConstants.XMLNS_ATTRIBUTE)) {\r\n putInCache(DEFAULT_NS, attribute.getNodeValue());\r\n } else {\r\n // The defined prefixes are stored here\r\n putInCache(attribute.getLocalName(), attribute.getNodeValue());\r\n }\r\n }\r\n }", "public double getWordSpace(\n )\n {return wordSpace;}", "public boolean hasSpace() {\r\n\t\treturn hasSpace;\r\n\t}", "public double getCharSpace(\n )\n {return charSpace;}", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "public Point getSpace(){\r\n return this.space;\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }" ]
[ "0.6426133", "0.56879264", "0.5535104", "0.55146575", "0.54962945", "0.54956955", "0.54096824", "0.53822887", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.5200859", "0.51905286", "0.5149014", "0.514806", "0.5146301", "0.5130222", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.5062803", "0.5060698", "0.5060698", "0.5060698", "0.5060698", "0.5060698", "0.5060698" ]
0.6400629
1
Corresponds to attribute xml:space on the given element.
public final void setXmlspace(java.lang.String value) throws JavaScriptException { ((SVGFilterElement)ot).setXmlspace(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getXmlspace() {\n return ((SVGFilterElement)ot).getXmlspace();\n }", "private static boolean findPreserveSpace(/*@NotNull*/ TreeInfo doc) {\n if (doc instanceof TinyTree) {\n // Optimisation - see bug 2929. Makes a vast difference especially if there are few attributes in the tree\n return ((TinyTree)doc).hasXmlSpacePreserveAttribute();\n } else {\n AxisIterator iter = doc.getRootNode().iterateAxis(AxisInfo.DESCENDANT, NodeKindTest.ELEMENT);\n while (true) {\n NodeInfo node = iter.next();\n if (node == null) {\n return false;\n }\n String val = node.getAttributeValue(NamespaceConstant.XML, \"space\");\n if (\"preserve\".equals(val)) {\n return true;\n }\n }\n }\n }", "public Space getSpace() {\n return space;\n }", "public Long getSPACE() {\n return SPACE;\n }", "public void setSpacing(double space) {\n\tthis.space = space;\n }", "String getSpace();", "protected Space getSpace() {\n return space;\n }", "public double getSpace() {\n\treturn space;\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\"))\n {\n xmlWriter.writeAttribute(attName,attValue);\n }\n else\n {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\"))\r\n {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n }\r\n else\r\n {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "public String getSPACE_TYPE() {\n return SPACE_TYPE;\n }", "private void storeAttribute(final Attr attribute) {\n if (attribute.getNamespaceURI() != null\r\n && attribute.getNamespaceURI().equals(\r\n XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) {\r\n // Default namespace xmlns=\"uri goes here\"\r\n if (attribute.getNodeName().equals(XMLConstants.XMLNS_ATTRIBUTE)) {\r\n putInCache(DEFAULT_NS, attribute.getNodeValue());\r\n } else {\r\n // The defined prefixes are stored here\r\n putInCache(attribute.getLocalName(), attribute.getNodeValue());\r\n }\r\n }\r\n }", "public double getWordSpace(\n )\n {return wordSpace;}", "public boolean hasSpace() {\r\n\t\treturn hasSpace;\r\n\t}", "public double getCharSpace(\n )\n {return charSpace;}", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName,attValue);\r\n } else {\r\n registerPrefix(xmlWriter, namespace);\r\n xmlWriter.writeAttribute(namespace,attName,attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{\n if (namespace.equals(\"\")) {\n xmlWriter.writeAttribute(attName,attValue);\n } else {\n registerPrefix(xmlWriter, namespace);\n xmlWriter.writeAttribute(namespace,attName,attValue);\n }\n }", "public Point getSpace(){\r\n return this.space;\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }", "private void writeAttribute(java.lang.String namespace,\r\n java.lang.String attName, java.lang.String attValue,\r\n javax.xml.stream.XMLStreamWriter xmlWriter)\r\n throws javax.xml.stream.XMLStreamException {\r\n if (namespace.equals(\"\")) {\r\n xmlWriter.writeAttribute(attName, attValue);\r\n } else {\r\n xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),\r\n namespace, attName, attValue);\r\n }\r\n }" ]
[ "0.6400629", "0.56879264", "0.5535104", "0.55146575", "0.54962945", "0.54956955", "0.54096824", "0.53822887", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.52090746", "0.5200859", "0.51905286", "0.5149014", "0.514806", "0.5146301", "0.5130222", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51159394", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.51075757", "0.5062803", "0.5060698", "0.5060698", "0.5060698", "0.5060698", "0.5060698", "0.5060698" ]
0.6426133
0
Implementation of the svg::SVGURIReference W3C IDL interface Corresponds to attribute 'xlink:href' on the given element.
public final OMSVGAnimatedString getHref() { return ((SVGFilterElement)ot).getHref(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.w3.x2005.sparqlResults.URIReference xgetHref()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x2005.sparqlResults.URIReference target = null;\n target = (org.w3.x2005.sparqlResults.URIReference)get_store().find_attribute_user(HREF$0);\n return target;\n }\n }", "public void xsetHref(org.w3.x2005.sparqlResults.URIReference href)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x2005.sparqlResults.URIReference target = null;\n target = (org.w3.x2005.sparqlResults.URIReference)get_store().find_attribute_user(HREF$0);\n if (target == null)\n {\n target = (org.w3.x2005.sparqlResults.URIReference)get_store().add_attribute_user(HREF$0);\n }\n target.set(href);\n }\n }", "Attr getURIAsAttr();", "public void setHref(Reference href) {\n this.href = href;\n }", "public Reference getHref() {\n return this.href;\n }", "@JsonProperty(\"href\")\n public void setHref(URI href) {\n this.href = href;\n }", "public static URI getUriAttributeValue(StartElement startElement, HasQName attrName) {\n Attribute attr = startElement.getAttributeByName(attrName.getQName());\n String value = getAttributeValue(attr);\n return value == null ? null : URI.create(value);\n }", "public void setHref(java.lang.String href)\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(HREF$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HREF$0);\n }\n target.setStringValue(href);\n }\n }", "public Element createReferencingElementNode(\r\n final Document doc, final String namespaceUri, final String prefix, final String tagName,\r\n final String xlinkPrefix, final String title, final String href) throws Exception {\r\n\r\n Element newElement = createElementNodeWithXlink(doc, namespaceUri, prefix, tagName, xlinkPrefix, title, href);\r\n\r\n Attr objidAttr = createAttributeNode(doc, null, null, NAME_OBJID, getObjidFromHref(href));\r\n newElement.getAttributes().setNamedItemNS(objidAttr);\r\n\r\n return newElement;\r\n }", "private void writeLink() throws SAXException, IOException {\n if (state.uri != null && state.uri.trim().length() > 0) {\n xhtml.startElement(\"a\", \"href\", state.uri);\n xhtml.characters(state.hrefAnchorBuilder.toString());\n xhtml.endElement(\"a\");\n } else {\n try {\n //if it isn't a uri, output this anyhow\n writeString(state.hrefAnchorBuilder.toString());\n } catch (IOException e) {\n handleCatchableIOE(e);\n }\n }\n state.hrefAnchorBuilder.setLength(0);\n state.inLink = false;\n state.uri = null;\n\n }", "public static Element createElementNodeWithXlink(\r\n final Document doc, final String namespaceUri, final String prefix, final String tagName,\r\n final String xlinkPrefix, final String title, final String href) throws Exception {\r\n\r\n Element newElement = createElementNode(doc, namespaceUri, prefix, tagName, null);\r\n Attr xlinkTypeAttr = createAttributeNode(doc, Constants.NS_EXTERNAL_XLINK, xlinkPrefix, NAME_TYPE, \"simple\");\r\n Attr xlinkTitleAttr = createAttributeNode(doc, Constants.NS_EXTERNAL_XLINK, xlinkPrefix, NAME_TITLE, title);\r\n Attr xlinkHrefAttr = createAttributeNode(doc, Constants.NS_EXTERNAL_XLINK, xlinkPrefix, NAME_HREF, href);\r\n newElement.getAttributes().setNamedItemNS(xlinkTypeAttr);\r\n newElement.getAttributes().setNamedItemNS(xlinkTitleAttr);\r\n newElement.getAttributes().setNamedItemNS(xlinkHrefAttr);\r\n\r\n return newElement;\r\n }", "String getElementNamespaceUri(Object element);", "ReferenceLink createReferenceLink();", "@JsonProperty(\"href\")\n public URI getHref() {\n return href;\n }", "public java.lang.String getHref()\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(HREF$0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getHref() {\r\n return href;\r\n }", "public String getHref()\r\n\t{\r\n\t\treturn _href;\r\n\t}", "public StacLink href(String href) {\n this.href = href;\n return this;\n }", "public String getURI(int index) {\n/* 96 */ String ns = this.m_dh.getNamespaceOfNode(this.m_attrs.item(index));\n/* 97 */ if (null == ns)\n/* 98 */ ns = \"\"; \n/* 99 */ return ns;\n/* */ }", "public String getHref() {\n return href;\n }", "public String getHref() {\n return href;\n }", "public URI getReferenceUri() {\n return m_referenceUri;\n }", "String getHref();", "@NotNull URI getURI();", "String getAttributeNamespaceUri(Object attr);", "public URI getLink(String expression, Map<String, String> namespaces) {\n String value = getValue(expression, namespaces);\n return value == null ? null : URI.create(value);\n }", "public void setHref(String href) {\r\n this.href = href;\r\n }", "public void setHref(String href)\r\n\t{\r\n\t\t_href = href;\r\n\t}", "public LinkImpl(String href) {\n this.href = href;\n }", "@XmlAttribute\n public URI getUri() {\n return uri;\n }", "@XmlAttribute\n public URI getUri() {\n return uri;\n }", "public void setHref(String href) {\n this.href = href;\n }", "String translateNamespacePrefixToUri(String prefix, Object element);", "public interface AttributeLink extends org.omg.uml.foundation.core.ModelElement {\n /**\n * Returns the value of reference attribute.\n * @return Value of reference attribute.\n */\n public org.omg.uml.foundation.core.Attribute getAttribute();\n /**\n * Sets the value of reference attribute. See {@link #getAttribute} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setAttribute(org.omg.uml.foundation.core.Attribute newValue);\n /**\n * Returns the value of reference value.\n * @return Value of reference value.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();\n /**\n * Sets the value of reference value. See {@link #getValue} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setValue(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference instance.\n * @return Value of reference instance.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();\n /**\n * Sets the value of reference instance. See {@link #getInstance} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setInstance(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference linkEnd.\n * @return Value of reference linkEnd.\n */\n public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();\n /**\n * Sets the value of reference linkEnd. See {@link #getLinkEnd} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setLinkEnd(org.omg.uml.behavioralelements.commonbehavior.LinkEnd newValue);\n}", "@ApiModelProperty(required = true, value = \"URI providing the resource address for the other product that is related to the referenced one\")\n @NotNull\n public String getHref() {\n return href;\n }", "private Text href() {\n\t\tText href = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn href;\r\n\t}", "public final String getHref( )\n\t{\n\t\treturn this.href;\n\t}", "@Override\n\tpublic ParseState handle(final String namespace, final String tag, final String qName, final Attributes atts, final ParseState current) throws SAXException, NdexException {\n\t\tString href = atts.getValue(ReadDataManager.XLINK, \"href\");\n\n\t\tif (href == null) {\n\t\t\t// Create the edge:\n\t//\t\tid = getId(atts);\n\t\t\tString label = getLabel(atts);\n\t\t\tString sourceId = atts.getValue(\"source\");\n\t\t\tString targetId = atts.getValue(\"target\");\n\t\t\tString interaction = null;\n\t\t\t\n\t\t\t// check if we can parse the predicate from from label\n\t\t\t\n\t\t\tMatcher m = predictatePattern.matcher(label);\n\t\t\t\n\t\t\tif ( m.find()) \n\t\t\t\tinteraction = m.group(1);\n\n\t//Long edgeId = \n\t\t\tmanager.addEdge(sourceId, interaction, targetId);\n\n\t\t\tmanager.getCurrentXGMMLEdge().getProps().add(new NdexPropertyValuePair(LABEL,label));\n\t\t\t//TODO: add the rest of atts as properties to the edge.\n\t\t\t\n\n\t\t} else {\n\t\t\t// The edge might not have been created yet!\n\t\t\t// Save the reference so it can be added to the network after the\n\t\t\t// whole graph is parsed.\n\t\t\tthrow new NdexException(\"not yet handling XLINK in XGMML\");\n\t\t}\n\n\t\treturn current;\n\t}", "Uri decodeRefUri(String s, XElem elem)\n { \n Uri uri = new Uri(s);\n if (!uri.isFragment()) return uri;\n \n // check if we've already parsed the obj to which\n // this fragment id referneces\n Obj resolved = (Obj)fragIds.get(s); \n if (resolved != null)\n { \n uri.setResolved(resolved);\n return uri;\n } \n \n // if not then this uri is forwardly used (or \n // maybe missing), so just store it away \n FragRefs refs = (FragRefs)fragRefs.get(s);\n if (refs == null) fragRefs.put(s, refs = new FragRefs());\n refs.uris.add(uri);\n refs.elems.add(elem);\n \n return uri;\n }", "@ApiModelProperty(value = \"Unique reference of the entity\")\n\n\n public String getHref() {\n return href;\n }", "@ApiModelProperty(value = \"Hyperlink reference to the target specification\")\n\n\n public String getHref() {\n return href;\n }", "public void setHref(final String href) {\n\t\tthis.href = href;\n\t}", "public URI getLink(String expression) {\n return getLink(expression, CastUtils.cast(Collections.emptyMap(), String.class, String.class));\n }", "public String getURI(int index) {\n return libsbmlJNI.XMLNamespaces_getURI__SWIG_0(swigCPtr, this, index);\n }", "protected DatasetReference[] parseDatasetReferences( Element datasetElement )\n throws XMLParsingException,\n InvalidCapabilitiesException {\n\n List<Node> datasetRefList = XMLTools.getNodes( datasetElement, PRE_WPVS + \"DatasetReference\", nsContext );\n if ( datasetRefList == null ) {\n return null;\n }\n DatasetReference[] datasetRefs = new DatasetReference[datasetRefList.size()];\n\n for ( int i = 0; i < datasetRefs.length; i++ ) {\n\n Element datasetRefElement = (Element) datasetRefList.get( i );\n\n String format = XMLTools.getRequiredNodeAsString( datasetRefElement, PRE_WPVS + \"Format/text()\", nsContext );\n\n URI onlineResourceURI = XMLTools.getNodeAsURI( datasetRefElement,\n PRE_WPVS + \"OnlineResource/@xlink:href\",\n nsContext,\n null );\n URL onlineResource = null;\n if ( onlineResourceURI != null ) {\n try {\n onlineResource = onlineResourceURI.toURL();\n } catch ( MalformedURLException e ) {\n throw new InvalidCapabilitiesException( onlineResourceURI + \" does not represent a valid URL: \"\n + e.getMessage() );\n }\n }\n datasetRefs[i] = new DatasetReference( format, onlineResource );\n }\n\n return datasetRefs;\n }", "@ApiModelProperty(value = \"Reference link to the place\")\n\n\n public String getHref() {\n return href;\n }", "@ApiModelProperty(value = \"Reference of the product\")\n @JsonProperty(\"href\")\n public String getHref() {\n return href;\n }", "private static URL absolutize(URL baseURL, String href) \n throws MalformedURLException, BadHrefAttributeException {\n \n Element parent = new Element(\"c\");\n parent.setBaseURI(baseURL.toExternalForm());\n Element child = new Element(\"c\");\n parent.appendChild(child);\n child.addAttribute(new Attribute(\n \"xml:base\", \"http://www.w3.org/XML/1998/namespace\", href));\n URL result = new URL(child.getBaseURI());\n if (!\"\".equals(href) && result.equals(baseURL)) {\n if (! baseURL.toExternalForm().endsWith(href)) {\n throw new BadHrefAttributeException(href \n + \" is not a syntactically correct IRI\");\n }\n }\n return result;\n \n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public static AttributedURIType getAttributedURI(String uri) {\n AttributedURIType attributedURI = \n WSA_OBJECT_FACTORY.createAttributedURIType();\n attributedURI.setValue(uri);\n return attributedURI;\n }", "@ApiModelProperty(value = \"Reference of the billing cycle specification\")\n public String getHref() {\n return href;\n }", "@XmlAttribute (namespace= CommonNamespaces.RDF_NAMESPACE)\n @XmlSchemaType (name = \"anyURI\", namespace = XMLConstants.W3C_XML_SCHEMA_NS_URI)\n public URI getResource() {\n return resource;\n }", "public void addReference(Ant.Reference r) {\r\n references.addElement(r);\r\n }", "public NewReferenceValueStrategy replaceWithFullUrl() {\n return update -> linkProperties.r4().readUrl(update.resourceType(), update.newResourceId());\n }", "private HTMLElement generateLinkElement(String href, int indentLevel) {\n \t\tHTMLElement link = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_LINK, indentLevel, true);\n \t\tlink.addAttribute(IIntroHTMLConstants.ATTRIBUTE_RELATIONSHIP,\n \t\t\t\tIIntroHTMLConstants.LINK_REL);\n \t\tlink.addAttribute(IIntroHTMLConstants.ATTRIBUTE_STYLE,\n \t\t\t\tIIntroHTMLConstants.LINK_STYLE);\n \t\tif (href != null)\n \t\t\tlink.addAttribute(IIntroHTMLConstants.ATTRIBUTE_HREF, href);\n \t\treturn link;\n \t}", "@NoProxy\n @NoWrap\n @NoDump\n @IcalProperty(pindex = PropertyInfoIndex.LOCATION_HREF,\n jname = \"locationHref\",\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setLocationHref(final String val) {\n locationHref = val;\n }", "@Test\n public void testRelWithHref() throws RepositoryException {\n assertExtract(\"/html/rdfa/rel-href.html\");\n logger.debug(dumpModelToTurtle());\n\n assertContains(RDFUtils.iri(baseIRI.toString(), \"#me\"), FOAF.getInstance().name, \"John Doe\");\n assertContains(RDFUtils.iri(baseIRI.toString(), \"#me\"), FOAF.getInstance().homepage,\n RDFUtils.iri(\"http://example.org/blog/\"));\n }", "public final String getURI() {\n/* 314 */ return this.constructionElement.getAttributeNS(null, \"Algorithm\");\n/* */ }", "public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}", "public URI getURI()\r\n/* 34: */ {\r\n/* 35:60 */ return this.uri;\r\n/* 36: */ }", "public URI getHref() {\n return entityLinks.linkForItemResource(Hunt.class, id).toUri();\n }", "private Link link() {\n\r\n\t\tLink link = null;\r\n\r\n\t\tToken tok = lex.getToken();\r\n\r\n\t\t// Expect '<link' (we know it is OK)\r\n\t\tif (tok.getToken() != TokensId.OPENLINK) {\r\n\t\t\tsyntaxError(String.format(\"Expected '<link', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect 'href'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.HREF) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected 'href' in link declaration, found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '='\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.EQ) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '=' after attribute 'href', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'href', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect href\r\n\t\tText href = href();\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'href', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect 'rel'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.REL) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected 'rel' in link declaration, found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '='\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.EQ) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '=' after attribute 'rel', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'rel', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect rel\r\n\t\tText rel = rel();\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'rel', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect 'type'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.TYPE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected 'type' in link declaration, found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '='\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.EQ) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '=' after attribute 'type', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'type', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect type\r\n\t\tText type = type();\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'type', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '>'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.TAGCLOSE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '>' closing the tag 'link', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\tif (href != null && rel != null && type != null)\r\n\t\t\tlink = new Link(href, rel, type);\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn link;\r\n\t}", "URI getUri();", "public Builder setHref(String href) {\n this.href = href;\n return this;\n }", "public void setReference(javax.xml.namespace.QName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCE$0);\n }\n target.setQNameValue(reference);\n }\n }", "String getURI();", "String getURI();", "String getURI();", "public String getUri();", "@DOMSupport(DomLevel.ONE)\r\n @Property String getAlinkColor();", "public String createHrefForTag(final String tag) {\n\t\treturn this.tagUrlPrefix + tag;\n\t}", "public ImportedURIElements getImportedURIAccess() {\n\t\treturn pImportedURI;\n\t}", "private String externalLink2Anchor(String href) {\n\t\t\n\t\tString replaceText = null;\n\t\tString id = baseId + \"-\" + UUID.uuid(4);\n\t\tString target = (openLinksinNewTab) ? \"_blank\" : \"_self\";\n\t\t\n\t\tLinkInfo pli = new LinkInfo(id, LinkType.EXTERNAL, href, target);\n\t\tparserResult.linkInfos.add(pli);\n\t\treplaceText = \"<a id='\" + id + \"' target='\" + target + \"' href='\" + href + \"'\";\n\t\t\n\t\treturn replaceText;\n\t}", "@objid (\"780bebb2-6884-4789-bdef-ca10444ad5fb\")\n Link getLink();", "public static void addStyleSheetReference(final Document document, final String href, final MediaType mediaType) {\n\t\tfinal String target = XML_STYLESHEET_PROCESSING_INSTRUCTION; //the PI target will be the name of the stylesheet processing instruction\n\t\tfinal StringBuilder dataStringBuilder = new StringBuilder(); //create a string buffer to construct the data parameter (with its pseudo attributes)\n\t\t//add: href=\"href\"\n\t\tdataStringBuilder.append(HREF_ATTRIBUTE).append(EQUAL_CHAR).append(DOUBLE_QUOTE_CHAR).append(href).append(DOUBLE_QUOTE_CHAR);\n\t\tdataStringBuilder.append(SPACE_CHAR); //add a space between the pseudo attributes\n\t\t//add: type=\"type\"\n\t\tdataStringBuilder.append(TYPE_ATTRIBUTE).append(EQUAL_CHAR).append(DOUBLE_QUOTE_CHAR).append(mediaType).append(DOUBLE_QUOTE_CHAR);\n\t\tfinal String data = dataStringBuilder.toString(); //convert the data string buffer to a string\n\t\tfinal ProcessingInstruction processingInstruction = document.createProcessingInstruction(target, data); //create a processing instruction with the correct information\n\t\tdocument.appendChild(processingInstruction); //append the processing instruction to the document\n\t}", "public void setReferencedLink(EObject newValue);", "public String getDefaultURI(boolean attr) {\n NamespaceDefinition ns = getDefaultNamespace(attr);\n if (ns == null) {\n return null;\n } else {\n return ns.getUri();\n }\n }", "public String getURI() {\n/* 95 */ return this.uri;\n/* */ }", "@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}", "public URI toIRI(\n ){\n String xri = toXRI();\n StringBuilder iri = new StringBuilder(xri.length());\n int xRef = 0;\n for(\n int i = 0, limit = xri.length();\n i < limit;\n i++\n ){\n char c = xri.charAt(i);\n if(c == '%') {\n iri.append(\"%25\");\n } else if (c == '(') {\n xRef++;\n iri.append(c);\n } else if (c == ')') {\n xRef--;\n iri.append(c);\n } else if (xRef == 0) {\n iri.append(c);\n } else if (c == '#') {\n iri.append(\"%23\");\n } else if (c == '?') {\n iri.append(\"%3F\");\n } else if (c == '/') {\n iri.append(\"%2F\");\n } else {\n iri.append(c);\n }\n }\n return URI.create(iri.toString());\n }", "protected void sequence_AttributeNameReference(ISerializationContext context, AttributeNameReference semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getAttributeNameReference_AttrName1()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getAttributeNameReference_AttrName1()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAttributeNameReferenceAccess().getAttrName1FeaturesIdNewParserRuleCall_0_1(), semanticObject.eGet(SiddhiPackage.eINSTANCE.getAttributeNameReference_AttrName1(), false));\n\t\tfeeder.finish();\n\t}", "@Override\n public void setIconURI(String arg0)\n {\n \n }", "public void setLink(Unmarshaller linkTo)\r\n {\r\n _link = linkTo;\r\n }", "@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }", "public void xsetReference(org.apache.xmlbeans.XmlQName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlQName target = null;\n target = (org.apache.xmlbeans.XmlQName)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlQName)get_store().add_element_user(REFERENCE$0);\n }\n target.set(reference);\n }\n }", "protected FeatureListReference[] parseFeatureListReferences( Element datasetElement )\n throws XMLParsingException,\n InvalidCapabilitiesException {\n\n List<Node> featureList = XMLTools.getNodes( datasetElement, PRE_WPVS + \"FeatureListReference\", nsContext );\n if ( featureList.size() == 0 ) {\n return null;\n }\n FeatureListReference[] featureRefs = new FeatureListReference[featureList.size()];\n for ( int i = 0; i < featureRefs.length; i++ ) {\n\n Element featureRefElement = (Element) featureList.get( i );\n\n String format = XMLTools.getRequiredNodeAsString( featureRefElement, PRE_WPVS + \"Format/text()\", nsContext );\n\n URI onlineResourceURI = XMLTools.getNodeAsURI( featureRefElement,\n PRE_WPVS + \"OnlineResource/@xlink:href\",\n nsContext,\n null );\n URL onlineResource = null;\n if ( onlineResourceURI != null ) {\n try {\n onlineResource = onlineResourceURI.toURL();\n } catch ( MalformedURLException e ) {\n throw new InvalidCapabilitiesException( onlineResourceURI + \" does not represent a valid URL: \"\n + e.getMessage() );\n }\n }\n featureRefs[i] = new FeatureListReference( format, onlineResource );\n }\n return featureRefs;\n }", "public String getAliasURI() {\n return uri;\n }", "String getReferenceNamespace();", "private StyleSheetURL parseStyleSheetURL( Element styleElement )\n throws XMLParsingException,\n InvalidCapabilitiesException {\n\n Element styleSheetURLElement = (Element) XMLTools.getNode( styleElement, PRE_WPVS + \"StyleSheetURL\", nsContext );\n if ( styleSheetURLElement == null ) {\n return null;\n }\n String format = XMLTools.getRequiredNodeAsString( styleSheetURLElement, PRE_WPVS + \"Format/text()\", nsContext );\n\n // optional onlineResource\n URI onlineResourceURI = XMLTools.getNodeAsURI( styleSheetURLElement,\n PRE_WPVS + \"OnlineResource/@xlink:href\",\n nsContext,\n null );\n URL onlineResource = null;\n if ( onlineResourceURI != null ) {\n try {\n onlineResource = onlineResourceURI.toURL();\n } catch ( MalformedURLException e ) {\n throw new InvalidCapabilitiesException( onlineResourceURI + \" does not represent a valid URL: \"\n + e.getMessage() );\n }\n }\n\n return new StyleSheetURL( format, onlineResource );\n }", "private StyleURL parseStyleURL( Element styleElement )\n throws XMLParsingException, InvalidCapabilitiesException {\n\n Element styleURLElement = (Element) XMLTools.getNode( styleElement, PRE_WPVS + \"StyleURL\", nsContext );\n if ( styleURLElement == null ) {\n return null;\n }\n String format = XMLTools.getRequiredNodeAsString( styleURLElement, PRE_WPVS + \"Format/text()\", nsContext );\n\n // optional\n URI onlineResourceURI = XMLTools.getNodeAsURI( styleURLElement,\n PRE_WPVS + \"OnlineResource/@xlink:href\",\n nsContext,\n null );\n URL onlineResource = null;\n if ( onlineResourceURI != null ) {\n try {\n onlineResource = onlineResourceURI.toURL();\n } catch ( MalformedURLException e ) {\n throw new InvalidCapabilitiesException( onlineResourceURI + \" does not represent a valid URL: \"\n + e.getMessage() );\n }\n }\n return new StyleURL( format, onlineResource );\n }", "public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }", "private URI lookupURI(URI imdbURI) throws IOException,\n URISyntaxException {\n // lookup uri if not yet set\n String imdbString = IMDBLink.getMovieURIString(target\n .getMovieTitle(), target.getYear());\n if (imdbString != null) {\n imdbURI = new URI(imdbString);\n target.setIMDBMovieURI(imdbURI);\n }\n return imdbURI;\n }", "@DOMSupport(DomLevel.ONE)\r\n @Property String getLinkColor();", "public W3CEndpointReference createW3CEndpointReference(String address, QName interfaceName,\n QName serviceName, QName portName, List<Element> metadata, String wsdlDocumentLocation,\n List<Element> referenceParameters, List<Element> elements, Map<QName, String> attributes) {\n throw new UnsupportedOperationException(\n \"JAX-WS 2.2 implementation must override this default behaviour.\");\n }", "java.lang.String getUri();", "java.lang.String getUri();", "public ExternalLink(String id, final IModel<String> href, final boolean shortUrlAsLabel) {\n this(id, href, new AbstractReadOnlyModel<String>() {\n private static final long serialVersionUID = 1838103890589747027L;\n\n @Override\n public String getObject() {\n String url = href.getObject();\n if (url != null && shortUrlAsLabel) {\n url = url.replaceFirst(\"http://\", \"\").replaceFirst(\"https://\", \"\").replaceFirst(\"ftp://\", \"\");\n }\n return url;\n }\n });\n }", "public URI[] getLinks(String expression, Map<String, String> namespaces) {\n String[] values = getValues(expression, namespaces);\n if (values == null) {\n return null;\n }\n URI[] uris = new URI[values.length];\n for (int i = 0; i < values.length; i++) {\n uris[i] = URI.create(values[i]);\n }\n return uris;\n }", "public interface IEmigOclElementMapping<ReferenceType> extends it.univaq.coevolution.emfmigrate.EmigOcl.resource.EmigOcl.IEmigOclReferenceMapping<ReferenceType> {\n\t\n\t/**\n\t * Returns the target object the identifier is mapped to.\n\t */\n\tpublic ReferenceType getTargetElement();\n}", "public String getURIDefinition(String prefix) {\n\t\treturn prefixToURIMap.get(prefix);\n\t}" ]
[ "0.63557947", "0.6290508", "0.62088203", "0.6007623", "0.5750518", "0.56405896", "0.56329596", "0.56266356", "0.55410564", "0.5467041", "0.540143", "0.5377301", "0.53528523", "0.5343044", "0.53411305", "0.5307241", "0.52974546", "0.5294757", "0.5267302", "0.52460206", "0.5230006", "0.52208316", "0.52073824", "0.5201023", "0.5199208", "0.5187869", "0.51664346", "0.5162501", "0.51429826", "0.51401174", "0.51401174", "0.5103931", "0.5089242", "0.50763625", "0.50557846", "0.5033524", "0.5024871", "0.49948725", "0.49872702", "0.49845394", "0.49661198", "0.49333534", "0.49227625", "0.48988512", "0.4892775", "0.48894602", "0.48524505", "0.48513234", "0.48085198", "0.47857", "0.47552145", "0.47489002", "0.47388044", "0.47144952", "0.4685991", "0.46849284", "0.46787634", "0.46670285", "0.46570197", "0.46554637", "0.46511436", "0.46480882", "0.4644097", "0.46332848", "0.46233687", "0.46131456", "0.46131456", "0.46131456", "0.46000418", "0.45992056", "0.45980212", "0.45923677", "0.4580104", "0.45665848", "0.4565415", "0.4552317", "0.45419133", "0.45375395", "0.45266595", "0.45186082", "0.45147172", "0.4514466", "0.45120507", "0.45072553", "0.4505286", "0.4501865", "0.4499317", "0.44946194", "0.44865838", "0.44841814", "0.4476612", "0.44746342", "0.44624713", "0.44408268", "0.44286206", "0.44286206", "0.4419955", "0.4417892", "0.4415719", "0.44152835" ]
0.545302
10
Ignore; surfaceChanged is guaranteed to be called immediately after this.
@Override public void surfaceCreated(SurfaceHolder holder) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\tLog.e(TAG, \"surfaceChanged\");\n\t}", "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\t\r\n\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\t\n\t}", "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\r\n\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\n\t}", "@Override\n public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\n }", "@Override\n public void onSurfaceTextureUpdated(SurfaceTexture surface) {\n }", "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\r\n\t\t\tint height) {\n\t\tLog.v(LOGTAG, \"surfaceChanged Called\");\r\n\t}", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n Log.d(TAG, \"surfaceCreated\");\n mRenderingPaused = false;\n mHolder = holder;\n updateRenderingState();\n }", "@Override\r\n\t\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\r\n\t\t\t\tint height) {\n\t\t\t\r\n\t\t}", "@Override\r\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }", "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n\t\tOnSurfaceChanged(holder.getSurface());\r\n\t}", "@Override\n\t\t\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n\t\t\t}", "@Override\n public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {\n }", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }", "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\r\n\t\t\tint height) {\n\t\t\r\n\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t\t\n\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t\t\n\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t\t\n\t}", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width,\n int height) {\n\n }", "@Override\r\n\t\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n\t\t\tUtils.printLog(\"mSubtiteHolder callback\", \"surfaceChanged\");\r\n\t\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\n\t}", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n Log.i(TAG, \"surface changed\");\n\n if (mHolder.getSurface() == null) {\n // preview surface does not exist\n return;\n }\n\n // stop preview before making changes\n try {\n mCamera.stopPreview();\n } catch (Exception e) {\n // ignore: tried to stop a non-existent preview\n }\n\n // start preview with new settings\n try {\n mCamera.setPreviewCallback(this);\n mCamera.setPreviewDisplay(mHolder);\n mCamera.startPreview();\n Log.i(TAG, \"surface changed\");\n } catch (Exception e) {\n Log.e(TAG, \"Error starting camera preview: \" + e.getMessage());\n }\n }", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n if (holder.getSurface() == null) {\n Log.d(TAG, \"holder.getSurface() == null\");\n return;\n }\n\n mSurfaceHolder = holder;\n\n if (mPausing) {\n // We're pausing, the screen is off and we already stopped\n // video recording. We don't want to start the camera again\n // in this case in order to conserve power.\n // The fact that surfaceChanged is called _after_ an onPause appears\n // to be legitimate since in that case the lockscreen always returns\n // to portrait orientation possibly triggering the notification.\n return;\n }\n\n // The mCameraDevice will be null if it is fail to connect to the\n // camera hardware. In this case we will show a dialog and then\n // finish the activity, so it's OK to ignore it.\n if (mCameraDevice == null) {\n return;\n }\n\n // Set preview display if the surface is being created. Preview was\n // already started.\n if (holder.isCreating()) {\n setPreviewDisplay(holder);\n } else {\n restartPreview();\n }\n }", "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tLog.v(LOGTAG, \"surfaceDestroyed Called\");\r\n\t}", "@Override\r\npublic void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n\t\r\n}", "public void onSurfaceTextureUpdated(SurfaceTexture surface) {\n }", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\truning = false;\n\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t\trequestRender();\n\t\t\n\t}", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n Log.v(\"TAG\", \"----surfaceChanged-----\");\n\n if (mHolder.getSurface() == null) {\n // preview surface does not exist\n return;\n }\n\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n\t\t}", "public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }", "@Override\r\n\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\r\n\t\t\tint height) {\n\t\tLog.w(TAG, \"->> in surface chandeg\");\r\n\r\n\t}", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n\n if (this.holder.getSurface() == null){\n // preview surface does not exist\n return;\n }\n\n stopCamera();\n startCamera(holder);\n }", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n }", "@Override\n public void onSurfaceChanged(GL10 gl, int width, int height) {\n onSurfaceChanged(width, height);\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t}", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n }", "public void surfaceDestroyed(SurfaceHolder holder)\n {\n System.out.println( \"Surface Destroyed\" );\n ready = false;\n }", "@Override\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {\n return false;\n }", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height)\n {\n this.setCameraParameters(mcCamera);\n\n if (mcCamera != null)\n mcCamera.startPreview();\n }", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width,\n int height) {\n if (holder.getSurface() == null) {\n Log.d(TAG, \"holder.getSurface() == null\");\n return;\n }\n\n // We need to save the holder for later use, even when the mCameraDevice\n // is null. This could happen if onResume() is invoked after this\n // function.\n mSurfaceHolder = holder;\n\n // The mCameraDevice will be null if it fails to connect to the camera\n // hardware. In this case we will show a dialog and then finish the\n // activity, so it's OK to ignore it.\n if (mCameraDevice == null)\n return;\n\n // Sometimes surfaceChanged is called after onPause or before onResume.\n // Ignore it.\n if (mPausing || isFinishing())\n return;\n\n // Set preview display if the surface is being created. Preview was\n // already started. Also restart the preview if display rotation has\n // changed. Sometimes this happens when the device is held in portrait\n // and camera app is opened. Rotation animation takes some time and\n // display rotation in onCreate may not be what we want.\n if (mCameraState == PREVIEW_STOPPED) {\n startPreview();\n } else {\n if (Util.getDisplayRotation(this) != mDisplayRotation) {\n setDisplayOrientation();\n }\n if (holder.isCreating()) {\n // Set preview display if the surface is being created and\n // preview\n // was already started. That means preview display was set to\n // null\n // and we need to set it now.\n setPreviewDisplay(holder);\n }\n }\n\n // If first time initialization is not finished, send a message to do\n // it later. We want to finish surfaceChanged as soon as possible to let\n // user see preview first.\n if (!mFirstTimeInitialized) {\n mHandler.sendEmptyMessage(FIRST_TIME_INIT);\n } else {\n initializeSecondTime();\n }\n }", "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tOnSurfaceDestroyed(holder.getSurface());\r\n\t}", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\t\n\t}", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n refreshCamera();\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t\t\n\t}", "@Override\n\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\tif (DEBUG>=2) Log.d(TAG, \"surfaceDestroyed'd\");\n\n\t\t\t// Surface will be destroyed when we return, so stop the preview.\n\t\t\t// Because the CameraDevice object is not a shared resource, it's\n\t\t\t// very important to release it when the activity is paused.\n\t\t\tif (mCamera != null) {\n\t\t\t\tSHOWING_PREVIEW = false;\n\t\t\t\tmCamera.stopPreview();\n\t\t\t}\n\n\t\t\t//Log.d(TAG, \"surfaceDestroyed'd finish\");\n\t\t}", "public void surfaceChanged(SurfaceHolder holder, int format, int width,\n int height) {\n if(previewing){\n camera.stopPreview();\n previewing = false;\n }\n\n if (camera != null){\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n previewing = true;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "public void notifyPausing() {\n if (mSurfaceTexture != null) {\n Log.d(TAG, \"renderer pausing -- releasing SurfaceTexture\");\n mSurfaceTexture.release();\n mSurfaceTexture = null;\n }\n if (mFullScreen != null) {\n mFullScreen.release(false); // assume the GLSurfaceView EGL context is about\n mFullScreen = null; // to be destroyed\n }\n mIncomingWidth = mIncomingHeight = -1;\n }", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\trunFlag = false;\n\t}", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\n\t}", "@Override\r\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tOnSurfaceCreated(holder.getSurface());\r\n\t}", "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\t\t\n\t}", "@Override\n public void surfaceDestroyed(SurfaceHolder arg0) {\n\n }", "@Override\r\n\t\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\tIsRunning = false;\r\n\t\t}", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n\n }", "@Override\r\n\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\tUtils.printLog(\"mSubtiteHolder callback\", \"surfaceDestroyed\");\r\n\t\t}", "@Override\n public void surfaceChanged(\n SurfaceHolder holder, int format, int width, int height) {\n if (LOGGING) Log.d(LOG_TAG, \"surfaceChanged(\" + width + \", \" + height + \")\");\n mRenderCallback.onResized(width, height);\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n Log.v(TAG, \"Test application surface changed\");\n }", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n if (mOnHostSizeChangedListenerKey != null) {\n mDisplay.onHostSizeChanged().remove(mOnHostSizeChangedListenerKey);\n }\n if (mOnCanvasRenderedListenerKey != null) {\n mDisplay.onCanvasRendered().remove(mOnCanvasRenderedListenerKey);\n }\n mDisplay.surfaceDestroyed(holder);\n }", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\n\t}", "@Override\n public void redraw() {\n firePropertyChange(AVKey.LAYER, null, this);\n }", "void onDetachedFromSurface();", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n if (LOGGING) Log.d(LOG_TAG, \"surfaceChanged(\" + width + \", \" + height + \")\");\n mRenderCallback.onResized(width, height);\n }", "@Override\r\n public void surfaceDestroyed(SurfaceHolder holder) {\r\n Log.v(\"SDL\", \"surfaceDestroyed()\");\r\n // Call this *before* setting mIsSurfaceReady to 'false'\r\n SDLActivity.mIsSurfaceReady = false;\r\n SDLActivity.onNativeSurfaceDestroyed();\r\n }", "public void surfaceDestroyed(SurfaceHolder holder) {\n logger.d(\"surfaceDestroyed()\");\n\n mSurfaceWidth = 0;\n mSurfaceHeight = 0;\n\n if (!isReleased()) {\n stop();\n }\n }", "@Override\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t\tLog.e(TAG,\"SurfaceChanged\");\n\t\ttry{\n\t\t\tif(mPreviewRunning){\n\t\t\t\tcamera.stopPreview();\n\t\t\t\tmPreviewRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\tCamera.Parameters p = camera.getParameters();\n\t\t\tp.setPreviewSize(width,height);\n\t\t\t\n\t\t\tcamera.setParameters(p);\n\t\t\tcamera.setPreviewDisplay(holder);\n\t\t\tcamera.startPreview();\n\t\t\tmPreviewRunning = true;\n\t\t}catch(Exception e){\n\t\t\tLog.d(\"\",e.toString());\n\t\t}\n\t}", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n mSurfaceHolder = null;\n stop();\n }", "@Override\r\npublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\r\n}", "@Override\n public void surfaceDestroyed(SurfaceHolder holder)\n {\n this.releaseCamera();\n }", "protected Surface getOutputSurface() { return null; }", "@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n Surface newSurface = new Surface(surface);\n pauseLogic(newSurface, true);\n }", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n stopPreview();\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n\n\t\tif (mHolder.getSurface() == null) {\n\t\t\t// preview surface does not exist\n\t\t\treturn;\n\t\t}\n\n\t\t// stop preview before making changes\n\t\ttry {\n\t\t\tmCamera.stopPreview();\n\t\t} catch (Exception e) {\n\t\t\t// camera does not exist or is not previewing\n\t\t}\n\n\t\t// Once rotation is enabled, code for that will go here\n\n\t\t// start preview with new settings\n\t\ttry {\n\t\t\tmCamera.setPreviewDisplay(mHolder);\n\t\t\tmCamera.startPreview();\n\n\t\t} catch (Exception e) {\n\t\t\tLog.d(VIEW_LOG_TAG,\n\t\t\t\t\t\"Error starting camera preview: \" + e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\trequestRender();\n\t}", "public void surfaceDestroyed(SurfaceHolder holder) {\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n\n if (mHolder.getSurface() == null){\n // preview surface does not exist\n return;\n }\n\n // stop preview before making changes\n try {\n \tCameraActivity.mCamera.stopPreview();\n } catch (Exception e){\n // ignore: tried to stop a non-existent preview\n }\n\n // set preview size and make any resize, rotate or\n // reformatting changes here\n\n // start preview with new settings\n try {\n \tCameraActivity.mCamera.setPreviewDisplay(mHolder);\n \tCameraActivity.mCamera.startPreview();\n } catch (Exception e){\n Log.d(TAG, \"Error starting camera preview: \" + e.getMessage());\n }\n }", "@Override\r\n\t\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\t\tUtils.printLog(\"mSubtiteHolder callback\", \"surfaceCreated\");\r\n\t\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\tscreenWidth = getWidth();\n\t\tscreenHeight = getHeight();\n\t}", "private void notifySurfaceDetached() {\n for (DeferrableSurface deferredSurface : mConfiguredDeferrableSurfaces) {\n deferredSurface.notifySurfaceDetached();\n }\n // Clears the mConfiguredDeferrableSurfaces to prevent from duplicate\n // notifySurfaceDetached calls.\n mConfiguredDeferrableSurfaces.clear();\n }", "public void surfaceDestroyed(SurfaceHolder holder) {\n stopCamera();\n }", "public void surfaceDestroyed(SurfaceHolder holder) {\n }", "public void surfaceDestroyed(SurfaceHolder holder) {\n }", "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\t\tLog.e(TAG, \"surfaceCreated\");\n\t}", "@Override\r\n\t\tpublic void onSurfaceCreated() {\n\t\t\tif(isSourceChanged && !ischangeSourcePlayed){\r\n\t\t\t\tmMediaHanler.sendEmptyMessage(START_PLAY);\t\r\n\t\t\t\tischangeSourcePlayed = true;\r\n\t\t\t\tLog.d(TAG, \"onSurfaceCreated onStart end start play\");\r\n\t\t\t}\r\n\t\t\tLog.d(TAG, \"onSurfaceCreated onStart end\");//lyf\r\n\t\t}", "public void surfaceCreated(SurfaceHolder holder) {\n\t}", "public void surfaceCreated(SurfaceHolder holder) {\n\t}", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n\n if (mHolder.getSurface() == null){\n // preview surface does not exist\n return;\n }\n\n // stop preview before making changes\n try {\n mCamera.stopPreview();\n } catch (Exception e){\n // ignore: tried to stop a non-existent preview\n }\n\n // set preview size and make any resize, rotate or\n // reformatting changes here\n\n // start preview with new settings\n try {\n mCamera.setPreviewDisplay(mHolder);\n mCamera.startPreview();\n\n } catch (Exception e){\n Log.d(\"Preview\", \"Error starting camera preview: \" + e.getMessage());\n }\n }", "@Override\r\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tinitialCamera();\r\n\t}", "@Override\n public void onUpdated(Preview.PreviewOutput output){\n ViewGroup parent = (ViewGroup) textureView.getParent();\n parent.removeView(textureView);\n parent.addView(textureView, 0);\n\n textureView.setSurfaceTexture(output.getSurfaceTexture());\n }", "public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t}", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n\t\t\tif (DEBUG>=2) Log.d(TAG, \"surfaceChange'd\");\n\t\t\ttry{\n\t\t\t\t// I found this on http://pastebin.com/06FunF5k and thought it may\n\t\t\t\t// be a benefit. \n\t\t\t\tif (SHOWING_PREVIEW) {\n\t\t\t\t\tSHOWING_PREVIEW = false;\n\t\t\t\t\tmCamera.stopPreview();\n\t\t\t\t}\n\n\t\t\t\tif (IS_PAUSING == NO) {\n\t\t\t\t\tCamera.Parameters p = mCamera.getParameters();\n\t\t\t\t\t\n\t\t\t\t\tCamera.Size s = p.getPreviewSize();\n\t\t\t\t\t//Log.d(TAG, \"fmt:\" + Integer.toString(p.getPreviewFormat()));\n\t\t\t\t\t\n\t\t\t\t\t//\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t\t\t//\t\tWHEN I CAUSED AN ARRAY OUT OF BOUNDS ERR HERE, ERROR BEING THROWN\n\t\t\t\t\t//\t\tCAUSED APP TO HANG ON THE \"Calibrating...\" MESSAGE JUST LIKE THE\n\t\t\t\t\t//\t\tMOTOROLA CAMERA PROBLEM.\n\t\t\t\t\t//\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t\t\t\n\t\t\t\t\tint PICTURE_FORMAT = ImageFormat.JPEG;\n\t List<Integer> piF = p.getSupportedPictureFormats();\n\t PICTURE_FORMAT = piF.get(0); // FIXME - use something like fr.get(fr[ fr.size() ])\n\t p.setPictureFormat(PICTURE_FORMAT);\n\t\t\t\t\t\n\t\t\t\t\tint PREVIEW_FORMAT = ImageFormat.JPEG;\n\t List<Integer> prF = p.getSupportedPreviewFormats();\n\t PREVIEW_FORMAT = prF.get(0); // FIXME - use something like fr.get(fr[ fr.size() ])\n\t p.setPreviewFormat(PREVIEW_FORMAT);\n\t\t\t\t\t\t \t\t\t\n\t\t\t\t\t// Set preview size for yuv - This must be set before p.setPreviewSize().\n\t\t\t\t\tview_w = s.width;\n\t\t\t\t\tview_h = s.height;\n\t \t\t\tp.setPreviewSize(w, h);\n\t\t\t\t\t\n\t\t\t\t\t// Set supported frame rate\n\t\t\t\t\tint FRAME_RATE = 1;\n\t List<Integer> fr = p.getSupportedPreviewFrameRates();\n\t \tFRAME_RATE = fr.get(0); // FIXME - use something like fr.get(fr[ fr.size() ])\n\t p.setPreviewFrameRate(FRAME_RATE);\n\t \n\t mCamera.setParameters(p);\n\n\t if (DEBUG>=2) Log.d(TAG, \"Starting preview\");\n\t\t\t\t\tSHOWING_PREVIEW = true;\n\t\t\t\t\tmCamera.startPreview();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\t\n\t\t}", "@Override\n public void onSurfaceTextureSizeChanged(SurfaceTexture surface,\n int width, int height) {\n Log.e(TAG, \"onSurfaceTextureSizeChanged\");\n }", "public void surfaceCreated(SurfaceHolder holder) {\n mSurface = holder.getSurface();\n startARX();\n }", "public void surfaceDestroyed(SurfaceHolder holder) {\n\t}", "public void surfaceDestroyed(SurfaceHolder holder) {\n\t}" ]
[ "0.772425", "0.767685", "0.7673717", "0.766441", "0.75905794", "0.74072844", "0.72515", "0.7232946", "0.71470094", "0.70564085", "0.7054932", "0.7044073", "0.7043666", "0.6979985", "0.6977365", "0.69480556", "0.6912105", "0.6912105", "0.6912105", "0.68580675", "0.68451935", "0.68388385", "0.6803316", "0.6778072", "0.6758555", "0.67539155", "0.67520124", "0.6741555", "0.6741152", "0.67332333", "0.6713125", "0.6710116", "0.66888404", "0.6684089", "0.6682344", "0.66610944", "0.6645814", "0.6641985", "0.6604085", "0.6592997", "0.65921587", "0.6583753", "0.65731394", "0.65695745", "0.6561317", "0.65600747", "0.65600747", "0.65526736", "0.6543888", "0.65428364", "0.65276176", "0.6521247", "0.6494877", "0.6494006", "0.64613223", "0.6446497", "0.64426637", "0.64357877", "0.64305544", "0.6419022", "0.6411497", "0.6389657", "0.63801366", "0.63622874", "0.6360076", "0.63438225", "0.6327557", "0.63198286", "0.63052076", "0.6289372", "0.62871504", "0.62833625", "0.62789696", "0.6270823", "0.62687314", "0.62631154", "0.6259849", "0.6235349", "0.62347496", "0.62171173", "0.6212353", "0.6202182", "0.6188041", "0.61802465", "0.617954", "0.6171705", "0.6171705", "0.61655957", "0.6161746", "0.6159953", "0.6159953", "0.6159022", "0.61583644", "0.6157743", "0.61517954", "0.61490434", "0.6112592", "0.6109411", "0.60986847", "0.60986847" ]
0.674272
27
Ask for unbuffered events. Flutter and Chrome do it so assume it's good for us as well.
@Override public boolean onTouchEvent(MotionEvent event) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { requestUnbufferedDispatch(event); } dispatchMotionEvent(event); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void pollEvents() {\n\t\tglfwPollEvents();\n\t}", "public static SDLEvent pollEvent() throws SDLException {\n\treturn pollEvent(true);\n }", "private void watch() {\n ByteBuffer buffer = ByteBuffer.allocate(BUFFER_SIZE);\n while (true) {\n try {\n int numSelected = selector.select();\n if (numSelected == 0) {\n continue;\n }\n Set<SelectionKey> selectedKeys = selector.selectedKeys();\n Iterator<SelectionKey> iterator = selectedKeys.iterator();\n while (iterator.hasNext()) {\n SelectionKey key = iterator.next();\n iterator.remove();\n SocketChannel channel = ((SocketChannel) key.channel());\n int numReadBytes = channel.read(buffer);\n boolean noMessage = numReadBytes == 0;\n if (noMessage) {\n continue;\n }\n\n String message = new String(buffer.array(), StandardCharsets.UTF_8).replace(\"\\u0000\", \"\");\n System.out.print(message);\n Arrays.fill(buffer.array(), (byte) 0);\n buffer.clear();\n }\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n }\n }", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void listen() {\n doneSignal.reset();\n mouseListener.startListening();\n\n try { doneSignal.await(); }\n catch (InterruptedException ex) { }\n catch (BrokenBarrierException ex) { }\n\n execute(mouseListener.getLastX(), mouseListener.getLastY());\n }", "private void blockUntilEstimatedCompletion() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.speech.tts.BlockingAudioTrack.blockUntilEstimatedCompletion():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.blockUntilEstimatedCompletion():void\");\n }", "public void read() {\n synchronized (this) {\n while (events.size() == 0) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.printf(\"Read :%d,%s\\n\",\n events.size(), events.poll());\n notify();\n }\n }", "public void bufferingState(){\n\t\twhile ( buffer.isBufferUnderRun() ){\n\t\t\t/** Do not leave the while loop with nothing, it will increase the CPU usage 25% */\n\t\t\ttry {Thread.sleep(1);\n\t\t\t} catch (InterruptedException ex) {}\n\t\t} \n\t}", "void suspendInput();", "public T pollUnsafe();", "private final boolean hasBufferedInputBytes() {\n return reading && (buffer.hasRemaining() || ungotc != -1);\n }", "public void bufferedAmountChange() {\n // Webrtc.org fires the bufferedAmountChange event from a different\n // thread (B) while locking the native send call on the current\n // thread (A). This leads to a deadlock if we try to lock this\n // instance from (B). So, this... pleasant workaround prevents\n // deadlocking the send call.\n CompletableFuture.runAsync(() -> {\n synchronized (this) {\n final long bufferedAmount = this.dc.bufferedAmount();\n // Unpause once low water mark has been reached\n if (bufferedAmount <= this.lowWaterMark && !this.readyFuture.isDone()) {\n log.debug(this.dc.label() + \" resumed (buffered=\" + bufferedAmount + \")\");\n this.readyFuture.complete(null);\n }\n }\n });\n }", "@Test\n public void testEventSourcingFromAsynchronousSubscribable() throws Exception {\n FunctionalReactives<Void> fr =\n FunctionalReactives.createAsync( //assume source happens in a different thread\n aSubscribableWillAsyncFireIntegerOneToFive() //a subscribable implementation\n )\n .filter(new Predicate<Integer>() {\n @Override\n public boolean apply(Integer input) {\n return input % 2 == 0; //filter out odd integers\n }\n })\n .forEach(println()); //print out reaction results each in a line\n\n fr.start(); //will trigger Subscribable.doSubscribe()\n fr.shutdown(); //will trigger Subscribable.unsubscribe() which in above case will await for all the integers scheduled\n\n //Reaction walk through:\n // Original source: 1 -> 2 -> 3 -> 4 -> 5 -> |\n // Filter events: ---> 2 ------> 4 ------> |\n // Print out results: -> \"2\\n\" ---> \"4\\n\" ---> |\n\n }", "private void blockUntilCompletion(android.media.AudioTrack r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.speech.tts.BlockingAudioTrack.blockUntilCompletion(android.media.AudioTrack):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.blockUntilCompletion(android.media.AudioTrack):void\");\n }", "public boolean interpretLongPressEvents() {\n return false;\n }", "private void grabForever() {\n if (Platform.isFxApplicationThread()) {\n throw new IllegalStateException(\"This may not run on the FX application thread!\");\n }\n final Thread thread = Thread.currentThread();\n while (!thread.isInterrupted()) {\n boolean success = grabOnceBlocking();\n if (!success) {\n // Couldn't grab the frame, wait a bit to try again\n // This may be caused by a lack of connection (such as the robot is turned off) or various other network errors\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n thread.interrupt();\n }\n }\n }\n }", "@Override\n public void onBuffering(int percent) {\n }", "public boolean isSuppressed();", "private void enforceStreamSafety(){\n boolean gettingData = isGettingData(); //Check if we're getting data\n\n if(gettingData) {\n rtButton.setText(getResources().getString(R.string.start_dl_rt));\n sendLogApp(); //Need to send logapp to stop data transfer\n\n streaming_rt = !streaming_rt;\n flushStream(); //Get rid of any real time data still hanging around\n\n try {\n Thread.sleep(200);\n }\n catch(java.lang.InterruptedException e){\n System.out.println(\"Failed to sleep\");\n }\n }\n }", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "@Override\n public boolean usesEvents()\n {\n return false;\n }", "void startPumpingEvents();", "private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }", "private void blockUntilDone(android.media.AudioTrack r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.speech.tts.BlockingAudioTrack.blockUntilDone(android.media.AudioTrack):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.blockUntilDone(android.media.AudioTrack):void\");\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 }-*/;", "private void fireOutputDisabled() {\n previousEvent = OUTPUT_DISABLED;\n ownerPool.getIPCEventProcessor().execute(new OrderedExecutorService.KeyRunnable<StreamOutputChannel<PAYLOAD>>() {\n\n @Override\n public void run() {\n for (IPCEventListener l : outputDisableListeners) {\n l.triggered(outputDisabledEvent);\n }\n }\n\n @Override\n public StreamOutputChannel<PAYLOAD> getKey() {\n return StreamOutputChannel.this;\n }\n });\n }", "private void ensureReadNonBuffered() throws IOException, BadDescriptorException {\n if (reading) {\n if (buffer.hasRemaining()) {\n Ruby localRuntime = getRuntime();\n if (localRuntime != null) {\n throw localRuntime.newIOError(\"sysread for buffered IO\");\n } else {\n throw new IOException(\"sysread for buffered IO\");\n }\n }\n } else {\n // libc flushes writes on any read from the actual file, so we flush here\n flushWrite();\n buffer.clear();\n buffer.flip();\n reading = true;\n }\n }", "public void think()\r\n/* 32: */ {\r\n/* 33: 29 */ think_blocking();\r\n/* 34: */ }", "public void waitAndRelease() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.speech.tts.BlockingAudioTrack.waitAndRelease():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.waitAndRelease():void\");\n }", "E poll();", "int poll();", "public boolean dispatchEvent(AWTEvent paramAWTEvent)\n/* */ {\n/* 320 */ if ((focusLog.isLoggable(PlatformLogger.Level.FINE)) && (((paramAWTEvent instanceof WindowEvent)) || ((paramAWTEvent instanceof FocusEvent))))\n/* 321 */ focusLog.fine(\"\" + paramAWTEvent);\n/* */ Object localObject1;\n/* 323 */ Object localObject2; Object localObject3; Object localObject5; Object localObject6; Object localObject4; Window localWindow3; switch (paramAWTEvent.getID()) {\n/* */ case 207: \n/* 325 */ if (!repostIfFollowsKeyEvents((WindowEvent)paramAWTEvent))\n/* */ {\n/* */ \n/* */ \n/* 329 */ localObject1 = (WindowEvent)paramAWTEvent;\n/* 330 */ localObject2 = getGlobalFocusedWindow();\n/* 331 */ localObject3 = ((WindowEvent)localObject1).getWindow();\n/* 332 */ if (localObject3 != localObject2)\n/* */ {\n/* */ \n/* */ \n/* 336 */ if ((!((Window)localObject3).isFocusableWindow()) || \n/* 337 */ (!((Window)localObject3).isVisible()) || \n/* 338 */ (!((Window)localObject3).isDisplayable()))\n/* */ {\n/* */ \n/* 341 */ restoreFocus((WindowEvent)localObject1);\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 346 */ if (localObject2 != null)\n/* */ {\n/* 348 */ boolean bool1 = sendMessage((Component)localObject2, new WindowEvent((Window)localObject2, 208, (Window)localObject3));\n/* */ \n/* */ \n/* */ \n/* */ \n/* 353 */ if (!bool1) {\n/* 354 */ setGlobalFocusOwner(null);\n/* 355 */ setGlobalFocusedWindow(null);\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 363 */ Window localWindow1 = getOwningFrameDialog((Window)localObject3);\n/* 364 */ Window localWindow2 = getGlobalActiveWindow();\n/* 365 */ if (localWindow1 != localWindow2) {\n/* 366 */ sendMessage(localWindow1, new WindowEvent(localWindow1, 205, localWindow2));\n/* */ \n/* */ \n/* */ \n/* 370 */ if (localWindow1 != getGlobalActiveWindow())\n/* */ {\n/* */ \n/* 373 */ restoreFocus((WindowEvent)localObject1);\n/* 374 */ break;\n/* */ }\n/* */ }\n/* */ \n/* 378 */ setGlobalFocusedWindow((Window)localObject3);\n/* */ \n/* 380 */ if (localObject3 != getGlobalFocusedWindow())\n/* */ {\n/* */ \n/* 383 */ restoreFocus((WindowEvent)localObject1);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 394 */ if (this.inSendMessage == 0)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 415 */ localObject5 = KeyboardFocusManager.getMostRecentFocusOwner((Window)localObject3);\n/* 416 */ if ((localObject5 == null) && \n/* 417 */ (((Window)localObject3).isFocusableWindow()))\n/* */ {\n/* */ \n/* 420 */ localObject5 = ((Window)localObject3).getFocusTraversalPolicy().getInitialComponent((Window)localObject3);\n/* */ }\n/* 422 */ localObject6 = null;\n/* 423 */ synchronized (KeyboardFocusManager.class) {\n/* 424 */ localObject6 = ((Window)localObject3).setTemporaryLostComponent(null);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 429 */ if (focusLog.isLoggable(PlatformLogger.Level.FINER)) {\n/* 430 */ focusLog.finer(\"tempLost {0}, toFocus {1}\", new Object[] { localObject6, localObject5 });\n/* */ }\n/* */ \n/* 433 */ if (localObject6 != null) {\n/* 434 */ ((Component)localObject6).requestFocusInWindow(CausedFocusEvent.Cause.ACTIVATION);\n/* */ }\n/* */ \n/* 437 */ if ((localObject5 != null) && (localObject5 != localObject6))\n/* */ {\n/* */ \n/* 440 */ ((Component)localObject5).requestFocusInWindow(CausedFocusEvent.Cause.ACTIVATION);\n/* */ }\n/* */ }\n/* */ \n/* 444 */ localObject5 = (Window)this.realOppositeWindowWR.get();\n/* 445 */ if (localObject5 != ((WindowEvent)localObject1).getOppositeWindow()) {\n/* 446 */ localObject1 = new WindowEvent((Window)localObject3, 207, (Window)localObject5);\n/* */ }\n/* */ \n/* */ \n/* 450 */ return typeAheadAssertions((Component)localObject3, (AWTEvent)localObject1);\n/* */ }\n/* */ } }\n/* */ }\n/* */ break; case 205: localObject1 = (WindowEvent)paramAWTEvent;\n/* 455 */ localObject2 = getGlobalActiveWindow();\n/* 456 */ localObject3 = ((WindowEvent)localObject1).getWindow();\n/* 457 */ if (localObject2 != localObject3)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 463 */ if (localObject2 != null)\n/* */ {\n/* 465 */ boolean bool2 = sendMessage((Component)localObject2, new WindowEvent((Window)localObject2, 206, (Window)localObject3));\n/* */ \n/* */ \n/* */ \n/* */ \n/* 470 */ if (!bool2) {\n/* 471 */ setGlobalActiveWindow(null);\n/* */ }\n/* 473 */ if (getGlobalActiveWindow() != null) {\n/* */ break;\n/* */ }\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 480 */ setGlobalActiveWindow((Window)localObject3);\n/* */ \n/* 482 */ if (localObject3 == getGlobalActiveWindow())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 488 */ return typeAheadAssertions((Component)localObject3, (AWTEvent)localObject1); }\n/* */ } }\n/* */ break;\n/* */ case 1004: \n/* 492 */ localObject1 = (FocusEvent)paramAWTEvent;\n/* */ \n/* 494 */ localObject2 = (localObject1 instanceof CausedFocusEvent) ? ((CausedFocusEvent)localObject1).getCause() : CausedFocusEvent.Cause.UNKNOWN;\n/* 495 */ localObject3 = getGlobalFocusOwner();\n/* 496 */ localObject4 = ((FocusEvent)localObject1).getComponent();\n/* 497 */ if (localObject3 == localObject4) {\n/* 498 */ if (focusLog.isLoggable(PlatformLogger.Level.FINE)) {\n/* 499 */ focusLog.fine(\"Skipping {0} because focus owner is the same\", new Object[] { paramAWTEvent });\n/* */ }\n/* */ \n/* */ \n/* 503 */ dequeueKeyEvents(-1L, (Component)localObject4);\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 509 */ if (localObject3 != null)\n/* */ {\n/* 511 */ boolean bool3 = sendMessage((Component)localObject3, new CausedFocusEvent((Component)localObject3, 1005, ((FocusEvent)localObject1)\n/* */ \n/* */ \n/* 514 */ .isTemporary(), (Component)localObject4, (CausedFocusEvent.Cause)localObject2));\n/* */ \n/* */ \n/* 517 */ if (!bool3) {\n/* 518 */ setGlobalFocusOwner(null);\n/* 519 */ if (!((FocusEvent)localObject1).isTemporary()) {\n/* 520 */ setGlobalPermanentFocusOwner(null);\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 530 */ localWindow3 = SunToolkit.getContainingWindow((Component)localObject4);\n/* 531 */ localObject5 = getGlobalFocusedWindow();\n/* 532 */ if ((localWindow3 != null) && (localWindow3 != localObject5))\n/* */ {\n/* */ \n/* 535 */ sendMessage(localWindow3, new WindowEvent(localWindow3, 207, (Window)localObject5));\n/* */ \n/* */ \n/* */ \n/* 539 */ if (localWindow3 != getGlobalFocusedWindow())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 546 */ dequeueKeyEvents(-1L, (Component)localObject4);\n/* 547 */ break;\n/* */ }\n/* */ }\n/* */ \n/* 551 */ if ((!((Component)localObject4).isFocusable()) || (!((Component)localObject4).isShowing()) || (\n/* */ \n/* */ \n/* */ \n/* 555 */ (!((Component)localObject4).isEnabled()) && (!((CausedFocusEvent.Cause)localObject2).equals(CausedFocusEvent.Cause.UNKNOWN))))\n/* */ {\n/* */ \n/* 558 */ dequeueKeyEvents(-1L, (Component)localObject4);\n/* 559 */ if (KeyboardFocusManager.isAutoFocusTransferEnabled())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 564 */ if (localWindow3 == null) {\n/* 565 */ restoreFocus((FocusEvent)localObject1, (Window)localObject5);\n/* */ } else {\n/* 567 */ restoreFocus((FocusEvent)localObject1, localWindow3);\n/* */ }\n/* 569 */ setMostRecentFocusOwner(localWindow3, null);\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 574 */ setGlobalFocusOwner((Component)localObject4);\n/* */ \n/* 576 */ if (localObject4 != getGlobalFocusOwner())\n/* */ {\n/* */ \n/* 579 */ dequeueKeyEvents(-1L, (Component)localObject4);\n/* 580 */ if (KeyboardFocusManager.isAutoFocusTransferEnabled()) {\n/* 581 */ restoreFocus((FocusEvent)localObject1, localWindow3);\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 586 */ if (!((FocusEvent)localObject1).isTemporary()) {\n/* 587 */ setGlobalPermanentFocusOwner((Component)localObject4);\n/* */ \n/* 589 */ if (localObject4 != getGlobalPermanentFocusOwner())\n/* */ {\n/* 591 */ dequeueKeyEvents(-1L, (Component)localObject4);\n/* 592 */ if (!KeyboardFocusManager.isAutoFocusTransferEnabled()) break;\n/* 593 */ restoreFocus((FocusEvent)localObject1, localWindow3); break;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 599 */ setNativeFocusOwner(getHeavyweight((Component)localObject4));\n/* */ \n/* 601 */ localObject6 = (Component)this.realOppositeComponentWR.get();\n/* 602 */ if ((localObject6 != null) && \n/* 603 */ (localObject6 != ((FocusEvent)localObject1).getOppositeComponent()))\n/* */ {\n/* */ \n/* 606 */ localObject1 = new CausedFocusEvent((Component)localObject4, 1004, ((FocusEvent)localObject1).isTemporary(), (Component)localObject6, (CausedFocusEvent.Cause)localObject2);\n/* */ \n/* 608 */ ((AWTEvent)localObject1).isPosted = true;\n/* */ }\n/* 610 */ return typeAheadAssertions((Component)localObject4, (AWTEvent)localObject1);\n/* */ }\n/* */ }\n/* */ }\n/* */ break; case 1005: localObject1 = (FocusEvent)paramAWTEvent;\n/* 615 */ localObject2 = getGlobalFocusOwner();\n/* 616 */ if (localObject2 == null) {\n/* 617 */ if (focusLog.isLoggable(PlatformLogger.Level.FINE)) {\n/* 618 */ focusLog.fine(\"Skipping {0} because focus owner is null\", new Object[] { paramAWTEvent });\n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ }\n/* 624 */ else if (localObject2 == ((FocusEvent)localObject1).getOppositeComponent()) {\n/* 625 */ if (focusLog.isLoggable(PlatformLogger.Level.FINE)) {\n/* 626 */ focusLog.fine(\"Skipping {0} because current focus owner is equal to opposite\", new Object[] { paramAWTEvent });\n/* */ }\n/* */ }\n/* */ else {\n/* 630 */ setGlobalFocusOwner(null);\n/* */ \n/* 632 */ if (getGlobalFocusOwner() != null)\n/* */ {\n/* 634 */ restoreFocus((Component)localObject2, true);\n/* */ }\n/* */ else\n/* */ {\n/* 638 */ if (!((FocusEvent)localObject1).isTemporary()) {\n/* 639 */ setGlobalPermanentFocusOwner(null);\n/* */ \n/* 641 */ if (getGlobalPermanentFocusOwner() != null)\n/* */ {\n/* 643 */ restoreFocus((Component)localObject2, true);\n/* 644 */ break;\n/* */ }\n/* */ } else {\n/* 647 */ localObject3 = ((Component)localObject2).getContainingWindow();\n/* 648 */ if (localObject3 != null) {\n/* 649 */ ((Window)localObject3).setTemporaryLostComponent((Component)localObject2);\n/* */ }\n/* */ }\n/* */ \n/* 653 */ setNativeFocusOwner(null);\n/* */ \n/* 655 */ ((FocusEvent)localObject1).setSource(localObject2);\n/* */ \n/* 657 */ this.realOppositeComponentWR = (((FocusEvent)localObject1).getOppositeComponent() != null ? new WeakReference(localObject2) : NULL_COMPONENT_WR);\n/* */ \n/* */ \n/* */ \n/* 661 */ return typeAheadAssertions((Component)localObject2, (AWTEvent)localObject1);\n/* */ }\n/* */ }\n/* */ break;\n/* 665 */ case 206: localObject1 = (WindowEvent)paramAWTEvent;\n/* 666 */ localObject2 = getGlobalActiveWindow();\n/* 667 */ if (localObject2 != null)\n/* */ {\n/* */ \n/* */ \n/* 671 */ if (localObject2 == paramAWTEvent.getSource())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 678 */ setGlobalActiveWindow(null);\n/* 679 */ if (getGlobalActiveWindow() == null)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 684 */ ((WindowEvent)localObject1).setSource(localObject2);\n/* 685 */ return typeAheadAssertions((Component)localObject2, (AWTEvent)localObject1);\n/* */ }\n/* */ } }\n/* */ break;\n/* 689 */ case 208: if (!repostIfFollowsKeyEvents((WindowEvent)paramAWTEvent))\n/* */ {\n/* */ \n/* */ \n/* 693 */ localObject1 = (WindowEvent)paramAWTEvent;\n/* 694 */ localObject2 = getGlobalFocusedWindow();\n/* 695 */ localObject3 = ((WindowEvent)localObject1).getWindow();\n/* 696 */ localObject4 = getGlobalActiveWindow();\n/* 697 */ localWindow3 = ((WindowEvent)localObject1).getOppositeWindow();\n/* 698 */ if (focusLog.isLoggable(PlatformLogger.Level.FINE)) {\n/* 699 */ focusLog.fine(\"Active {0}, Current focused {1}, losing focus {2} opposite {3}\", new Object[] { localObject4, localObject2, localObject3, localWindow3 });\n/* */ }\n/* */ \n/* 702 */ if (localObject2 != null)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 711 */ if ((this.inSendMessage != 0) || (localObject3 != localObject4) || (localWindow3 != localObject2))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 717 */ localObject5 = getGlobalFocusOwner();\n/* 718 */ if (localObject5 != null)\n/* */ {\n/* */ \n/* 721 */ localObject6 = null;\n/* 722 */ if (localWindow3 != null) {\n/* 723 */ localObject6 = localWindow3.getTemporaryLostComponent();\n/* 724 */ if (localObject6 == null) {\n/* 725 */ localObject6 = localWindow3.getMostRecentFocusOwner();\n/* */ }\n/* */ }\n/* 728 */ if (localObject6 == null) {\n/* 729 */ localObject6 = localWindow3;\n/* */ }\n/* 731 */ sendMessage((Component)localObject5, new CausedFocusEvent((Component)localObject5, 1005, true, (Component)localObject6, CausedFocusEvent.Cause.ACTIVATION));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 738 */ setGlobalFocusedWindow(null);\n/* 739 */ if (getGlobalFocusedWindow() != null)\n/* */ {\n/* 741 */ restoreFocus((Window)localObject2, null, true);\n/* */ }\n/* */ else\n/* */ {\n/* 745 */ ((WindowEvent)localObject1).setSource(localObject2);\n/* 746 */ this.realOppositeWindowWR = (localWindow3 != null ? new WeakReference(localObject2) : NULL_WINDOW_WR);\n/* */ \n/* */ \n/* 749 */ typeAheadAssertions((Component)localObject2, (AWTEvent)localObject1);\n/* */ \n/* 751 */ if (localWindow3 == null)\n/* */ {\n/* */ \n/* */ \n/* 755 */ sendMessage((Component)localObject4, new WindowEvent((Window)localObject4, 206, null));\n/* */ \n/* */ \n/* */ \n/* 759 */ if (getGlobalActiveWindow() != null)\n/* */ {\n/* */ \n/* 762 */ restoreFocus((Window)localObject2, null, true);\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ break;\n/* */ case 400: case 401: case 402: \n/* 771 */ return typeAheadAssertions(null, paramAWTEvent);\n/* */ \n/* */ default: \n/* 774 */ return false;\n/* */ }\n/* */ \n/* 777 */ return true;\n/* */ }", "public void waitForKeyPress() {\n panel.bWaitingForKey = true;\n while (panel.bWaitingForKey) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n }\n }\n }", "public static SDLEvent waitEvent() throws SDLException {\n\treturn waitEvent(true);\n }", "public void captureEvent(Capture c) {\n c.read();\n }", "public static int WaitForAnyEvent() {\r\n\t\treturn Button.keys.waitForAnyEvent();\r\n\t}", "@Override\n public boolean dispatchTouchEvent(MotionEvent ev) {\n return DefaultApplication.isWaiting() ? false : super.dispatchTouchEvent(ev);\n }", "boolean eventEnabled(AWTEvent e) {\n return false;\n }", "void dispatchEvent(DeferredKeyEvent event);", "void stopPumpingEvents();", "public NetworkEvent poll() {\n\t\treturn eventQueue.poll();\n\t}", "void waitToRead();", "protected boolean isConsumingInput() {\r\n return true;\r\n }", "private boolean repostIfFollowsKeyEvents(WindowEvent paramWindowEvent)\n/* */ {\n/* 282 */ if (!(paramWindowEvent instanceof TimedWindowEvent)) {\n/* 283 */ return false;\n/* */ }\n/* 285 */ TimedWindowEvent localTimedWindowEvent = (TimedWindowEvent)paramWindowEvent;\n/* 286 */ long l = localTimedWindowEvent.getWhen();\n/* 287 */ synchronized (this) {\n/* 288 */ KeyEvent localKeyEvent = this.enqueuedKeyEvents.isEmpty() ? null : (KeyEvent)this.enqueuedKeyEvents.getFirst();\n/* 289 */ if ((localKeyEvent != null) && (l >= localKeyEvent.getWhen())) {\n/* 290 */ TypeAheadMarker localTypeAheadMarker = this.typeAheadMarkers.isEmpty() ? null : (TypeAheadMarker)this.typeAheadMarkers.getFirst();\n/* 291 */ if (localTypeAheadMarker != null) {\n/* 292 */ Window localWindow = localTypeAheadMarker.untilFocused.getContainingWindow();\n/* */ \n/* */ \n/* 295 */ if ((localWindow != null) && (localWindow.isFocused())) {\n/* 296 */ SunToolkit.postEvent(AppContext.getAppContext(), new SequencedEvent(paramWindowEvent));\n/* 297 */ return true;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 302 */ return false;\n/* */ }", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "private void pollInput() {\n\t\t// check to see if the w key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_W)) {\n\t\t\twKeyDown = true;\n\t\t} else\n\t\t\twKeyDown = false;\n\t\t// check to see if the a key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_A)) {\n\t\t\taKeyDown = true;\n\t\t} else\n\t\t\taKeyDown = false;\n\t\t// check to see if the s key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_S)) {\n\t\t\tsKeyDown = true;\n\t\t} else\n\t\t\tsKeyDown = false;\n\t\t// check to see if the d key is down\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_D)) {\n\t\t\tdKeyDown = true;\n\t\t} else\n\t\t\tdKeyDown = false;\n\t\t// check to see if the left mouse button is down\n\t\tif (Mouse.isButtonDown(0)) {\n\t\t\tmouseDown = true;\n\t\t} else\n\t\t\tmouseDown = false;\n\t\t// check to see if the F button is pressed and shows the shop screen if so\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_F)) {\n\t\t\tshowShopScreen();\n\t\t}\n\t\t// check to see if the esc button is pressed; if so, go to title screen\n\t\tif (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {\n\t\t\tshowTitleScreen();\n\t\t}\n\t}", "private void tryToConsumeEvent() {\n if (subscriber == null || storedEvent == null) {\n return;\n }\n sendMessageToJs(storedEvent, subscriber);\n\n }", "public boolean isDefaultBufferNone();", "void processEvents() throws NotConnectedException\n\t{\n\t\tboolean requestResume = false;\n\t\tboolean requestHalt = m_requestHalt;\n\n\t\twhile(m_session != null && m_session.getEventCount() > 0)\n\t\t{\n\t\t\tDebugEvent e = m_session.nextEvent();\n\n\t\t\tif (e instanceof TraceEvent)\n\t\t\t{\n\t\t\t\tdumpTraceLine(e.information);\n\t\t\t}\n\t\t\telse if (e instanceof SwfLoadedEvent)\n\t\t\t{\n\t\t\t\thandleSwfLoadedEvent((SwfLoadedEvent)e);\n\t\t\t}\n\t\t\telse if (e instanceof SwfUnloadedEvent)\n\t\t\t{\n\t\t\t\thandleSwfUnloadedEvent((SwfUnloadedEvent)e);\n\t\t\t}\n\t\t\telse if (e instanceof BreakEvent)\n\t\t\t{\n\t\t\t\t// we ignore these for now\n\t\t\t}\n\t\t\telse if (e instanceof FileListModifiedEvent)\n\t\t\t{\n\t\t\t\t// we ignore this\n\t\t\t}\n\t\t\telse if (e instanceof FunctionMetaDataAvailableEvent)\n\t\t\t{\n\t\t\t\t// we ignore this\n\t\t\t}\n\t\t\telse if (e instanceof FaultEvent)\n\t\t\t{\n\t\t\t\tif ( handleFault((FaultEvent)e) )\n\t\t\t\t\trequestResume = true;\n\t\t\t\telse\n\t\t\t\t\trequestHalt = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\targs.put(\"type\", e); //$NON-NLS-1$\n\t\t\t\targs.put(\"info\", e.information); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unknownEvent\", args)); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\n\t\t// only if we have processed a fault which requested a resume and no other fault asked for a break\n\t\t// and we are suspended and it was due to us that the stop occurred!\n\t\tif (requestResume && !requestHalt && m_session.isSuspended() && m_session.suspendReason() == SuspendReason.Fault)\n\t\t\tm_requestResume = true;\n\t}", "public boolean getRingDuringIncomingEarlyMedia();", "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 }", "private native int waitUntilMessageAvailable0(int port, int handle)\n throws IOException;", "private void consumeNextKeyTyped(KeyEvent paramKeyEvent)\n/* */ {\n/* 1082 */ this.consumeNextKeyTyped = true;\n/* */ }", "public void waitUntilIdle() {\n Handler handler = waitAndGetHandler();\n MessageQueue queue = handler.getLooper().getQueue();\n if (queue.isIdle()) {\n return;\n }\n mIdle.close();\n queue.addIdleHandler(mIdleHandler);\n // Ensure that the idle handler gets run even if the looper already went idle\n handler.sendEmptyMessage(MSG_POKE_IDLE_HANDLER);\n if (queue.isIdle()) {\n return;\n }\n mIdle.block();\n }", "private void runEventLoop() {\n /*\n This is not very good style, but I will catch any exception, to log and display the message!\n */\n\t\tfor (; ; ) {\n\t\t\ttry {\n\t\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\t\tif (isClosing)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlogCritical(\"runEventLoop (Unforseen Exception)\", e);\n\t\t\t}\n\t\t\tif (isClosing)\n\t\t\t\tbreak;\n\t\t}\n\t\t/* Dispose display */\n\t\tdisplay.dispose();\n\t}", "public static int WaitForAnyPress() {\r\n\t\treturn WaitForAnyPress2(0);\r\n\t}", "void noResponderFor(Object eventSelector)\n {\n }", "public static void pumpEvents() throws SDLException {\n\tSWIG_SDLEvent.SDL_PumpEvents();\n }", "public void onEventMainThread(BaseEvent unused) {\n }", "protected void waitForTracingEvents()\n {\n try\n {\n Stage.TRACING.executor().submit(() -> {}).get();\n }\n catch (Throwable t)\n {\n JVMStabilityInspector.inspectThrowable(t);\n logger.error(\"Failed to wait for tracing events\", t);\n }\n }", "@DISPID(2) //= 0x2. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int nonBlockingIO();", "void peekAhead(GetsState gs) {\n ChannelBuffer buf;\n //Tcl_DriverBlockModeProc *blockModeProc;\n int bytesLeft;\n boolean goto_cleanup = false; // Set to true when jumping to the\n // cleanup label, used to simulate a goto.\n\n buf = gs.buf;\n\n // If there's any more raw input that's still buffered, we'll peek into\n // that. Otherwise, only get more data from the channel driver if it\n // looks like there might actually be more data. The assumption is that\n // if the channel buffer is filled right up to the end, then there\n // might be more data to read.\n\n cleanup:{\n //blockModeProc = NULL;\n if (buf.next == null) {\n bytesLeft = buf.nextAdded - (buf.nextRemoved + gs.rawRead.i);\n if (bytesLeft == 0) {\n if (buf.nextAdded < buf.bufLength) {\n // Don't peek ahead if last read was short read.\n goto_cleanup = true;\n break cleanup;\n }\n // FIXME: This non-blocking check is currently disabled, non-blocking\n // is not currently supported and it is not clean why we would\n // need to depend on non-blocking IO when peeking anyway.\n if (blocking) {\n //blockModeProc = Tcl_ChannelBlockModeProc(chanPtr->typePtr);\n if (false /*blockModeProc == NULL*/) {\n // Don't peek ahead if cannot set non-blocking mode.\n goto_cleanup = true;\n break cleanup;\n }\n //StackSetBlockMode(chanPtr, TCL_MODE_NONBLOCKING);\n }\n }\n }\n filterBytes(gs);\n //if (blockModeProc != NULL) {\n // StackSetBlockMode(chanPtr, TCL_MODE_BLOCKING);\n //}\n }\n\n if (goto_cleanup) {\n buf.nextRemoved += gs.rawRead.i;\n gs.rawRead.i = 0;\n gs.totalChars += gs.charsWrote.i;\n //gs.bytesWrote.i = 0;\n gs.charsWrote.i = 0;\n }\n }", "private void tryCancelAllHandlers() {\n if (mJSGestureHandler != null && mJSGestureHandler.getState() == GestureHandler.STATE_BEGAN) {\n // Try activate main JS handler\n mJSGestureHandler.activate();\n mJSGestureHandler.end();\n }\n }", "public void checkEvents()\n\t{\n\t\t((MBoxStandalone)events).processMessages();\n\t}", "public void testTimedPoll0() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n assertNull(q.poll(0, TimeUnit.MILLISECONDS));\n } catch (InterruptedException e){\n\t unexpectedException();\n\t}\n }", "public boolean isLingering();", "@Override\n public boolean isInterruptible() {\n return true;\n }", "@Override\n public void handleEvent(AWTEvent e) {\n if ((e instanceof InputEvent) && ((InputEvent) e).isConsumed()) {\n return;\n }\n switch (e.getID()) {\n case FocusEvent.FOCUS_GAINED:\n case FocusEvent.FOCUS_LOST:\n handleJavaFocusEvent((FocusEvent) e);\n break;\n case PaintEvent.PAINT:\n // Got a native paint event\n// paintPending = false;\n // fall through to the next statement\n case PaintEvent.UPDATE:\n handleJavaPaintEvent();\n break;\n case MouseEvent.MOUSE_PRESSED:\n handleJavaMouseEvent((MouseEvent)e);\n }\n\n sendEventToDelegate(e);\n }", "public boolean isBlocking ( ) {\n\t\treturn extract ( handle -> handle.isBlocking ( ) );\n\t}", "public NetworkEvent fetch() throws InterruptedException {\n\t\treturn eventQueue.take();\n\t}", "public boolean isEventsSuppressed() {\r\n\t\treturn eventsSuppressed;\r\n\t}", "IpcEvent fetchEvent(final boolean block) throws InterruptedException {\n\t\tif (block) {\n\t\t\treturn eventQueue.take();\n\t\t} else {\n\t\t\treturn eventQueue.poll();\n\t\t}\n\t}", "@Override\r\n\tpublic void askPressionAsync() throws Exception\r\n\t\t{\n\r\n\t\tbyte[] tabByte = TrameEncoder.coder(ASK_MSG_PRESSION);\r\n\t\toutputStream.write(tabByte);\r\n\t\t}", "public final static synchronized float poll(LinuxEventComponent event_component) throws IOException {\n\t\tint native_type = event_component.getDescriptor().getType();\n\t\tswitch (native_type) {\n\t\t\tcase NativeDefinitions.EV_KEY:\n\t\t\t\tint native_code = event_component.getDescriptor().getCode();\n\t\t\t\tfloat state = event_component.getDevice().isKeySet(native_code) ? 1f : 0f;\n\t\t\t\treturn state;\n\t\t\tcase NativeDefinitions.EV_ABS:\n\t\t\t\tevent_component.getAbsInfo(abs_info);\n\t\t\t\treturn abs_info.getValue();\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Unkown native_type: \" + native_type);\n\t\t}\n\t}", "private void listenForNotificationEvents() {\n\t\twhile (!shutdownRequested) {\n\t\t\ttry {\n\t\t\t\tNotificationJob job = notificationQueue.poll( 1000, TimeUnit.MILLISECONDS );\n\t\t\t\t\n\t\t\t\tif (job != null) {\n\t\t\t\t\tprocessNotificationJob( job );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// Ignore and continue looping until shutdown requested\n\t\t\t}\n\t\t}\n\t}", "private static EventQueue eventQueue() {\n return Toolkit.getDefaultToolkit().getSystemEventQueue();\n }", "public void poll() {\n StateTree stateTree = registry.getStateTree();\n stateTree.sendEventToServer(stateTree.getRootNode(),\n PollEvent.DOM_EVENT_NAME, null);\n }", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "default int readNonBlocking(byte[] buffer) {\n return readNonBlocking(buffer, 0, buffer.length);\n }", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "private void handleIdleIncrease() {\n int i;\n int i2;\n if (curState == 0 && (i = targetBuffer) < (i2 = raiseBufferMax)) {\n targetBuffer = i + raiseBufferStep;\n targetBuffer = Math.min(targetBuffer, i2);\n Trace.traceBegin(8, \"increaseBuffer:\" + targetBuffer);\n int i3 = targetBuffer;\n setBuffer(i3, i3 - lowBufferStep, highBufferStep + i3, swapReserve);\n Trace.traceEnd(8);\n }\n Message msg = handler.obtainMessage();\n msg.what = 11;\n handler.sendMessageDelayed(msg, (long) (raiseBufferTimeWidth * 1000));\n }", "public void block() {\n\n synchronized (this) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new Error(\"Not on the event dispatcher.\");\n }\n if (block_state != 0) {\n // This situation would occur when a component generates an event (such\n // as the user pressing a button) that performs a query. Therefore\n // there are multi-levels of queries being executed.\n throw new Error(\"Can't nest queries.\");\n }\n\n block_state = 1;\n }\n\n EventQueue theQueue = eventQueue();\n while (isBlocked()) {\n try {\n // This is essentially the body of EventDispatchThread\n AWTEvent event = theQueue.getNextEvent();\n Object src = event.getSource();\n // can't call theQueue.dispatchEvent, so I pasted its body here\n if (event instanceof ActiveEvent) {\n ((ActiveEvent) event).dispatch();\n } else if (src instanceof Component) {\n ((Component) src).dispatchEvent(event);\n } else if (src instanceof MenuComponent) {\n ((MenuComponent) src).dispatchEvent(event);\n } else {\n System.err.println(\"unable to dispatch event: \" + event);\n }\n }\n catch (Throwable e) {\n // Any exceptions thrown here are logged, but we don't break the loop.\n System.err.println(\"Exception thrown during block util dispatching:\");\n e.printStackTrace(System.err);\n }\n }\n\n block_state = 0;\n\n }", "public void BufferUpdates()\n {\n //Clear the dispatch list and start buffering changed entities.\n DispatchList.clear();\n bBufferingUpdates = true;\n }", "protected synchronized void discardKeyEvents(Component paramComponent)\n/* */ {\n/* 1303 */ if (paramComponent == null) {\n/* 1304 */ return;\n/* */ }\n/* */ \n/* 1307 */ long l = -1L;\n/* */ \n/* 1309 */ for (Iterator localIterator = this.typeAheadMarkers.iterator(); localIterator.hasNext();) {\n/* 1310 */ TypeAheadMarker localTypeAheadMarker = (TypeAheadMarker)localIterator.next();\n/* 1311 */ Object localObject = localTypeAheadMarker.untilFocused;\n/* 1312 */ int i = localObject == paramComponent ? 1 : 0;\n/* 1313 */ while ((i == 0) && (localObject != null) && (!(localObject instanceof Window))) {\n/* 1314 */ localObject = ((Component)localObject).getParent();\n/* 1315 */ i = localObject == paramComponent ? 1 : 0;\n/* */ }\n/* 1317 */ if (i != 0) {\n/* 1318 */ if (l < 0L) {\n/* 1319 */ l = localTypeAheadMarker.after;\n/* */ }\n/* 1321 */ localIterator.remove();\n/* 1322 */ } else if (l >= 0L) {\n/* 1323 */ purgeStampedEvents(l, localTypeAheadMarker.after);\n/* 1324 */ l = -1L;\n/* */ }\n/* */ }\n/* */ \n/* 1328 */ purgeStampedEvents(l, -1L);\n/* */ }", "void runningLoop() throws NoResponseException, NotConnectedException\n\t{\n\t\tint update = propertyGet(UPDATE_DELAY);\n\t\tboolean nowait = (propertyGet(NO_WAITING) == 1) ? true : false; // DEBUG ONLY; do not document\n\t\tboolean stop = false;\n\n\t\t// not there, not connected or already halted and no pending resume requests => we are done\n\t\tif (!haveConnection() || (m_session.isSuspended() && !m_requestResume) )\n\t\t{\n\t\t\tprocessEvents();\n\t\t\tstop = true;\n\t\t}\n\n\t while(!stop)\n\t\t{\n\t\t\t// allow keyboard input\n\t\t\tif (!nowait)\n\t\t\t\tm_keyboardReadRequest = true;\n\n\t\t\tif (m_requestResume)\n\t\t\t{\n\t\t\t\t// resume execution (request fulfilled) and look for keyboard input\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (m_stepResume)\n\t\t\t\t\t\tm_session.stepContinue();\n\t\t\t\t\telse\n\t\t\t\t\t\tm_session.resume();\n\t\t\t\t}\n\t\t\t\tcatch(NotSuspendedException nse)\n\t\t\t\t{\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"playerAlreadyRunning\")); //$NON-NLS-1$\n\t\t\t\t}\n\n\t\t\t\tm_requestResume = false;\n\t\t\t\tm_requestHalt = false;\n\t\t\t\tm_stepResume = false;\n\t\t\t}\n\n\t\t\t// sleep for a bit, then process our events.\n\t\t\ttry { Thread.sleep(update); } catch(InterruptedException ie) {}\n\t\t\tprocessEvents();\n\n\t\t\t// lost connection?\n\t\t\tif (!haveConnection())\n\t\t\t{\n\t\t\t\tstop = true;\n\t\t\t\tdumpHaltState(false);\n\t\t\t}\n\t\t\telse if (m_session.isSuspended())\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * We have stopped for some reason. Now for all cases, but conditional\n\t\t\t\t * breakpoints, we should be done. For conditional breakpoints it\n\t\t\t\t * may be that the condition has turned out to be false and thus\n\t\t\t\t * we need to continue\n\t\t\t\t */\n\n\t\t\t\t/**\n\t\t\t\t * Now before we do this see, if we have a valid break reason, since\n\t\t\t\t * we could be still receiving incoming messages, even though we have halted.\n\t\t\t\t * This is definately the case with loading of multiple SWFs. After the load\n\t\t\t\t * we get info on the swf.\n\t\t\t\t */\n\t\t\t\tint tries = 3;\n\t\t\t\twhile (tries-- > 0 && m_session.suspendReason() == SuspendReason.Unknown)\n\t\t\t\t\ttry { Thread.sleep(100); processEvents(); } catch(InterruptedException ie) {}\n\n\t\t\t\tdumpHaltState(false);\n\t\t\t\tif (!m_requestResume)\n\t\t\t\t\tstop = true;\n\t\t\t}\n\t\t\telse if (nowait)\n\t\t\t{\n\t\t\t\tstop = true; // for DEBUG only\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * We are still running which is fine. But let's see if the user has\n\t\t\t\t * tried to enter something on the keyboard. If so, then we need to\n\t\t\t\t * stop\n\t\t\t\t */\n\t\t\t\tif (!m_keyboardInput.isEmpty() && System.getProperty(\"fdbunit\")==null) //$NON-NLS-1$\n\t\t\t\t{\n\t\t\t\t\t// flush the queue and prompt the user if they want us to halt\n\t\t\t\t\tm_keyboardInput.clear();\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tif (yesNoQuery(getLocalizationManager().getLocalizedTextString(\"doYouWantToHalt\"))) //$NON-NLS-1$\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tout(getLocalizationManager().getLocalizedTextString(\"attemptingToHalt\")); //$NON-NLS-1$\n\t\t\t\t\t\t\tm_session.suspend();\n\t\t\t\t\t\t\tm_requestHalt = true;\n\n\t\t\t\t\t\t\t// no connection => dump state and end\n\t\t\t\t\t\t\tif (!haveConnection())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdumpHaltState(false);\n\t\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (!m_session.isSuspended())\n\t\t\t\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotHalt\")); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IllegalArgumentException iae)\n\t\t\t\t\t{\n\t\t\t\t\t\tout(getLocalizationManager().getLocalizedTextString(\"escapingFromDebuggerPendingLoop\")); //$NON-NLS-1$\n\t\t\t\t\t\tpropertyPut(NO_WAITING, 1);\n\t\t\t\t\t\tstop = true;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IOException io)\n\t\t\t\t\t{\n\t\t\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\t\t\targs.put(\"error\", io.getMessage()); //$NON-NLS-1$\n\t\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"continuingDueToError\", args)); //$NON-NLS-1$\n\t\t\t\t\t}\n\t\t\t\t\tcatch(SuspendedException se)\n\t\t\t\t\t{\n\t\t\t\t\t\t// lucky us, already stopped\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n//\t\tSystem.out.println(\"doContinue resume=\"+m_requestResume+\",isSuspended=\"+m_session.isSuspended());\n\t\t}\n\n\t\t// DEBUG ONLY: if we are not waiting then process some events\n\t\tif (nowait)\n\t\t\tprocessEvents();\n\t}", "synchronized String keyboardReadLine()\n\t{\n\t\t// enable a request then block on the queue\n\t\tm_keyboardReadRequest = true;\n\t\ttry { wait(); } catch(InterruptedException ie) {}\n\n\t\t// pull from the front of the queue\n\t\treturn m_keyboardInput.remove(0);\n\t}", "public void process(WatchedEvent event) {\n\t\tSystem.out.println(\"watchedEvent event : \"+event);\r\n\t\tif(KeeperState.SyncConnected == event.getState()){\r\n\t\t\tsemaphore.countDown();\r\n\t\t}\r\n\t}", "default StreamBuffering getBuffering() {\n\t\treturn StreamBuffering.UNSUPPORTED;\n\t}", "public void testTimedPoll() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n assertNull(q.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS));\n } catch (InterruptedException e){\n\t unexpectedException();\n\t}\n }", "@Override\n public Runnable poll() {\n return LIFO ? super.pollLast() : super.poll();\n }", "protected void dispatchSetupEvents() {\r\n TimedEvent e = null;\r\n while ((e = scenarioQueue.peek()) != null && e.time < 0) {\r\n scenarioQueue.poll();\r\n disp.dispatchEvent(e);\r\n }\r\n }", "@Override\r\n\tpublic synchronized void serialEvent(SerialPortEvent oEvent) {\r\n\t\tif (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\r\n\t\t\ttry {\r\n\t\t\t\tint available = input.available();\r\n\t\t\t\tbyte chunk[] = new byte[available];\r\n\t\t\t\tinput.read(chunk, 0, available);\r\n\r\n\t\t\t\t// Displayed results are codepage dependent\r\n\r\n\t\t\t\tfor (int c = 0; c < chunk.length; c++) {\r\n\r\n\t\t\t\t\tSystem.out.println(\"recieve:\" + (chunk[c] + 512) % 256);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"here atleastttttttt\");\r\n\t\t\t\tSystem.err.println(e.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isInterruptible() {\n/* 31 */ return true;\n/* */ }", "@Override\n public void setBlockEvents(boolean block) {\n\n }", "private void readIt() throws IOException, InterruptedException\n {\n //resets the buffer and reads from it\n outVideo.println(\"==>\");\n outVideo.flush();\n if(!initializationMode)\n while (!inKeyboard.ready())\n {\n Thread.sleep(50);\n }\n msgIN = inKeyboard.readLine();\n }", "public IEvent poll(){\r\n\t\treturn queue.poll();\r\n\t}", "@Override\n public boolean isBusy() {\n return false;\n }", "private void avoidClickHack(Context context) {\n try {\n MediaPlayer mp = MediaPlayer.create(context, R.raw.silence);\n mp.start();\n Thread.sleep(10);\n mp.stop();\n mp.release();\n } catch (Exception e) {\n Log.e(TAG, e.toString());\n }\n }", "@Override\n\tpublic void fireEvent(EventObject event, boolean blocked) {\n\t\tSystem.out.println(event);\n\t}", "@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}" ]
[ "0.6016235", "0.5513941", "0.54816806", "0.5427063", "0.53468406", "0.53152156", "0.5313156", "0.5284491", "0.5270549", "0.52560115", "0.5232327", "0.5224961", "0.5214905", "0.5203664", "0.51911825", "0.5180644", "0.5176799", "0.5128348", "0.51242644", "0.5093467", "0.5075412", "0.5075212", "0.5072578", "0.5060881", "0.50525993", "0.5012494", "0.5011823", "0.5008841", "0.49902838", "0.49828267", "0.49751067", "0.49611554", "0.49602875", "0.4959098", "0.4937488", "0.4934227", "0.49265924", "0.4924139", "0.48760772", "0.48651382", "0.48641345", "0.48580974", "0.48537725", "0.4831608", "0.4825428", "0.4805776", "0.48050308", "0.47899592", "0.47809976", "0.47808078", "0.4777857", "0.47649112", "0.4747746", "0.47432467", "0.47428262", "0.4742248", "0.47313523", "0.47306898", "0.47253296", "0.472429", "0.4714257", "0.47090772", "0.47047243", "0.47046572", "0.46998307", "0.46993947", "0.46831706", "0.465448", "0.4651437", "0.46504205", "0.46305785", "0.46297824", "0.46159855", "0.46142742", "0.4613347", "0.4606212", "0.46055666", "0.45966226", "0.45926034", "0.45879477", "0.45864874", "0.45856258", "0.4584923", "0.4582473", "0.4581182", "0.4578246", "0.45776743", "0.45767775", "0.4572196", "0.45642555", "0.456346", "0.4558606", "0.4555618", "0.45553496", "0.454063", "0.4539825", "0.45390484", "0.45387647", "0.45369366", "0.45342112" ]
0.51408184
17
imeToRunes converts the Java character index into runes (Java code points).
static private native int imeToRunes(long handle, int chars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<Integer, Integer> getRunes(JsonArray rune)\n\t{\n\t\tMap<Integer, Integer> runes = new HashMap<Integer, Integer>();\n\t\tfor(int i = 0; i < rune.size(); i++)\n\t\t{\n\t\t\tJsonObject r = rune.getJsonObject(i);\n\t\t\tint amount = r.getInt(\"rank\");\n\t\t\tint id = r.getInt(\"runeId\");\n\t\t\trunes.put(id, amount);\n\t\t}\n\t\treturn runes;\n\t}", "String getRune_lit();", "abstract public int get(int codePoint);", "public static void decode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n int c = BinaryStdIn.readChar();\r\n char t = charAtIndex[c];\r\n BinaryStdOut.write(t);\r\n for (int i = c - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = t;\r\n index[t] = 0;\r\n }\r\n BinaryStdOut.close(); \r\n }", "@Test\n public void testToChar() {\n Object[][] datas = new Object[][]{\n {1, '1'},\n {5, '5'},\n {10, 'A'},\n {11, 'B'},\n {12, 'C'},\n {13, 'D'},\n {14, 'E'},\n {15, 'F'}\n };\n for (Object[] data : datas) {\n char result = Tools.toChar((Integer) data[0]);\n char expResult = (Character) data[1];\n assertEquals(result, expResult);\n System.out.println(\"testToChar()\");\n }\n }", "private static String convertToRomaji(String katakana)\r\n\t\t\tthrows EasyJaSubException {\r\n\t\ttry {\r\n\t\t\treturn Kurikosu.convertKatakanaToRomaji(katakana);\r\n\t\t} catch (EasyJaSubException ex) {\r\n\t\t\ttry {\r\n\t\t\t\treturn LuceneUtil.katakanaToRomaji(katakana);\r\n\t\t\t} catch (Throwable luceneEx) {\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static void getRuns(Bidi bidi) {\n Bidi bidi2 = bidi;\n if (bidi2.runCount < 0) {\n if (bidi2.direction != 2) {\n getSingleRun(bidi2, bidi2.paraLevel);\n } else {\n int length = bidi2.length;\n byte[] levels = bidi2.levels;\n int limit = bidi2.trailingWSStart;\n int runCount = 0;\n int level = -1;\n for (int i = 0; i < limit; i++) {\n if (levels[i] != level) {\n runCount++;\n level = levels[i];\n }\n }\n if (runCount == 1 && limit == length) {\n getSingleRun(bidi2, levels[0]);\n } else {\n byte minLevel = Bidi.LEVEL_DEFAULT_LTR;\n byte maxLevel = 0;\n if (limit < length) {\n runCount++;\n }\n bidi2.getRunsMemory(runCount);\n BidiRun[] runs = bidi2.runsMemory;\n int runIndex = 0;\n int i2 = 0;\n do {\n int start = i2;\n byte level2 = levels[i2];\n if (level2 < minLevel) {\n minLevel = level2;\n }\n if (level2 > maxLevel) {\n maxLevel = level2;\n }\n do {\n i2++;\n if (i2 >= limit) {\n break;\n }\n } while (levels[i2] == level2);\n runs[runIndex] = new BidiRun(start, i2 - start, level2);\n runIndex++;\n } while (i2 < limit);\n if (limit < length) {\n runs[runIndex] = new BidiRun(limit, length - limit, bidi2.paraLevel);\n if (bidi2.paraLevel < minLevel) {\n minLevel = bidi2.paraLevel;\n }\n }\n bidi2.runs = runs;\n bidi2.runCount = runCount;\n reorderLine(bidi2, minLevel, maxLevel);\n int limit2 = 0;\n for (int i3 = 0; i3 < runCount; i3++) {\n runs[i3].level = levels[runs[i3].start];\n BidiRun bidiRun = runs[i3];\n int i4 = bidiRun.limit + limit2;\n bidiRun.limit = i4;\n limit2 = i4;\n }\n if (runIndex < runCount) {\n runs[(bidi2.paraLevel & 1) != 0 ? 0 : runIndex].level = bidi2.paraLevel;\n }\n }\n }\n if (bidi2.insertPoints.size > 0) {\n for (int ip = 0; ip < bidi2.insertPoints.size; ip++) {\n Bidi.Point point = bidi2.insertPoints.points[ip];\n bidi2.runs[getRunFromLogicalIndex(bidi2, point.pos)].insertRemove |= point.flag;\n }\n }\n if (bidi2.controlCount > 0) {\n int ic = 0;\n while (true) {\n int ic2 = ic;\n if (ic2 >= bidi2.length) {\n break;\n }\n if (Bidi.IsBidiControlChar(bidi2.text[ic2])) {\n bidi2.runs[getRunFromLogicalIndex(bidi2, ic2)].insertRemove--;\n }\n ic = ic2 + 1;\n }\n }\n }\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"kE4X 9\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1), 66, 1279);\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('k', char0);\n }", "public static void main(String[] args) {\n\t\tList<Character> charArray= Arrays.asList('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');\r\n\t\tint x=charArray.stream()\r\n\t\t.map(e->(int)(e))\r\n\t\t.reduce(0,Integer::sum);\r\n\t\tSystem.out.println(x);\r\n\t\tcharArray.stream()\r\n\t\t.map(e->(int)(e))\r\n\t\t.forEach(e->System.out.print(\" \"+e));\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tchar c = 'a';\n\t\t\n\t\tSystem.out.println(\"Charactor is : \" +c);\n\t\tint y = (int) c;\n\t\t\n\t\tSystem.out.println(\"Charactor After TypeCasting is :\"+y);\n\n\t}", "public static void main(String[] args) {\n String string1 = \"Java Exercises!\";\n System.out.println(String.format(\n \"1: %s\\nThe character at position 0 is: %s\",\n string1,\n string1.charAt(0)\n ));\n\n System.out.println();\n\n // 2. Write a Java program to get the character (Unicode code point) at the given index within the String. \n String string2 = \"w3resource.com\";\n System.out.println(\n String.format(\n \"2: %s\\nCharacter (unicode point) at 0 = %s\",\n string2,\n string2.codePointAt(0)\n ));\n\n System.out.println();\n \n // 3. Write a Java program to get the character (Unicode code point) before the specified index within the String.\n String string3 = \"w3resource.com\";\n System.out.println(\n String.format(\n \"3: %s\\nCharacter (unicode point) before 1 = %s\",\n string3,\n string3.codePointBefore(1)\n ));\n\n System.out.println();\n\n // 4. Write a java program to count a number of Unicode code points in the specified text range of a String.\n String string4 = \"w3rsource.com\";\n System.out.println(\n String.format(\n \"4: %s\\nCodepoint count from 0 to end = %d\",\n string4,\n string4.codePointCount(0, string4.length())\n ));\n\n System.out.println();\n\n // 5. Write a java program to compare two strings lexicographically.\n String comp1 = \"This is Exercise 1\";\n String comp2 = \"This is Exercise 2\";\n System.out.println(\"5: \" + comp1 + \" is \" + ((comp1.compareTo(comp2) > 0) ? \"greater\" : \"less\") + \" than \" + comp2);\n\n System.out.println();\n\n // 6. Write a java program to compare two strings lexicographically, ignoring case differences.\n String comp3 = \"This is exercise 1\";\n String comp4 = \"This is Exercise 1\";\n System.out.println(\"6: \" + comp3 + \" is \" + ((comp3.compareToIgnoreCase(comp4) == 0) ? \"equal\" : \"not equal\") + \" to \" + comp4);\n\n System.out.println();\n\n // 7. Write a Java program to concatenate a given string to the end of another string.\n String string7 = \"PHP Exercises and\";\n String string8 = \"Python Exercises\";\n System.out.println(\"8: \" + string7 + \" \" + string8);\n\n System.out.println();\n\n // 8. Write a Java program to test if a given string contains the specified sequence of char values.\n String string9 = \"PHP Exercises and Python Exercises\";\n System.out.println(String.format(\"8: %s contains 'and' -> %s\", string9, string9.contains(\"and\")));\n }", "public static void encode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n char c = BinaryStdIn.readChar();\r\n BinaryStdOut.write((char)index[c]);\r\n for (int i = index[c] - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = c;\r\n index[c] = 0;\r\n }\r\n BinaryStdOut.close();\r\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)120;\n byteArray0[1] = (byte) (-68);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "public static void main(String[] args) {\n // Be forwarned that when you write arrays directly in Java as below,\n // each \"row\" of text is a column of your image--the numbers get\n // transposed.\n PixImage image1 = array2PixImage(new int[][] { { 0, 3, 6 },\n { 1, 4, 7 },\n { 2, 5, 8 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on a 3x3 image. Input image:\");\n System.out.print(image1);\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n /*\n int [] red = {2,4,1,6,7};\n int [] leth = {2,3,1,1,2};\n\n RunLengthEncoding rle0 = new RunLengthEncoding(3, 3,red, red,red, leth);\n // RunLengthEncoding rle0 = new RunLengthEncoding(3, 3);\n \n for(RunIterator i=rle0.iterator();i.hasNext();) {\n\t System.out.println(i.next()[3]);\n }\n \n rle0.toPixImage();\n \n System.out.println(rle0.toPixImage().toString());\n System.out.println(\"XXXXXXXXXX\");\n\n */\n \n \n RunLengthEncoding rle1 = new RunLengthEncoding(image1);\n rle1.check();\n System.out.println(\"Testing getWidth/getHeight on a 3x3 encoding.\");\n doTest(rle1.getWidth() == 3 && rle1.getHeight() == 3,\n \"RLE1 has wrong dimensions\");\n \n rle1.toPixImage();\n \n System.out.println(\"Testing toPixImage() on a 3x3 encoding.\");\n System.out.println(rle1.toPixImage().toString());\n System.out.println(image1.toString());\n doTest(image1.equals(rle1.toPixImage()),\n \"image1 -> RLE1 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 0, 0, 42);\n image1.setPixel(0, 0, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n /*\n array2PixImage(new int[][] { { 42, 3, 6 },\n { 1, 4, 7 },\n { 2, 5, 8 } })),\n */\n \"Setting RLE1[0][0] = 42 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 1, 0, 42);\n image1.setPixel(1, 0, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[1][0] = 42 fails.\");\n\n \n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 0, 1, 2);\n image1.setPixel(0, 1, (short) 2, (short) 2, (short) 2);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[0][1] = 2 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 0, 0, 0);\n image1.setPixel(0, 0, (short) 0, (short) 0, (short) 0);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[0][0] = 0 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 2, 2, 7);\n image1.setPixel(2, 2, (short) 7, (short) 7, (short) 7);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[2][2] = 7 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 2, 2, 42);\n image1.setPixel(2, 2, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[2][2] = 42 fails.\");\n \n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 1, 2, 42);\n image1.setPixel(1, 2, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[1][2] = 42 fails.\");\n\n \n PixImage image2 = array2PixImage(new int[][] { { 2, 3, 5 },\n { 2, 4, 5 },\n { 3, 4, 6 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on another 3x3 image. Input image:\");\n System.out.print(image2);\n\n \n \n RunLengthEncoding rle2 = new RunLengthEncoding(image2);\n rle2.check();\n System.out.println(\"Testing getWidth/getHeight on a 3x3 encoding.\");\n doTest(rle2.getWidth() == 3 && rle2.getHeight() == 3,\n \"RLE2 has wrong dimensions\");\n\n System.out.println(\"Testing toPixImage() on a 3x3 encoding.\");\n doTest(rle2.toPixImage().equals(image2),\n \"image2 -> RLE2 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle2, 0, 1, 2);\n \n image2.setPixel(0, 1, (short) 2, (short) 2, (short) 2);\n doTest(rle2.toPixImage().equals(image2),\n \"Setting RLE2[0][1] = 2 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle2, 2, 0, 2);\n image2.setPixel(2, 0, (short) 2, (short) 2, (short) 2);\n doTest(rle2.toPixImage().equals(image2),\n \"Setting RLE2[2][0] = 2 fails.\");\n\n\n PixImage image3 = array2PixImage(new int[][] { { 0, 5 },\n { 1, 6 },\n { 2, 7 },\n { 3, 8 },\n { 4, 9 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on a 5x2 image. Input image:\");\n System.out.print(image3);\n RunLengthEncoding rle3 = new RunLengthEncoding(image3);\n rle3.check();\n System.out.println(\"Testing getWidth/getHeight on a 5x2 encoding.\");\n doTest(rle3.getWidth() == 5 && rle3.getHeight() == 2,\n \"RLE3 has wrong dimensions\");\n\n System.out.println(\"Testing toPixImage() on a 5x2 encoding.\");\n doTest(rle3.toPixImage().equals(image3),\n \"image3 -> RLE3 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 5x2 encoding.\");\n setAndCheckRLE(rle3, 4, 0, 6);\n image3.setPixel(4, 0, (short) 6, (short) 6, (short) 6);\n doTest(rle3.toPixImage().equals(image3),\n \"Setting RLE3[4][0] = 6 fails.\");\n\n System.out.println(\"Testing setPixel() on a 5x2 encoding.\");\n setAndCheckRLE(rle3, 0, 1, 6);\n image3.setPixel(0, 1, (short) 6, (short) 6, (short) 6);\n doTest(rle3.toPixImage().equals(image3),\n \"Setting RLE3[0][1] = 6 fails.\");\n\n System.out.println(\"Testing setPixel() on a 5x2 encoding.\");\n setAndCheckRLE(rle3, 0, 0, 1);\n image3.setPixel(0, 0, (short) 1, (short) 1, (short) 1);\n doTest(rle3.toPixImage().equals(image3),\n \"Setting RLE3[0][0] = 1 fails.\");\n\n\n PixImage image4 = array2PixImage(new int[][] { { 0, 3 },\n { 1, 4 },\n { 2, 5 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on a 3x2 image. Input image:\");\n System.out.print(image4);\n RunLengthEncoding rle4 = new RunLengthEncoding(image4);\n rle4.check();\n System.out.println(\"Testing getWidth/getHeight on a 3x2 encoding.\");\n doTest(rle4.getWidth() == 3 && rle4.getHeight() == 2,\n \"RLE4 has wrong dimensions\");\n\n System.out.println(\"Testing toPixImage() on a 3x2 encoding.\");\n doTest(rle4.toPixImage().equals(image4),\n \"image4 -> RLE4 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 3x2 encoding.\");\n setAndCheckRLE(rle4, 2, 0, 0);\n image4.setPixel(2, 0, (short) 0, (short) 0, (short) 0);\n doTest(rle4.toPixImage().equals(image4),\n \"Setting RLE4[2][0] = 0 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x2 encoding.\");\n setAndCheckRLE(rle4, 1, 0, 0);\n image4.setPixel(1, 0, (short) 0, (short) 0, (short) 0);\n doTest(rle4.toPixImage().equals(image4),\n \"Setting RLE4[1][0] = 0 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x2 encoding.\");\n setAndCheckRLE(rle4, 1, 0, 1);\n image4.setPixel(1, 0, (short) 1, (short) 1, (short) 1);\n doTest(rle4.toPixImage().equals(image4),\n \"Setting RLE4[1][0] = 1 fails.\");\n \n \n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "Character getCode();", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n StringReader stringReader0 = new StringReader(\"^z{b>wblu8^IJ+?\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n StringReader stringReader0 = new StringReader(\"sh5zor\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 66, 109);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(5, javaCharStream0.bufpos);\n assertEquals(114, javaCharStream0.getColumn());\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tCocos2dxJavascriptJavaBridge.evalString(rStr);\n\t\t\t\t\t}", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n StringReader stringReader0 = new StringReader(\"ri/eKZUUk8oH\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 66, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"ri\", token0.toString());\n }", "@Test\n public void testToOctal() {\n Object[][] datas = new Object[][]{\n {0, \"0\"},\n {5, \"5\"},\n {10, \"12\"},\n {11, \"13\"}\n };\n for (Object[] data : datas) {\n String result = Tools.toOctal((int) data[0]); //Actual\n String expResult = (String) data[1]; //Expected\n assertEquals(result, expResult);\n System.out.println(\"testToOctal()\");\n }\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n javaCharStream0.readChar();\n javaCharStream0.GetImage();\n assertEquals(1, javaCharStream0.bufpos);\n }", "private int char2Int(char _char){\n \tswitch(_char){\r\n \tcase 'A': case 'a': return 0; \r\n \tcase 'R': case 'r': return 1;\r\n \tcase 'N': case 'n': return 2; \t\r\n \tcase 'D': case 'd': return 3;\r\n \tcase 'C': case 'c': return 4;\r\n \tcase 'Q': case 'q': return 5;\r\n \tcase 'E': case 'e': return 6;\r\n \tcase 'G': case 'g': return 7;\r\n \tcase 'H': case 'h': return 8;\r\n \tcase 'I': case 'i': return 9;\r\n \tcase 'L': case 'l': return 10;\r\n \tcase 'K': case 'k': return 11;\r\n \tcase 'M': case 'm': return 12;\r\n \tcase 'F': case 'f': return 13;\r\n \tcase 'P': case 'p': return 14;\r\n \tcase 'S': case 's': return 15;\r\n \tcase 'T': case 't': return 16;\r\n \tcase 'W': case 'w': return 17;\r\n \tcase 'Y': case 'y': return 18;\r\n \tcase 'V': case 'v': return 19;\r\n \tcase 'B': case 'b': return 20;\r\n \tcase 'Z': case 'z': return 21;\r\n \tcase 'X': case 'x': return 22; \t\r\n \tdefault: return 23;\r\n \t}\r\n \t//\"A R N D C Q E G H I L K M F P S T W Y V B Z X *\"\r\n }", "public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }", "public void run() {\r\n for (int i = 0; i < inputs.size(); i++) {\r\n String converted;\r\n //Converts the input string using the converter\r\n converted = converter.convert(inputs.get(i));\r\n //It adds to the output the converted string \r\n outputs.add(converted);\r\n //Prints the converted value\r\n System.out.println(converted);\r\n }\r\n\r\n }", "public static void main(String args[]) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\t\tint N = Integer.parseInt(line);\n\t\tString[] inputs = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tline = br.readLine();\n\t\t\tinputs[i] = line;\n\t\t}\n\n\t\tString[] outputs = new String[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\toutputs[i] = findCharactersToType(inputs[i]);\n\t\t}\n\n\t\tfor (String s : outputs) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "@Test\n\tpublic void MyTest() {\n\t\tSystem.out.println(convert(\"PAYPALISHIRING\", 5));\n\t\tSystem.out.println(convert(\"01234567890\", 4));\n//\t\tint[][] arr = new int[1][2];\n//\t\tfor (int i = 0; i < arr.length; i++) {\n//\t\t\tSystem.out.println(Arrays.toString(arr[i]));\n//\t\t}\n\t}", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n StringReader stringReader0 = new StringReader(\"=<D!T!tLp\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 20, 0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(3, javaCharStream0.getEndColumn());\n }", "private String solveProblem(String element) {\r\n int[] count = new int[27];\r\n for(char c : element.toCharArray()) {\r\n count[convChar(c)]++;\r\n }\r\n int[] nums = new int[10];\r\n extra(count, nums, \"FOUR\", count[convChar('U')], 4);\r\n extra(count, nums, \"SIX\", count[convChar('X')], 6);\r\n extra(count, nums, \"EIGHT\", count[convChar('G')], 8);\r\n extra(count, nums, \"ZERO\", count[convChar('Z')], 0);\r\n extra(count, nums, \"TWO\", count[convChar('W')], 2);\r\n extra(count, nums, \"ONE\", count[convChar('O')], 1);\r\n extra(count, nums, \"THREE\", count[convChar('T')], 3);\r\n extra(count, nums, \"FIVE\", count[convChar('F')], 5);\r\n extra(count, nums, \"SEVEN\", count[convChar('S')], 7);\r\n extra(count, nums, \"NINE\", count[convChar('I')], 9);\r\n \r\n for(int i : count) {\r\n if(i > 0) {\r\n throw new RuntimeException(i + \"\");\r\n }\r\n }\r\n\r\n StringBuilder sb = new StringBuilder();\r\n for(int i = 0; i <= 9; i++) {\r\n for(int j = 0; j < nums[i]; j++) {\r\n sb.append(i);\r\n }\r\n }\r\n \r\n \r\n return sb.toString();\r\n }", "public RunLengthEncoding(PixImage image) {\n // Your solution here, but you should probably leave the following line\n // at the end.\n\t this.width=image.getWidth();\n\t this.height=image.getHeight();\n\t runs = new DList<int[]>(); \n\t \n\t int length_count=0;\n\t int cur_Color=-1;\n\t int prev_Color=-1;\n\t \n\t for(int j=0;j<image.getHeight();j++) {\t \n\t\t\t for(int i=0;i<image.getWidth();i++) {\n\t\t\t\tcur_Color=image.getRed(i, j); \n\t\t\t\tif (cur_Color!=prev_Color) {\n\t\t\t\t\tlength_count++;\n\t\t\t\t\tprev_Color=cur_Color;\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t }\n\t\t\t \n\t }\n\t int count=1;\n\t int[] red = new int[length_count];\n\t int[] green = new int[length_count];\n\t int[] blue = new int[length_count];\n\t int[] runLengths =new int[length_count];\n\t int t=0;\n\t red[0]=image.getRed(0, 0);\n\t green[0]=image.getGreen(0, 0);\n\t blue[0]=image.getBlue(0, 0);\n\t \n\t int passed_counter = 0;\n\t for(int j=0;j<image.getHeight();j++) {\n\t\t\t for(int i=0;i<image.getWidth();i++) {\n\t\t\t\t passed_counter++;\n\t\t\t\t if(i>0 || j>0) { // do not do anything for the first element\n\t\t\t\t\t if(image.getRed(i, j)!=red[t]) {\n\t\t\t\t\t\t runLengths[t]=count;\n\t\t\t\t\t\t count = 1;\n\t\t\t\t\t\t t++;\n\t\t\t\t\t\t runLengths[t]=image.getWidth()*image.getHeight() -passed_counter+1;\n\t\t\t\t\t\t red[t]=image.getRed(i, j);\n\t\t\t\t\t\t green[t]=image.getGreen(i, j);\n\t\t\t\t\t\tblue[t]=image.getBlue(i, j);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t else {\n\t\t\t\t\t\t count++;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t red[t]=image.getRed(i, j);\n\t\t\t\t\t green[t]=image.getGreen(i, j);\n\t\t\t\t\tblue[t]=image.getBlue(i, j);\n\t\t\t\t\t \n\t\t\t\t\n\t\t\t }\n\t }\t\n\t for(int i=0;i<red.length;i++) {\n\t\t\tint[] run= {runLengths[i],red[i],green[i],blue[i]};\n\t\t\t\n\t\t\tif(runs.isEmpty())\n\t\t\t{\n\t\t\t\t\n\t\t\t\truns.addFirst(run);\n\t\t\t}else {\n\t\t\t\tDListNode<int[]> v=runs.getLast();\n\t\t\t\truns.addAfter(v, run);\n\t\t\t} \n\t \n \n }\n\t check();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println((int)'a');\r\n\t\tSystem.out.println((int)'b');\r\n\t\tSystem.out.println((int)'c');\r\n\t\tSystem.out.println((int)'d');\r\n\t\tSystem.out.println((int)'z');\r\n\t}", "@Function(name = \"fromCharCode\", arity = 1)\n public static Object fromCharCode(Realm realm, Object thisValue, Object... codeUnits) {\n int length = codeUnits.length;\n char elements[] = new char[length];\n for (int nextIndex = 0; nextIndex < length; ++nextIndex) {\n Object next = codeUnits[nextIndex];\n char nextCU = ToUint16(realm, next);\n elements[nextIndex] = nextCU;\n }\n return new String(elements);\n }", "public static void main(String[] args) {\n String s = \"**********1111111111\";\n Solution solution = new Solution();\n System.out.println(solution.numDecodings(s));\n }", "public int getRuns();", "int toInt(char c) {\n for (int i = 0; i < size(); i += 1) {\n if (_chars[i] == c) {\n return i;\n }\n }\n throw new EnigmaException(\"Character \" + c + \" not found.\");\n }", "public static void main(String[] args) {\n String s = \"计算机世界\";\n System.out.println(s.charAt(1));\n }", "@Test\n public void istranscodeTest() {\n // TODO: test istranscode\n }", "private int convertUnicodeLiteralToChar(int n) {\n\n final int START_STATE = 1;\n final int MODIFIED_DATA_STATE = START_STATE + 1;\n final int START_OF_ESCAPE = MODIFIED_DATA_STATE + 1;\n final int UNICODE_NIBBLE1 = START_OF_ESCAPE + 1;\n final int UNICODE_NIBBLE2 = UNICODE_NIBBLE1 + 1;\n final int UNICODE_NIBBLE3 = UNICODE_NIBBLE2 + 1;\n final int UNICODE_NIBBLE4 = UNICODE_NIBBLE3 + 1;\n\n int state = START_STATE;\n boolean data_buffer_modified = false;\n\n int ucount = 0;\n\n char u1 = 0, u2 = 0, u3 = 0, c = 0;\n\n int i = 0, j = 0;\n while (i < n) {\n c = data[i++];\n switch (state) {\n case START_STATE:\n if (c == '\\\\') {\n j = i - 1;\n state = START_OF_ESCAPE;\n }\n break;\n case MODIFIED_DATA_STATE:\n if (c != '\\\\') {\n data[j++] = c;\n } else {\n state = START_OF_ESCAPE;\n }\n break;\n case START_OF_ESCAPE:\n if (c != 'u') {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n } else {\n ucount = 1;\n state = UNICODE_NIBBLE1;\n }\n break;\n case UNICODE_NIBBLE1:\n if (isHexadecimalDigit(c)) {\n u1 = c;\n state = UNICODE_NIBBLE2;\n } else if (c == 'u') {\n ucount++;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE2:\n if (isHexadecimalDigit(c)) {\n u2 = c;\n state = UNICODE_NIBBLE3;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE3:\n if (isHexadecimalDigit(c)) {\n u3 = c;\n state = UNICODE_NIBBLE4;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE4:\n if (isHexadecimalDigit(c)) {\n if (!data_buffer_modified) {\n data_buffer_modified = true;\n }\n data[j++] = (char) ((((((map[u1] << 4) + map[u2]) << 4) + map[u3]) << 4) + map[c]);\n state = MODIFIED_DATA_STATE;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n }\n }\n // afterthoughts\n if (data_buffer_modified) {\n switch (state) {\n case START_OF_ESCAPE:\n data[j++] = '\\\\';\n break;\n case UNICODE_NIBBLE1:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n break;\n case UNICODE_NIBBLE2:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n break;\n case UNICODE_NIBBLE3:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n break;\n case UNICODE_NIBBLE4:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n break;\n }\n n = j;\n }\n return n;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(intToRoman(10));\n\t}", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null, 122, 122, 122);\n int[] intArray0 = new int[0];\n javaCharStream0.bufline = intArray0;\n // Undeclared exception!\n try { \n javaCharStream0.adjustBeginLineColumn(122, 122);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public static void main(String[] args)\r\n\t{\r\n\t\tout.println(\"Klasa: java.lang.Character\");\r\n\t\tout.println(\"Metoda statyczna: digit\\n\");\r\n\t\tout.println(\"static int digit(int ch, int radix)\");\r\n\t\tout.println(\"Returns the numeric value of the character ch \" + \" in the specified radix.\");\r\n\t\tout.println();\r\n\t\t/* Przyk\u0002adowa tablica znaków */ char znak[] = { 'E', 'u', 'r', 'o', ' ', '2', '0', '1', '2' };\r\n\t\t/* Demonstracja dzia\u0002ania metody */\r\n\t\t\r\n\t\t\r\n\t\tout.println(\"Warto\u0002\u0004 znaku jako cyfry w uk\u0005adzie dziesi\u0006tkowym (radix = 10)\");\r\n\t\tfor (char z : znak)\r\n\t\t\tout.println(\"Znak: \" + z + \" Cyfra: \" + Character.digit(z, 10));\r\n\t\tout.println(\"Uwaga: -1 oznacza, \u0007e znak nie jest cyfr\u0006 w tym uk\u0005adzie liczbowym.\");\r\n\t\tout.println();\r\n\t\tout.println(\"Warto\u0002\u0004 znaku jako cyfry w uk\u0005adzie szesnastkowym (radix = 16)\");\r\n\t\tfor (char z : znak)\r\n\t\t\tout.println(\"Znak: \" + z + \" Cyfra: \" + Character.digit(z, 16));\r\n\t\tout.println(\"Uwaga: -1 oznacza, \u0007e znak nie jest cyfr\u0006 w tym uk\u0005adzie liczbowym.\");\r\n\r\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println(180%30);\n\t\tSystem.out.println(12%30);\n\t\tSystem.out.println(179%30);\n\t\tSystem.out.println(30%30);\n\t\tint docNum= 10, docCount=10;\n\t\tSystem.out.println(\"Math.log docNum / docCount:\"+ Math.log((double) docNum / docCount));\n\t\tSystem.out.println(SvmUtil.parseWord(\"你愛我嗎\"));\n\t\tString test = \"中華民國,中華民國,中華民國,中華民國,中華民國,中華民國,中華民國,中華民國,中華民國,中華民國\";\n\t\tString ssss = \"中華民國\";\n\t\tSystem.out.println(ssss.matches(\"[\\\\u4e00-\\\\u9fa5]+\"));\n\n\t\tSvmUtil.init();\n\t\tSystem.out.println(SvmUtil.labelToName(3d));\n\t\tSystem.out.println(SvmUtil.nameToLabel(\"資管處\"));\n\t\tSystem.out.println(\"frequency:\" + SvmUtil.frequency(test, \"中華\"));\n\t\tlong startTime = System.currentTimeMillis();\n\t\tfor (int i = 0; i <= 1000; i++)\n\t\t\tSvmUtil.frequency(test, \"中\");\n\t\tSystem.out.println(\"search Time:\" + (double) (System.currentTimeMillis() - startTime) / 1000d + \" s\");\n\n\t\tSet<String> testSet = new HashSet<String>();\n\t\ttestSet.add(\"中華民國\");\n\t\ttestSet.add(\"中華\");\n\t\ttestSet.add(\"中華民國\");\n\t\tSystem.out.println(testSet);\n\n\t\tjiebaAnalysis();\n\t\t// float value = (float) Math.log(987654 / 999);\n\t\t// System.out.println(value);\n\t\t// int i=100;\n\t\t// long l =9999;\n\t\t// System.out.println(String.format(\"% 5d\", i));\n\t\t// System.out.println(String.format(\"% 5d\", l));\n\t}", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Cf&9B{tMCu\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(4, javaCharStream0.getColumn());\n }", "public void testInteger() throws Exception {\n String string = \"abcdandmore\";\n CharIndex idx = CharIndex.getInstance(string);\n\n int[] map = PatternBitmap.map(string, idx, new int[idx.size()]);\n\n /* Spot check some */\n assertEquals(0x11, map[idx.lookup('a')]);\n assertEquals(0x02, map[idx.lookup('b')]);\n assertEquals(0x04, map[idx.lookup('c')]);\n assertEquals(0x48, map[idx.lookup('d')]);\n\n /* Check all others for zero/non-zero */\n for (int i = 0; i < 0xffff; i++) {\n char c = (char)i;\n int where = string.indexOf(c);\n if (where >= 0) {\n assertTrue(\"Map for pattern character '\" + c + \"' should be non-zero\",\n (map[idx.lookup(c)] & (1 << where)) != 0);\n } else {\n assertEquals(\"Map for unused character '\" + c + \"' should be zero\",\n 0, map[idx.lookup(c)]);\n }\n }\n }", "public static void main(String[] args) throws IOException {\n Map<String, Integer> map = new HashMap<>();\n map.put(\"A\", 9);\n map.put(\"B\", 4);\n map.put(\"C\", 8);\n map.put(\"D\", 6);\n map.put(\"E\", 5);\n map.put(\"F\", 3);\n map.put(\"G\", 7);\n map.put(\"H\", 2);\n map.put(\"I\", 1);\n map.put(\"J\", 0);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] eng = new int[count];\n for (int i = 0; i < count; i++) {\n String s = br.readLine();\n StringBuilder temp = new StringBuilder();\n for (int j = 0; j < s.length(); j++) {\n temp.append(map.get(String.valueOf(s.charAt(j))));\n }\n eng[i] = Integer.parseInt(temp.toString());\n }\n\n int result = 0;\n for (int element : eng) {\n result += element;\n }\n System.out.println(result);\n }", "private static char[] obtenerVectorJuego(String palabara){\n \n\n return palabara.toCharArray();\n }", "public int[] toIntArray(){\n int[] array = new int[getSeq().size()];\n for (int i = 0; i < array.length; i++) {\n char c = Character.toUpperCase(getSeq().get(i));\n array[i] = Sequence.convert(c);\n }\n return array;\n }", "@Test\n public void testConvertDigitsToLettersForTwoDigitNumber() {\n Integer[] argArray = new Integer[]{99,10};\n System.out.println(\"input: arr[] = {\" + StringUtils.join(argArray,\",\")+\"}\");\n try {\n String s = DigitsToLettersUtils.convertDigitsToLetters(argArray);\n System.out.println(\"output: \" + s);\n Assert.assertEquals(\"ww wx wy wz xw xx xy xz yw yx yy yz zw zx zy zz\", s);\n } catch (Exception e) {\n Assert.fail();\n }\n }", "public FontCharCodeIterator getCharCodeIterator() throws PDFNetException {\n/* 684 */ return new FontCharCodeIterator(GetCharCodeIterator(this.a), this.b);\n/* */ }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n StringReader stringReader0 = new StringReader(\"_ofi`~l69>EJdF\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1874, 1874);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(1877, javaCharStream0.getColumn());\n }", "public static void main(String[] args) {\n //first way\n char c='a';\n int ascii=c;\n System.out.println(ascii);\n\n int asciiI=(int)c;\n System.out.println(asciiI);\n\n\n }", "private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }", "protected static int[] inputPath()\n\t{\n\t\tString input = \"\";\n\t\tboolean firstIteration = true;\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\twhile (Button.ESCAPE.isDown() || firstIteration)\n\t\t{\n\t\t\tLCD.clearDisplay();\n\t\t\tLCD.clearDisplay();\n\t\t\tSystem.out.println(\"Left or Right?\");\n\t\t\tSystem.out.println(input);\n\t\t\t\n\t\t\twaitForPress();\n\t\t\tif (Button.ENTER.isDown()) input += \"0\"; //Forward\n\t\t\tif (Button.LEFT.isDown()) input += \"1\"; //Left\n\t\t\tif (Button.RIGHT.isDown()) input += \"2\"; //Right\n\t\t\t\n\t\t\tfirstIteration = false;\n\t\t}\n\t\t\n\t\treturn makeSequence(input);\n\t}", "@Function(name = \"fromCodePoint\", arity = 1)\n public static Object fromCodePoint(Realm realm, Object thisValue, Object... codePoints) {\n int length = codePoints.length;\n int elements[] = new int[length];\n for (int nextIndex = 0; nextIndex < length; ++nextIndex) {\n Object next = codePoints[nextIndex];\n double nextCP = ToNumber(realm, next);\n if (!SameValue(nextCP, ToInteger(realm, nextCP))) {\n throw throwRangeError(realm, \"\");\n }\n if (nextCP < 0 || nextCP > 0x10FFFF) {\n throw throwRangeError(realm, \"\");\n }\n elements[nextIndex] = (int) nextCP;\n }\n return new String(elements, 0, length);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[8];\n stringReader0.read(charArray0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(\"MV5G\", token0.toString());\n }", "public static void main(String[] args) {\n\n\t\tint[] a = new int[100];\n\t\tSystem.out.println(a.length);\n\n\t\tString s = \"akhil\";\n\t\tSystem.out.println(s.length());\n\n\t\tSystem.out.println(s.charAt(2));\n\n\t\t// System.out.println(s.charAt(20)); //exception\n\n\t\tSystem.out.println(s.indexOf('a'));\n\t\tSystem.out.println(s.lastIndexOf('l'));\n\n\t\tString rno = \"13C51A0501\";\n\n\t\tSystem.out.println(rno.contains(\"51A\"));\n\t\tSystem.out.println(rno.startsWith(\"13C\"));\n\t\tSystem.out.println(rno.endsWith(\"501\"));\n\n\t\tSystem.out.println(s.toUpperCase());\n\t\tSystem.out.println(s.toLowerCase());\n\n\t\tString s1 = \" Akhil \";\n\t\tSystem.out.println(s1.length());\n\t\tSystem.out.println(s1.trim().length());\n\n\t}", "String substringRunes(int start, int end) {\n\t\t\tstart -= this.offset;\n\t\t\tend -= this.offset;\n\t\t\tint runes = snippet.codePointCount(0, snippet.length());\n\t\t\tif (start < 0) {\n\t\t\t\tstart = 0;\n\t\t\t}\n\t\t\tif (end < 0) {\n\t\t\t\tend = 0;\n\t\t\t}\n\t\t\tif (start > runes) {\n\t\t\t\tstart = runes;\n\t\t\t}\n\t\t\tif (end > runes) {\n\t\t\t\tend = runes;\n\t\t\t}\n\t\t\treturn snippet.substring(\n\t\t\t\tsnippet.offsetByCodePoints(0, start),\n\t\t\t\tsnippet.offsetByCodePoints(0, end)\n\t\t\t);\n\t\t}", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n StringReader stringReader0 = new StringReader(\"[dfm,AL#MUTe;f\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"L\", token0.toString());\n assertEquals(74, token0.kind);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString charArray = \"Benjamin\";\r\n\t\t\r\n\t\tchar[] myChar = charArray.toCharArray(); //string returns to char\r\n\t\t\r\n\t\tSystem.out.println(Arrays.toString(myChar));\r\n\t\t\r\n\t\tSystem.out.println(\"elements in myChar: \"+myChar.length);\r\n\t\t\r\n\r\n\t\t\r\n\t\tString str =\"\";\r\n\t\tchar mychar[] = {'a', 'b', 'c'};\r\n\t\t\r\n\t\tfor(int i=0; i<mychar.length; i++) {\r\n\t\t\tchar c= mychar[i];\r\n\t\t\tstr+=c;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"char to string result is: \"+str);\r\n\t}", "private int convert(int keyCode) {\n\t\tif (keyCode >= 96 && keyCode <= 105) {\n\t\t\treturn keyCode - 48;\n\t\t} else if (keyCode == 81) { // qwertyuiop -> 0-9\n\t\t\tkeyCode = 49;\n\t\t} else if (keyCode == 87) {\n\t\t\tkeyCode = 50;\n\t\t} else if (keyCode == 69) {\n\t\t\tkeyCode = 51;\n\t\t} else if (keyCode == 82) {\n\t\t\tkeyCode = 52;\n\t\t} else if (keyCode == 84) {\n\t\t\tkeyCode = 53;\n\t\t} else if (keyCode == 89) {\n\t\t\tkeyCode = 54;\n\t\t} else if (keyCode == 85) {\n\t\t\tkeyCode = 55;\n\t\t} else if (keyCode == 37) {\n\t\t\tkeyCode = 56;\n\t\t} else if (keyCode == 79) {\n\t\t\tkeyCode = 57;\n\t\t} else if (keyCode == 80) {\n\t\t\tkeyCode = 48;\n\t\t}\n\t\treturn keyCode;\n\t}", "public static void main(String[] args) {\n\t\tchar cha = 'A';\n\t\tSystem.out.println(cha); // returns A\n\t\tSystem.out.println((int)cha); // returns 65\n\t\tSystem.out.println(cha + 1); // returns 66\n\t\tSystem.out.println((char)(cha + 1)); // returns B\n\t}", "public static void main(String[] args) {\n\t\tString s = \"Mahesh\";\r\n\t\tchar[] arr = s.toCharArray();\r\n\t\tint count = 0;\r\n\t\tfor(char s1: arr) {\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\t\r\n\t\tint index = 0;\r\n\t\ttry {\r\n\t\t\twhile(true) {\r\n\t\t\t\ts.charAt(index);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(index);\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate static int[] pureStreamStrategy(String word) {\n\t\treturn word.codePoints()\n\t\t\t\t.filter(Character::isLetter)\n\t\t\t\t.map(Character::toUpperCase)\n\t\t\t\t.boxed()\n\t\t\t\t.collect(\n\t\t\t\t\tCollectors.groupingBy(\n\t\t\t\t\t\tcp -> cp,\n\t\t\t\t\t\tTreeMap::new,\n\t\t\t\t\t\tCollectors.summingInt(cp -> 1)\n\t\t\t\t\t)\n\t\t\t\t).entrySet().stream()\n\t\t\t\t.flatMap(e -> Stream.of(e.getKey(), e.getValue()))\n\t\t\t\t.mapToInt(i -> i)\n\t\t\t\t.toArray()\n\t\t;\n\t}", "R apply(char value);", "public static void main(String[] args) {\n\t\t\r\n\t\tString a = \"KOITT\";\r\n\t\tString b = \"Apple\";\r\n\t\tString c = \"Car\";\r\n\t\t\r\n\t\tchar tmp = a.charAt(0);\r\n\t\tchar tmp2 = a.charAt(1);\r\n\t\tchar tmp3 = c.charAt(2);\r\n\t\tchar tmp4 = b.charAt(4);\r\n\t\tchar tmp5 = b.charAt(0);\r\n\r\n\t\t\r\n\t\tchar result [] = {tmp,tmp2,tmp3,tmp4,tmp5};\r\n\t\tSystem.out.print(result);\r\n\t\tSystem.out.println(tmp);\r\n\t\t//int []result = tmp[i]; \r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n String s = \"we are i interviewing now\";\n char[] nums = s.toCharArray();\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n \n // we are i interviewing now\n // i\n // j\n \n \n // 當nums[j]和nums[j-1]有一個不是空格時, 和i交換\n // 都是空格, 只移動j\n int i = 1;\n int j = 1;\n while (j < nums.length) {\n // j和j-1有一個不是空格 --> 交換\n if (j >= 1 && (nums[j] != ' ' || nums[j - 1] != ' ')) {\n char temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n i++;\n } else if (j >= 1 && nums[j] == ' ' && nums[j - 1] == ' '\n && nums[i - 1] != ' ') {\n i++;\n }\n j++;\n }\n System.out.println(nums);\n }", "public void testIntegerArray() throws Exception {\n String string = \"x012345678901234567890123456789\"\n + \"01234567890123456789x0123456789\"\n + \"01234x567890123456789\";\n int wordSize = 31;\n\n CharIndex idx = CharIndex.getInstance(string);\n\n int[][] map = PatternBitmap.map(string, idx, new int[idx.size()][],\n wordSize);\n\n /* Spot check some */\n assertEquals(1 << 0, map[idx.lookup('x')][0]);\n assertEquals(1 << 20, map[idx.lookup('x')][1]);\n assertEquals(1 << 5, map[idx.lookup('x')][2]);\n\n /* Check all others for null element/not */\n int[] notThere = map[idx.lookup('\\u0000')];\n for (int i = 0; i < 0xffff; i++) {\n char c = (char)i;\n int where = string.indexOf(c);\n if (where >= 0) {\n assertTrue(\"Map for pattern character '\" + c + \"'\"\n + \" should be non-zero\",\n (map[idx.lookup(c)] != notThere));\n int bit = map[idx.lookup(c)][where / wordSize] & (1 << (where % wordSize));\n assertTrue(\"Map for pattern character '\" + c + \"'\"\n + \" should have \" + where + \" bit on\",\n (bit != 0));\n } else {\n assertEquals(\"Map for unused character '\" + c + \"' should be none\",\n notThere, map[idx.lookup(c)]);\n }\n }\n }", "public void conversionTest(){\n String test = \"ABCDEFabcdef123!#\";\n for(int k=0; k < test.length(); k++){\n char ch = test.charAt(k);\n char uch = Character.toUpperCase(ch);\n char lch = Character.toLowerCase(ch);\n System.out.println(ch+\" \"+uch+\" \"+lch);\n }\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1, 0);\n char char0 = javaCharStream0.readChar();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(1, javaCharStream0.getEndLine());\n assertEquals('Z', char0);\n }", "public static int drwal(String[] args){\n if (args.length == 5) {\n //Sprawdzanie czy argument 1,2,4,5 to inty\n try {\n Integer.parseInt(args[0]);\n Integer.parseInt(args[1]);\n Integer.parseInt(args[3]);\n Integer.parseInt(args[4]);\n }catch (NumberFormatException e){\n System.out.println(\"klops\");\n return 0;\n }\n int xStart = Integer.parseInt(args[1]);\n int yStart = Integer.parseInt(args[0]);\n Character kolor = args[2].charAt(0);\n int szerokosc = Integer.parseInt(args[3]);\n int wysokosc = Integer.parseInt(args[4]);\n Scanner input = new Scanner(System.in);\n char[][] output1 = new char[wysokosc][szerokosc];\n int wyscount = 0;\n int counter = 0;\n //Jezeli szerokosc albo wysokosc > 5000\n //Jezeli xstart > szerokosc, ystart > wysokosc\n if (!((szerokosc > 5000 || wysokosc > 5000)||(xStart > szerokosc || yStart > wysokosc))){\n while(input.hasNextLine()){\n String tmp;\n byte[] isUTF = null;\n try {\n tmp = input.nextLine();\n isUTF = tmp.getBytes(\"UTF-8\");\n }\n catch(UnsupportedEncodingException e){\n System.out.println(\"klops\");\n return 0;\n }\n if (wyscount > wysokosc || tmp.length() > szerokosc){\n System.out.println(\"klops\");\n return 0;\n }\n for (int i = 0;i<tmp.length();i++){\n output1[counter][i] = tmp.charAt(i);\n }\n counter++;\n wyscount++;\n }\n int startx = xStart -1;\n int starty = yStart -1;\n //Jezeli punkt startowy to spacja to zaczynamy kolorowanie\n if (output1[startx][starty]==' '){\n output1 = color(output1,kolor,startx,starty);\n }\n //wypisywanie na wyjsciu pokolorwanego obrazka\n for (int i=0;i<wyscount;i++){\n for (int j=0;j<szerokosc;j++){\n System.out.print(output1[i][j]);\n }\n System.out.println();\n }\n }\n else {\n System.out.println(\"klops\");\n return 0;\n }\n }\n else{\n System.out.println(\"klops\");\n return 0;\n }\n return 0;\n }", "void mo37668e(int i);", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 3171, 3171, 3171);\n javaCharStream0.backup(74);\n javaCharStream0.BeginToken();\n javaCharStream0.GetImage();\n assertEquals(3097, javaCharStream0.bufpos);\n }", "private ArrayList<String> convertChar() {\r\n \tArrayList<String> patterns = new ArrayList<String>();\r\n \tfor (int i = 0; i < this.patterns.size(); i++) {\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < this.patterns.get(i).length; j++) {\r\n \t\t\ts += this.patterns.get(i)[j];\r\n \t\t}\r\n \t\tpatterns.add(s);\r\n \t}\r\n \treturn patterns;\r\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint tc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t{\n\t\t\tString s=sc.next();\n\t\t\tchar ch[]=s.toCharArray();\n\t\t\tint first=-1;\n\t\t\tint last=-1;\n\t\t\tint crash=0;\n\t\t\tint d=0;\n\t\t\tfor(int i=0,j=ch.length;i<j-1;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='r'&&ch[i+1]=='l')\n\t\t\t\t{\n\t\t\t\t\tch[i]='d';\n\t\t\t\t\tch[i+1]='d';\n\t\t\t\t\tcrash+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='d')\n\t\t\t\t{\n\t\t\t\t\td+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(d==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(0);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tfirst=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(int i=ch.length-1;i>=0;i--)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tlast=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(first==last)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=first;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}else{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=last;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=first;i<=last;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]!='d')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int convertToInteger(char letterToEncode)\n\t{\n\t\tfor (int i = 0; i<characters.length; i++)\n\t\t{\n\t\t\tif(letterToEncode == characters[i])\n\t\t\t{\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t\t\n\t\t\n\t}", "public static native int nativeAssetReadChar(long j);", "@Test(timeout = 4000)\n public void test156() throws Throwable {\n StringReader stringReader0 = new StringReader(\"w\\\"[\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-3472), 1634);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"w\", token0.toString());\n }", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n StringReader stringReader0 = new StringReader(\"7o9?>+o`*qi$\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('7', char0);\n }", "public static void main(String[] args) {\n\t\t\n\t\tint[] a = new int[2];\n\t\t\n\t\ta[0] = 23;\n\t\ta[1]=(char)'a';\n\t\t\n\t\tfor(int k=0;k<a.length;k++) {\n\t\t\tSystem.out.println((char)((a[k])));\n\t\t}\n\t\t/*int array[][]= {{1,2,3,4},\n\t\t\t\t {5,6,7,8}};\n\t\t\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tfor(int j=0;j<array[i].length;j++) {\n\t\t\t\tSystem.out.println(\" \" +array[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}*/\n\n\t\n\n}", "public static void main(String[] args) {\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"012345678\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456789\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567890\"));\r\n\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UCYF\\nALXLAT\\nSAZUF\\nCYFALT\\nXLASAU\\nYCXH\"));\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UHTL\\nYTHCFC\\nJJZUU\\nHTLYTX\\nHCFJJT\\nAFTY\"));\r\n\t}", "public static void main (String[] args) throws IOException {\n String word=readFile(\"src/org/launchcode/java/studios/countingcharacters/Studiothingy.txt\");\n\n char[] searchArray= word.toLowerCase().toCharArray();\n\n HashMap<Character, Integer> mapOutput = new HashMap<>();\n\n for (char c : searchArray) {\n if (Character.isLetter(c)) {\n if (!mapOutput.containsKey(c)) {\n mapOutput.put(c, 1);\n } else {\n mapOutput.put(c, mapOutput.get(c)+1);\n }\n }\n }\n System.out.println(mapOutput);\n }", "@Test\n public void testCodePoints() {\n LOGGER.info(\"testCodePoints\");\n final String expected = \"Hello\";\n final AtomString atomString1 = new AtomString(expected);\n final String actual = atomString1.codePoints()\n .mapToObj(i -> new String(new int[]{i}, 0, 1))\n .collect(joining());\n assertEquals(expected, actual);\n }", "int toInt(char ch) {\n return _letters.indexOf(ch);\n }", "public static void main(String[] args) {\n\t\tString word = \"java\";\n//\t\tSystem.out.println(word.substring(0,1));\n//\t\tSystem.out.println(word.substring(1,2));\n//\t\tSystem.out.println(word.substring(2,3));\n//\t\tSystem.out.println(word.substring(3));\n\t\t\n//\t\tfor(int i = word.length()-1; i >= 0; i--) {\n//\t\t\tSystem.out.println(word.charAt(i));\n//\t\t}\n\t\t\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n StringReader stringReader0 = new StringReader(\"d{IHR}D';Z<m5\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n int int0 = javaCharStream0.getColumn();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(1, int0);\n }", "public static void main(String[] args) {\n\t\tString s = \"aaabaaab\";\n\t\tSystem.out.println(alternatingCharacters(s));\n\t}", "@Test(timeout = 4000)\n public void test100() throws Throwable {\n StringReader stringReader0 = new StringReader(\"t#3kWPrge}_(;Uh\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char[] charArray0 = new char[2];\n stringReader0.read(charArray0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(5, javaCharStream0.bufpos);\n assertEquals(6, javaCharStream0.getEndColumn());\n }", "public void encodeChars() {\n encodedChars = new int[uniqueChars.size()];\n Iterator<Character> mover = uniqueChars.iterator();\n Iterator<Character> moverTwo = uniqueChars.iterator();\n System.out.print(\"\\nEncoding characters to its ASCII integer value:\");\n for(int a = 0; a < uniqueChars.size(); a++) {\n encodedChars[a] = (int)mover.next();\n encodedChars[a] = encodedChars[a] / encodedChars[a] + a - 1;\n System.out.print(moverTwo.next() + \" : \" + encodedChars[a] + \", \");\n }\n System.out.println(\"\\n\");\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tString a = \"9B768C\";\n\t\tString c = \"\";\n\t\tint leng = a.length();\n\t\tString array[] = new String[leng];\n\t\t\n\t\tfor(int i = 0 ; i<leng; i++) {\n\t\t\tarray[i]= a.substring(i,i+1);\n\t\t\tSystem.out.println(c += array[i]);\n\t\t}\n\t\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test038() throws Throwable {\n StringReader stringReader0 = new StringReader(\"trUansient\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(9, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(R(\"a\"));\n\t}", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n StringReader stringReader0 = new StringReader(\"c(jV3/!]Pa+xT5QMJ\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 66, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "int mo9692a(String[] strArr, int i);", "public int getRuns() {\n return runs;\n }", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n StringReader stringReader0 = new StringReader(\"q,rv8PAfKjbSw`H(r\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[6];\n stringReader0.read(charArray0);\n javaParserTokenManager0.getNextToken();\n assertEquals(5, javaCharStream0.bufpos);\n assertEquals(6, javaCharStream0.getEndColumn());\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n StringReader stringReader0 = new StringReader(\";{\\\"9n/s(2C'#tQX*\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char[] charArray0 = new char[4];\n stringReader0.read(charArray0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "@Test(timeout = 4000)\n public void test092() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s15IMZA$C/uXdG]R\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(13, javaCharStream0.bufpos);\n assertEquals(\"uXdG\", token0.toString());\n }", "private static int[] makeCharTable(char[] needle) {\n final int ALPHABET_SIZE = 256;\n int[] table = new int[ALPHABET_SIZE];\n for (int i = 0; i < table.length; ++i) {\n table[i] = needle.length;\n }\n for (int i = 0; i < needle.length - 1; ++i) {\n table[needle[i]] = needle.length - 1 - i;\n }\n return table;\n }" ]
[ "0.5219393", "0.49126667", "0.48292255", "0.46307358", "0.46041104", "0.4513007", "0.44876868", "0.4391619", "0.438342", "0.43162462", "0.42428946", "0.4238592", "0.42342052", "0.4233655", "0.42304686", "0.42200145", "0.42164853", "0.42096674", "0.4198868", "0.4179013", "0.41777092", "0.4174992", "0.4174866", "0.41680035", "0.41674647", "0.4145783", "0.41456544", "0.4136644", "0.41329357", "0.41320252", "0.41319126", "0.41261095", "0.4122885", "0.4117221", "0.41068503", "0.4099315", "0.40992245", "0.40958798", "0.40952364", "0.40937784", "0.4093357", "0.40901643", "0.40871885", "0.40861964", "0.4084826", "0.40846542", "0.40796", "0.40687954", "0.406515", "0.40619957", "0.40617874", "0.40609938", "0.40607622", "0.40595964", "0.405694", "0.40567052", "0.40506157", "0.4043604", "0.40383345", "0.40334764", "0.40329367", "0.40305653", "0.40296412", "0.4027501", "0.40199304", "0.40180245", "0.40174642", "0.4014207", "0.40132546", "0.40121743", "0.40121612", "0.4006013", "0.39998412", "0.39995846", "0.39928266", "0.39913133", "0.39808005", "0.39734477", "0.39725676", "0.39721057", "0.39719132", "0.39690343", "0.39679742", "0.39656758", "0.3961978", "0.39601108", "0.39570066", "0.395476", "0.39541987", "0.3950332", "0.3944414", "0.39440146", "0.394273", "0.39402834", "0.3938562", "0.39350858", "0.39344838", "0.39338574", "0.3931449", "0.39297047" ]
0.6289041
0
imeToUTF16 converts the rune index into Java characters.
static private native int imeToUTF16(long handle, int runes);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static char getFCD16FromSurrogatePair(char paramChar1, char paramChar2)\n/* */ {\n/* 401 */ return FCDTrieImpl.fcdTrie.getTrailValue(paramChar1, paramChar2);\n/* */ }", "@Test\n\tpublic void testUTF16() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16LE_FILE), \"UTF-16\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\n\t\tBufferedReader reader1 = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16BE_FILE), \"UTF-16\")\n\t\t);\n\t\tReadTestCSVFile(reader1);\n\t}", "public static String convertFromUtf32(int codePoint) {\n if (codePoint < 0x10000)\n return Character.toString((char)codePoint);\n codePoint -= 0x10000;\n return new String(new char[]{(char)((codePoint / 0x400) + 0xd800), (char)((codePoint % 0x400) + 0xdc00)});\n }", "@Test\n\tpublic void testUTF16LE() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16LE_FILE), \"UTF-16le\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "public static final String readSzUTF16LEString(IRandomAccess ra) throws IOException {\n byte[] buff = new byte[512];\n int len = 0;\n while (true) {\n byte b1 = (byte)ra.read();\n if (b1 == -1) {\n throw new EOFException(\"ERROR_EOF\");\n }\n byte b2 = (byte)ra.read();\n if (b1 == -1) {\n throw new EOFException(\"ERROR_EOF\");\n }\n\n if (b1 == 0 && b2 == 0) {\n break; // Reached the null!\n } else if (len < buff.length) {\n buff[len++] = b1;\n buff[len++] = b2;\n } else {\n byte[] buff2 = new byte[buff.length + 512];\n for (int i = 0; i < buff.length; i++) {\n buff2[i] = buff[i];\n }\n buff = buff2;\n buff[len++] = b1;\n buff[len++] = b2;\n }\n }\n return getSzUTF16LEString(buff, 0, len);\n }", "private char readUnicodeChar() throws IOException, DasmError {\n int result = 0;\n for (int i = 0; i < 4; i++) {\n readNextChar();\n if (nextChar == -1) return 0;\n\n int tmp = Character.digit((char) nextChar, 16);\n if (tmp == -1)\n throw new DasmError(\"Invalid '\\\\u' escape sequence\");\n result = (result << 4) | tmp;\n }\n return (char) result;\n }", "private static char unescapeNonASCIIChar(String str) {\n\t\treturn (char) Integer.parseInt(str.substring(2, 4), 16);\n\t}", "public int getUnicode(int index) {\n return codeToUnicode[index];\n }", "void VNItoUnicode()\r\n\t{\r\n\t\tif (html) {\r\n\t\t\tHTMLtoANSI();\r\n\t\t\tprepareMetaTag();\r\n\r\n\t\t\t// Replace fonts\r\n\t\t\tstr = replaceString(str, \"VNI Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Couri\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Centur\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Brush\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Aptima\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Aptima\", SANS_SERIF);\r\n\t\t}\r\n\r\n\t\t// Part 1\r\n\t\tstr = str.replace('\\u00D1', '\\u0110'); // DD\r\n\t\tstr = str.replace('\\u00F1', '\\u0111'); // dd\r\n\t\tstr = str.replace('\\u00D3', '\\u0128'); // I~\r\n\t\tstr = str.replace('\\u00F3', '\\u0129'); // i~\r\n\t\tstr = str.replace('\\u00D2', '\\u1ECA'); // I.\r\n\t\tstr = str.replace('\\u00F2', '\\u1ECB'); // i.\r\n\t\tstr = str.replace('\\u00C6', '\\u1EC8'); // I?\r\n\t\tstr = str.replace('\\u00E6', '\\u1EC9'); // i?\r\n\t\tstr = str.replace('\\u00CE', '\\u1EF4'); // Y.\r\n\t\tstr = str.replace('\\u00EE', '\\u1EF5'); // y.\r\n\r\n\t\t// Part 2\r\n\t\t// Transform \"O\\u00C2\" -> \"\\u00C6\" to later transform back to \"\\u00D4\" in Part 3\r\n\t\tfinal String[] VNI_char = {\"O\\u00C2\", \"o\\u00E2\", \"y\\u00F5\", \"Y\\u00D5\",\r\n\t\t\t\t\"y\\u00FB\", \"Y\\u00DB\", \"y\\u00F8\", \"Y\\u00D8\", \"\\u00F6\\u00EF\",\r\n\t\t\t\t\"\\u00D6\\u00CF\", \"\\u00F6\\u00F5\", \"\\u00D6\\u00D5\", \"\\u00F6\\u00FB\",\r\n\t\t\t\t\"\\u00D6\\u00DB\", \"\\u00F6\\u00F8\", \"\\u00D6\\u00D8\", \"\\u00F6\\u00F9\",\r\n\t\t\t\t\"\\u00D6\\u00D9\", \"u\\u00FB\", \"U\\u00DB\", \"u\\u00EF\", \"U\\u00CF\",\r\n\t\t\t\t\"\\u00F4\\u00EF\", \"\\u00D4\\u00CF\", \"\\u00F4\\u00F5\", \"\\u00D4\\u00D5\",\r\n\t\t\t\t\"\\u00F4\\u00FB\", \"\\u00D4\\u00DB\", \"\\u00F4\\u00F8\", \"\\u00D4\\u00D8\",\r\n\t\t\t\t\"\\u00F4\\u00F9\", \"\\u00D4\\u00D9\", \"o\\u00E4\", \"O\\u00C4\",\r\n\t\t\t\t\"o\\u00E3\", \"O\\u00C3\", \"o\\u00E5\", \"O\\u00C5\", \"o\\u00E0\",\r\n\t\t\t\t\"O\\u00C0\", \"o\\u00E1\", \"O\\u00C1\", \"o\\u00FB\", \"O\\u00DB\",\r\n\t\t\t\t\"o\\u00EF\", \"O\\u00CF\", \"e\\u00E4\", \"E\\u00C4\", \"e\\u00E3\",\r\n\t\t\t\t\"E\\u00C3\", \"e\\u00E5\", \"E\\u00C5\", \"e\\u00E0\", \"E\\u00C0\",\r\n\t\t\t\t\"e\\u00E1\", \"E\\u00C1\", \"e\\u00F5\", \"E\\u00D5\", \"e\\u00FB\",\r\n\t\t\t\t\"E\\u00DB\", \"e\\u00EF\", \"E\\u00CF\", \"a\\u00EB\", \"A\\u00CB\",\r\n\t\t\t\t\"a\\u00FC\", \"A\\u00DC\", \"a\\u00FA\", \"A\\u00DA\", \"a\\u00E8\",\r\n\t\t\t\t\"A\\u00C8\", \"a\\u00E9\", \"A\\u00C9\", \"a\\u00E4\", \"A\\u00C4\",\r\n\t\t\t\t\"a\\u00E3\", \"A\\u00C3\", \"a\\u00E5\", \"A\\u00C5\", \"a\\u00E0\",\r\n\t\t\t\t\"A\\u00C0\", \"a\\u00E1\", \"A\\u00C1\", \"a\\u00FB\", \"A\\u00DB\",\r\n\t\t\t\t\"a\\u00EF\", \"A\\u00CF\", \"u\\u00F5\", \"U\\u00D5\", \"a\\u00EA\",\r\n\t\t\t\t\"A\\u00CA\", \"y\\u00F9\", \"u\\u00F9\", \"u\\u00F8\", \"o\\u00F5\",\r\n\t\t\t\t\"o\\u00F9\", \"o\\u00F8\", \"e\\u00E2\", \"e\\u00F9\", \"e\\u00F8\",\r\n\t\t\t\t\"a\\u00F5\", \"a\\u00E2\", \"a\\u00F9\", \"a\\u00F8\", \"Y\\u00D9\",\r\n\t\t\t\t\"U\\u00D9\", \"U\\u00D8\", \"O\\u00D5\", \"O\\u00D9\", \"O\\u00D8\",\r\n\t\t\t\t\"E\\u00C2\", \"E\\u00D9\", \"E\\u00D8\", \"A\\u00D5\", \"A\\u00C2\",\r\n\t\t\t\t\"A\\u00D9\", \"A\\u00D8\"};\r\n\t\tfinal String[] Unicode_char = {\"\\u00C6\", \"\\u00E6\", \"\\u1EF9\", \"\\u1EF8\",\r\n\t\t\t\t\"\\u1EF7\", \"\\u1EF6\", \"\\u1EF3\", \"\\u1EF2\", \"\\u1EF1\", \"\\u1EF0\",\r\n\t\t\t\t\"\\u1EEF\", \"\\u1EEE\", \"\\u1EED\", \"\\u1EEC\", \"\\u1EEB\", \"\\u1EEA\",\r\n\t\t\t\t\"\\u1EE9\", \"\\u1EE8\", \"\\u1EE7\", \"\\u1EE6\", \"\\u1EE5\", \"\\u1EE4\",\r\n\t\t\t\t\"\\u1EE3\", \"\\u1EE2\", \"\\u1EE1\", \"\\u1EE0\", \"\\u1EDF\", \"\\u1EDE\",\r\n\t\t\t\t\"\\u1EDD\", \"\\u1EDC\", \"\\u1EDB\", \"\\u1EDA\", \"\\u1ED9\", \"\\u1ED8\",\r\n\t\t\t\t\"\\u1ED7\", \"\\u1ED6\", \"\\u1ED5\", \"\\u1ED4\", \"\\u1ED3\", \"\\u1ED2\",\r\n\t\t\t\t\"\\u1ED1\", \"\\u1ED0\", \"\\u1ECF\", \"\\u1ECE\", \"\\u1ECD\", \"\\u1ECC\",\r\n\t\t\t\t\"\\u1EC7\", \"\\u1EC6\", \"\\u1EC5\", \"\\u1EC4\", \"\\u1EC3\", \"\\u1EC2\",\r\n\t\t\t\t\"\\u1EC1\", \"\\u1EC0\", \"\\u1EBF\", \"\\u1EBE\", \"\\u1EBD\", \"\\u1EBC\",\r\n\t\t\t\t\"\\u1EBB\", \"\\u1EBA\", \"\\u1EB9\", \"\\u1EB8\", \"\\u1EB7\", \"\\u1EB6\",\r\n\t\t\t\t\"\\u1EB5\", \"\\u1EB4\", \"\\u1EB3\", \"\\u1EB2\", \"\\u1EB1\", \"\\u1EB0\",\r\n\t\t\t\t\"\\u1EAF\", \"\\u1EAE\", \"\\u1EAD\", \"\\u1EAC\", \"\\u1EAB\", \"\\u1EAA\",\r\n\t\t\t\t\"\\u1EA9\", \"\\u1EA8\", \"\\u1EA7\", \"\\u1EA6\", \"\\u1EA5\", \"\\u1EA4\",\r\n\t\t\t\t\"\\u1EA3\", \"\\u1EA2\", \"\\u1EA1\", \"\\u1EA0\", \"\\u0169\", \"\\u0168\",\r\n\t\t\t\t\"\\u0103\", \"\\u0102\", \"\\u00FD\", \"\\u00FA\", \"\\u00F9\", \"\\u00F5\",\r\n\t\t\t\t\"\\u00F3\", \"\\u00F2\", \"\\u00EA\", \"\\u00E9\", \"\\u00E8\", \"\\u00E3\",\r\n\t\t\t\t\"\\u00E2\", \"\\u00E1\", \"\\u00E0\", \"\\u00DD\", \"\\u00DA\", \"\\u00D9\",\r\n\t\t\t\t\"\\u00D5\", \"\\u00D3\", \"\\u00D2\", \"\\u00CA\", \"\\u00C9\", \"\\u00C8\",\r\n\t\t\t\t\"\\u00C3\", \"\\u00C2\", \"\\u00C1\", \"\\u00C0\"};\r\n\r\n\t\tstr = replaceString(str, VNI_char, Unicode_char);\r\n\r\n\t\t// Part 3\r\n\t\tstr = str.replace('\\u00D4', '\\u01A0'); // O+\r\n\t\tstr = str.replace('\\u00F4', '\\u01A1'); // o+\r\n\t\tstr = str.replace('\\u00D6', '\\u01AF'); // U+\r\n\t\tstr = str.replace('\\u00F6', '\\u01B0'); // u+\r\n\t\tstr = str.replace('\\u00C6', '\\u00D4'); // O^\r\n\t\tstr = str.replace('\\u00E6', '\\u00F4'); // o^\r\n\t}", "public int readFromFile(int index) throws IOException {\n FileReader file = (FileReader) filePtrs.get(index);\n int i16 = file.read(); // UTF-16 as int\n char c16 = (char)i16; // UTF-16\n if (Character.isHighSurrogate(c16))\n {\n int low_i16 = file.read(); // low surrogate UTF-16 as int\n char low_c16 = (char)low_i16;\n return Character.toCodePoint(c16, low_c16);\n }\n return i16;\n }", "@Test\n\tpublic void testUTF16BE() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16BE_FILE), \"UTF-16be\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Override // com.google.protobuf.Utf8.Processor\n public int encodeUtf8(CharSequence in, byte[] out, int offset, int length) {\n char c;\n int utf16Length = in.length();\n int i = 0;\n int limit = offset + length;\n while (i < utf16Length && i + offset < limit && (c = in.charAt(i)) < 128) {\n out[offset + i] = (byte) c;\n i++;\n }\n if (i == utf16Length) {\n return offset + utf16Length;\n }\n int j = offset + i;\n while (i < utf16Length) {\n char c2 = in.charAt(i);\n if (c2 < 128 && j < limit) {\n out[j] = (byte) c2;\n j++;\n } else if (c2 < 2048 && j <= limit - 2) {\n int j2 = j + 1;\n out[j] = (byte) ((c2 >>> 6) | 960);\n j = j2 + 1;\n out[j2] = (byte) ((c2 & '?') | 128);\n } else if ((c2 < 55296 || 57343 < c2) && j <= limit - 3) {\n int j3 = j + 1;\n out[j] = (byte) ((c2 >>> '\\f') | 480);\n int j4 = j3 + 1;\n out[j3] = (byte) (((c2 >>> 6) & 63) | 128);\n out[j4] = (byte) ((c2 & '?') | 128);\n j = j4 + 1;\n } else if (j <= limit - 4) {\n if (i + 1 != in.length()) {\n i++;\n char low = in.charAt(i);\n if (Character.isSurrogatePair(c2, low)) {\n int codePoint = Character.toCodePoint(c2, low);\n int j5 = j + 1;\n out[j] = (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE);\n int j6 = j5 + 1;\n out[j5] = (byte) (((codePoint >>> 12) & 63) | 128);\n int j7 = j6 + 1;\n out[j6] = (byte) (((codePoint >>> 6) & 63) | 128);\n j = j7 + 1;\n out[j7] = (byte) ((codePoint & 63) | 128);\n }\n }\n throw new UnpairedSurrogateException(i - 1, utf16Length);\n } else if (55296 > c2 || c2 > 57343 || (i + 1 != in.length() && Character.isSurrogatePair(c2, in.charAt(i + 1)))) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + c2 + \" at index \" + j);\n } else {\n throw new UnpairedSurrogateException(i, utf16Length);\n }\n i++;\n }\n return j;\n }", "public static int convertToUtf32(char[] text, int idx) {\n return (((text[idx] - 0xd800) * 0x400) + (text[idx + 1] - 0xdc00)) + 0x10000;\n }", "public static int convertToUtf32(String text, int idx) {\n return (((text.charAt(idx) - 0xd800) * 0x400) + (text.charAt(idx + 1) - 0xdc00)) + 0x10000;\n }", "public static void main(String[] args) throws UnsupportedEncodingException {\n\t\tString s = \"幕课ABC\";\n\t\tbyte[] bytes = s.getBytes();//转换成字节序列 用的是项目默认的编码\n\t\tfor (byte b : bytes) {\n\t\t\t//把字节(转换成了int)以16进制的方式显示\n\t\t\tSystem.out.print(Integer.toHexString(b & 0xff)+\" \");\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tbyte[] bytes2 = s.getBytes(\"gbk\");\n\t\t//GBK编码 中文占用两个字节 英文占用一个字节\n\t\tfor (byte b : bytes2) {\n\t\t\t//把字节(转换成了int)以16进制的方式显示\n\t\t\tSystem.out.print(Integer.toHexString(b & 0xff)+\" \");\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tbyte[] bytes3 = s.getBytes(\"utf-8\");\n\t\t//UTF-8编码 中文占用3个字节 英文占用1个字节\n\t\tfor ( byte b : bytes3) {\n\t\t\tSystem.out.print(Integer.toHexString(b & 0xff)+\" \");\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\t\n\t\t/**\n\t\t * Java是双字节编码 就是一个字符占用两个字节 UTF-16BE编码\n\t\t */\n\t\tbyte[] bytes4 = s.getBytes(\"utf-16be\");\n\t\tfor (byte b : bytes4) {\n\t\t\tSystem.out.print(Integer.toHexString(b & 0xff)+ \" \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t/**\n\t\t * 当你的字节序列是某种编码时,若想把字节序列转化为字符串 要用相同的编码\n\t\t */\n\t\tString str1 = new String(bytes4);\n\t\tSystem.out.println(str1);\n\t\tString str2 = new String(bytes4,\"utf-16be\");\n\t\tSystem.out.println(str2);\n\t\t\n\t\t/**\n\t\t * 文本文件就是字节序列 \n\t\t * 可以使任意序列的字节序列\n\t\t * 如果在中文机器上直接创建文本文件 那么该文本文件只认识ASNI编码\n\t\t */\n\t}", "int readS16LE(String name)\n throws IOException, EOFException;", "private int convertUnicodeLiteralToChar(int n) {\n\n final int START_STATE = 1;\n final int MODIFIED_DATA_STATE = START_STATE + 1;\n final int START_OF_ESCAPE = MODIFIED_DATA_STATE + 1;\n final int UNICODE_NIBBLE1 = START_OF_ESCAPE + 1;\n final int UNICODE_NIBBLE2 = UNICODE_NIBBLE1 + 1;\n final int UNICODE_NIBBLE3 = UNICODE_NIBBLE2 + 1;\n final int UNICODE_NIBBLE4 = UNICODE_NIBBLE3 + 1;\n\n int state = START_STATE;\n boolean data_buffer_modified = false;\n\n int ucount = 0;\n\n char u1 = 0, u2 = 0, u3 = 0, c = 0;\n\n int i = 0, j = 0;\n while (i < n) {\n c = data[i++];\n switch (state) {\n case START_STATE:\n if (c == '\\\\') {\n j = i - 1;\n state = START_OF_ESCAPE;\n }\n break;\n case MODIFIED_DATA_STATE:\n if (c != '\\\\') {\n data[j++] = c;\n } else {\n state = START_OF_ESCAPE;\n }\n break;\n case START_OF_ESCAPE:\n if (c != 'u') {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n } else {\n ucount = 1;\n state = UNICODE_NIBBLE1;\n }\n break;\n case UNICODE_NIBBLE1:\n if (isHexadecimalDigit(c)) {\n u1 = c;\n state = UNICODE_NIBBLE2;\n } else if (c == 'u') {\n ucount++;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE2:\n if (isHexadecimalDigit(c)) {\n u2 = c;\n state = UNICODE_NIBBLE3;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE3:\n if (isHexadecimalDigit(c)) {\n u3 = c;\n state = UNICODE_NIBBLE4;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE4:\n if (isHexadecimalDigit(c)) {\n if (!data_buffer_modified) {\n data_buffer_modified = true;\n }\n data[j++] = (char) ((((((map[u1] << 4) + map[u2]) << 4) + map[u3]) << 4) + map[c]);\n state = MODIFIED_DATA_STATE;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n }\n }\n // afterthoughts\n if (data_buffer_modified) {\n switch (state) {\n case START_OF_ESCAPE:\n data[j++] = '\\\\';\n break;\n case UNICODE_NIBBLE1:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n break;\n case UNICODE_NIBBLE2:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n break;\n case UNICODE_NIBBLE3:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n break;\n case UNICODE_NIBBLE4:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n break;\n }\n n = j;\n }\n return n;\n }", "public String readUtf16String(ByteBuffer byteBuffer) {\n try {\n return new String(NIOUtils.toArray(byteBuffer), \"utf-16\");\n } catch (UnsupportedEncodingException unused) {\n return null;\n }\n }", "public static void main(String[] args) {\n\n testUnicode();\n\n String str = \"1024\";\n // int num = Integer.parseInt(str);\n int num = Integer.valueOf(str, 16);// ??str?��????????16????????????????int\n System.out.println(num);\n\n String s1 = \"???\";\n try {\n String s2 = new String(s1.getBytes(\"GB2312\"), \"ISO-8859-1\");\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n System.out.println(str.substring(1));\n\n System.out.println(reverse(str));\n }", "int readS16BE(String name)\n throws IOException, EOFException;", "public abstract char read_wchar();", "private char hexaToChar(int[] i){\n char c;\n String h = \"\" + Integer.toHexString(i[0]) + Integer.toHexString(i[1]);\n c = (char) Integer.parseInt(h, 16);\n return c;\n }", "abstract public int get(int codePoint);", "char toChar(int index) {\n if (index >= 0 && index < size()) {\n return _chars[index];\n } else {\n throw new EnigmaException(\"Index out of bounds.\");\n }\n }", "public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }", "abstract public int getFromU16SingleLead(char c);", "protected String getCharValue(String name) throws UnsupportedEncodingException {\r\n\r\n APICharFieldDescription field = getCharFieldDescription(name);\r\n return getCharConverter().byteArrayToString(bytes, getAbsoluteFieldOffset(field), field.getLength());\r\n }", "public static String unicodeEscaped(char ch) {\n/* 353 */ if (ch < '\\020')\n/* 354 */ return \"\\\\u000\" + Integer.toHexString(ch); \n/* 355 */ if (ch < 'Ā')\n/* 356 */ return \"\\\\u00\" + Integer.toHexString(ch); \n/* 357 */ if (ch < 'က') {\n/* 358 */ return \"\\\\u0\" + Integer.toHexString(ch);\n/* */ }\n/* 360 */ return \"\\\\u\" + Integer.toHexString(ch);\n/* */ }", "@AutoEscape\n\tpublic String getNguoiChuTri();", "private static String getUniNameOfCodePoint(int codePoint) {\n/* 111 */ String hex = Integer.toString(codePoint, 16).toUpperCase(Locale.US);\n/* 112 */ switch (hex.length()) {\n/* */ \n/* */ case 1:\n/* 115 */ return \"uni000\" + hex;\n/* */ case 2:\n/* 117 */ return \"uni00\" + hex;\n/* */ case 3:\n/* 119 */ return \"uni0\" + hex;\n/* */ } \n/* 121 */ return \"uni\" + hex;\n/* */ }", "private\n static\n void\n appendUnicodeEscape( char ch,\n StringBuilder sb )\n {\n sb.append( \"\\\\u\" );\n\n String numStr = Integer.toString( ch, 16 );\n\n if ( ch <= '\\u000F' ) sb.append( \"000\" );\n else if ( ch <= '\\u00FF' ) sb.append( \"00\" );\n else if ( ch <= '\\u0FFF' ) sb.append( \"0\" );\n\n sb.append( Integer.toString( ch, 16 ) );\n }", "public static String convertText(String s) {\r\n StringCharacterIterator stringcharacteriterator = new StringCharacterIterator(s);\r\n StringBuffer stringbuffer = new StringBuffer();\r\n int ai[] = new int[s.length()];\r\n int i = 0;\r\n int j = 0;\r\n for(char c = stringcharacteriterator.first(); c != '\\uFFFF'; c = stringcharacteriterator.next())\r\n if(c == '%')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c != '%')\r\n {\r\n stringbuffer.append('%');\r\n c = stringcharacteriterator.previous();\r\n } else\r\n {\r\n c = stringcharacteriterator.next();\r\n switch(c)\r\n {\r\n case 37: // '%'\r\n stringbuffer.append('%');\r\n break;\r\n\r\n case 80: // 'P'\r\n case 112: // 'p'\r\n stringbuffer.append('\\361');\r\n break;\r\n\r\n case 67: // 'C'\r\n case 99: // 'c'\r\n stringbuffer.append('\\355');\r\n break;\r\n\r\n case 68: // 'D'\r\n case 100: // 'd'\r\n stringbuffer.append('\\u00b0');\r\n break;\r\n\r\n case 85: // 'U'\r\n case 117: // 'u'\r\n ai[stringbuffer.length()] ^= 1;\r\n i++;\r\n break;\r\n\r\n case 79: // 'O'\r\n case 111: // 'o'\r\n ai[stringbuffer.length()] ^= 2;\r\n j++;\r\n break;\r\n\r\n default:\r\n if(c >= '0' && c <= '9')\r\n {\r\n int k = 3;\r\n char c1 = (char)(c - 48);\r\n for(c = stringcharacteriterator.next(); c >= '0' && c <= '9' && --k > 0; c = stringcharacteriterator.next())\r\n c1 = (char)(10 * c1 + (c - 48));\r\n\r\n stringbuffer.append(c1);\r\n }\r\n c = stringcharacteriterator.previous();\r\n break;\r\n }\r\n }\r\n } else\r\n if(c == '^')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c == ' ')\r\n stringbuffer.append('^');\r\n } else\r\n {\r\n stringbuffer.append(c);\r\n }\r\n s = Unicode.char2DOS437(stringbuffer, 2, '?');\r\n\r\n\t\tString ss = s;\r\n\t\treturn ss;\r\n\t}", "public static String unescapeUnicode(String str) throws IOException {\n StringBuffer sbuf = new StringBuffer();\n if (str == null) {\n return null;\n }\n int sz = str.length();\n StringBuffer unicode = new StringBuffer(4);\n boolean hadSlash = false;\n boolean inUnicode = false;\n for (int i = 0; i < sz; i++) {\n char ch = str.charAt(i);\n if (inUnicode) {\n // if in unicode, then we're reading unicode\n // values in somehow\n unicode.append(ch);\n if (unicode.length() == 4) {\n // unicode now contains the four hex digits\n // which represents our unicode character\n try {\n int value = Integer.parseInt(unicode.toString(), 16);\n sbuf.append((char) value);\n unicode.setLength(0);\n inUnicode = false;\n hadSlash = false;\n } catch (NumberFormatException nfe) {\n // simply ignore it.\n sbuf.append(unicode);\n }\n }\n continue;\n }\n if (hadSlash) {\n // handle an escaped value\n hadSlash = false;\n switch (ch) {\n case '\\\\':\n sbuf.append('\\\\');\n break;\n case '\\'':\n sbuf.append('\\'');\n break;\n case '\\\"':\n sbuf.append('\"');\n break;\n case 'r':\n sbuf.append('\\r');\n break;\n case 'f':\n sbuf.append('\\f');\n break;\n case 't':\n sbuf.append('\\t');\n break;\n case 'n':\n sbuf.append('\\n');\n break;\n case 'b':\n sbuf.append('\\b');\n break;\n case 'u':\n {\n // uh-oh, we're in unicode country....\n inUnicode = true;\n break;\n }\n default :\n sbuf.append(ch);\n break;\n }\n continue;\n } else if (ch == '\\\\') {\n hadSlash = true;\n continue;\n }\n sbuf.append(ch);\n }\n if (hadSlash) {\n // then we're in the weird case of a \\ at the end of the\n // string, let's output it anyway.\n sbuf.append('\\\\');\n }\n return sbuf.toString();\n }", "@Test\n @SuppressWarnings(\"deprecation\")\n public void oldPassphraseAPIIsActuallyUTF16Key() throws SecureCellException {\n SecureCell cellOld = new SecureCell(\"day 56 of the Q\", SecureCell.MODE_SEAL);\n SecureCell.Seal cellNew = SecureCell.SealWithKey(\"day 56 of the Q\".getBytes(StandardCharsets.UTF_16));\n byte[] message = \"All your base are belong to us!\".getBytes(StandardCharsets.UTF_8);\n\n byte[] encryptedOld = cellOld.protect(\"\", message).getProtectedData();\n byte[] encryptedNew = cellNew.encrypt(message);\n\n byte[] decryptedOld = cellNew.decrypt(encryptedOld);\n byte[] decryptedNew = cellOld.unprotect(\"\", new SecureCellData(encryptedNew, null));\n\n assertArrayEquals(message, decryptedOld);\n assertArrayEquals(message, decryptedNew);\n }", "public static String toAscii(String str)\r\n {\r\n if (TextUtil.isEmpty(str))\r\n return str;\r\n \r\n Charset charset = Charset.forName(\"UTF-16BE\");\r\n StringBuilder buf = new StringBuilder();\r\n for (int i = 0; i < str.length(); i++)\r\n {\r\n char c = str.charAt(i);\r\n if (c < 256 && c >= 0)\r\n {\r\n buf.append(c);\r\n }\r\n else\r\n {\r\n buf.append(\"\\\\u\").append(toHexString(new String(new char[] {c}).getBytes(charset)).toLowerCase());\r\n }\r\n }\r\n return buf.toString();\r\n }", "static void write16( int word, OutputStream out )\n throws IOException\n {\n out.write( word );\n out.write( word >> 8 );\n }", "public static void main(String[] args) {\n char myChar = '\\u00A9';\n System.out.println(\"Unicode is : \" + myChar);\n char myReg = '\\u00AE';\n System.out.println(\"Unicode for regiter : \" + myReg);\n }", "public interface UnicodeConstants {\n\n /** Refers to unnormalized Unicode: */\n static final byte NORM_UNNORMALIZED = 0;\n /** Refers to Normalization Form C: */\n static final byte NORM_NFC = 1;\n /** Refers to Normalization Form KC: */\n static final byte NORM_NFKC = 2;\n /** Refers to Normalization Form D: */\n static final byte NORM_NFD = 3;\n /** Refers to Normalization Form KD: */\n static final byte NORM_NFKD = 4;\n /** Refers to Normalization Form THDL, which is NFD except for\n <code>U+0F77</code> and <code>U+0F79</code>, which are\n normalized according to NFKD. This is the One True\n Normalization Form, as it leaves no precomposed codepoints and\n does not normalize <code>U+0F0C</code>. */\n static final byte NORM_NFTHDL = 5;\n\n\n /** for those times when you need a char to represent a\n non-existent codepoint */\n static final char EW_ABSENT = '\\u0000';\n\n\n //\n // the thirty consonants, in alphabetical order:\n //\n\n /** first letter of the alphabet: */\n static final char EWC_ka = '\\u0F40';\n\n static final char EWC_kha = '\\u0F41';\n static final char EWC_ga = '\\u0F42';\n static final char EWC_nga = '\\u0F44';\n static final char EWC_ca = '\\u0F45';\n static final char EWC_cha = '\\u0F46';\n static final char EWC_ja = '\\u0F47';\n static final char EWC_nya = '\\u0F49';\n static final char EWC_ta = '\\u0F4F';\n static final char EWC_tha = '\\u0F50';\n static final char EWC_da = '\\u0F51';\n static final char EWC_na = '\\u0F53';\n static final char EWC_pa = '\\u0F54';\n static final char EWC_pha = '\\u0F55';\n static final char EWC_ba = '\\u0F56';\n static final char EWC_ma = '\\u0F58';\n static final char EWC_tsa = '\\u0F59';\n static final char EWC_tsha = '\\u0F5A';\n static final char EWC_dza = '\\u0F5B';\n static final char EWC_wa = '\\u0F5D';\n static final char EWC_zha = '\\u0F5E';\n static final char EWC_za = '\\u0F5F';\n /** Note the irregular name. The Extended Wylie representation is\n <code>'a</code>. */\n static final char EWC_achung = '\\u0F60';\n static final char EWC_ya = '\\u0F61';\n static final char EWC_ra = '\\u0F62';\n static final char EWC_la = '\\u0F63';\n static final char EWC_sha = '\\u0F64';\n static final char EWC_sa = '\\u0F66';\n static final char EWC_ha = '\\u0F67';\n /** achen, the 30th consonant (and, some say, the fifth vowel) DLC NOW FIXME: rename to EWC_achen */\n static final char EWC_a = '\\u0F68';\n\n\n /** In the word for father, \"pA lags\", there is an a-chung (i.e.,\n <code>\\u0F71</code>). This is the constant for that little\n guy. */\n static final char EW_achung_vowel = '\\u0F71';\n\n\n /* Four of the five vowels, some say, or, others say, \"the four\n vowels\": */\n /** \"gi gu\", the 'i' sound in the English word keep: */\n static final char EWV_i = '\\u0F72';\n /** \"zhabs kyu\", the 'u' sound in the English word tune: */\n static final char EWV_u = '\\u0F74';\n /** \"'greng bu\" (also known as \"'greng po\", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */\n static final char EWV_e = '\\u0F7A';\n /** \"na ro\", the 'o' sound in the English word bone: */\n static final char EWV_o = '\\u0F7C';\n\n\n /** subscribed form of EWC_wa, also known as wa-btags */\n static final char EWSUB_wa_zur = '\\u0FAD';\n /** subscribed form of EWC_ya */\n static final char EWSUB_ya_btags = '\\u0FB1';\n /** subscribed form of EWC_ra */\n static final char EWSUB_ra_btags = '\\u0FB2';\n /** subscribed form of EWC_la */\n static final char EWSUB_la_btags = '\\u0FB3';\n}", "String charWrite();", "public static String getUnicode(char ch) {\n\t\treturn \"\\\\u\" + Integer.toHexString(ch | 0x10000).substring(1);\n\t}", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "int getI16();", "public String readUTF() throws IOException;", "public final void mo9808a(String str, C3703c cVar) {\n f9103b.log(Level.WARNING, \"Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!\", cVar);\n byte[] bytes = str.getBytes(C3594b0.f8972a);\n try {\n mo9814c(bytes.length);\n mo9652a(bytes, 0, bytes.length);\n } catch (IndexOutOfBoundsException e) {\n throw new C3674d(e);\n } catch (C3674d e2) {\n throw e2;\n }\n }", "public static int convertToUtf32(char highSurrogate, char lowSurrogate) {\n return (((highSurrogate - 0xd800) * 0x400) + (lowSurrogate - 0xdc00)) + 0x10000;\n }", "public static final String getSzUTF16LEString(byte[] buff, int offset, int len) {\n try {\n if (len == -1 || (offset + len) > buff.length) {\n len = 0;\n for (int i = offset; i < buff.length;) {\n byte b1 = buff[i++];\n byte b2 = buff[i++];\n if (b1 == 0 && b2 == 0) {\n break;\n } else {\n len += 2;\n }\n }\n } else {\n //\n // Strip any trailing NULLs before constructing the string\n //\n for (int i = offset + len; i > (offset + 2);) {\n byte b2 = buff[--i];\n byte b1 = buff[--i];\n if (b1 == 0 && b2 == 0) {\n len -= 2;\n }\n }\n }\n return new String(buff, offset, len, StringTools.UTF16LE);\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n return null;\n }", "public abstract int encodeUtf8(CharSequence charSequence, byte[] bArr, int i, int i2);", "char toChar(int index) {\n return _chars.charAt(index);\n }", "char toChar(int index) {\n return _letters.charAt(index);\n }", "char toChar(int index) {\n if (index > _chars.length() || index < 0) {\n throw new EnigmaException(\"Alpha.toChar: Index out of range.\");\n }\n return _chars.charAt(index);\n }", "static boolean isFCD16OfTibetanCompositeVowel(int fcd16) {\n return fcd16 == 0x8182 || fcd16 == 0x8184;\n }", "public int getFCD16(int i) {\n return this.nfcImpl.getFCD16(i);\n }", "public char charAt(int index);", "private static int codePointToStringIndex(String string, int index, int cpLength) {\n if ( index < 0 )\n return 0;\n\n return (index > cpLength)\n ? string.length()\n : string.offsetByCodePoints(0, index);\n }", "@Test\r\n\tpublic void testUnicodeCharacterDisplaying() {\r\n\t\tassertVisualEditorContainsNodeWithValue(webBrowser, UnicodeCharacterDisplayingTest.UNICODE_TEXT,\r\n\t\t\t\tUnicodeCharacterDisplayingTest.TEST_PAGE_NAME);\r\n\t}", "public static String isoToUTF8(String value) throws Exception{\n \treturn value;\n\t}", "public static String fromEscapedUnicode(String escapedUnicodeString)\n\t{\n\t\tint off = 0;\n\t\tchar[] in = escapedUnicodeString.toCharArray();\n\t\tint len = in.length;\n\t\tchar[] convtBuf = new char[len];\n\n\t\tif (convtBuf.length < len)\n\t\t{\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0)\n\t\t\t{\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end)\n\t\t{\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\')\n\t\t\t{\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u')\n\t\t\t\t{\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase '0' :\n\t\t\t\t\t\t\tcase '1' :\n\t\t\t\t\t\t\tcase '2' :\n\t\t\t\t\t\t\tcase '3' :\n\t\t\t\t\t\t\tcase '4' :\n\t\t\t\t\t\t\tcase '5' :\n\t\t\t\t\t\t\tcase '6' :\n\t\t\t\t\t\t\tcase '7' :\n\t\t\t\t\t\t\tcase '8' :\n\t\t\t\t\t\t\tcase '9' :\n\t\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'a' :\n\t\t\t\t\t\t\tcase 'b' :\n\t\t\t\t\t\t\tcase 'c' :\n\t\t\t\t\t\t\tcase 'd' :\n\t\t\t\t\t\t\tcase 'e' :\n\t\t\t\t\t\t\tcase 'f' :\n\t\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'A' :\n\t\t\t\t\t\t\tcase 'B' :\n\t\t\t\t\t\t\tcase 'C' :\n\t\t\t\t\t\t\tcase 'D' :\n\t\t\t\t\t\t\tcase 'E' :\n\t\t\t\t\t\t\tcase 'F' :\n\t\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char)value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\t}\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\t}\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\t}\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t{\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "protected abstract int getSurrogateOffset(char paramChar1, char paramChar2);", "private static char nibbleToChar(byte nibble) {\n\t\tif (nibble <= 9) {\n\t\t\treturn (char) ('0' + nibble);\n\t\t}\n\t\treturn (char) ('a' + nibble - 10);\n\t}", "int readS16LE()\n throws IOException, EOFException;", "private void m25387a(Canvas canvas, String str, int i, int i2) {\n canvas.drawText(str, (((float) i) - this.f20604O.measureText(str)) * 0.5f, (((float) i2) * 0.5f) - ((this.f20604O.ascent() + this.f20604O.descent()) * 0.5f), this.f20604O);\n }", "public com.google.protobuf.ByteString\n getField1682Bytes() {\n java.lang.Object ref = field1682_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1682_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static char demangle2(char char1, char char2) {\n switch (char1 << 16 | char2) {\n case 'A' << 16 | 'm': return '&';\n case 'A' << 16 | 't': return '@';\n case 'C' << 16 | 'l': return ':';\n case 'C' << 16 | 'm': return ',';\n case 'D' << 16 | 'q': return '\\\"';\n case 'D' << 16 | 't': return '.';\n case 'E' << 16 | 'q': return '=';\n case 'E' << 16 | 'x': return '!';\n case 'G' << 16 | 'r': return '>';\n case 'L' << 16 | 'B': return '[';\n case 'L' << 16 | 'C': return '{';\n case 'L' << 16 | 'P': return '(';\n case 'L' << 16 | 's': return '<';\n case 'M' << 16 | 'c': return '%';\n case 'M' << 16 | 'n': return '-';\n case 'N' << 16 | 'm': return '#';\n case 'P' << 16 | 'c': return '%';\n case 'P' << 16 | 'l': return '+';\n case 'Q' << 16 | 'u': return '?';\n case 'R' << 16 | 'B': return ']';\n case 'R' << 16 | 'C': return '}';\n case 'R' << 16 | 'P': return ')';\n case 'S' << 16 | 'C': return ';';\n case 'S' << 16 | 'l': return '/';\n case 'S' << 16 | 'q': return '\\\\';\n case 'S' << 16 | 't': return '*';\n case 'T' << 16 | 'l': return '~';\n case 'U' << 16 | 'p': return '^';\n case 'V' << 16 | 'B': return '|';\n }\n return (char) (-1);\n }", "protected void setCharValue(String name, String value) throws CharConversionException, UnsupportedEncodingException {\r\n\r\n APICharFieldDescription field = getCharFieldDescription(name);\r\n getCharConverter().stringToByteArray(StringHelper.getFixLength(value, field.getLength()), getBytes(), getAbsoluteFieldOffset(field),\r\n field.getLength());\r\n }", "private float renderChar(char renderChar, boolean italic) {\n if (renderChar == 160) {\n return 4.0F; // forge: display nbsp as space. MC-2595\n }\n \n if (renderChar == ' ') {\n return 4.0F;\n } else {\n int charIndex = \"\\u00c0\\u00c1\\u00c2\\u00c8\\u00ca\\u00cb\\u00cd\\u00d3\\u00d4\\u00d5\\u00da\\u00df\\u00e3\\u00f5\\u011f\\u0130\\u0131\\u0152\\u0153\\u015e\\u015f\\u0174\\u0175\\u017e\\u0207\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000 !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u0000\\u00c7\\u00fc\\u00e9\\u00e2\\u00e4\\u00e0\\u00e5\\u00e7\\u00ea\\u00eb\\u00e8\\u00ef\\u00ee\\u00ec\\u00c4\\u00c5\\u00c9\\u00e6\\u00c6\\u00f4\\u00f6\\u00f2\\u00fb\\u00f9\\u00ff\\u00d6\\u00dc\\u00f8\\u00a3\\u00d8\\u00d7\\u0192\\u00e1\\u00ed\\u00f3\\u00fa\\u00f1\\u00d1\\u00aa\\u00ba\\u00bf\\u00ae\\u00ac\\u00bd\\u00bc\\u00a1\\u00ab\\u00bb\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255d\\u255c\\u255b\\u2510\\u2514\\u2534\\u252c\\u251c\\u2500\\u253c\\u255e\\u255f\\u255a\\u2554\\u2569\\u2566\\u2560\\u2550\\u256c\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256b\\u256a\\u2518\\u250c\\u2588\\u2584\\u258c\\u2590\\u2580\\u03b1\\u03b2\\u0393\\u03c0\\u03a3\\u03c3\\u03bc\\u03c4\\u03a6\\u0398\\u03a9\\u03b4\\u221e\\u2205\\u2208\\u2229\\u2261\\u00b1\\u2265\\u2264\\u2320\\u2321\\u00f7\\u2248\\u00b0\\u2219\\u00b7\\u221a\\u207f\\u00b2\\u25a0\\u0000\".indexOf(renderChar);\n return charIndex != -1 && !super.getUnicodeFlag() ? super.renderDefaultChar(charIndex, italic) : super.renderUnicodeChar(renderChar, italic);\n }\n }", "private static native String getNameImpl(int codePoint);", "public String getUnicode(Integer value)\n {\n //Search for char\n Integer[] auxArr = new Integer[2];\n\n for (Integer ix = 0; ix < EBCDICTOASCII.length; ++ix)\n if (EBCDICTOASCII[ix] == value)\n {\n\n Integer aux = EBCDICTOASCIIUNICODE[ix];\n auxArr[0] = aux;\n auxArr[1] = 0;\n\n if (aux == 0)\n return (\" \");\n\n return (String.valueOf(aux));\n\n }\n\n return (\" \");\n }", "public java.lang.String getField1682() {\n java.lang.Object ref = field1682_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1682_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static String utf8strToHexStr_Slash_U(String multlangStr) throws Exception {\n\t\tProperties profile = new Properties();\n\t\tint strLen = multlangStr.length();\n\t\tString resultStr = \"\";\n\t\tfor (int i= 0; i< strLen ; i++) {\n\t\t\tint intChar = multlangStr.codePointAt(i);\n\t\t\tString strChar = \"\\\\u\" + Integer.toHexString(intChar) ;\n\t\t\tresultStr = resultStr + strChar;\n\t\t}\n\t\treturn resultStr;\n\t}", "public YangUInt16 getIndexValue() throws JNCException {\n return (YangUInt16)getValue(\"index\");\n }", "public static String native2ascii(String text){\r\n\t\tif(text == null) return null ;\r\n\t\t\r\n\t\tchar[] myBuffer = text.toCharArray() ;\r\n StringBuffer sb = new StringBuffer() ;\r\n \r\n for (int i = 0; i < myBuffer.length; i++) {\r\n \tchar c = myBuffer[i] ;\r\n Character.UnicodeBlock ub = UnicodeBlock.of(c) ;\r\n \r\n if(ub == UnicodeBlock.BASIC_LATIN){\r\n //英文及数字等\r\n sb.append(c) ;\r\n }else{\r\n //汉字\r\n String hexS = Integer.toHexString(c & 0xffff) ;\r\n sb.append(\"\\\\u\") ;\r\n \r\n if(hexS.length() < 4){\r\n \tswitch(hexS.length()){\r\n\t \tcase 1:\r\n\t \t\tsb.append(\"000\") ;\r\n\t \t\tbreak ;\r\n\t \tcase 2:\r\n\t \t\tsb.append(\"00\") ;\r\n\t \t\tbreak ;\r\n\t \tcase 3:\r\n\t \t\tsb.append('0') ;\r\n \t}\r\n }\r\n \r\n sb.append(hexS.toLowerCase()) ;\r\n }\r\n }\r\n \r\n return sb.toString() ;\r\n\t}", "private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }", "private String m1649e(CharSequence charSequence, TextDirectionHeuristicCompat textDirectionHeuristicCompat) {\n boolean isRtl = textDirectionHeuristicCompat.isRtl(charSequence, 0, charSequence.length());\n if (!this.f2509a && (isRtl || m1645a(charSequence) == 1)) {\n return f2505e;\n }\n if (this.f2509a) {\n return (!isRtl || m1645a(charSequence) == -1) ? f2506f : \"\";\n }\n return \"\";\n }", "public char charAt(int charOffset);", "private char resolveIntToChar(int i) {\n switch (i) {\n case 1:\n return 'a';\n case 2:\n return 'b';\n case 3:\n return 'c';\n case 4:\n return 'd';\n case 5:\n return 'e';\n case 6:\n return 'f';\n case 7:\n return 'g';\n case 8:\n return 'h';\n default:\n return 'x';\n }\n }", "public void onClick(View v) {\n Log.d(\"test\", \"Bengali Unicode\" + type);\n try\n {\n String str=\"\";\n //str = edit.getText().toString();\n //str = StringEscapeUtils.unescapeJava(str);\n //txt1.setText(d);\n\n str= \"\\u0017\\u0016\\u0007\";//\"\\u0986\\u09AE\\u09Bf\";\n String Fname= \"fonts/Siyamrupali_1_01.ttf\";\n txt1.setTypeface(Typeface.createFromAsset(getAssets(),Fname));\n Log.d(\"data\",\"data:::::\"+str);\n txt1.setText(str);\n }\n catch(Exception ex)\n {\n txt1.setText(\"font cannot load: \"+ ex.toString() );\n }\n\n }", "public static String\n adnStringFieldToString(byte[] data, int offset, int length) {\n if (length == 0) {\n return \"\";\n }\n if (length >= 1) {\n if (data[offset] == (byte) 0x80) {\n int ucslen = (length - 1) / 2;\n String ret = null;\n\n try {\n ret = new String(data, offset + 1, ucslen * 2, \"utf-16be\");\n } catch (UnsupportedEncodingException ex) {\n Rlog.e(LOG_TAG, \"implausible UnsupportedEncodingException\",\n ex);\n }\n\n if (ret != null) {\n // trim off trailing FFFF characters\n\n ucslen = ret.length();\n while (ucslen > 0 && ret.charAt(ucslen - 1) == '\\uFFFF')\n ucslen--;\n\n return ret.substring(0, ucslen);\n }\n }\n }\n\n boolean isucs2 = false;\n char base = '\\0';\n int len = 0;\n\n if (length >= 3 && data[offset] == (byte) 0x81) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 3)\n len = length - 3;\n\n base = (char) ((data[offset + 2] & 0xFF) << 7);\n offset += 3;\n isucs2 = true;\n } else if (length >= 4 && data[offset] == (byte) 0x82) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 4)\n len = length - 4;\n\n base = (char) (((data[offset + 2] & 0xFF) << 8) |\n (data[offset + 3] & 0xFF));\n offset += 4;\n isucs2 = true;\n }\n\n if (isucs2) {\n StringBuilder ret = new StringBuilder();\n\n while (len > 0) {\n // UCS2 subset case\n\n if (data[offset] < 0) {\n ret.append((char) (base + (data[offset] & 0x7F)));\n offset++;\n len--;\n }\n\n // GSM character set case\n\n int count = 0;\n while (count < len && data[offset + count] >= 0)\n count++;\n\n ret.append(GsmAlphabet.gsm8BitUnpackedToString(data,\n offset, count));\n\n offset += count;\n len -= count;\n }\n\n return ret.toString();\n }\n\n Resources resource = Resources.getSystem();\n String defaultCharset = \"\";\n try {\n defaultCharset =\n resource.getString(com.android.internal.R.string.gsm_alphabet_default_charset);\n } catch (NotFoundException e) {\n // Ignore Exception and defaultCharset is set to a empty string.\n }\n return GsmAlphabet.gsm8BitUnpackedToString(data, offset, length, defaultCharset.trim());\n }", "public java.lang.String getField1682() {\n java.lang.Object ref = field1682_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1682_ = s;\n return s;\n }\n }", "public char getUnicode() {\n return unicode;\n }", "private static String convertEscapeChar(String escapeCharacter)\t{\n\t\tString charCode = escapeCharacter.substring(escapeCharacter.indexOf(\"#\")+1);\n\t\treturn \"\" + (char) Integer.parseInt(charCode);\n\t}", "private static char toHexChar(final int number) {\n\t\tif (number >= 0x00 && number <= 0x09) {\n\t\t\t// ASCII codes from 0 to 9\n\t\t\treturn (char) (0x30 + number);\n\t\t} else if (number >= 0x0a && number <= 0x0f) {\n\t\t\t// ASCII codes from 'a' to 'f'\n\t\t\treturn (char) (0x57 + number);\n\t\t}\n\t\treturn 0;\n\t}", "@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }", "final void m22612a(String str, zzyn zzyn) {\n f17549b.logp(Level.WARNING, \"com.google.protobuf.CodedOutputStream\", \"inefficientWriteStringNoTag\", \"Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!\", zzyn);\n str = str.getBytes(zzvo.f10281a);\n try {\n mo4376b(str.length);\n mo4374a(str, null, str.length);\n } catch (Throwable e) {\n throw new zzc(e);\n } catch (String str2) {\n throw str2;\n }\n }", "public com.google.protobuf.ByteString\n getField1682Bytes() {\n java.lang.Object ref = field1682_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1682_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract void read_wchar_array(char[] value, int offset, int\nlength);", "public void conversionTest(){\n String test = \"ABCDEFabcdef123!#\";\n for(int k=0; k < test.length(); k++){\n char ch = test.charAt(k);\n char uch = Character.toUpperCase(ch);\n char lch = Character.toLowerCase(ch);\n System.out.println(ch+\" \"+uch+\" \"+lch);\n }\n }", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "public char index2letter(int i) { \t\n \treturn (char) (i + 'A');\n }", "String readUTF(byte data[], int off, int len)\n {\n StringBuffer buf = new StringBuffer();\n for (int end = off + len; off < end;)\n {\n int ch = data[off++] & 0xFF;\n switch (ch >> 4)\n {\n case 0:\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n case 6:\n case 7:\n // 0xxxxxxx\n break;\n case 12:\n case 13:\n if (off >= len)\n {\n return null;\n }\n // 110x xxxx 10xx xxxx\n ch = ((ch & 0x1F) << 6) | (data[off++] & 0x3F);\n break;\n case 14:\n if (off + 2 >= len)\n {\n return null;\n }\n // 1110 xxxx 10xx xxxx 10xx xxxx\n ch = ((ch & 0x0f) << 12) | ((data[off++] & 0x3F) << 6) | (data[off++] & 0x3F);\n break;\n default:\n if (off + 1 >= len)\n {\n return null;\n }\n // 10xx xxxx, 1111 xxxx\n ch = ((ch & 0x3F) << 4) | (data[off++] & 0x0f);\n break;\n }\n buf.append((char) ch);\n }\n return buf.toString();\n }", "public static void main(String[] args) throws IOException {\n InputStream bS = new ByteArrayInputStream(\"Ы\".getBytes());\n int b = 0;\n while ((b = bS.read()) != -1)\n System.out.print(b + \" \");\n System.out.println(\"\\n\");\n\n for (byte c : \"Ы\".getBytes())\n System.out.print((c^-1 << 8) + \" \");\n System.out.println(\"\\n\");\n\n String s = \"Ы\";\n byte[] b1 = s.getBytes();\n for (int i = 0; i < b1.length; i++ ) {\n System.out.print(((int) b1[i] ^ -1 << 8) + \" \");\n }\n Writer writer = new OutputStreamWriter(System.out, StandardCharsets.US_ASCII);\n writer.write(\"Ч\");\n writer.close();\n }", "public static void convertIllegalToUnicode(Reader r, Writer w)\r\n\t throws IOException\r\n\t {\r\n\t\t \r\n\t\t BufferedReader in = new BufferedReader(r);\r\n\t\t PrintWriter out = new PrintWriter(new BufferedWriter(w));\r\n\t\t \r\n\t\t int c;\r\n\t\t while((c = in.read()) != -1) {\r\n\t\t if(!isValidXMLChar(c)) {\r\n\t\t \tString illegalCharacter = EFGProperties.getProperty(ILLEGALCHARACTER_TEXT);\r\n\t\t out.print(illegalCharacter);\r\n\t\t \t/*String hex = Integer.toHexString(c);\r\n\t\t switch (hex.length()) { \r\n\t\t case 1: out.print(\"\\\\u000\" + hex); break;\r\n\t\t case 2: out.print(\"\\\\u00\" + hex); break;\r\n\t\t case 3: out.print(\"\\\\u0\" + hex); break;\r\n\t\t default: out.print(\"\\\\u\" + hex); break;\r\n\t\t }*/\r\n\t\t }\r\n\t\t else {\r\n\t\t \t out.write(c);\r\n\t\t }\r\n\t\t }\r\n\t\t out.flush(); // flush the output buffer we create\r\n\r\n\t }", "private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }", "void writeUTF(OutputStream out, String str) throws IOException\n {\n for (int i = 0, len = str.length(); i < len; i++)\n {\n int c = str.charAt(i);\n if ((c >= 0x0001) && (c <= 0x007F))\n {\n out.write(c);\n }\n else\n {\n if (c > 0x07FF)\n {\n out.write(0xE0 | ((c >> 12) & 0x0F));\n out.write(0x80 | ((c >> 6) & 0x3F));\n out.write(0x80 | ((c >> 0) & 0x3F));\n }\n else\n {\n out.write(0xC0 | ((c >> 6) & 0x1F));\n out.write(0x80 | ((c >> 0) & 0x3F));\n }\n }\n }\n }", "public char[] mapToUnicode(long paramLong) throws PDFNetException {\n/* 747 */ return MapToUnicode(this.a, paramLong);\n/* */ }", "public static C0575e m1628a(String str) {\n return f1306d.get(str);\n }", "public char charAt(int index) {\n/* 121 */ return this.m_str.charAt(index);\n/* */ }", "private String m35639a(byte[] bArr, int i, int i2) {\n try {\n return new String(bArr, i, i2, \"UTF-8\");\n } catch (Exception unused) {\n return \"\";\n }\n }", "public String m21274OooO00o(int i) {\n char[] cArr = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};\n String[] strArr = {\"0000\", \"0001\", \"0010\", \"0011\", \"0100\", \"0101\", \"0110\", \"0111\", \"1000\", \"1001\", \"1010\", \"1011\", \"1100\", \"1101\", \"1110\", \"1111\"};\n String str = new String();\n if (i == 16) {\n for (int i2 = this.f22760OooO0O0 - 1; i2 >= 0; i2--) {\n str = ((((((((str + cArr[(this.f22759OooO00o[i2] >>> 28) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 24) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 20) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 16) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 12) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 8) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 4) & 15]) + cArr[this.f22759OooO00o[i2] & 15]) + \" \";\n }\n } else {\n for (int i3 = this.f22760OooO0O0 - 1; i3 >= 0; i3--) {\n str = ((((((((str + strArr[(this.f22759OooO00o[i3] >>> 28) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 24) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 20) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 16) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 12) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 8) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 4) & 15]) + strArr[this.f22759OooO00o[i3] & 15]) + \" \";\n }\n }\n return str;\n }", "void writeUTF(String s) throws IOException;", "public static String unicodeEscaped(Character ch) {\n/* 380 */ if (ch == null) {\n/* 381 */ return null;\n/* */ }\n/* 383 */ return unicodeEscaped(ch.charValue());\n/* */ }" ]
[ "0.58591217", "0.57644296", "0.57423097", "0.56913203", "0.56315714", "0.55459464", "0.54801774", "0.5426502", "0.5364367", "0.5336306", "0.52982414", "0.5287807", "0.5275147", "0.5256271", "0.5232391", "0.5193359", "0.5183006", "0.51795894", "0.5179549", "0.5144824", "0.50355804", "0.4953842", "0.49437478", "0.49117616", "0.48687112", "0.48256359", "0.48126316", "0.47719482", "0.47683865", "0.47666323", "0.47580177", "0.47559994", "0.4737558", "0.47333634", "0.47309178", "0.47300184", "0.47225088", "0.47066435", "0.46951532", "0.46908298", "0.4685376", "0.46783432", "0.465672", "0.4649393", "0.46429965", "0.46335003", "0.46133238", "0.46095744", "0.46005088", "0.4593838", "0.45862874", "0.45761207", "0.45645574", "0.45421377", "0.45407724", "0.4540083", "0.45202383", "0.45079485", "0.4505331", "0.4496949", "0.44685975", "0.44670612", "0.44648984", "0.4455086", "0.4452037", "0.44479033", "0.44431865", "0.4433946", "0.44058755", "0.44017398", "0.44002", "0.4399349", "0.43931252", "0.43921742", "0.4389233", "0.43891796", "0.43705407", "0.43622154", "0.43568364", "0.43555674", "0.4351237", "0.4350418", "0.4345821", "0.43387544", "0.43386808", "0.43350476", "0.43344334", "0.4323713", "0.43208793", "0.4307573", "0.42985445", "0.42928022", "0.4292703", "0.42863083", "0.42845306", "0.4282857", "0.4278946", "0.42732605", "0.42703405", "0.42695707" ]
0.75210786
0
translate before and after to runes.
@Override public boolean deleteSurroundingText(int beforeChars, int afterChars) { int selStart = imeSelectionStart(nhandle); int selEnd = imeSelectionEnd(nhandle); int before = selStart - imeToRunes(nhandle, imeToUTF16(nhandle, selStart) - beforeChars); int after = selEnd - imeToRunes(nhandle, imeToUTF16(nhandle, selEnd) - afterChars); return deleteSurroundingTextInCodePoints(before, after); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void beforeRun();", "void afterRun();", "@Test\n void step() {\n Fb2ConverterStateMachine state = new Fb2ConverterStateMachine();\n StringBuilder sb = new StringBuilder();\n WordsTokenizer wt = new WordsTokenizer(getOriginalText());\n while (wt.hasMoreTokens()) {\n String word = wt.nextToken();\n if (state.step(word)) {\n sb.append(word).append(\" \");\n }\n }\n assertEquals(\"test 1 . text- 2 text 0 text 6111 222 \", sb.toString());\n }", "protected abstract void preRun();", "public abstract WordEntry manualTranslate(String text, String from, String to);", "private final void step1()\n\t { if (b[k] == 's')\n\t { if (ends(\"sses\")) k -= 2; else\n\t if (ends(\"ies\")) setto(\"i\"); else\n\t if (b[k-1] != 's') k--;\n\t }\n\t if (ends(\"eed\")) { if (m() > 0) k--; } else\n\t if ((ends(\"ed\") || ends(\"ing\")) && vowelinstem())\n\t { k = j;\n\t if (ends(\"at\")) setto(\"ate\"); else\n\t if (ends(\"bl\")) setto(\"ble\"); else\n\t if (ends(\"iz\")) setto(\"ize\"); else\n\t if (doublec(k))\n\t { k--;\n\t { int ch = b[k];\n\t if (ch == 'l' || ch == 's' || ch == 'z') k++;\n\t }\n\t }\n\t else if (m() == 1 && cvc(k)) setto(\"e\");\n\t }\n\t }", "void PostRun() {\n }", "@Override\n\tpublic void runSequences() throws emException, TException {\n\t\tVarElman net = (VarElman) vm;\n\t\tint nInputs = net.getNumberOfInputs();\n\t\tint nOutputs = net.getNumberOfOutputs();// should be the same as #\n\n\t\tdouble[] rawOutput;\n\t\tdouble[][] inputs = inputSequence.getAsArray(nInputs);\n\t\t\n\n\t\tdouble[][] outputs = new double[inputs.length][];\n\t\t\n\t\tinputSequence.updateUnusedPins(nInputs);\n\t\tList<Integer> unusedPins = inputSequence.getUnusedInputPins(); // output pins\n\t\t\n\t\tnet.setOutputMaskIndices(nOutputs, unusedPins);\n\n\t\t// this needs to go in a thread to be able to wait for the result\n\t\tfor (int t = 0; t < inputs.length; t++) {\n\t\t\trawOutput = net.evalVarElman(inputs[t], t); // t is only good for CW-RNNs\n\t\t\toutputs[t] = net.getOutput(); // considers the mask as well\n\t\t}\n\n\t\toutputSequence = new Sequence(outputs,255,unusedPins); // 255 levels\n\t\t// unusedPins become the used pins in the case of the output\n\t}", "protected void runBeforeStep() {}", "private void runEm() {\n renameOriginalDomainConfig();\n\n testV3_0_1Domain();\n\n // after all the tests have run, move back the old domain\n restoreOriginalDomainConfig();\n\n // print results\n stat.printSummary();\n }", "public void run() {\r\n for (int i = 0; i < inputs.size(); i++) {\r\n String converted;\r\n //Converts the input string using the converter\r\n converted = converter.convert(inputs.get(i));\r\n //It adds to the output the converted string \r\n outputs.add(converted);\r\n //Prints the converted value\r\n System.out.println(converted);\r\n }\r\n\r\n }", "@Test\r\n\tpublic void macroTest(){\r\n\t\t\r\n\t\trunner = new AutoRunner();\r\n\t\t//runnerSpy = spy(runner);\r\n\t\t//macro = new AutoTranslateRightMacro();\r\n\t\t\r\n\t\tReferenceData.getInstance().getDriveTrainData().setLeftEncoderTicks(0);\r\n\t\tReferenceData.getInstance().getDriveTrainData().setRightEncoderTicks(0);\r\n\t\t\r\n\t\tReferenceData.getInstance().getUserInputData().setAutoTranslateLeft(true);\r\n\t\t//runner.setTask(macro);\r\n\t\tReferenceData.getInstance().getUserInputData().setAutoTranslateRight(true);\r\n\t\trunner.teleopPeriodic();\r\n\t\t\r\n\t\tassertTrue(runner.getTask().hasInitalized());\r\n\t\t\r\n\t\tReferenceData.getInstance().getDriveTrainData().setLeftEncoderTicks(100);\r\n\t\tReferenceData.getInstance().getDriveTrainData().setRightEncoderTicks(100);\r\n\t\t\r\n\t\trunner.teleopPeriodic();\r\n\t\t//goFoward1\r\n\t\tassertEquals(1, ReferenceData.getInstance().getUserInputData().getJoystickLeft(), .0001);\r\n\t\tassertEquals(1, ReferenceData.getInstance().getUserInputData().getJoystickRight(), .0001);\r\n\t\tassertEquals(0, ReferenceData.getInstance().getUserInputData().getJoystickX(), .0001);\r\n\t\tassertEquals(1, ReferenceData.getInstance().getUserInputData().getJoystickY(), .0001);\r\n\r\n\t\tReferenceData.getInstance().getDriveTrainData().setLeftEncoderTicks(1190);\r\n\t\tReferenceData.getInstance().getDriveTrainData().setRightEncoderTicks(1190);\r\n\t\t\r\n\t\trunner.teleopPeriodic();\r\n\t\trunner.teleopPeriodic();\r\n\t\t//turnRight\r\n\t\tassertEquals(.5, ReferenceData.getInstance().getUserInputData().getJoystickLeft(), .0001);\r\n\t\tassertEquals(-.5, ReferenceData.getInstance().getUserInputData().getJoystickRight(), .0001);\r\n\t\tassertEquals(.5, ReferenceData.getInstance().getUserInputData().getJoystickX(), .0001);\r\n\t\tassertEquals(0, ReferenceData.getInstance().getUserInputData().getJoystickY(), .0001);\r\n\t\t\r\n\t\tReferenceData.getInstance().getDriveTrainData().setLeftEncoderTicks(1300);\r\n\t\tReferenceData.getInstance().getDriveTrainData().setRightEncoderTicks(1060);\r\n\t\t\r\n\t\trunner.teleopPeriodic();\r\n\t\trunner.teleopPeriodic();\r\n\t\t//goFoward2\r\n\t\tassertEquals(1, ReferenceData.getInstance().getUserInputData().getJoystickLeft(), .0001);\r\n\t\tassertEquals(1, ReferenceData.getInstance().getUserInputData().getJoystickRight(), .0001);\r\n\t\tassertEquals(0, ReferenceData.getInstance().getUserInputData().getJoystickX(), .0001);\r\n\t\tassertEquals(1, ReferenceData.getInstance().getUserInputData().getJoystickY(), .0001);\r\n\t\t\r\n\t\tReferenceData.getInstance().getDriveTrainData().setLeftEncoderTicks(1510);\r\n\t\tReferenceData.getInstance().getDriveTrainData().setRightEncoderTicks(1270);\r\n\t\t\r\n\t\trunner.teleopPeriodic();\r\n\t\trunner.teleopPeriodic();\r\n\t\t//turnLeft\r\n\t\tassertEquals(-.5, ReferenceData.getInstance().getUserInputData().getJoystickLeft(), .0001);\r\n\t\tassertEquals(.5, ReferenceData.getInstance().getUserInputData().getJoystickRight(), .0001);\r\n\t\tassertEquals(-.5, ReferenceData.getInstance().getUserInputData().getJoystickX(), .0001);\r\n\t\tassertEquals(0, ReferenceData.getInstance().getUserInputData().getJoystickY(), .0001);\r\n\t\t\r\n\t\tReferenceData.getInstance().getDriveTrainData().setLeftEncoderTicks(1400);\r\n\t\tReferenceData.getInstance().getDriveTrainData().setRightEncoderTicks(1400);\r\n\t\t\r\n\t\trunner.teleopPeriodic();\r\n\t\trunner.teleopPeriodic();\r\n\t\t//goBackwards\r\n\t\tassertEquals(-1, ReferenceData.getInstance().getUserInputData().getJoystickLeft(), .0001);\r\n\t\tassertEquals(-1, ReferenceData.getInstance().getUserInputData().getJoystickRight(), .0001);\r\n\t\tassertEquals(0, ReferenceData.getInstance().getUserInputData().getJoystickX(), .0001);\r\n\t\tassertEquals(-1, ReferenceData.getInstance().getUserInputData().getJoystickY(), .0001);\r\n\t\t\r\n\t\tReferenceData.getInstance().getDriveTrainData().setLeftEncoderTicks(130);\r\n\t\tReferenceData.getInstance().getDriveTrainData().setRightEncoderTicks(130);\r\n\t\t\r\n\t\trunner.teleopPeriodic();\r\n\t\trunner.teleopPeriodic();\r\n\t\t//hasFinished\r\n\t\tassertTrue(runner.getTask().hasFinished());\r\n\t\t\r\n\t\t\r\n\t\t//doReturn(mockLeftTalon).when(runnerSpy).getLeftTalon();\r\n\t\t//when(gamePad.getXRight()).thenReturn(val);\r\n\t}", "public void run() {\n \n if (Parameter != null && Parameter instanceof ConvertTextUnitsParameter) {\n CastParameter = (ConvertTextUnitsParameter)Parameter;\n }\n else {\n CastParameter = null;\n }\n\n String shortErrorMessage = \"Error: Text Units Cannot be Converted!\";\n this.acceptTask(TaskProgress.INDETERMINATE, \"Initial Preparations\");\n this.validateParameter(Parameter, shortErrorMessage);\n this.openDiasdemCollection(CastParameter.getCollectionFileName());\n this.checkPrerequisitesAndSetDefaultTextUnitsLayer(shortErrorMessage);\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS) {\n RegexPattern = Pattern.compile(CastParameter.getRegularExpression());\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS) {\n // read multi token word: each line contains one multi token word;\n // comment lines start with '#'\n TextFile multiTokenFile = new TextFile(\n new File(CastParameter.getMultiTokenFileName()));\n multiTokenFile.open();\n String line = multiTokenFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n ArrayList list = new ArrayList();\n while (line != null) {\n list.add(line.trim());\n line = multiTokenFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n Collections.sort(list, new SortStringsByDecreasingLength());\n // for (int i = 0; i < list.size(); i++) {\n // System.out.println((String)list.get(i));\n // }\n // System.out.println(list.size());\n String[] multiToken = new String[list.size()];\n for (int i = 0; i < list.size(); i++)\n multiToken[i] = (String)list.get(i);\n multiTokenFile.close();\n MyMultiTokenWordIdentifier = new HeuristicMultiTokenWordIdentifier(\n multiToken);\n }\n else {\n MyMultiTokenWordIdentifier = null;\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .FIND_AND_REPLACE_SPECIFIED_TOKENS) {\n // read token replacement file: each line contains the tokens to search \n // for and the replacement tokens separated by a tab stop;\n // comment lines start with '#'\n TextFile tokenReplacementFile = new TextFile(\n new File(CastParameter.getTokenReplacementFileName()));\n tokenReplacementFile.open();\n String line = tokenReplacementFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n HashMap tokensSearchList = new HashMap();\n String[] tokensContents = null;\n while (line != null) {\n tokensContents = line.split(\"\\t\");\n if (tokensContents.length == 2\n && tokensContents[1].trim().length() > 0) {\n try {\n tokensSearchList.put(tokensContents[0].trim(), \n tokensContents[1].trim());\n }\n catch (PatternSyntaxException e) {\n System.out.println(\"[TokenizeTextUnitsTask] Regex syntax error in \"\n + \" file \" + CastParameter.getTokenReplacementFileName() + \": \"\n + \" Line \\\"\" + line + \"\\\"; error message: \" + e.getMessage());\n }\n }\n else {\n System.out.println(\"[TokenizeTextUnitsTask] Error in file \"\n + CastParameter.getTokenReplacementFileName() + \": Line \\\"\"\n + line + \"\\\" does not conform to syntax!\");\n }\n line = tokenReplacementFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n ArrayList list = new ArrayList(tokensSearchList.keySet());\n Collections.sort(list, new SortStringsByDecreasingLength());\n // create arrays for token replacement \n String[] tokensSearch = new String[list.size()];\n String[] tokensReplace = new String[list.size()];\n Iterator iterator = list.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n TmpString = (String)iterator.next();\n tokensSearch[i] = TmpString;\n tokensReplace[i++] = (String)tokensSearchList.get(TmpString);\n }\n tokenReplacementFile.close();\n MyTokenReplacer = new HeuristicTokenReplacer(tokensSearch, tokensReplace);\n }\n else {\n MyTokenReplacer = null;\n }\n \n int counterProgress = 0;\n long maxProgress = DiasdemCollection.getNumberOfDocuments();\n \n DiasdemDocument = DiasdemCollection.getFirstDocument(); \n while (DiasdemDocument != null) {\n \n if (counterProgress == 1 || (counterProgress % 50) == 0) {\n Progress.update( (int)(counterProgress * 100 / maxProgress),\n \"Processing Document \" + counterProgress);\n DiasdemServer.setTaskProgress(Progress, TaskThread);\n }\n\n DiasdemDocument.setActiveTextUnitsLayer(DiasdemProject\n .getActiveTextUnitsLayerIndex());\n DiasdemDocument.backupProcessedTextUnits(DiasdemProject\n .getProcessedTextUnitsRollbackOption());\n \n for (int i = 0; i < DiasdemDocument.getNumberOfProcessedTextUnits(); \n i++) {\n DiasdemTextUnit = DiasdemDocument.getProcessedTextUnit(i);\n switch (CastParameter.getConversionType()) {\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_LOWER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toLowerCase();\n break;\n }\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_UPPER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toUpperCase();\n break;\n } \n case ConvertTextUnitsParameter.APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS: {\n RegexMatcher = RegexPattern.matcher(DiasdemTextUnit\n .getContentsAsString());\n TmpStringBuffer = new StringBuffer(DiasdemTextUnit\n .getContentsAsString().length() + 10000);\n while (RegexMatcher.find()) {\n RegexMatcher.appendReplacement(TmpStringBuffer,\n CastParameter.getReplacementString());\n }\n TextUnitContentsAsString = RegexMatcher.appendTail(TmpStringBuffer)\n .toString();\n break;\n }\n case ConvertTextUnitsParameter.IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS: {\n TextUnitContentsAsString = MyMultiTokenWordIdentifier\n .identifyMultiTokenWords(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.FIND_AND_REPLACE_SPECIFIED_TOKENS: {\n TextUnitContentsAsString = MyTokenReplacer\n .replaceTokens(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_PART_OF_SPEECH_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/p:\");\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_WORD_SENSE_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/s:\");\n break;\n } \n default: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString();\n }\n }\n DiasdemTextUnit.setContentsFromString(TextUnitContentsAsString);\n DiasdemDocument.replaceProcessedTextUnit(i, DiasdemTextUnit);\n }\n\n DiasdemCollection.replaceDocument(DiasdemDocument\n .getDiasdemDocumentID(), DiasdemDocument);\n \n DiasdemDocument = DiasdemCollection.getNextDocument();\n counterProgress++;\n \n } // read all documents\n \n super.closeDiasdemCollection();\n \n CastResult = new ConvertTextUnitsResult(TaskResult.FINAL_RESULT,\n \"All processed text units have been converted in the DIAsDEM document\\n\" +\n \" collection \" +\n Tools.shortenFileName(CastParameter.getCollectionFileName(), 55) + \"!\", \n \"Processed text units have been converted.\");\n this.setTaskResult(100, \"All Documents Processed ...\", CastResult,\n TaskResult.FINAL_RESULT, Task.TASK_FINISHED);\n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public static void main(String[] args) {\n\t\tString var1=\"Today is Wednesday\";\n\t\t//System.out.println(var1.length());\n\t\tString[] strArr=var1.split(\" \");\n\t\tfor(String word:strArr) {\n\t\t\tSystem.out.println(word);\n\t\t}\n\t\t\n\t\tString var2=\"Syntax is best. batch 9 is great.\";\n\t\tString[] strArr2=var2.split(\"[.]\");\n\t\t\n\t\tfor(int i=0;i<strArr2.length;i++) {\n\t\t\tSystem.out.println(strArr2[i]);\t}\n\t\t//method chaining\n\t\tString var3=\" SYNTAX \";\n\t\tSystem.out.println(var3.trim().toLowerCase());\n\t\t\n\t\tString var4=\"hi what are you doining\";\n\tSystem.out.println(convert(var4));\n\t}", "private void swapTransforms() {\n Transform tmp = workTransform;\n workTransform = userTransform;\n userTransform = tmp;\n }", "@Test\n public void TestBeforeWithTooStrongAfter() {\n try {\n new RuleBasedCollator(\"&[before 2]x<<q<p\");\n errln(\"should forbid before-2-reset followed by primary relation\");\n } catch(Exception expected) {\n }\n try {\n new RuleBasedCollator(\"&[before 3]x<<<q<<s<p\");\n errln(\"should forbid before-3-reset followed by primary or secondary relation\");\n } catch(Exception expected) {\n }\n }", "private void convertParagrpahRuns(List<XWPFRun> runs, XWPFParagraph paragraph){\n\n int currentParagraphPosition = paragraph.getDocument().getPosOfParagraph(paragraph);\n\n if (runs != null) {\n int runsLength = runs.size();\n int i = 0;\n while (i < runsLength) {\n XWPFRun run = runs.get(i);\n String fontFamily = getFontFamily(run);\n\n CTR ctrRun = run.getCTR();\n int sizeOfCtr = ctrRun.sizeOfTArray();\n\n // Fixing the first text position separately because it might have text which should go to previous runners\n String[] convertedText = engine.toUnicode(run.getText(0), fontFamily);\n String sConvertedText = convertedText[0];\n\n // Fixing broken Word issues 1st attempt\n sConvertedText = fixBrokenWordIssue(runs, sConvertedText, currentParagraphPosition , paragraph, i);\n\n //fixing broken word issue 2nd attempt\n sConvertedText = fixBrokenWordIssue(runs, sConvertedText, currentParagraphPosition , paragraph, i);\n\n run.setText(sConvertedText, 0);\n\n //Case where there are multiple wt tags inside the same wr tag\n // In this case broken word errors does not rise, text inside the same wr tag render fine. So not applying that fix here\n for (int runnerTextPosition = 1; runnerTextPosition < sizeOfCtr; runnerTextPosition++) {\n String[] nonZeroPostionedConverted = engine.toUnicode(run.getText(runnerTextPosition), fontFamily);\n String nonZeroPostionedConvertedText = nonZeroPostionedConverted[0];\n\n run.setText(nonZeroPostionedConvertedText, runnerTextPosition);\n\n }\n\n this.setFontFamily(run, convertedText[1]);\n i++;\n }\n }\n }", "void before();", "@SuppressWarnings(\"unchecked\")\n\tpublic void translate(){\n\t\tnodeSigs();\n\t\tedgeSigs();\n\t\tpre_source_valid();\n\t\tList<Object> constraints = new ArrayList<Object>();\n\t\tconstraints.addAll(hash.keySet());\n\t\tfor (int i = 0; i < constraints.size() ; i++) {\n\t\t\tfor (int j = i + 1; j < constraints.size() ; j++) {\n\t\t\t\tObject iter = constraints.get(i), iter1 = constraints.get(j);\n\t\t\t\tObject[] overlap = findOverlap(iter, iter1);\n\t\t\t\tif(overlap == null) continue;\n\t\t\t\talloycommands.add(new Object[]{iter, iter1});\n\t\t\t\tbuffer.append(\"run{(\" + hash.get(iter) + \"[] and not \" + hash.get(iter1) + \"[]) or (not \" + hash.get(iter) + \"[] and \" + hash.get(iter1) + \"[])} for 0 but \");\n\t\t\t\tList<Node> nodes = (List<Node>) overlap[0];\n\t\t\t\tList<Arrow> edges = (List<Arrow>) overlap[1];\n\t\t\t\tList<String> strings = new ArrayList<String>();\n\t\t\t\tfor(Node in : nodes){\n\t\t\t\t\tstrings.add(nodeSig(in));\n\t\t\t\t}\n\t\t\t\tfor(Arrow ie : edges){\n\t\t\t\t\tstrings.add(edgeSig(ie));\n\t\t\t\t}\n\t\t\t\tbuffer.append(\"5 \" + strings.get(0));\n\t\t\t\tfor (int k = 1; k < strings.size(); k++) {\n\t\t\t\t\tbuffer.append(\", 5 \" + strings.get(k));\n\t\t\t\t}\n\t\t\t\tbuffer.append(LINE);\n\t\t\t}\n\t\t}\n//\t\tif(check == null)\n//\t\t\tbuffer.append(\"run {}\");\n//\t\telse\n//\t\t\ttranslate(check, \"check\");\n//\t\tbuffer.append(\" for 5\");\n\t\t\t\n\t}", "void swap(int start, int end) {\n\n pushLeftWord(start);\n pushRightWord(end);\n\n putRightWordToLeft(start);\n putLeftWordToRight(end);\n }", "@Override\n\tpublic void postRun() {\n\t}", "void preProcess();", "public static void main(String[] args) {\n\t\tSystem.out.println(\"swapVowels \" + swapVowels(\"united states\"));\n\t}", "protected void runAfterStep() {}", "public static void main(String[] args) {\n\t\treverseAlternate(\"Hello Good Morning nanshu\");\n\t\t\t//reverseWords1(\"Hello Good Morning\");\n\t\t\t\n\t\t\t\n\t\t\t//String str1 = \"nashu\";\n\t\t\t//Middle(str1);\n\t}", "private void generate_run_test_code()\n {\n StringBuffer Code = new StringBuffer();\n\n // Use a static variable to avoid infinite recursion\n Code.append(\"\\t\\tstatic bool s_FirstTime = true; if (s_FirstTime) { s_FirstTime = false; run_test(-1); }\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_RUNTEST, Code.toString());\n }", "public synchronized void runPostTurtles() {\n\t\trunEndogenousEngine();\n\t\tsolveConflicts();\n\t\tfirePostAgentScheduling();\n\t}", "private void getAllTotesRightEnc()\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\tstrafeLeftEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\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 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\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 5:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public void translate(int e, boolean doble) {\r\n double step = 40;\r\n\r\n if (doble && !corner(e) && !directionchanged[e]) {\r\n step = 20;\r\n }\r\n switch (directionend[e]) {\r\n case 0:\r\n endx[e] += step;\r\n break;\r\n case 1:\r\n endy[e] += step;\r\n break;\r\n case 2:\r\n endx[e] -= step;\r\n break;\r\n case 3:\r\n endy[e] -= step;\r\n break;\r\n }\r\n\r\n }", "@RepeatedTest(20)\n void transformtoTStringTest(){\n assertEquals(st.transformtoString(),new TString(hello));\n assertEquals(bot.transformtoString(),new TString(bot.toString()));\n assertEquals(bof.transformtoString(),new TString(bof.toString()));\n assertEquals(f.transformtoString(),new TString(f.toString()));\n assertEquals(i.transformtoString(),new TString(i.toString()));\n assertEquals(bi.transformtoString(),new TString(bi.toString()));\n assertEquals(Null.transformtoString(), Null);\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\tejemploDelayELements();\n\t}", "Run createRun();", "void translate(Sentence sentence);", "default void beforeRun(TransformWork work) throws ValidationException, IOException {}", "public void localize() {\n //Turn robot to 45 degrees\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n initialRedValue = leftRedVal;\n Navigation.turnTo(45);\n \n //Proceed forward until the color sensors detect lines\n while(Math.abs(leftRedVal - initialRedValue) < rgbThres || Math.abs(rightRedVal - initialRedValue) < rgbThres) {\n leftMotor.forward();\n rightMotor.forward();\n }\n leftMotor.stop(true);\n rightMotor.stop(false);\n \n //Make the robot turn left until the left sensor finds it\n \n //make the robot turn right until the right sensor finds it\n \n //do calculations\n \n //turn robot back to facing north\n }", "@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tboolean part1 = false; \r\n\r\n\t\tString[] input = Day2.getInput().split(\"\\n\");\r\n\t\t//String[] input = \"0 3 0 1 -3\".split(\" \");\r\n\t\t\r\n\t\t//get jump offsets\r\n\t\tint[] instr = new int[input.length];\r\n\t\tfor(int i=0;i<input.length;i++) {\r\n\t\t\tinstr[i] = Integer.parseInt(input[i]);\r\n\t\t}\r\n\t\t\r\n\t\t//follow them\r\n\t\tint pos = 0;\r\n\t\tint count =0;\r\n\t\twhile(pos < instr.length) {\r\n\t\t\tint next = instr[pos];\r\n\t\t\tif( (!part1) && next >= 3) {\r\n\t\t\t\tinstr[pos]--; //part 2, and need to decrement\r\n\t\t\t}else {\r\n\t\t\t\tinstr[pos]++; //increment\r\n\t\t\t}\r\n\t\t\tpos += next;\r\n\t\t\tcount++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"steps: \"+count);\r\n\r\n\t}", "public String transform(String text){\n for(int i=0; i<transforms.length; i++)\n {\n if(transforms[i].contains(\"fromabbreviation\")){\n text = textTransformerAbbreviation.fromAbbreviation(text);\n }\n if(transforms[i].contains(\"toabbreviation\")){\n text = textTransformerAbbreviation.toAbbreviation(text);\n }\n if(transforms[i].contains(\"inverse\")){\n text = textTransformerInverse.inverse(text);\n }\n if(transforms[i].contains(\"upper\")){\n text = textTransformerLetterSize.upper(text);\n }\n if(transforms[i].contains(\"lower\")){\n text = textTransformerLetterSize.lower(text);\n }\n if(transforms[i].contains(\"capitalize\")) {\n text = textTransformerLetterSize.capitalize(text);\n }\n if(transforms[i].contains(\"latex\")){\n text = textTransformerLatex.toLatex(text);\n }\n if(transforms[i].contains(\"numbers\")){\n text = textTransformerNumbers.toText(text);\n }\n if(transforms[i].contains(\"repetitions\")){\n text = textTransformerRepetition.deleteRepetitions(text);\n }\n logger.debug(\"Text after \" + (i+1) + \" transform: \" + text);\n }\n\n logger.debug(\"Final form: \" + text);\n return text;\n }", "@Test\n\tpublic void test$TR() {\n\t\tassertEquals(\"FOO\", $TRANSLATE(\"foo\", \"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"));\n\t\t\n\t\t\n\t\t// no 3rd param should remove those characters\n\t\tassertEquals(\"ad\", $TRANSLATE(\"abcd\", \"bc\"));\n\t\t\n\t\t// uneven numbers of target and replacement values\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"123\"));\n\t\tassertEquals(\"123\", $TRANSLATE(\"abcd\", \"abcd\",\"123\"));\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"1234\"));\n\t}", "protected void runBeforeIterations() {}", "private void translateInstructions() {\n Map<String, String> translations = new HashMap<String, String>() {{\n put(\"go\", \"pojdi\");\n put(\"left\", \"levo\");\n put(\"right\", \"desno\");\n put(\"straight\", \"naravnost\");\n put(\" on unnamed road\", \"\");\n put(\"on\", \"na\");\n put(\"turn\", \"zavij\");\n put(\"continue\", \"nadaljuj\");\n put(\"stay\", \"ostani\");\n put(\"north\", \"severno\");\n put(\"east\", \"vzhodno\");\n put(\"south\", \"južno\");\n put(\"west\", \"zahodno\");\n put(\"northeast\", \"severnovzhodno\");\n put(\"southeast\", \"jugovzhodno\");\n put(\"southwest\", \"jugozahodno\");\n put(\"northwest\", \"servernozahodno\");\n }};\n\n String regex = \"(?i)\\\\b(go|left|right|straight| on unnamed road|on|turn|continue|stay|\" +\n \"north|east|south|west|northeast|southeast|southwest|northwest)\\\\b\";\n\n Pattern pattern = Pattern.compile(regex);\n StringBuffer stringBuffer;\n Matcher matcher;\n\n for (RoadNode node : mRoad.mNodes) {\n String instructions = node.mInstructions;\n stringBuffer = new StringBuffer();\n matcher = pattern.matcher(instructions);\n\n while (matcher.find()) {\n matcher.appendReplacement(stringBuffer, translations.get(matcher.group().toLowerCase()));\n }\n matcher.appendTail(stringBuffer);\n\n node.mInstructions = stringBuffer.toString();\n }\n }", "public void translate() {\n for (Ball b: balls) {\n b.translate(balls);\n }\n }", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The edition of a book---for example, ``Second''. This should be an ordinal, and should have the first letter capitalized, as shown here; the standard styles convert to lower case when necessary.\");\n assertEquals(\"th edit of a book---for exampl, ``second''. th should be an ordin, and should hav th first letter capital, as shown hes; th standard styl convers to lower cas when neces.\", string0);\n }", "public abstract WordEntry autoTranslate(String text, String to);", "@Test\n public void testStateTransitions1()\n { \n assertTrue(theEngine.inStartingState());\n \n //Starting -> Halted\n theEngine.quit();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inStartingState());\n\n //Starting -> Player died\n killPlayerByPlayerMove();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inStartingState());\n \n //Starting -> Player won\n letPlayerWin();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inStartingState());\n \n theEngine.start();\n theEngine.quit();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inHaltedState());\n \n //Halted -> Starting\n //impossible through code\n\n //Halted -> Player died\n killPlayerByPlayerMove();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inHaltedState());\n\n //Halted -> Player won\n letPlayerWin();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inHaltedState());\n\n theEngine.start();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inPlayingState());\n \n //Playing -> Starting\n //impossible by code\n \n killPlayerByPlayerMove();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inDiedState());\n \n //Player died -> Halted\n theEngine.quit();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inDiedState());\n \n //Player died -> Player won\n letPlayerWin();\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inDiedState());\n \n //Undo from player died state\n theEngine.undoLastMove();\n //this didn't throw assertion error, so this is fine\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inHaltedState());\n }", "public static void main(String[] args) {\n\t\tString s = \"the sky is blue\";\n\t\tString[] s2 = s.split(\" \");\n\n\t\tfor (String string : s2) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tList<String> s3 = Arrays.asList(s2);\n\t\tCollections.reverse(s3);\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s3) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING NOT USING COLLECTIONS AND ARRAYS\n\t\tString s4 = \"the sky is blue\";\n\t\tString[] s5 = s.split(\" \");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tint totalLength = s5.length;\n\t\tfor (int i = 0; i < totalLength / 2; i++) {\n\t\t\tString actual = s5[i];\n\t\t\tString opposite = s5[totalLength - 1 - i];\n\t\t\ts5[i] = opposite;\n\t\t\ts5[totalLength - 1 - i] = actual;\n\t\t}\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING WITHOUT ALLOCATING EXTRA SPACE\n\t\t/*\n\t\t * 1- convertir a array de char\n\t\t * 2- revertir las letrs de las palabras pero dejŠndolas en su sitio\n\t\t * 3- revertir todo el array de char con actual/opuesto\n\t\t */\n\t\tString cadena = \"the sky is blue\";\n\t\tchar[] s6 = cadena.toCharArray();\n\n\t\tint i = 0;\n\t\tfor (int j = 0; j < s6.length; j++) {\n\t\t\tif (s6[j] == ' ') {\n\t\t\t\treverse(s6, i, j - 1);\n\t\t\t\ti = j + 1;\n\t\t\t}\n\t\t}\n\n\t\treverse(s6, i, s6.length - 1);\n\n\t\treverse(s6, 0, s6.length - 1);\n\t\t\n\t\tSystem.out.print(\"\\n\\nREVERSE STRING WITHOUT ALLOCATING EXTRA SPACE: \");\n\t\tfor(int k = 0; k<s6.length; k++) {\n\t\t\tSystem.out.print(s6[k]);\n\t\t}\n\t}", "public void run() {\n\n /**\n * Replace all delimiters with single space so that words can be\n * tokenized with space as delimiter.\n */\n for (int x : delimiters) {\n text = text.replace((char) x, ' ');\n }\n\n StringTokenizer tokenizer = new StringTokenizer(text, \" \");\n boolean findCompoundWords = PrefsHelper.isFindCompoundWordsEnabled();\n ArrayList<String> ufl = new ArrayList<String>();\n for (; tokenizer.hasMoreTokens();) {\n String word = tokenizer.nextToken().trim();\n boolean endsWithPunc = word.matches(\".*[,.!?;]\");\n \n // Remove punctuation marks from both ends\n String prevWord = null;\n while (!word.equals(prevWord)) {\n prevWord = word;\n word = removePunctuation(word);\n }\n \n // Check spelling in word lists\n boolean found = checkSpelling(word);\n if (findCompoundWords) {\n if (!found) {\n ufl.add(word);\n if (endsWithPunc) pushErrorToListener(ufl);\n } else {\n pushErrorToListener(ufl);\n }\n } else {\n if (!found) listener.addWord(word);\n }\n }\n pushErrorToListener(ufl);\n }", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldReturnBeforeAndAfterStoryAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n boolean embeddedStory = false;\n when(steps1.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore2));\n when(steps1.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter1));\n when(steps2.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter2));\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> beforeSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.BEFORE,\n embeddedStory);\n List<Step> afterSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.AFTER,\n embeddedStory);\n\n // Then all before and after steps should be added\n ensureThat(beforeSteps, equalTo(asList(stepBefore1, stepBefore2)));\n ensureThat(afterSteps, equalTo(asList(stepAfter1, stepAfter2)));\n }", "public void computeTransitionsToFixDelta()\n {\n _entriesToProcess = new ArrayDeque<String>();\n \n _systemModelDelta.getKeys(_entriesToProcess);\n \n while(!_entriesToProcess.isEmpty())\n {\n processEntryDelta(_systemModelDelta.findAnyEntryDelta(_entriesToProcess.poll()));\n }\n }", "private void getAllTotesLeftEnc()\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\tstrafeRightEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\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 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\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 5:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public static void main(String[] args) {\n System.out.println(transform(\"\"));\n System.out.println(transform(\"I cän ©onv&#235;&reg;t - things &#038; stuff: ½. &#x00AE;\"));\n }", "public String turno(enemigo enem){\n\t\tString tur;\n\t\ttur=atacar(enem);\n\t\treturn tur;\n\t}", "@Override\n public void preRun() {\n super.preRun();\n }", "@Test\n public void testConvertToWords()\n {\n System.out.println(\"convertToWords\");\n WoordenController instance = new WoordenController();\n String[] expResult =\n {\n \"een\", \"twee\", \"drie\", \"vier\", \"hoedje\", \"van\", \"hoedje\", \"van\", \"een\", \"twee\", \"drie\", \"vier\",\n \"hoedje\", \"van\", \"papier\"\n };\n String[] result = instance.convertToWords();\n assertArrayEquals(expResult, result);\n }", "void moveRuns(ViewBackgroundInfo targetInfo, Container sourceContainer, List<ExpRun> runs) throws IOException;", "public void run() throws Exception {\n\t\tString s = \"Sujit is a good man\";\n\t\tString a[]=s.split(\" \");\n\t\tString s1 = a[1]+a[2];\n\t\tinfo(s1);\n//\t\tfor(int i=0;i<a.length;i++){\n//\t\tinfo(a[1]);\n//\t\t}\n\n\t}", "@Override\n\tpublic void runFromSentence(TokenizedSentence sentence) \n\t{\n\t\t\n\t}", "void after();", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tStringTokenizer st = new StringTokenizer(outcome, \" \");\r\n\t\t//Initializing modified summary\r\n\t\tmodifiedSummary = new String();\r\n\t\t\r\n\t\twhile(st.hasMoreTokens()){\r\n\t\t\t\r\n\t\t\tString temp = st.nextToken();\r\n\t\t\t//String buffer is thread safe as concatenation is synced\r\n\t\t\tStringBuffer moded = new StringBuffer();\r\n\t\t\tmoded.append(temp.substring(0,1).toUpperCase());\r\n\t\t\tmoded.append(temp.substring(1));\r\n\t\t\t\r\n\t\t\tif(st.hasMoreTokens())\r\n\t\t\t\tmodifiedSummary = modifiedSummary + moded + \" \" ;\r\n\t\t\telse\r\n\t\t\t\tmodifiedSummary = modifiedSummary + moded;\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Geeks for Geeks\";\n\t\treverse(str);\n\t\treverseUsingLoop(str);\n\t\treverseUisngStringBuilder(str);\n\t}", "protected void processEntryTransition(InternalSystemEntryDelta entryDelta,\n Collection<String> toStates)\n {\n Transition lastTransition = null;\n \n String fromState = entryDelta.getCurrentEntryState();\n \n for(String toState : toStates)\n {\n if(\"<expected>\".equals(toState))\n toState = entryDelta.getExpectedEntryState();\n \n lastTransition = processEntryStateMismatch(lastTransition,\n entryDelta,\n fromState,\n toState);\n \n fromState = toState;\n }\n }", "@Test\n public void testSpinTwoWords() {\n final String actualResult = kata4.spinWord(\"Hey fellow warriors\");\n final String expectedResult = \"Hey wollef sroirraw\";\n assertEquals(expectedResult, actualResult);\n }", "private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}", "public void run() {\n\t\t\t\tfor(int each=0; each<this.inputString.length(); each++) {\r\n\t\t\t\t\tCharacter currentInput = this.inputString.charAt(each);\r\n\t\t\t\t\t//Test input char\r\n\t\t\t\t\tif(!currentInput.equals('0') && !currentInput.equals('1') ) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//Make the transition\r\n\t\t\t\t\tthis.currentState = this.delta.calculate(this.currentState.getToken()+currentInput);\r\n\t\t\t\t\tthis.currentlyRead += currentInput;\r\n\t\t\t\t\tSystem.out.println(\"Remainder for : \" + Integer.parseInt(this.currentlyRead ,2)\r\n\t\t\t\t\t\t\t\t\t\t+ \" -> \"+Integer.parseInt(this.gamma.getOuput(currentState),2));\r\n\t\t\t\t}\r\n\r\n\t}", "public static void howToEN() {\r\n\t\tSystem.out.println(\"--INSTRUCTIONS--\");\r\n\t\tSystem.out.println(\"Roll two dice. Each die has six faces representing values 1, 2, …, and 6, respectively.\\n \"\r\n\t\t\t\t+ \"Check the sum of the two dice. If the sum is 2, 3, or 12 (called craps), you lose; if the sum is 7 or\\n\"\r\n\t\t\t\t+ \" 11 (called natural), you win; if the sum is another value (i.e., 4, 5, 6, 8, 9, or 10), a point is\\n \"\r\n\t\t\t\t+ \"established. Continue to roll the dice until either a 7 or the same point value is rolled. If 7 is\\n \"\r\n\t\t\t\t+ \"rolled, you lose. Otherwise, you win.\\n\");\r\n\t\tSystem.out.println(\"\\nPress 0 to go back...\");\r\n\t\tdo {\r\n\t\t\tint num = check();\r\n\t\t\tif (num != 0) {\t\t\t\t\t\t\t\t\t// ako broj nije nula, dati upozorenje\r\n\t\t\t\tSystem.out.println(\"My lord, you need to press 0 (z-e-r-o) to go back. Now do it:\");\r\n\t\t\t} else\r\n\t\t\t\tbreak;\r\n\t\t} while (true);\r\n\t\tmenuEN();\r\n\t}", "void start() {\n \tm_e.step(); // 1, 3\n }", "void beforeStop();", "private void setTEMswitchesFromRunner(){\n\t\t//\n\t\tint nfeed =0;\n\t\tint avlnflg =0; \n\t\tint baseline =0;\t\t\n\t\tif(nfeedjrb[1].isSelected()){\n\t\t\tnfeed =1;\n\t\t}\n\t\tif(avlnjrb[1].isSelected()){\n\t\t\tavlnflg =1;\n\t\t}\n\t\tif(baselinejrb[1].isSelected()){\n\t\t\tbaseline =1;\n\t\t}\n\t\tTEM.runcht.cht.getBd().setBaseline(baseline); \t \n TEM.runcht.cht.getBd().setAvlnflg(avlnflg);\n TEM.runcht.cht.getBd().setNfeed(nfeed);\n \n //\n if (envmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEnvmodule(false);\n if (envmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEnvmodule(true);\n\n if (ecomodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEcomodule(false);\n if (ecomodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEcomodule(true);\n \n if (dslmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDslmodule(false);\n if (dslmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDslmodule(true);\n\n if (dsbmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDsbmodule(false);\n if (dsbmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDsbmodule(true);\n\t}", "public static void main (String args[]) {\n\t\tteste01();\n\t\tteste02();\n\t\tteste03();\n\t\t//teste04();\n\t}", "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString s = \"the sky is blue\";\n\t\tSystem.out.println(new ReverseWordsinaString().reverseWords(s));\n\n\t}", "public static void main(String[] args) {\n\t\tString ausgang = \"wörter starten mit großbuchstaben. pause nicht\";\r\n\t\tString newausgang = \"\";\r\n\r\n\t\tfor (int i = 0; i < ausgang.length(); i++) {\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tnewausgang = newausgang + Character.toUpperCase(ausgang.charAt(i));\r\n\r\n\t\t\t} else if (ausgang.charAt(i - 1) == ' ') {\r\n\t\t\t\tnewausgang = newausgang + Character.toUpperCase(ausgang.charAt(i));\r\n\t\t\t} else {\r\n\t\t\t\tnewausgang = newausgang + ausgang.charAt(i);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// normal dazu geben\r\n\t\t}\r\n\t\tSystem.out.println(ausgang);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(newausgang);\r\n\r\n\t}", "private static ArrayList<String> preCompileAfter(ArrayList<CommandNode> cmdNode, ArrayList<MemoryNode> memNode) {\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tstringList.add(\"#cmd:\");\n\t\tfor(CommandNode c:cmdNode)\n\t\t\tstringList.add(c.toString());\n\t\tstringList.add(\"#mem:\");\n\t\tfor(MemoryNode m:memNode)\n\t\t\tstringList.add(m.toString());\t\n\t\treturn stringList;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tString S=\"Good Morning to all\";\n\t\tString[] split=S.split(\" \");\n\t\tString Output=\"\";\n\t\t//String Reverse_word=\" \";\n\t\t\n\t\tfor(int i=0;i<split.length;i++)\n\t\t{\n\t\t\tString word=split[i];\n\t\t\tString Reverse_word=\"\";\n\t\t\tfor(int j=word.length()-1;j>=0;j--)\n\t\t\t{\n\t\t\t\tReverse_word=Reverse_word+word.charAt(j);\n\t\t\t\t\n\t\t\t}\n\t\t\tOutput=Output+Reverse_word+\" \";\n\t\t}\n\t\tSystem.out.println(Output);\n\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgetSprite().rotate(-5);\n\t\t\t\t\tempEffect = false;\n\t\t\t\t\tcustomMovement = false;\n\t\t\t\t\thitByEMP = false;\n\t\t\t\t}", "@Test\n public final void testRunResponseTransformer() throws Exception {\n for (Status status : Status.values()) {\n testRunResponseTransformer(status);\n }\n }", "protected void suiteTourne() {\n\t\tint direction = ev3.getDirection();\n\t\twhile (seenColor == ev3.SUIVRE) {\n\t\t\tev3.suiteTourne(direction);\n\t\t\tev3.setCourbe(ev3.getCourbe() + 1);\n\t\t\tseenColor = find.whatColor(ev3.lireColor());\n\t\t\tif (ev3.getCourbe() % 10 == 0) {\n\t\t\t\tgeorges = 0;\n\t\t\t\tev3.setDirection(1);\n\t\t\t}\n\t\t}\n\t\tev3.setDirection(1);\n\t}", "protected abstract void after();", "public static void main(String args[]){\n transationTest2(\"a\");\n }", "@Before\r\n\tpublic void setUp() throws Exception {\n\t\tSourceLocation testLocation = new SourceLocation(1, 1);\r\n\t\ttestStatement = new MoveToStatement(new HerePositionExpression(testLocation), testLocation);\r\n\t\ttask = new Task(\"test\", -10, testStatement);\r\n\t\ttask1 = new Task(\"test\", 0, testStatement);\r\n\t\ttask2 = new Task(\"test\", 10, testStatement);\r\n\t\ttask3 = new Task(\"test\", 20 , testStatement);\r\n\t\tunit= new Unit(world, false);\r\n\t\tscheduler1 = unit.getFaction().getScheduler();\r\n\t}", "String[] translate(String[] input);", "protected abstract void before();", "@Test\n\tpublic void revStrSentances() {\n\n\t\tString s = \"i like this program very much\";\n\t\tString[] words = s.split(\" \");\n\t\tString revStr = \"\";\n\t\tfor (int i = words.length - 1; i >= 0; i--) {\n\t\t\trevStr += words[i] + \" \";\n\n\t\t}\n\n\t\tSystem.out.println(revStr);\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"Sunday Perfect Day to start coding\";\n\t\t\n\t\tString [] reverseStr = str.split(\" \");\n\t\t\n\t\t//1ST WAY\n\t\tSystem.out.println(Arrays.toString(reverseStr));\n\t\tString store [] = new String[reverseStr.length];\n\t\tfor (int i = 0; i < reverseStr.length; i++) {\n\t\t\tstore[i]=reverseStr[reverseStr.length-1-i];\n\t\t}\n\t\tSystem.out.print(Arrays.toString(store));\n\t\t//--------------------------------------\n\t\t//This one would only print words without Array type\n//\t\tfor (int i = 0; i < reverseStr.length; i++) {\n//\t\t\tSystem.out.print(reverseStr[reverseStr.length-1-i] + \" \");\n//\t\t}\n\t\t//--------------------------------------\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t//2ND WAY\n\t\tfor (int i = 0; i < reverseStr.length/2; i++) {\n\t\t\tString temp = reverseStr[i];\n\t\t\treverseStr[i]=reverseStr[reverseStr.length-1-i];\n\t\t\treverseStr[reverseStr.length-1-i]=temp;\n\t\t}\n\t\tSystem.out.println(Arrays.toString(reverseStr));\n\t\t\n\t\t//--------------------------------------\n\t\tString str1 = \"Sunday Perfect Day to start coding\";\n\t\t\n\t\tString [] reverseStr1 = str.split(\" \");\n\t\tString store1 = \"\";\n\t\tfor (int i = 0; i < reverseStr1.length; i++) {\n\t\t\tchar []c1 = reverseStr1[i].toCharArray();\n\t\t\tfor (int j = 0; j < c1.length/2; j++) {\n\t\t\t\tchar temp = c1[j];\n\t\t\t\tc1[j]=c1[c1.length-1-j];\n\t\t\t\tc1[c1.length-1-j]=temp;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(c1));\n\t\t\tString reverse = new String(c1);\n\t\t\tstore1+=reverse+\" \";\n\t\t}\n\t\t\n\t\tSystem.out.println(store1);\n\t\tString [] splt2 = store1.split(\" \");\n\t\tSystem.out.println(Arrays.toString(splt2));\n\t\t\n\t\t\n\t\t\n\t\t//--------------------------------------\n\t\t//REVERSE\n//\t\tString []fruit = {\"Apple\"};\n//\t\tString fruit2 = \"\";\n//\t\tfor (int i = 1; i <= fruit[0].length(); i++) {\n//\t\t\tfruit2+=\"\"+fruit[0].charAt(fruit[0].length()-i);\n//\t\t\t\n//\t\t}\n//\t\tSystem.out.print(fruit2);\n//\t\tString []fruit3 = {fruit2};\n//\t\t\n//\t\tSystem.out.println();\n//\t\t\n//\t\tSystem.out.println(Arrays.toString(fruit3));\n//\t\t\n\t\t//--------------------------------------\n\t\t\n\n\t\t\n\t\t\n\t}", "void onTranslation(Sentence sentence);", "public static void main(String[] args) {\r\nSystem.out.println(\"this is the change\");\r\nSystem.out.println(\"this is the 2 change\");\r\nSystem.out.println(\"this is the 3 change\");\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString given1= \"Today is the Java Class\"; //This is the original sentence\n\t\tchar [] charArray = given1.toCharArray();\t\t// This sentence is placed in a charArray \n\t\t\n\t\tfor(int i = charArray.length-1; i>=0; i--) {\n\t\t\tSystem.out.print(charArray[i]);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t// This is the solution for Part 2 \"Reverse a string word by word\" \n\t\t\n\t\t/*\n\t\t * to reverse String\n\t\t * Step1: spit --> array of String\n\t\t * Step2: use for loop and use decrement to print values\n\t\t * Step3: \n\t\t */\n\t\tString given = \"Welcome to the Java class\";\n\t\t\n\t\tString reversed = \"\";\t\t\t\t\t\t\t//This string is empty\n\t\tString [] str = given.split(\" \");\t\t\t\t//This places the \"given\" in an array and splits it by space \n\t\tfor (int j=str.length-1;j>=0;j--) {\t\t\t\t//This for loop is reversing the string \n\t\t\treversed = reversed+str[j]+\" \";\n\t\t}\n\t\tSystem.out.println(reversed);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public String toString(){\n\t\treturn \"RUN\";\n\t}", "@Override\n\tpublic void exec() {\n\t\tauto.changerEtat(\"trS\");\n\t}", "public void run() {\n mTextView.setTranslationY(-mTextView.getHeight());\n mTextView.animate().setDuration(duration / 2).translationY(0).alpha(1)\n .setInterpolator(sDecelerator);\n }", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "void PrepareRun() {\n }", "public static void main(String[] args)\r\n {\r\n \t\r\n \tif (args[0].equals(\"-\"))\r\n \t\ttransform();\r\n \tif (args[0].equals(\"+\"))\r\n \t\tinverseTransform();\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\tint dir = 2;\n\t\tint x = 0, y = 0;\n\t\tString s = \"LRLBRRLFLLRBBRLFRL\";\n\t\t\n\t\tfor(int i = 0; i< s.length(); i++) {\n\t\t\tif(s.charAt(i) == 'L') {\n\t\t\t\tdir = (dir - 1 + 4) % 4;\n\t\t\t} else if(s.charAt(i) == 'R') {\n\t\t\t\tdir = (dir + 1) % 4;\n\t\t\t} else if(s.charAt(i) == 'B') {\n\t\t\t\tdir = (dir + 2) % 4;\n\t\t\t} else if(s.charAt(i) == 'F') {\n\t\t\t\tif(dir == 0) {\n\t\t\t\t\ty++;\n\t\t\t\t} else if(dir == 1) {\n\t\t\t\t\tx++;\n\t\t\t\t} else if(dir == 2) {\n\t\t\t\t\ty--;\n\t\t\t\t} else if(dir == 3) {\n\t\t\t\t\tx--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tif(x == 0 && y == 0){\n\t\t\tsb.append(\"Same position, \");\n\t\t} \n\t\t\n\t\tif(x < 0) {\n\t\t\tsb.append((-1 * x) + \" step(s) right, \");\n\t\t}\n\t\t\n\t\tif(x > 0) {\n\t\t\tsb.append(x + \" step(s) left, \");\n\t\t}\n\t\t\n\t\tif(y < 0) {\n\t\t\tsb.append((-1 * y) + \" step(s) straight, \");\n\t\t}\n\t\t\n\t\tif(y > 0) {\n\t\t\tsb.append(y + \" step(s) back \");\n\t\t}\n\t\t System.out.println(sb);\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint x=5, y=10;\n\t\t\n\t\tx=x+y;\n\t\ty=x-y;\n\t\tx=x-y;\n\t\t\n\t\tSystem.out.println(\"x = \"+x+\" and y = \"+y);\n\t\t\n\t\t\n\t\tString a=\"Sabeen\", b=\"Sadiq\";\n\t\t\n\t\t\n\t\t\n\n\t}", "public void undoCommands(ChessBoard board){\n\t\tfor(LiftPlaceCommand command : placeCommandSequence)\n\t\t\tcommand.undoPlace( board);\n\t\tfor(LiftPlaceCommand command : liftCommandSequence)\n\t\t\tcommand.undoLift( board);\n\t\tperformingPiece.decrementMovesMade();\n\t}", "private void executePrecomGenericRulesOnDelta(ActionContext context,\n\t\t\tActionOutput actionOutput) throws Exception {\n\t\tActionSequence actions = new ActionSequence();\n\t\tActionsHelper.readFakeTuple(actions);\n\t\tReadAllInMemoryTriples.addToChain(Consts.CURRENT_DELTA_KEY, actions);\n\t\tActionsHelper.mapReduce(Integer.MIN_VALUE, outputStep, false, actions);\n\t\tactionOutput.branch(actions);\n\t}", "private void proxyBeforeAfterMethod(ClassWriterTracker ct, Class type, Method meth, Class[] helperParams,\n Method before, Method after, Class[] afterParams) {\n\n MethodVisitor mv = ct.visitMethod(meth.getModifiers() & ~Modifier.SYNCHRONIZED, meth.getName(),\n Type.getMethodDescriptor(meth), null, null);\n mv.visitCode();\n\n int beforeRetPos = -1;\n int variableNr = helperParams.length;;\n\n // invoke before\n if (before != null) {\n // push all the method params to the stack\n // we only start at param[1] as param[0] of the helper method is the instance itself\n // and will get loaded with ALOAD_0 (this)\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n\n mv.visitMethodInsn(Opcodes.INVOKESTATIC, Type.getInternalName(before.getDeclaringClass()), before.getName(),\n Type.getMethodDescriptor(before), false);\n\n if (after != null && before.getReturnType() != void.class) {\n // this is always a boolean and 1 after the\n beforeRetPos = variableNr++;\n mv.visitVarInsn(AsmHelper.getStoreInsn(before.getReturnType()), beforeRetPos);\n }\n }\n\n // invoke super\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, Type.getInternalName(type), meth.getName(),\n Type.getMethodDescriptor(meth), false);\n\n // invoke after\n if (after != null) {\n int retPos = -1;\n if (meth.getReturnType() != void.class) {\n retPos = variableNr++;\n mv.visitVarInsn(AsmHelper.getStoreInsn(meth.getReturnType()), retPos);\n }\n\n // push all the method params to the stack\n // we only start at param[1] as param[0] of the helper method is the instance itself\n // and will get loaded with ALOAD_0 (this)\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n\n if (retPos != -1) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(meth.getReturnType()),retPos);\n }\n if (beforeRetPos != -1) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(before.getReturnType()),beforeRetPos);\n }\n mv.visitMethodInsn(Opcodes.INVOKESTATIC, Type.getInternalName(after.getDeclaringClass()), after.getName(),\n Type.getMethodDescriptor(after), false);\n }\n\n mv.visitInsn(AsmHelper.getReturnInsn(meth.getReturnType()));\n mv.visitMaxs(-1, -1);\n mv.visitEnd();\n }" ]
[ "0.5453681", "0.5246337", "0.5189891", "0.5183545", "0.50676996", "0.5032007", "0.4972847", "0.49317256", "0.49265313", "0.492346", "0.48748213", "0.48510134", "0.48291788", "0.48158014", "0.47146758", "0.4699296", "0.4697359", "0.46851373", "0.46843052", "0.46838534", "0.4681194", "0.46777928", "0.46654513", "0.4650191", "0.46483433", "0.46423703", "0.46329644", "0.46188045", "0.46128592", "0.46043816", "0.4596691", "0.45788106", "0.45753568", "0.45689365", "0.45635217", "0.45632488", "0.4556907", "0.4548125", "0.45408466", "0.4533438", "0.4526728", "0.45136446", "0.44852212", "0.44826478", "0.44825122", "0.44758266", "0.44633365", "0.44631144", "0.44610158", "0.44595185", "0.44517383", "0.44498882", "0.44394508", "0.44352365", "0.44107676", "0.44086888", "0.44060224", "0.44018394", "0.4396798", "0.43926954", "0.43917298", "0.43854856", "0.43777478", "0.4374706", "0.43710715", "0.43694693", "0.43581834", "0.43567118", "0.43557164", "0.43555513", "0.43466517", "0.43435583", "0.43412146", "0.43404913", "0.43392175", "0.4337256", "0.43340036", "0.43302593", "0.43302298", "0.43253055", "0.43236944", "0.432112", "0.43201318", "0.43198767", "0.43167028", "0.4316277", "0.43129703", "0.4297246", "0.42913294", "0.4290667", "0.4286506", "0.42829067", "0.4279654", "0.42793295", "0.4277797", "0.4274063", "0.42736965", "0.42731875", "0.427297", "0.42556456", "0.4251577" ]
0.0
-1
substringRunes returns the substring from start to end in runes. The resuls is truncated to the snippet.
String substringRunes(int start, int end) { start -= this.offset; end -= this.offset; int runes = snippet.codePointCount(0, snippet.length()); if (start < 0) { start = 0; } if (end < 0) { end = 0; } if (start > runes) { start = runes; } if (end > runes) { end = runes; } return snippet.substring( snippet.offsetByCodePoints(0, start), snippet.offsetByCodePoints(0, end) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public My_String substring(int start, int end);", "public static boolean goodRuns(String sequence) {\n\t\tString run = sequence.charAt(0) + \"\";\n\t\tint longestRun = 0;\n\t\tfor (int i = 1; i < sequence.length(); i++) {\n\t\t\tif (run.contains(sequence.charAt(i) + \"\")) run += sequence.charAt(i);\n\t\t\telse {\n\t\t\t\tif (longestRun < run.length()) longestRun = run.length();\n\t\t\t\trun = sequence.charAt(i) + \"\";\n\t\t\t}\n\t\t}\n\t\treturn longestRun <= MAX_RUN;\n\t}", "public long distinctSubstring() {\n long ans = 1;\n int n = rank.length;\n for (int i = 0; i < n; i++) {\n long len = n - i;\n if (rank[i] < n - 1) {\n len -= lcp[rank[i]];\n }\n ans += len;\n }\n return ans;\n }", "public String substring (int s, int e) {\n return tags.substring (s, e);\n }", "public static void substringtest(){\n }", "public static String subString(String string, int start, int length){\n\t\treturn string.substring(start, Math.min(start + length, string.length()));\n\t}", "public static void main(String[] args) {\n String str = \"This is text\";\n\n // Returns the substring from index 3 to the end of string.\n String substr = str.substring(3);\n\n System.out.println(\"- substring(3)=\" + substr);\n\n // Returns the substring from index 2 to index 7.\n substr = str.substring(2, 7);\n\n System.out.println(\"- substring(2, 7) =\" + substr);\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tSystem.out.println(\"1st example :\"+\"\\n\");\r\n\t\tString str= new String(\"quick brown fox jumps over the lazy dog\");\r\n\t System.out.println(\"Substring starting from index 17:\");\r\n\t System.out.println(str.substring(17));\r\n\t System.out.println(\"Substring starting from index 15 and ending at 20:\");\r\n\t System.out.println(str.substring(17, 23));\r\n\t\t\r\n\t System.out.println(\"2nd example :\"+\"\\n\");\r\n\t \r\n\t String mystring = new String(\"Lets Learn Java\");\r\n\t\t/* The index starts with 0, similar to what we see in the arrays\r\n\t\t * The character at index 0 is s and index 1 is u, since the beginIndex\r\n\t\t * is inclusive, the substring is starting with char 'u'\r\n\t\t */\r\n\t\tSystem.out.println(\"substring(1):\"+mystring.substring(1));\r\n\t\t\t\r\n\t\t/* When we pass both beginIndex and endIndex, the length of returned\r\n\t\t * substring is always endIndex - beginIndex which is 3-1 =2 in this example\r\n\t\t * Point to note is that unlike beginIndex, the endIndex is exclusive, that is \r\n\t\t * why char at index 1 is present in substring while the character at index 3 \r\n\t\t * is not present.\r\n\t\t */\r\n\t\tSystem.out.println(\"substring(1,3):\"+mystring.substring(1,3));\r\n\t}", "public String substring(int start, int end)\n\t{\n\t\tCNode beginngNode = getCNodeAt(start, firstC);\n\t\tchar[] subString = new char[end - start];\n\t\trecursiveSubstring(subString, (end-start), 0, beginngNode);\n\t\tString result = new String(subString);\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tString[] str=new String[10];\n\t\t//extracting substring from a string\n\t\tString subStr= str[9].substring(2,5);\n\t\t//displaying the output\n\t\tSystem.out.println(subStr);\n\n\t}", "@Override\n public CharSequence subSequence(int start, int end) {\n return mString.subSequence(start, end);\n }", "public static void main(String[] args) {\n\t\tString S = \"abbbb\";\r\n\t\tString T = \"aa\";\r\n\r\n\t\tString sub = new MinimumWindowSubstring().minWindow(S, T);\r\n\r\n\t\tSystem.out.println(sub);\r\n\t}", "@Test\n\tvoid testMinimumWindowSubstring() {\n\t\tassertEquals(\"BANC\", new MinimumWindowSubstring().minWindow(\"ADOBECODEBANC\", \"ABC\"));\n\t\tassertEquals(\"BECODEBA\", new MinimumWindowSubstring().minWindow(\"ADOBECODEBANC\", \"ABCB\"));\n\t\tassertEquals(\"aa\", new MinimumWindowSubstring().minWindow(\"aa\", \"aa\"));\n\t}", "public String substring(int start, int end)\r\n/* 99: */ {\r\n/* 100:117 */ int length = end - start;\r\n/* 101:118 */ if ((start > this.pos) || (length > this.pos)) {\r\n/* 102:119 */ throw new IndexOutOfBoundsException();\r\n/* 103: */ }\r\n/* 104:121 */ return new String(this.chars, start, length);\r\n/* 105: */ }", "public static String pickSubstring(String samp_str, String pat_str) {\r\n\t\tint ln1 = samp_str.length();\r\n\t\tint ln2 = pat_str.length();\r\n\t\tif (ln1 < ln2) {\r\n\t\t\tSystem.out.println(\"No such window can exist\");\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tint gvn_strg[] = new int[256];\r\n\t\tint pat_stgr[] = new int[256];\r\n\t\tfor (int i = 0; i < ln2; i++)\r\n\t\t\tpat_stgr[pat_str.charAt(i)]++;\r\n\t\tint ctr = 0, start = 0, start_index = -1, min_length = Integer.MAX_VALUE;\r\n\t\tfor (int j = 0; j < ln1; j++) {\r\n\t\t\tgvn_strg[samp_str.charAt(j)]++;\r\n\t\t\tif (pat_stgr[samp_str.charAt(j)] != 0 && gvn_strg[samp_str.charAt(j)] <= pat_stgr[samp_str.charAt(j)])\r\n\t\t\t\tctr++;\r\n\t\t\tif (ctr == ln2) {\r\n\t\t\t\twhile (gvn_strg[samp_str.charAt(start)] > pat_stgr[samp_str.charAt(start)]\r\n\t\t\t\t\t\t|| pat_stgr[samp_str.charAt(start)] == 0) {\r\n\t\t\t\t\tif (gvn_strg[samp_str.charAt(start)] > pat_stgr[samp_str.charAt(start)]\r\n\t\t\t\t\t\t\t|| pat_stgr[samp_str.charAt(start)] == 0)\r\n\t\t\t\t\t\tgvn_strg[samp_str.charAt(start)]--;\r\n\t\t\t\t\tstart++;\r\n\t\t\t\t}\r\n\t\t\t\tint length_window = j - start + 1;\r\n\t\t\t\tif (min_length > length_window) {\r\n\t\t\t\t\tmin_length = length_window;\r\n\t\t\t\t\tstart_index = start;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (start_index == -1) {\r\n\t\t\tSystem.out.println(\"No such window exists\");\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn samp_str.substring(start_index, start_index + min_length);\r\n\t}", "public String findAllSubstring(String s) {\n Set<String> set = new HashSet<>();\n String res = \"\";\n int max = -1;\n\n for (int i = 0; i < s.length(); i++) {\n String cur = \"\";\n for (int j = i; j < s.length(); j++) {\n cur += s.charAt(j);\n if (set.contains(cur) && cur.length() > max) {\n res = cur;\n max = cur.length();\n } else {\n set.add(cur);\n }\n }\n }\n return res;\n }", "String extractSlice(String s, int where, String start, String end) {\n int startInd;\n int endInd;\n\n if (start == null) {\n startInd = where;\n } else {\n int i = s.indexOf(start, where);\n if (i < 0) {\n return null;\n }\n startInd = i + start.length();\n }\n\n if (end == null) {\n endInd = s.length();\n } else {\n endInd = s.indexOf(end, startInd);\n if (endInd == -1) {\n return null;\n }\n }\n\n try {\n return s.substring(startInd, endInd);\n } catch (StringIndexOutOfBoundsException e) {\n return null;\n }\n }", "public int getRuns() {\n return runs;\n }", "public abstract String getLongestRepeatedSubstring();", "protected RMXStringRun(RMXString anXStr, TextRun aRun)\n {\n _xstr = anXStr;\n _textLine = aRun.getLine();\n _start = _textLine.getStartCharIndex() + aRun.getStartCharIndex();\n _end = _textLine.getStartCharIndex() + aRun.getEndCharIndex();\n _style = aRun.getStyle();\n }", "public void run(String... strings) throws Exception {\n }", "static String doit(final String string1, final String string2) {\n String shorterString; // a\n String longerString; // b\n if (string1.length() > string2.length()) {\n shorterString = string2;\n longerString = string1;\n } else {\n longerString = string2;\n shorterString = string1;\n }\n String r = \"\";\n\n for (int i = 0; i < shorterString.length(); i++) {\n for (int j = shorterString.length() - i; j > 0; j--) {\n for (int k = 0; k < longerString.length() - j; k++) {\n if (shorterString.regionMatches(i, longerString, k, j) && j > r.length()) {\n r = shorterString.substring(i, i + j);\n }\n }\n } // Ah yeah\n }\n return r;\n\n }", "public static void main(String[] args) {\n String str = \"geeksforgeeks\";\n System.out.println(longestRepeatedSubstring(str));\n String str1 = \"aaaaaaabbbbbaaa \";\n System.out.println(longestRepeatedSubstring(str1));\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(longestRepeatingSubstringUsingSuffixArray(\"abcabc\"));\n\n\t}", "@Test\n @ExcludeIn({ DB2, DERBY, FIREBIRD })\n public void substring() {\n query().from(Constants.employee).where(Constants.employee.firstname.substring((-3), 1).eq(Constants.employee.firstname.substring((-2), 1))).select(Constants.employee.id).fetch();\n }", "public String minimumWindowSubstring(String s, String t) {\n\t\tif (s == null || t == null || s.length() < t.length() || t.length() == 0) return \"\";\n\t\tint[] charCnt = new int[256];\n\t\tint cnt = 0; // the number of different characters in t\n\t\tfor (char c: t.toCharArray()) {\n\t\t\tif (charCnt[c] == 0) cnt++;\n\t\t\tcharCnt[c]++;\n\t\t}\n\t\tchar[] S = s.toCharArray();\n\t\tString res = \"\";\n\t\tfor (int start = 0, end = 0; start < S.length; start++) {\n\t\t\twhile(end < S.length && cnt != 0) {\n\t\t\t\tcharCnt[S[end]]--;\n\t\t\t\tif (charCnt[S[end]] == 0) cnt--;\n\t\t\t\tend++;\n\t\t\t}\n\t\t\tif (cnt == 0 && \n\t\t\t (res.length() == 0 || res.length() > end - start)) res = s.substring(start, end);\n\t\t\tif (charCnt[S[start]] == 0) cnt++;\n\t\t\tcharCnt[S[start]]++;\n\t\t}\n\t\treturn res;\n\t}", "public int getRuns();", "public String substring(int arg0, int arg1) {\n return content.substring(arg0, arg1);\n }", "@Override\n public void run(String... strings) throws Exception {\n }", "public static void main(String[] args){\n\t\tSystem.out.println(makeThreeSubstr(\"hello\",0,2)); //should be hehehe\n\t\tSystem.out.println(makeThreeSubstr(\"shenanigans\",3,7)); //should be naninaninani\n\t}", "public static int wordsEndsWithSubstring(String s, String substring) {\n\t\tint numb = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\ttry {\n\t\t\tif(s.substring(i,i+substring.length()).equals(substring) && s.substring(i+substring.length(), i+substring.length()+1).equals(\" \")) {\n\t\t\t\tnumb++;\n\t\t\t}\n\t\t\t}catch(Exception e) {}\n\t\t}\n\t\t\n\t\treturn numb;\n\t}", "public static void main(String[] args) {\n\t\tDivideRepeatNumbr.divide(229, 990);\n\t\tSystem.out.println(DivideRepeatNumbr.perfectSubstring(\"1\", 1));\n\t}", "public static int maxRun(String str) {\n\t\tif(str.length() == 0) return 0;\n\t\tint max = 1, curLen = 1;\n\t\tchar lastChar = str.charAt(0);\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i) == lastChar) {\n\t\t\t\tcurLen++;\n\t\t\t} else {\n\t\t\t\tlastChar = str.charAt(i);\n\t\t\t\tcurLen = 1;\n\t\t\t}\n\t\t\tif (curLen > max) max = curLen;\n\t\t}\n\t\treturn max;\n\t}", "public static void main(String[] args) {\n\t\tString str=\"Suman\";\n\t\tint len=str.length();\n String s1=str.substring(1,len-1);\n System.out.println(s1);\n\t}", "public static String substring (String str, int beginning, int end) {\n int i = 0;\n while (i < str.length()){\n if (beginning >= str.length() || end >= str.length()) return \"\";\n if (beginning < 0 || end < 0) return \"\";\n\n }\n return \"\";\n\n\n }", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "public static int wordsEndsWithSubstring(String s, String substring) {\n \tint num = 0;\n \tString[] arr = s.split(\" \");\n \tfor(int i = 0; i < arr.length; i++) {\n \t\tif(arr[i].length() >= substring.length()) {\n \t\t\tString temp = arr[i].substring(arr[i].length() - substring.length());\n \t\t\tif(temp.equals(substring)) num++;\n \t\t}\n \t}\n return num;\n }", "String snippet(int line);", "public String getTextSubstring(int start, int end) {\r\n return text.subSequence(start, end).toString();\r\n }", "public MyString2 substring(int start) {\n\t\tString result = \" \";\n\t\tfor (int i = start, j = 0; i < s.length(); i++, j++) {\n\t\t\tresult += this.s.charAt(i);\n\t\t}\n\t\treturn new MyString2(result);\n\t}", "public int substringWidth(String str, int offset, int length) {\r\n\t\tint w = 0;\r\n\t\tfor (int i = offset; i < offset + length; i++) {\r\n\t\t\tw += charWidth(str.charAt(i));\r\n\t\t}\r\n\t\treturn w;\r\n\t}", "@Test\n public void testSubstring1() {\n Object s = \"abcdef\";\n String expResult = \"abcdef\";\n String result = StringUtils.substring(s, 0);\n Assertions.assertEquals(expResult, result);\n }", "private String _substring(String s, int start, int end) {\n if (end >= 0) {\n return s.substring(start, end);\n }\n else {\n return \"0\";\n }\n }", "CharSequence subSequence(int start, int end) throws IndexOutOfBoundsException;", "public static void main(String[] args) {\n\n\t\tString s = \"coding\";\n\t\tSystem.out.println(s.substring(2));\n\t\tSystem.out.println(s.substring(2, 5));\n\t\t\n\t\tint ci = 3;\n\t\tSystem.out.println(s.substring(0, ci) + s.substring(ci + 1));\n\t}", "public String sliceString(String message, int whichSlice, int totalSlices) {\n StringBuilder sb = new StringBuilder();\n for (int i = whichSlice; i < message.length(); i += totalSlices){\n sb.append(message.charAt(i));\n }\n return sb.toString();\n }", "public static int wordsEndsWithSubstring(String s, String substring) {\n\t\tint yeehaw=0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif(s.charAt(i)==' ' && i-substring.length()>-1) {\n\t\t\t if(s.substring(i-substring.length(), i).equals(substring)) {\n\t\t\t\t yeehaw++;\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\treturn yeehaw;\n\t}", "public void testGRECLIPSE731e() throws Exception {\n String contents = \"def foo() { } \\nString xxx\\nxxx = foo()\\nxxx\";\n int start = contents.lastIndexOf(\"xxx\");\n int end = start + \"xxx\".length();\n assertType(contents, start, end, \"java.lang.String\");\n }", "public String substring(int beg, int end) {\r\n\t\treturn text.substring(beg, end);\r\n\t}", "public AppendableCharSequence subSequence(int start, int end)\r\n/* 39: */ {\r\n/* 40: 52 */ return new AppendableCharSequence(Arrays.copyOfRange(this.chars, start, end));\r\n/* 41: */ }", "public static void main(String[] args) {\n\t\tSystem.out.println(FindLongCommSubstringInt(\"tesla\",\"slate\"));\n\t\t//System.out.println(FindLongCommSubstringInt(\"xxxx\",\"slate\"));\n\t\tSystem.out.println(FindLongCommSubstringInt(\"xxxxx\",\"slate\"));\n\t}", "public static void main(String[] args) {\n\t\tString s1=\"abc def ghi\";\n\t\tString s3=\"rupomroy\";\n\t\tString s7 =s3.substring(0, 4);\n\t\tSystem.out.println(s7);\n\t\t\n\t\t String[] s5 =s3.split(\"roy\");\n\t\t System.out.println(s5[0]);\n String s2 = s1.substring(4);\t\n System.out.println(s2);\n\t\t\n\t\t String[] s = s1.split(\" \");\n\t\t System.out.println(s[0]);\n\t\t System.out.println(s[1]);\n\t\t System.out.println(s[2]);\n\t\t\n\t\tSystem.out.println(s1);\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n String s = \"zazb\";\n// String s = \"zbza\";\n String subStr = lastSubstring(s);\n System.out.println(subStr);\n }", "@Test\n\tpublic void testRightmostStartingIndicesIntermediateCompleteRuns(){\n\t\t\n\t\t// ensure that complete runs are skipped over\n\t\tassertRightmostStartingIndices(\"2,4,3|.......-.xxxx$2.-........\", 5, RUN_COMPLETE, 12); // second run is complete; in this case, its sequence will be trimmed and removed from the decomposition\n\t\tassertRightmostStartingIndices(\"2,4,3|.......-.xxxx$2-........\", 5, RUN_COMPLETE, 12);\n\t\tassertRightmostStartingIndices(\"2,4,3|.......-xxxx$2.-........\", 5, RUN_COMPLETE, 12);\n\t\tassertRightmostStartingIndices(\"2,4,3|.......-xxxx$2-........\", 5, RUN_COMPLETE, 12);\n\t\t\n\t\t// ensure that edge complete runs are ignored (these are outside of the decomposition boundaries and would produce wrong results if included)\n\t\tassertRightmostStartingIndices(\"4,3|.........-xxx$2\", 5, RUN_COMPLETE);\n\t\tassertRightmostStartingIndices(\"5,2,4|xxxxx$1-.......\", RUN_COMPLETE, 0, 3);\n\t\tassertRightmostStartingIndices(\"5,2,4,3|xxxxx$1-.......-xxx$4\", RUN_COMPLETE, 0, 3, RUN_COMPLETE);\n\t\t\n\t}", "public static int lengthOfLongestSubstringUsingSet(String s) {\n\t\tif (s == null || s.length() == 0)\n\t\t\treturn 0;\n\n\t\tint n = s.length();\n\t\tSet<Character> set = new HashSet<>();\n\t\tint ans = 0, start = 0, end = 0;\n\t\twhile (start <= end && end < n) {\n\t\t\t// try to extend the range [i, j]\n\t\t\tif (!set.contains(s.charAt(end))) {\n\t\t\t\tset.add(s.charAt(end));\n\t\t\t\tend++;\n\n\t\t\t\tans = Math.max(ans, end - start); // Update ans\n\t\t\t} else {\n\t\t\t\tset.remove(s.charAt(start++));\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "public String minWindow(String S, String T) {\r\n\t\t// Note: The Solution object is instantiated only once and is reused by\r\n\t\t// each test case.\r\n\t\tif (T.length() > S.length()) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tMap<Character, Integer> table = new HashMap<Character, Integer>();\r\n\t\tchar[] ss = S.toCharArray();\r\n\t\tchar[] tt = T.toCharArray();\r\n\t\tMap<Character, Integer> ttable = new HashMap<Character, Integer>();\r\n\t\tArrayList<Character> cs = new ArrayList<Character>();\r\n\t\tfor (char c : tt) {\r\n\t\t\tif (ttable.containsKey(c)) {\r\n\t\t\t\tint num = ttable.get(c);\r\n\t\t\t\tttable.put(c, num + 1);\r\n\t\t\t} else {\r\n\t\t\t\tttable.put(c, 1);\r\n\t\t\t}\r\n\t\t\tcs.add(c);\r\n\t\t}\r\n\t\tint start = -1;\r\n\t\tint end = -1;\r\n\t\tString substring = \"\";\r\n\t\tfor (int i = 0; i < ss.length; i++) {\r\n\t\t\tif (ttable.keySet().contains(ss[i])) {\r\n\t\t\t\tif (-1 == start) {\r\n\t\t\t\t\tstart = i;\r\n\t\t\t\t}\r\n\t\t\t\tint num = ttable.get(ss[i]);\r\n\t\t\t\tif (num > 1) {\r\n\t\t\t\t\tttable.put(ss[i], num - 1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tttable.remove(ss[i]);\r\n\t\t\t\t}\r\n\t\t\t\tif (ttable.isEmpty()) {\r\n\t\t\t\t\tend = i;\r\n\t\t\t\t\tsubstring = S.substring(start, end + 1);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} else if (cs.contains(ss[i])) {\r\n\t\t\t\tif (table.containsKey(ss[i])) {\r\n\t\t\t\t\tint num = table.get(ss[i]);\r\n\t\t\t\t\ttable.put(ss[i], num + 1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttable.put(ss[i], 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (-1 == start || -1 == end) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tfor (start = start + 1; start <= ss.length - tt.length\r\n\t\t\t\t&& end < ss.length; start++) {\r\n\t\t\tif (!cs.contains(ss[start - 1])) {\r\n\t\t\t\tString tmp = S.substring(start, end + 1);\r\n\t\t\t\tif (tmp.length() < substring.length()) {\r\n\t\t\t\t\tsubstring = tmp;\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t} else {\r\n\t\t\t\tif (table.containsKey(ss[start - 1])) {\r\n\t\t\t\t\tint num = table.get(ss[start - 1]);\r\n\t\t\t\t\tif (num > 1) {\r\n\t\t\t\t\t\ttable.put(ss[start - 1], num - 1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttable.remove(ss[start - 1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString tmp = S.substring(start, end + 1);\r\n\t\t\t\t\tif (tmp.length() < substring.length()) {\r\n\t\t\t\t\t\tsubstring = tmp;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (end = end + 1; end < ss.length; end++) {\r\n\t\t\t\t\t\tif (ss[start - 1] == ss[end]) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (cs.contains(ss[end])) {\r\n\t\t\t\t\t\t\tif (table.containsKey(ss[end])) {\r\n\t\t\t\t\t\t\t\tint num = table.get(ss[end]);\r\n\t\t\t\t\t\t\t\ttable.put(ss[end], num + 1);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\ttable.put(ss[end], 1);\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\tif (end < ss.length) {\r\n\t\t\t\t\t\tString tmp = S.substring(start, end + 1);\r\n\t\t\t\t\t\tif (tmp.length() < substring.length()) {\r\n\t\t\t\t\t\t\tsubstring = tmp;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn substring;\r\n\t}", "@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }", "public void setRuns(int runs);", "private static CharSequence[] splitOnSpaceRuns(CharSequence read) {\n int lastStart = 0;\n ArrayList<CharSequence> segs = new ArrayList<CharSequence>(5);\n int i;\n for(i=0;i<read.length();i++) {\n if (read.charAt(i)==' ') {\n segs.add(read.subSequence(lastStart,i));\n i++;\n while(i < read.length() && read.charAt(i)==' ') {\n // skip any space runs\n i++;\n }\n lastStart = i;\n }\n }\n if(lastStart<read.length()) {\n segs.add(read.subSequence(lastStart,i));\n }\n return (CharSequence[]) segs.toArray(new CharSequence[segs.size()]); \n }", "static int isSubstring(String s1, String s2) {\n int m = s1.length();\n int n = s2.length();\n\n // A loop to slide pat[] one by one\n for (int i = 0; i <= n - m; i++) {\n int j;\n\n // For current index i, check for pattern match\n for (j = 0; j < m; j++) {\n if (s2.charAt(i + j) != s1.charAt(j)) {\n break;\n }\n }\n\n if (j == m) {\n return i;\n }\n }\n return -1;\n }", "@Test\n\tvoid testLongestSubstringWithoutRepeatingCharacters() {\n\t\t// Test for LongestSubstringWithoutRepeatingCharacters\n\t\tLongestSubstringWithoutRepeatingCharacters tester = new LongestSubstringWithoutRepeatingCharacters();\n\t\tassertEquals(3, tester.lengthOfLongestSubstring(\"abcabcbb\"));\n\t\tassertEquals(1, tester.lengthOfLongestSubstring(\"bbbbb\"));\n\t\tassertEquals(3, tester.lengthOfLongestSubstring(\"pwwkew\"));\n\t\tassertEquals(6, tester.lengthOfLongestSubstring(\"ohvhjdml\"));\n\t\tassertEquals(1, tester.lengthOfLongestSubstring(\" \"));\n\t\tassertEquals(5, tester.lengthOfLongestSubstring(\"tmmzuxt\"));\n\t\t\n\t\t// Test for LongestSubstringWithoutRepeatingCharacters2\n\t\tLongestSubstringWithoutRepeatingCharacters2 tester2 = new LongestSubstringWithoutRepeatingCharacters2();\n\t\tassertEquals(3, tester2.lengthOfLongestSubstring(\"abcabcbb\"));\n\t\tassertEquals(1, tester2.lengthOfLongestSubstring(\"bbbbb\"));\n\t\tassertEquals(3, tester2.lengthOfLongestSubstring(\"pwwkew\"));\n\t\tassertEquals(6, tester2.lengthOfLongestSubstring(\"ohvhjdml\"));\n\t\tassertEquals(1, tester2.lengthOfLongestSubstring(\" \"));\n\t\tassertEquals(5, tester2.lengthOfLongestSubstring(\"tmmzuxt\"));\n\t}", "public static void main(String[] args) {\n String s = \"ab\";\n\n\n int res = countSubstrings(s);\n System.out.println(res);\n\n }", "public static void main(String [] args){\n System.out.println(lengthOfLongestSubstring(\"1a1b1c1d1\"));\n System.out.println(lengthOfLongestSubstring1(\"1a1b1c1d1\"));\n\n System.out.println(17/10);\n }", "public static void main(String[] args) {\n\t\tString sentence = \"IPad wrote [236] lines of code today\";\n\t\t\n\t\t// assign to variable and print the number between\n\n\t\tint start = sentence .indexOf('[') + 1;\n\t\tint end = sentence.indexOf(']');\n\t\tString codeCount = sentence.substring(start, end);\n\t\tSystem.out.println(\"Lines of code: \"+ codeCount);\n\t\t\n\t\t// all above code can be written in one line as below\n\t\t\n\t\t//System.out.println(\"Lines of code: \"+ sentence.substring(sentence.indexOf(']'),sentence.indexOf(']'));\n\t\t\n\t}", "public List<Integer> findSubstring(String s, String[] words) {\n if (s == null || s.isEmpty() || words == null || words.length == 0) {\n return new ArrayList<>();\n }\n\n List<Integer> res = new ArrayList<>();\n int size = words.length;\n int length = words[0].length();\n\n if (s.length() < size * length) {\n return new ArrayList<>();\n }\n\n Map<String,Integer> covered = new HashMap<>();\n\n for (int j=0; j<size; j++) {\n if (s.indexOf(words[j]) < 0) {\n return res;\n }\n\n covered.compute(words[j], (k, v) -> v != null ? covered.get(k)+1 : 1);\n }\n\n int i=0;\n int sLength = s.length();\n while(sLength -i >= size * length){\n Map<String, Integer> temp = new HashMap<>(covered);\n\n for (int j=0; j<words.length; j++){\n String testStr = s.substring(i + j*length, i + (j+1)*length);\n\n if (temp.containsKey(testStr)){\n if (temp.get(testStr) == 1)\n temp.remove(testStr);\n else\n temp.put(testStr, temp.get(testStr)-1);\n }\n else {\n break;\n }\n }\n\n if (temp.size() == 0) {\n res.add(i);\n }\n\n i++;\n }\n return res;\n }", "public static void main(String[] args) {\n\t\tString name=\"Merzet\";\n\t\t\n\t\t//rze\n\t\tSystem.out.println( name.substring(2, 5));\n\t\t\n\t\t//System.out.println(name.substring(5,1)); wrong\n\t\t\n\t\t//System.out.println( name.substring(1, 10));wrong no 10 letters Merzet\n\t\t\n\t\tSystem.out.println( name.substring(1, 6)); //answer erzet sebabi o dan baslap sanayar\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "static String findSubString(String str) \n { \n int n = str.length(); \n \n // Count all distinct characters. \n int dist_count = 0; \n \n boolean[] visited = new boolean[MAX_CHARS]; \n Arrays.fill(visited, false); \n for (int i=0; i<n; i++) \n { \n if (visited[str.charAt(i)] == false) \n { \n visited[str.charAt(i)] = true; \n dist_count++; \n } \n } \n \n // We basically maintain a window of characters that contains all characters of given string. \n int start = 0, start_index = -1; \n int min_len = Integer.MAX_VALUE; \n \n int count = 0; \n int[] curr_count = new int[MAX_CHARS]; \n for (int j=0; j<n; j++) \n { \n // Count occurrence of characters of string \n curr_count[str.charAt(j)]++; \n \n // If any distinct character matched, then increment count \n if (curr_count[str.charAt(j)] == 1 ) \n count++; \n \n // if all the characters are matched \n if (count == dist_count) \n { \n // Try to minimize the window i.e., check if \n // any character is occurring more no. of times \n // than its occurrence in pattern, if yes \n // then remove it from starting and also remove \n // the useless characters. \n while (curr_count[str.charAt(start)] > 1) \n { \n if (curr_count[str.charAt(start)] > 1) \n curr_count[str.charAt(start)]--; \n start++; \n } \n \n // Update window size \n int len_window = j - start + 1; \n if (min_len > len_window) \n { \n min_len = len_window; \n start_index = start; \n } \n } \n } \n // Return substring starting from start_index \n // and length min_len \n return str.substring(start_index, start_index+min_len); \n }", "public static void main(String[] args) {\n\t\tLRString lrs = new LRString();\n\t\tString res = \"abcabcdddabcd\";\n\t\tlrs.getLRString( res);\n\t}", "@Test\n public void subSequencesTest2() {\n String text = \"hashco\"\n + \"llisio\"\n + \"nsarep\"\n + \"ractic\"\n + \"allyun\"\n + \"avoida\"\n + \"blewhe\"\n + \"nhashi\"\n + \"ngaran\"\n + \"domsub\"\n + \"setofa\"\n + \"larges\"\n + \"etofpo\"\n + \"ssible\"\n + \"keys\";\n\n String[] expected = new String[6];\n expected[0] = \"hlnraabnndslesk\";\n expected[1] = \"alsalvlhgoeatse\";\n expected[2] = \"siacloeaamtroiy\";\n expected[3] = \"hsrtyiwsrsogfbs\";\n expected[4] = \"cieiudhhaufepl\";\n expected[5] = \"oopcnaeinbasoe\";\n String[] owns = this.ic.subSequences(text, 6);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }", "public static void main(String[] args) {\n\t\tString s = \"caaab\";\n\t\tString[] res = getUniqueSubstring(s,2);\n\t\tfor(String a : res){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "public int lengthOfLongestSubstring(String s) {\n if(s == null || s.length() == 0){\n return 0;\n }\n int runner = 0;\n int walker = 0;\n int max = 0;\n HashSet<Character> set = new HashSet<Character>();\n while(runner < s.length()){\n if(set.contains(s.charAt(runner))){\n if(max < runner - walker){\n max = runner - walker;\n }\n while(s.charAt(walker) != s.charAt(runner)){\n set.remove(s.charAt(walker));\n walker++;\n }\n walker++;\n }else{\n set.add(s.charAt(runner));\n }\n runner++;\n }\n max = Math.max(max, runner - walker);\n return max;\n }", "public static void main(String[] args) {\n\t\tString A = \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\";\r\n\t\tLongestSubString longestSubString = new LongestSubString();\r\n\t\tint lengthOfLongestSubstring = longestSubString.lengthOfLongestSubstring(A);\r\n\t\tSystem.out.println(lengthOfLongestSubstring);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"Programming\";\n\t\t\n\t\tSystem.out.println(str.substring(3));\n\t}", "public static void main(String[] args) {\n\t\tString s= \"remya\";\n\t\tSystem.out.println(s.subSequence(0, 3));\n\t\tCharSequence c=s.subSequence(0, 3);\n\t\tSystem.out.println((c.charAt(0)));\n\t\t\n\t\t\n\t\t// subSequence is a method available for string class.\n\t\t// it is similar to subString ,like substring arguments for subSequence are beginIndex and endIndex\n\t\t// it will return a CharSequence Object\n\t}", "public static void main(String[] args) {\n String str = \"pwwkew\";\n// System.out.println(str.length());\n System.out.println(lengthOfLongestSubstring(str));\n\n\n }", "public final ConcatableDataValue substring(\n\t\t\t\tNumberDataValue start,\n\t\t\t\tNumberDataValue length,\n\t\t\t\tConcatableDataValue result,\n\t\t\t\tint maxLen)\n\t\tthrows StandardException\n\t{\n\t\tint startInt;\n\t\tint lengthInt;\n\t\tBitDataValue varbitResult;\n\n\t\tif (result == null)\n\t\t{\n\t\t\tresult = new SQLVarbit();\n\t\t}\n\n\t\tvarbitResult = (BitDataValue) result;\n\n\t\t/* The result is null if the receiver (this) is null or if the length is negative.\n\t\t * Oracle docs don't say what happens if the start position or the length is a usernull.\n\t\t * We will return null, which is the only sensible thing to do.\n\t\t * (If the user did not specify a length then length is not a user null.)\n\t\t */\n\t\tif (this.isNull() || start.isNull() || (length != null && length.isNull()))\n\t\t{\n\t\t\tvarbitResult.setToNull();\n\t\t\treturn varbitResult;\n\t\t}\n\n\t\tstartInt = start.getInt();\n\n\t\t// If length is not specified, make it till end of the string\n\t\tif (length != null)\n\t\t{\n\t\t\tlengthInt = length.getInt();\n\t\t}\n\t\telse lengthInt = getLength() - startInt + 1;\n\n\t\t/* DB2 Compatibility: Added these checks to match DB2. We currently enforce these\n\t\t * limits in both modes. We could do these checks in DB2 mode only, if needed, so\n\t\t * leaving earlier code for out of range in for now, though will not be exercised\n\t\t */\n\t\tif ((startInt <= 0 || lengthInt < 0 || startInt > getLength() ||\n\t\t\t\tlengthInt > getLength() - startInt + 1))\n\t\t\tthrow StandardException.newException(SQLState.LANG_SUBSTR_START_OR_LEN_OUT_OF_RANGE);\n\t\t\t\n\t\t// Return null if length is non-positive\n\t\tif (lengthInt < 0)\n\t\t{\n\t\t\tvarbitResult.setToNull();\n\t\t\treturn varbitResult;\n\t\t}\n\n\t\t/* If startInt < 0 then we count from the right of the string */\n\t\tif (startInt < 0)\n\t\t{\n\t\t\tstartInt += getLength();\n\t\t\tif (startInt < 0)\n\t\t\t{\n\t\t\t\tlengthInt += startInt;\n\t\t\t\tstartInt = 0;\n\t\t\t}\n\t\t\tif (lengthInt + startInt > 0)\n\t\t\t{\n\t\t\t\tlengthInt += startInt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlengthInt = 0;\n\t\t\t}\n\t\t}\n\t\telse if (startInt > 0)\n\t\t{\n\t\t\t/* java substr() is 0 based */\n\t\t\tstartInt--;\n\t\t}\n\n\t\t/* Oracle docs don't say what happens if the window is to the\n\t\t * left of the string. Return \"\" if the window\n\t\t * is to the left or right or if the length is 0.\n\t\t */\n\t\tif (lengthInt == 0 ||\n\t\t\tlengthInt <= 0 - startInt ||\n\t\t\tstartInt > getLength())\n\t\t{\n\t\t\tvarbitResult.setValue(new byte[0]);\n\t\t\treturn varbitResult;\n\t\t}\n\n\t\tif (lengthInt >= getLength() - startInt)\n\t\t{\n\t\t\tbyte[] substring = new byte[dataValue.length - startInt];\n\t\t\tSystem.arraycopy(dataValue, startInt, substring, 0, substring.length);\n\t\t\tvarbitResult.setValue(substring);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbyte[] substring = new byte[lengthInt];\n\t\t\tSystem.arraycopy(dataValue, startInt, substring, 0, substring.length);\n\t\t\tvarbitResult.setValue(substring);\n\t\t}\n\n\t\treturn varbitResult;\n\t}", "private String substring(byte[] bytes, int length) {\n return new String(bytes, 0, Math.min(bytes.length, length), StandardCharsets.UTF_8);\n }", "public static void main(String[] args) {\n\t\tString str1 = \"Humpty Dumpty Sat On The Wall.\";\n\t\tchar array1[] = new char[30];\n\t\t\n\t\tstr1.getChars(0, 30, array1, 0);;\n\t\tSystem.out.println(array1);\n\t\t\n\t\tfor(int i = 29; i >= 0; i--) {\n\t\t\tSystem.out.print(array1[i]);\n\t\t}\n\t}", "public int countBinarySubstrings(String s) {\n \tint prevRunLen = 0;\n \tint currRunLen = 1;\n \tint cnt = 0;\n\n \tfor (int i = 1; i < s.length(); i++) {\n \t\tif (s.charAt(i) == s.charAt(i - 1)) {\n \t\t\tcurrRunLen += 1;\n \t\t} else {\n \t\t\tprevRunLen = currRunLen;\n \t\t\tcurrRunLen = 1;\n \t\t}\n \t\t// one qualifying substring\n \t\tif (prevRunLen >= currRunLen) {\n \t\t\tcnt++;\n \t\t}\n \t}\n\n \treturn cnt;\n }", "public int findSubstringInWraproundString1(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n int pLength = p.length();\n // keep track of the number of consecutive letters for each substrings which starts from a...z\n int[] consecutiveNumberFrom = new int[26]; \n consecutiveNumberFrom[p.charAt(0) - 'a'] = 1;\n // keep track of the number of legacy consecutive letters\n int[] consecutiveCount = new int[pLength];\n consecutiveCount[0] = 1;\n int result = 1;\n for(int i = 1; i < pLength; i++) {\n consecutiveCount[i] = isConsecutive(p.charAt(i - 1), p.charAt(i))\n ? consecutiveCount[i - 1] + 1\n : 1;\n for(int j = i - consecutiveCount[i] + 1; j <= i; j++) {\n if(consecutiveNumberFrom[p.charAt(j) - 'a'] < i - j + 1) {\n result++;\n consecutiveNumberFrom[p.charAt(j) - 'a']++;\n } else {\n break;\n }\n }\n }\n return result;\n }", "public static String lrs(String s) {\n\n // form the N suffixes\n int N = s.length();\n String[] suffixes = new String[N];\n for (int i = 0; i < N; i++) {\n suffixes[i] = s.substring(i, N);\n }\n\n // sort them\n Arrays.sort(suffixes);\n\n // find longest repeated substring by comparing adjacent sorted suffixes\n String lrs = \"\";\n for (int i = 0; i < N - 1; i++) {\n String x = lcp(suffixes[i], suffixes[i+1]);\n if (x.length() > lrs.length())\n lrs = x;\n }\n return lrs;\n }", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n String test = \"abcabcbb\";\n int result = LongestSubStringWithoutRepeatingCharacters.solution(test);\n System.out.println(result);\n }", "public String getRunLog();", "public abstract void createLongestRepeatedSubstring();", "private static String findSubString(int index, int len, String s2) {\n\t\tif ((s2.length() - index) >= len) {\n\t\t\treturn s2.substring(index - len + 1, index) + s2.substring(index, index+len);\n\t\t} else {\n\t\t\treturn s2.substring(index - len + 1, index) + s2.substring(index);\n\t\t}\n\t}", "@Override\n public final CharSequence subSequence(final int start, final int end) {\n return text.subSequence(start, end);\n }", "private static void longestRepeatingSubsequence(String string) {\n\t\t\n\t}", "public static int lengthOfLongestSubstring(String s) {\n if(s.length()==1)\n return 1;\n\n int sum=0;\n int left = 0, right = 0;\n boolean[] used = new boolean[128];\n\n while(right < s.length()){\n if(used[s.charAt(right)] == false){\n used[s.charAt(right)] = true;\n right++;\n }else{\n sum = Math.max(sum, right-left);\n while(left<right && s.charAt(right) != s.charAt(left)){\n used[s.charAt(left)] = false;\n left++;\n }\n left++;\n right++;\n }\n }\n sum = Math.max(sum, right - left);\n\n return sum;\n }", "public double slice(polyfun.Polynomial poly, double sleft, double sright) {\n\t\tdouble areatrapslice = (sright-sleft)*((PolyPractice.eval(poly, sright)+PolyPractice.eval(poly, sleft))/2); //defines arealeftslice as the product of (b-a) and the average of the polynomial evaluated at left endpoint of subinterval and the polynmial evaluated at the right endpoint of subinterval\n\t\treturn areatrapslice; //returns areatrapslice\n\t}", "@Override\r\n\tpublic CharSequence subSequence(int start, int end) {\n\t\tchar[] values = new char[end - start]; \r\n\t\t\r\n\t\tint k = 0;\r\n\t\tfor (int i = start; i < end; i++) {\r\n\t\t\tvalues[k++] = chars[i];\r\n\t\t}\r\n\t\t\r\n\t\treturn new StringTitle(values);\r\n\t}", "public String minWindow(String s, String t) {\n if (t.length() == 0 || s.length() == 0) {\n return \"\";\n }\n int[] map = new int[128];\n for (char c : t.toCharArray()) map[c]++;\n\n int min = Integer.MAX_VALUE;\n\n int left = 0, right = 0;\n int[] map2 = new int[128];\n\n int minStart = 0;\n int minEnd = 0;\n while (right < s.length()) {\n map2[s.charAt(right)]++;\n right++; //extending right boundary\n\n while (matches(map, map2)) {\n //the current valid window is [left, right-1], notice the minus 1\n int length = right - left;\n if (length < min) {\n min = length;\n minStart = left;\n minEnd = right; // minEnd is exclusive for calling substring\n }\n //shrink left boundary\n map2[s.charAt(left)]--;\n left++;\n }\n }\n return s.substring(minStart, minEnd);\n }", "public static void main(String[] args) {\n\t\tString word = \"java\";\n//\t\tSystem.out.println(word.substring(0,1));\n//\t\tSystem.out.println(word.substring(1,2));\n//\t\tSystem.out.println(word.substring(2,3));\n//\t\tSystem.out.println(word.substring(3));\n\t\t\n//\t\tfor(int i = word.length()-1; i >= 0; i--) {\n//\t\t\tSystem.out.println(word.charAt(i));\n//\t\t}\n\t\t\n\t\t\n\t}", "@Test\n public void subSequencesTest1() {\n String text = \"crypt\"\n + \"ograp\"\n + \"hyand\"\n + \"crypt\"\n + \"analy\"\n + \"sis\";\n\n String[] expected = new String[5];\n expected[0] = \"cohcas\";\n expected[1] = \"rgyrni\";\n expected[2] = \"yrayas\";\n expected[3] = \"panpl\";\n expected[4] = \"tpdty\";\n String[] owns = this.ic.subSequences(text, 5);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }", "public void test_subSequence() {\n assertTrue(\"Incorrect substring returned\", hw1.subSequence(0, 5).equals(\n \"Hello\") && (hw1.subSequence(5, 10).equals(\"World\")));\n assertTrue(\"not identical\", hw1.subSequence(0, hw1.length()) == hw1);\n\n try {\n hw1.subSequence(0, Integer.MAX_VALUE);\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n\n try {\n hw1.subSequence(Integer.MAX_VALUE, hw1.length());\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n\n try {\n hw1.subSequence(-1, hw1.length());\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n }", "@Test\n public void subSequencesTest3() {\n String text = \"wnylazlzeqntfpwtsmabjqinaweaocfewgpsrmyluadlybfgaltgljrlzaaxvjehhygggdsrygvnjmpyklvyilykdrphepbfgdspjtaap\"\n + \"sxrpayholutqfxstptffbcrkxvvjhorawfwaejxlgafilmzrywpfxjgaltdhjvjgtyguretajegpyirpxfpagodmzrhstrxjrpirlbfgkhhce\"\n + \"wgpsrvtuvlvepmwkpaeqlstaqolmsvjwnegmzafoslaaohalvwfkttfxdrphepqobqzdqnytagtrhspnmprtfnhmsrmznplrcijrosnrlwgds\"\n + \"bylapqgemyxeaeucgulwbajrkvowsrhxvngtahmaphhcyjrmielvqbbqinawepsxrewgpsrqtfqpveltkfkqiymwtqssqxvchoilmwkpzermw\"\n + \"eokiraluaammkwkownrawpedhcklrthtftfnjmtfbftazsclmtcssrlluwhxahjeagpmgvfpceggluadlybfgaltznlgdwsglfbpqepmsvjha\"\n + \"lwsnnsajlgiafyahezkbilxfthwsflgkiwgfmtrawtfxjbbhhcfsyocirbkhjziixdlpcbcthywwnrxpgvcropzvyvapxdrogcmfebjhhsllu\"\n + \"aqrwilnjolwllzwmncxvgkhrwlwiafajvgzxwnymabjgodfsclwneltrpkecguvlvepmwkponbidnebtcqlyahtckk\";\n\n String[] expected = new String[6];\n expected[0] = \"wlfaafrdarvgypipgaputcjflmftgepfmrrhpvwllnfofdqqtmhnjlyeewvxhceqpgftysopelkrhhjtmlapcagllpasazflfthohdtrrvobliwnhazafeevpnlk\";\n expected[1] = \"nzpbwemllljggylhdaatprhwgzxdttypzxlhslksmeohkronrpmprwlmubovmylispqkmqizouwactmatlhmedagfmlafktgmfhcjlhxoagjullcrfxbslceoeyk\";\n expected[2] = \"yewjewyytzegvkyespyqtkoaarjhyaiarjbcrvptsgsatpbyhrslogaycawnajvnxspfwxlekakwkftzcujgglldbswjybhktxcizpypppchanlxwawjctgpnba\";\n expected[3] = \"lqtqaglbgahdnlkppshffxrefygjgjrghrfeveaavmllthqtstrrsdpxgjsgprqarrvktvmriaopltfsswevgytwpvslaiwirjfricwgzxmhqjzvljnglrumbth\";\n expected[4] = \"ansiopuflahsjvdbjxoxfvajiwavuepospgwtpeqjzavfezapfmcnsqeurrthmbweqeqqcwmrmwerfbcshaflbzsqjnghlswabsbibwvvdfsrowgwvyowpvwict\";\n expected[5] = \"ztmncsagjxyrmyrftrlsbvwxlpljrgxdtikgumqowaawxpdgnnzirbgalkhahibewtlishkwamndtnflrxgpufngehniexfgwbykxcncyrelwlmkigmdnklkdqc\";\n int keyLen = 6;\n String[] owns = this.ic.subSequences(text, keyLen);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }", "public static String getSubstring(String s, int i, int j){\n if(i>j){\n throw new IllegalArgumentException(\"The second integer cannot be smaller than the first integer\");\n }\n else{\n String subString = \"\";\n for(int n = i; n<=j; n++){\n subString += s.charAt(n);\n }\n return subString; \n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(lengthOfLongestSubstring(\"abba\"));\r\n\r\n\t}", "public static void main(String[] args)\n\t{\n\t\tString s= \"abcbaaaaaa\";\n\t\tSystem.out.println(longestPalindromicSubstring(s));\n\t}", "public static String substring ( String line, int start, int end )\n {\n // Check start coordinate.\n if ( start >= line.length () )\n\n return \"\";\n\n // Check end coordinate.\n if ( end > line.length () )\n {\n if ( start < line.length () ) return line.substring ( start );\n return \"\";\n } // if\n\n // Check if end at end of line.\n if ( end == line.length () )\n\n return line.substring ( start );\n\n else\n\n return line.substring ( start, end );\n }", "public String source(String src)\n\t{\n\t\tint i;\n\t\tString [] toks = src.split(\"\\\\s+\");\n\t\tString ret = toks[sourceStart];\n\t\tfor (i = sourceStart + 1; i < sourceEnd; i++) {\n\t\t\tret += \" \" + toks[i];\n\t\t}\n\t\treturn ret;\n\t}" ]
[ "0.48966718", "0.466735", "0.46605286", "0.4646744", "0.46344262", "0.46078888", "0.45475978", "0.4520473", "0.44841102", "0.44722325", "0.44621637", "0.44552508", "0.4443341", "0.44333038", "0.4425208", "0.4416107", "0.4395244", "0.43617234", "0.4355518", "0.43440244", "0.43405557", "0.43270448", "0.4318332", "0.43067873", "0.43012506", "0.42904067", "0.4283087", "0.42646086", "0.4247059", "0.42454284", "0.42386326", "0.42313364", "0.42104608", "0.4200494", "0.41964403", "0.41942614", "0.4193882", "0.4189226", "0.41754848", "0.41661328", "0.41560346", "0.41458276", "0.41439062", "0.41272214", "0.41216305", "0.41139358", "0.4104817", "0.41016197", "0.40976796", "0.4097637", "0.4097399", "0.40957445", "0.40850714", "0.40820038", "0.40794998", "0.40790057", "0.4074655", "0.40635955", "0.40622553", "0.40587378", "0.40519342", "0.40504864", "0.4047451", "0.40462497", "0.4035392", "0.40298688", "0.4024575", "0.40175617", "0.3998479", "0.39983752", "0.39952245", "0.3989101", "0.39787963", "0.39775163", "0.39734054", "0.39725086", "0.3970158", "0.39686304", "0.3963865", "0.39631945", "0.3952623", "0.39433208", "0.39415884", "0.39386913", "0.3937545", "0.39314833", "0.39275768", "0.39235774", "0.39118046", "0.39086223", "0.39082834", "0.39081252", "0.39021477", "0.39020154", "0.3897952", "0.38897246", "0.38853297", "0.3883388", "0.38804802", "0.38795087" ]
0.79747653
0
Stack time complexity: O(N), space complexity: O(N) 1 ms(90.96%), 38.4 MB(94.59%) for 98 tests
public int minOperations(String[] logs) { Stack<Integer> stack = new Stack<>(); for (String log : logs) { switch (log) { case "./": break; case "../": if (!stack.empty()) { stack.pop(); } break; default: stack.push(0); break; } } return stack.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static\nboolean\ncheck(\nint\nA[], \nint\nN) { \n\n// Stack S \n\nStack<Integer> S = \nnew\nStack<Integer>(); \n\n\n// Pointer to the end value of array B. \n\nint\nB_end = \n0\n; \n\n\n// Traversing each element of A[] from starting \n\n// Checking if there is a valid operation \n\n// that can be performed. \n\nfor\n(\nint\ni = \n0\n; i < N; i++) { \n\n// If the stack is not empty \n\nif\n(!S.empty()) { \n\n// Top of the Stack. \n\nint\ntop = S.peek(); \n\n\n// If the top of the stack is \n\n// Equal to B_end+1, we will pop it \n\n// And increment B_end by 1. \n\nwhile\n(top == B_end + \n1\n) { \n\n// if current top is equal to \n\n// B_end+1, we will increment \n\n// B_end to B_end+1 \n\nB_end = B_end + \n1\n; \n\n\n// Pop the top element. \n\nS.pop(); \n\n\n// If the stack is empty We cannot \n\n// further perfom this operation. \n\n// Therefore break \n\nif\n(S.empty()) { \n\nbreak\n; \n\n} \n\n\n// Current Top \n\ntop = S.peek(); \n\n} \n\n\n// If stack is empty \n\n// Push the Current element \n\nif\n(S.empty()) { \n\nS.push(A[i]); \n\n} \nelse\n{ \n\ntop = S.peek(); \n\n\n// If the Current element of the array A[] \n\n// if smaller than the top of the stack \n\n// We can push it in the Stack. \n\nif\n(A[i] < top) { \n\nS.push(A[i]); \n\n} \n// Else We cannot sort the array \n\n// Using any valid operations. \n\nelse\n{ \n\n// Not Stack Sortable \n\nreturn\nfalse\n; \n\n} \n\n} \n\n} \nelse\n{ \n\n// If the stack is empty push the current \n\n// element in the stack. \n\nS.push(A[i]); \n\n} \n\n} \n\n\n// Stack Sortable \n\nreturn\ntrue\n; \n\n}", "public static void benchMarkTest() {\n int n = 10000000;\n\n IntStack intstack = new IntStack(n);\n //IntStack times around 0.0324\n long start = System.nanoTime(); \n for(int i = 0; i < n; i++) intstack.push(i); \n for(int i = 0; i < n; i++) intstack.pop();\n long end = System.nanoTime(); \n System.out.println(\"Intstack time :\" + (end - start) / 1e9);\n\n //arrayDeque around 1.048 seconds\n java.util.ArrayDeque<Integer> arraydeque = new java.util.ArrayDeque<Integer>(n);\n start = System.nanoTime(); \n for(int i = 0; i < n; i++) arraydeque.push(i); \n for(int i = 0; i < n; i++) arraydeque.pop();\n end = System.nanoTime();\n System.out.println(\"ArrayDeque time :\" + (end - start) / 1e9);\n \n Stack<Integer> liststack = new ListStack<>();\n start = System.nanoTime(); \n for(int i = 0; i < n; i++) liststack.push(i); \n for(int i = 0; i < n; i++) liststack.pop();\n end = System.nanoTime();\n System.out.println(\"ListStack time: \" + (end - start) / 1e9);\n\n Stack<Integer> arraystack = new ArrayStack<>();\n start = System.nanoTime(); \n for(int i = 0; i < n; i++) arraystack.push(i); \n for(int i = 0; i < n; i++) arraystack.pop();\n end = System.nanoTime();\n System.out.println(\"ArrayStack time: \" + (end - start) / 1e9);\n }", "@Test\n public void testPerformance() {\n int opCount = 1000000;\n Random random = new Random();\n\n for(int i = 0; i < opCount; i++) {\n linkedListStack.push(new Student(random.nextInt(Integer.MAX_VALUE), random.nextInt(Integer.MAX_VALUE)));\n }\n while(!linkedListStack.isEmpty()) {\n linkedListStack.pop();\n }\n }", "@Test\n public void testMassiveStack() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "@Test\n public void testBigStack() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 500;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "static void testCase() throws IOException{\r\n /*\r\n [\"MinStack\",\"push\",\"push\",\"push\",\"top\",\"pop\",\"getMin\",\"pop\",\"getMin\",\"pop\",\"push\",\"top\",\"getMin\",\"push\",\"top\",\"getMin\",\"pop\",\"getMin\"]\r\n[[],[2147483646],[2147483646],[2147483647],[],[],[],[],[],[],[2147483647],[],[],[-2147483648],[],[],[],[]]\r\n */\r\n\r\n try{\r\n long startTime, stopTime;\r\n startTime = System.currentTimeMillis();\r\n printSpace(logic(0));\r\n println(0);\r\n stopTime = System.currentTimeMillis();\r\n println((stopTime - startTime)+\" ms\");\r\n\r\n startTime = System.currentTimeMillis();\r\n printSpace(logic(4));\r\n println(4);\r\n stopTime = System.currentTimeMillis();\r\n println((stopTime - startTime)+\" ms\");\r\n }catch(IOException ex){\r\n ex.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\n\t\tint p[]=new int[200];\n\t\tint n;int count=0;\n\t\tint pp=0;\n\t\tfor(int i=2;i<1000;i++) {\n\t\t\tint flag=1;\n\t\t\tfor(int j=2;j<i;j++) {\n\t\t\t\tif(i%j==0) {\n\t\t\t\t\tflag++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t//checking if flag is 0 or not\t\n\t\t\t}if(flag==1) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(i);\n\t\t\t \n\t\t\t\tp[pp]=i;\n\t\t\t pp++;\n\t\t\t count++;\n\t\t\t}\n\t}\n\t\tn=count;\n\t//for(int i=0;i<p.length;i++) {\n\t//if(p[i]!=0)\n\t //System.out.println(p[i]);\n\t//}\n\tint k=0;\n\tint count1=0;\n\tboolean b=false;\n\tint aa[]=new int[200];\t\n\t//calling my stack class \n\tMyStack m=new MyStack();\n\n\tfor(int i=0;i<p.length-2;i++) {\n\t\tfor(int j=i+1;j<p.length;j++) {\n\t\tif(p[i]!=0&&p[j]!=0)\n\t\t//calling check method anagram calss\t\n\t\t\tb=AnaQueue.check(p[i],p[j]);\n\t\tif(b==true) {\n\t\t\tSystem.out.println(p[i]+\" \"+p[j]);\n\t\t\taa[k]=p[i];\n\t\t\tm.push(p[i]);\n\t\t//\tSystem.out.println(aa[k]);\n\t\t\tk++; \n\t\t\taa[k]=p[j];\n\t\t\tk++;\n\t\t\tm.push(p[j]);\n\t\t\tcount1++;\n//\t\t\tif(p[i]==aa[k-2]) {\n//\t\t\t\tSystem.out.println(p[i]+\" \"+aa[k-2]);\n//\t\t\t}\n\t\t//\tSystem.out.println(aa[k]);\n\t\t//\tSystem.out.println(aa[k-1]+\" \"+aa[k-2]);\n\t\t\t\t}\n\t\t}\n\n\n\t}\n\t//for(int i=0;i<count1*2;i++)\n\t//{int a=m.popint();\n\t//if(p[i]!=0)\n\t\t//System.out.println(a);\n\t//}\n\t//for(int t=0;t<aa.length;t++) {\n\t\t//if(aa[t]!=0) {\n\t\t//\tSystem.out.println(aa[t]);\n\t\t//}\n\t//}\n\tSystem.out.println(\"this is for stack\");\n\tSystem.out.println(\" ************************\");\n\n\tm.reverse();\n\t System.out.println(count1); \n\tSystem.out.println(\"this for queue\");\n\tSystem.out.println(\" ************************\");\n\tMyQueue mq=new MyQueue(count1*2);\n\tfor(int i=0;i<p.length-2;i++) {\n\t\tfor(int j=i+1;j<p.length;j++) {\n\t\tif(p[i]!=0&&p[j]!=0)\n\t\t\tb=AnaQueue.check(p[i],p[j]);\n\t\tif(b==true) {\n\t\t\t//System.out.println(p[i]+\" \"+p[j]);\n\t\t\t//aa[k]=p[i];\n\t\t\tmq.enqueue(p[i]);\n\t\t//\tSystem.out.println(aa[k]);\n\t\t\t//k++; \n\t\t\t//aa[k]=p[j];\n\t\t\t//k++;\n\t\t\tmq.enqueue(p[j]);\n\t\t\t\n//\t\t\tif(p[i]==aa[k-2]) {\n//\t\t\t\tSystem.out.println(p[i]+\" \"+aa[k-2]);\n//\t\t\t}\n\t\t//\tSystem.out.println(aa[k]);\n\t\t//\tSystem.out.println(aa[k-1]+\" \"+aa[k-2]);\n\t\t\t\t}\n\t\t}\n\n\n\t}\n\t//for(int i=0;i<(count1*2)-1;i++);\n\t//{\n\t//int a=mq.dequeue();\n\t//System.out.println(a);\n\t//}\n\tSystem.out.println(mq);\n\n\n\t}", "@Override\n public void backtrack() {\n if (!stack.isEmpty()) {\n int index = (Integer) stack.pop();\n\n if (index > arr.length) {//popping the insert function unneeded push\n insert((Integer) stack.pop());\n stack.pop();\n }\n if (index < arr.length) {//popping the delete function unneeded push\n delete(index);\n stack.pop();\n stack.pop();\n }\n System.out.println(\"backtracking performed\");\n }\n }", "public static Stack<Integer> sortstack(Stack<Integer> input) {\n\n Stack<Integer> tmpStack = new Stack<Integer>(); \n \n while(!input.isEmpty()) {\n // pop out the first element \n int tmp = input.pop(); \n // while temporary stack is not empty and top of stack is greater than temp \n while(!tmpStack.isEmpty() && tmpStack.peek() > tmp) { \n // pop from temporary stack and push it to the input stack \n input.push(tmpStack.pop()); \n } \n // push temp in tempory of stack \n tmpStack.push(tmp); \n } \n return tmpStack; \n }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public int solution(int[] H) {\n int length = H.length;\n int count = 0;\n Stack<Integer> stack = new Stack<Integer>(); \n if(length <= 1)\n return length;\n for(int i=0;i<length;i++)\n {\n while(!stack.empty() && H[i]<stack.peek())\n {\n stack.pop();\n count++;\n }\n \n if(stack.empty())\n stack.push(H[i]);\n \n if(H[i]>stack.peek())\n stack.push(H[i]);\n\n }\n count+=stack.size();\n return count;\n\n }", "@Test\n public void testBiggerStack() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 5000;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "@Test\n public void testMassiveStackOfNothing() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n int expectedSize = 0;\n \n String tempString = null;\n String expected = null;\n \n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = 0; i < sizeTest; i++) {\n instance.push(tempString);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, expectedSize);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "public Solution67() {\n stack = new Stack<>();\n min_stack = new Stack<>();\n }", "public static void main(String args[]){\n InputReader reader = new InputReader(System.in);\n int size = reader.readInt();\n\n int[] arr = new int[size];\n int[] nge = new int[size];\n Stack<Integer> stack = new Stack<>();\n\n for(int i=0; i<arr.length; i++){\n arr[i] = reader.readInt();\n }\n\n for(int i=arr.length-1; i>=0; i--){\n int element = arr[i];\n if(!stack.isEmpty()){\n while(!stack.isEmpty() && stack.peek() <= element){\n stack.pop();\n }\n }\n nge[i] = stack.isEmpty()? -1 : stack.size()-1;\n stack.push(element);\n }\n\n\n for(int i=0; i < arr.length; i++){\n System.out.print(nge[i]+\" \");\n }\n\n }", "@SuppressWarnings({\"rawtypes\", \"unchecked\", \"SuspiciousMethodCalls\"})\n private List getDepthFirstTraversal_iterative_usingStack_BigO_VPlusE() throws Exception {\n Map<Object, Boolean> visited = new LinkedHashMap<>();\n Stack watchStack = new Stack();\n\n V root = data.keySet().stream().findFirst().orElseThrow(() -> new Exception(\"Graph is Empty\"));\n watchStack.push(root);\n visited.put(root, true);\n\n while(!watchStack.isEmpty()) {\n Object currentVertex = watchStack.top();\n\n BinarySearchTree<E> edgeTree = data.getOrDefault(currentVertex, new BinarySearchTree<>());\n List<E> edges = edgeTree.getTreeByInOrder_depthFirst();\n\n //Remove an item from the stack when there are no edges or all the edges are visited for that vertex\n if(edgeTree.isEmpty() || visited.keySet().containsAll(edges)) {\n watchStack.pop();\n } else {\n for(E edge : edges) {\n if(!visited.containsKey(edge)) {\n watchStack.push(edge);\n visited.put(edge, true);\n break;\n }\n }\n }\n }\n return new ArrayList<>(visited.keySet());\n }", "@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "public void sortStack(){\n Stack small = new Stack();\n Stack large = new Stack();\n while(isEmpty()==false){\n Node n = pop();\n if(small.isEmpty() == true){\n small.push(n);\n }\n else if(n.data > small.peek()){\n small.push(n); \n }\n else{\n while(small.isEmpty() == false){\n if(small.peek() > n.data){\n large.push(small.pop());\n }else{\n break;\n }\n }\n small.push(n);\n shift(large,small);\n }\n }\n shift(small,large);\n shift(large,this);\n }", "@Test\n public void testPushAndPopPerformance() {\n\n System.out.println(\"Test Push And Pop Using Large Numbers\");\n\n int sizeTest = 50;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "public static void main(String[] args) {\n\t\t\n\t Stack<String> s =new Stack<String>();\n\t System.out.println(s.size()+\" - \"+s.length());\n\t for (int i = 0; i < 100; i++) {\n\t\t\ts.push(\"111\");\n\t\t\tSystem.out.println(s.size()+\" - \"+s.length());\n\n\t\t\t\n\t\t}\n\t for (int i = 0; i < 100; i++) {\n\t\t\ts.pop();\n\t\t\tSystem.out.println(s.size()+\" - \"+s.length());\n\n\t\t\t\n\t\t}\n\t \n\t \n\t \t\n\t \n\t}", "public static void main(String[] args) throws IOException {\n File file = new File(\"input.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n String line;\n String [] tokens;\n int accumulator = 0;\n String operation;\n int argument;\n int index;\n int goestoIndex;\n Set<Integer> doneIndex = new HashSet<>(); \n Stack<Integer> loopIndex = new Stack<Integer>();\n ArrayList<Node> instructions = new ArrayList<>();\n\n\n // Read lines to an Array\n while( (line = br.readLine()) != null ){\n tokens = line.split(\" \");\n instructions.add(new Node(tokens[0], Integer.parseInt(tokens[1])));\n }\n\n int instructionsSize = instructions.size();\n\n\n // Find the index of operation to change\n for( index = instructionsSize-1; index>=0; index--){\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n if(operation.equals(\"jmp\") && argument<0){\n loopIndex.push(index);\n }\n if(operation.equals(\"jmp\") && argument>0){\n goestoIndex = index+argument;\n while ( !loopIndex.empty() ){\n System.out.println(loopIndex);\n System.out.println(loopIndex.peek());\n System.out.println(goestoIndex);\n if(loopIndex.peek() >= goestoIndex) break;\n loopIndex.pop();\n }\n }\n }\n\n System.out.println(loopIndex);\n\n\n if(loopIndex.size() == 1){\n instructions.set(loopIndex.peek(), new Node(\"nop\", instructions.get(loopIndex.peek()).argument));\n }\n else{\n int minIndex = loopIndex.empty() ? 0 : loopIndex.pop();\n int maxIndex = minIndex;\n while (!loopIndex.empty()){\n maxIndex = loopIndex.pop();\n }\n for( index = maxIndex; index >=0; index--){\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n if(operation.equals(\"nop\") && argument+index > maxIndex){\n instructions.set(index, new Node(\"jmp\", instructions.get(index).argument));\n break;\n }\n }\n }\n\n\n index = 0; \n\n while( !doneIndex.contains(index)){\n // System.out.println(index);\n if (index > instructionsSize-1 ) break;\n doneIndex.add(index);\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n\n if(operation.equals(\"acc\")){\n accumulator = accumulator + argument;\n index = index + 1;\n }\n else if(operation.equals(\"nop\")){\n index = index + 1;\n }\n else if(operation.equals(\"jmp\")){\n index = index + argument;\n }\n }\n System.out.println(index);\n System.out.println(accumulator);\n br.close();\n\n }", "public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}", "public ArrayStack<Integer> sort(ArrayStack<Integer> inputStack) {\r\n\t\tArrayStack<Integer> resStack = new ArrayStack<>();\r\n\t\twhile (!inputStack.isEmpty()) {\r\n\t\t\tint elem = inputStack.pop();\r\n\t\t\twhile (!resStack.isEmpty() && (Integer) resStack.top() > elem) {// for smallest item on top change to <\r\n\t\t\t\tinputStack.push((Integer) resStack.pop());\r\n\t\t\t}\r\n\t\t\tresStack.push(elem);\r\n\t\t}\r\n\t\treturn resStack;\r\n\t}", "@Test\n public void testStackCodeExamples() {\n logger.info(\"Beginning testStackCodeExamples()...\");\n\n // Allocate an empty stack\n Stack<String> stack = new Stack<>();\n logger.info(\"Start with an empty stack: {}\", stack);\n\n // Push a rock onto it\n String rock = \"rock\";\n stack.pushElement(rock);\n assert stack.getTop().equals(rock);\n logger.info(\"Push a rock on it: {}\", stack);\n\n // Push paper onto it\n String paper = \"paper\";\n stack.pushElement(paper);\n assert stack.getTop().equals(paper);\n logger.info(\"Push paper on it: {}\", stack);\n\n // Push scissors onto it\n String scissors = \"scissors\";\n stack.pushElement(scissors);\n assert stack.getTop().equals(scissors);\n assert stack.getSize() == 3;\n logger.info(\"Push scissors on it: {}\", stack);\n\n // Pop off the scissors\n assert stack.popElement().equals(scissors);\n assert stack.getSize() == 2;\n logger.info(\"Pop scissors from it: {}\", stack);\n\n // Pop off the paper\n assert stack.popElement().equals(paper);\n assert stack.getSize() == 1;\n logger.info(\"Pop paper from it: {}\", stack);\n\n // Pop off the rock\n assert stack.popElement().equals(rock);\n assert stack.isEmpty();\n logger.info(\"Pop rock from it: {}\", stack);\n\n logger.info(\"Completed testStackCodeExamples().\\n\");\n }", "public Solution_155() {\n stack = new Stack();\n minStack = new Stack();\n }", "StackManipulation cached();", "public static void main(String[] args) {\r\n\r\n\t\tArrayStack arrst = new ArrayStack(5);\r\n\t\tIntStream.range(0, 5).forEach(arrst::push);\r\n\t\tSystem.out.println(\"Response of peek \" + arrst.peek());\r\n\t\tSystem.out.println(\"Response of pop\" + arrst.pop());\r\n\t\tSystem.out.println(\"push one random number in the middle\");\r\n\t\tarrst.push(10);\r\n\t\tSystem.out.println(\"printing stack after first pop\");\r\n\t\tarrst.display();\r\n\r\n\t\tIntStream.range(0, arrst.size()).forEach(i -> arrst.pop());\r\n\r\n\t\tSystem.out.println(\"isEmpty after poping all the elements ???\" + arrst.isEmpty());\r\n\r\n\t\tarrst.display();\r\n\r\n\t}", "public static void QtoS(){\n while(!POOR.isEmpty()){\n stack.push(POOR.remove());\n }\n while(!FAIR.isEmpty()){\n stack.push(FAIR.remove());\n }\n while(!GOOD.isEmpty()){\n stack.push(GOOD.remove());\n }\n while(!VGOOD.isEmpty()){\n stack.push(VGOOD.remove());\n }\n while(!EXCELLENT.isEmpty()){\n stack.push(EXCELLENT.remove());\n }\n \n \n}", "Stack_Using_Arrays(){\n\t\ttop=-1;\n\t}", "public static boolean detectPalindrome_stackApproach(Node head) {\n Node slow = head;\n Node fast = head;\n\n // Initialize an Integer stack and push half of the elements\n Stack<Integer> headStack = new Stack<Integer>();\n while(fast!=null && fast.next!=null) {\n headStack.push(slow.data);\n slow = slow.next;\n fast = fast.next.next;\n }\n\n // fast!=null if the given list is ODD, then move slow ahead, so that we compare with remaining elements\n if (fast!=null) {\n slow = slow.next;\n }\n\n while(!headStack.isEmpty() && slow!=null) {\n if (headStack.pop() != slow.data) {\n return false;\n }\n slow = slow.next;\n }\n\n return (slow == null && headStack.isEmpty());\n\n }", "public static void mergeSortNonRecursive(int[] input){\n int[] arr;\n Stack<int[]> unsortedStack = new Stack();\n Stack<int[]> sortedStack = new Stack();\n unsortedStack.push(input);\n //while !unsortedStack.isempty, needs to pop int[] from stack , assign to arr, pop status\n //if(arr.length>1), split arr to arr.left and arr.right,push left and right into stack, push false to stack twice\n //else if(arr.length<=1), push arr to sortedStack (while (!unsorted.isempty && peek().length==arr,merge and pushback to stack again)\n //\n\n while(!unsortedStack.empty()) {\n arr = unsortedStack.pop();\n if (arr.length > 1) {\n int begin = 0,end=arr.length,mid=arr.length/2;\n int[] left = Arrays.copyOfRange(arr, begin, mid);\n int[] right = Arrays.copyOfRange(arr, mid, end);\n unsortedStack.push(left);\n unsortedStack.push(right);\n } else {\n while(!sortedStack.isEmpty() && sortedStack.peek().length<=arr.length){\n arr = merge(arr, sortedStack.pop());\n }\n sortedStack.push(arr);\n }\n }\n while(sortedStack.size()>1){\n arr = merge(sortedStack.pop(), sortedStack.pop());\n sortedStack.push(arr);\n }\n int[] tmp = sortedStack.pop();\n for(int i=0;i<input.length;i++){\n input[i]=tmp[i];\n }\n\n }", "@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }", "public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}", "public interface IStack<T> {\n\t\n\tpublic int getCurrentSize();\n\t/** push to the end of the stack\n\t * @return the current stack size\n\t */\n\tpublic void push(T aValue);\n\t/** pop last elements off stack\n\t * @return the last value of the stack\n\t */\n\tpublic T pop();\n\t/** get frequency of given value\n\t * @param aValue to find frequency of\n\t * @return number of occurrences\n\t */\n\tpublic boolean isEmpty();\n\n\tpublic T[] toArray();\n}", "public Leetcode232() {\n mStack1 = new LinkedList<>();\n mStack2 = new LinkedList<>();\n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static void main(String[] args)\n {\n Stack<Integer> s = new Stack<>();\n \n Random generate = new Random();\n \n for (int i = 0; i < 20; i++) // add values to s\n {\n s.push(generate.nextInt(50));\n }\n\n System.out.println(StackSort.sort(s)); \n }", "public int solution(int[] H) {\n Stack<Integer> stackOfHeights = new Stack<>();\n int numOfStones = 0;\n \n for(int currentHeight: H) {\n while( !stackOfHeights.isEmpty() && stackOfHeights.peek() > currentHeight) {\n stackOfHeights.pop();\n }\n \n if(!stackOfHeights.isEmpty()) {\n if(stackOfHeights.peek() == currentHeight) { continue; }\n else {\n numOfStones++;\n stackOfHeights.push(currentHeight);\n }\n } else {\n numOfStones++;\n stackOfHeights.push(currentHeight);\n }\n }\n \n return numOfStones;\n }", "public void printStack(){\n Stack<Integer> tempStack = new Stack<>();\n if (numStack.empty()==true){\n System.out.println(Integer.MIN_VALUE);\n }\n else{\n while (numStack.empty() == false){\n tempStack.push(numStack.peek());\n numStack.pop();\n }\n while (tempStack.empty() == false){\n int i = tempStack.peek();\n System.out.println(i);\n tempStack.pop();\n numStack.push(i);\n } \n }\n }", "public void stackUsage() {\n\t\tStack<String> s = new Stack<String>();\n\t\ts.add(\"1\");\n\t\ts.add(\"2\");\n\t\ts.add(\"3\");\n\t\ts.add(\"10\");\n\t\ts.add(\"11\");\n\t\tSystem.out.println(s.peek());\n\t\t\n\t\tCollections.sort(s, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\tint a = Integer.valueOf(o1);\n\t\t\t\tint b = Integer.valueOf(o2);\n\t\t\t\tif (a > b) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tSystem.out.println(s.peek());\n\t}", "public static void main( String[] args )\n {\n\tStack<String> cakes = new LLStack<String>();\n\n\t//\"bronze jungle fail smite challenger nunu consume blue\"\n\tSystem.out.println( \"is cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n\t//push tests\n\tcakes.push( \"blue\" );\t\n\tSystem.out.println( \"top value of cakes after pushing blue:\\n\" + cakes.peek() );\t\n\tcakes.push( \"consume\" );\t\n\tSystem.out.println( \"top value of cakes after pushing consume:\\n\" + cakes.peek() );\t\n\tcakes.push( \"nunu\" );\n\tSystem.out.println( \"top value of cakes after pushing nunu:\\n\" + cakes.peek() );\t\t\n\tcakes.push( \"challenger\" );\n\tSystem.out.println( \"top value of cakes after pushing challenger:\\n\" + cakes.peek() );\t\n\tcakes.push( \"smite\" );\t\n\tSystem.out.println( \"top value of cakes after pushing smite:\\n\" + cakes.peek() );\t\n\tcakes.push( \"fail\" );\t\n\tSystem.out.println( \"top value of cakes after pushing fail:\\n\" + cakes.peek() );\t\n\tcakes.push( \"jungle\" );\t\n\tSystem.out.println( \"top value of cakes after pushing jungle:\\n\" + cakes.peek() );\t\n\tcakes.push( \"bronze\" );\t\n\tSystem.out.println( \"top value of cakes after pushing bronze:\\n\" + cakes.peek() );\n\t\n\tSystem.out.println( \"\\nis cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n\t//pop tests\n\tfor( int i = 0; i < 8; i ++ ){\n\t\tSystem.out.println( \"top value of cakes: \" + cakes.peek() );\n\t\tSystem.out.println( \"value popped from cakes: \" + cakes.pop() );\n\t}\n\t\n\tSystem.out.println( \"\\nis cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n }", "public static void main(String[] args) throws StackFullException, StackEmptyException {\n\t try {\n\t DiscardPile<Card> discardPile1 = null; \n\t\tdiscardPile1 = new DiscardPile<Card>(52, 0);// max is 52\n\t\tdiscardPile1.push(new Card(8));\n\t\tdiscardPile1.push(new Card(32));\n\t\tdiscardPile1.push(new Card(48));\t\t\n\t\tdiscardPile1.push(new Card(2));\n\t\tdiscardPile1.push(new Card(17));\n\t\tdiscardPile1.push(new Card(20)); //removeTopCard should remove all that's above\n\t\tdiscardPile1.push(new Card(25));\n\t\tdiscardPile1.push(new Card(50));\n\t\tdiscardPile1.push(new Card(19));\n\t\tdiscardPile1.push(new Card(41)); //10 Cards that must be popped\n\t\tSystem.out.println(\"*********************************************************************************\"); \n\t\tCollections.reverse(discardPile1);\n\t\tfor(Card comi : discardPile1) { //for loop for objects\n\t\t\tSystem.out.println(comi);\n\t\t\t}\t\t\t\n\t }\n\t catch (StackFullException SFE) {\n\t System.out.println(\"StackFullException: \" + SFE.getMessage());\n}\n\t try {\n\t\t\tDiscardPile<Card> discardPile = null; \n\t\t\tdiscardPile = new DiscardPile<Card>(52, 0);\n\t\t\tdiscardPile.push(new Card(8));\n\t\t\tdiscardPile.push(new Card(32));\n\t\t\tdiscardPile.push(new Card(48));\t\t\n\t\t\tdiscardPile.push(new Card(2));\n\t\t\tdiscardPile.push(new Card(17));\n\t\t\tdiscardPile.push(new Card(20)); //removeTopCard should remove all that's above\n\t\t\tdiscardPile.push(new Card(25));\n\t\t\tdiscardPile.push(new Card(50));\n\t\t\tdiscardPile.push(new Card(19));\n\t\t\tdiscardPile.push(new Card(41)); //10 Cards that must be popped\n\t\t\t \n\t\t\tSystem.out.println(\"*********************************************************************************\"); \n\t\t\t\n\t\t\tCard[] cardArr = discardPile.removeTopCard(new Card(20));\n\t\t\tfor(Card co : cardArr) { //for loop for objects\n\t\t\t\tSystem.out.println(co);\n\t\t\t\t}\t\t\n\t\t\tSystem.out.println(\"*********************************************************************************\"); \n\n\t\t }\n\t\t catch (StackFullException SFE) {\n\t\t \tSystem.out.println(\"StackFullException: \" + SFE.getMessage());\n\t\t }\n\t\t catch (StackEmptyException SEE) {\n\t\t \tSystem.out.println(\"StackFullException: \" + SEE.getMessage());\n\t\t }\n\t try {\n\t\t\tDiscardPile<Card> discardPile = null; \n\t\t\tdiscardPile = new DiscardPile<Card>(52, 0);\n\t\t\tdiscardPile.push(new Card(8));\n\t\t\tdiscardPile.push(new Card(32));\n\t\t\tdiscardPile.push(new Card(48));\t\t\n\t\t\tdiscardPile.push(new Card(2));\n\t\t\tdiscardPile.push(new Card(17));\n\t\t\tdiscardPile.push(new Card(20)); //removeTopCard should remove all that's above\n\t\t\tdiscardPile.push(new Card(25));\n\t\t\tdiscardPile.push(new Card(50));\n\t\t\tdiscardPile.push(new Card(19));\n\t\t\tdiscardPile.push(new Card(41)); //10 Cards that must be popped\n\t\t\t \n\t\t\t\n\t\t\tCard[] cardArr = discardPile.removeTopCard(new Card(50));\n\t\t\tfor(Card co : cardArr) { //for loop for objects\n\t\t\t\tSystem.out.println(co);\n\t\t\t\t}\t\t\n\t\t\tSystem.out.println(\"*********************************************************************************\"); \n\n\t\t }\n\t\t catch (StackFullException SFE) {\n\t\t \tSystem.out.println(\"StackFullException: \" + SFE.getMessage());\n\t\t }\n\t\t catch (StackEmptyException SEE) {\n\t\t \tSystem.out.println(\"StackFullException: \" + SEE.getMessage());\n\t\t }\n\n}", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "public static void main(String[] args) {\n\t\tStack<Integer> S = new Stack<>();\r\n\t\tfor(int i = 0; i<5; i++){\r\n\t\t\t//S.push(args);\r\n\t\t\tS.push(i);\r\n\t\t}\r\n\t\tSystem.out.println(\"Bottom-->\"+S+\"<--Top\");\r\n\t\t//S.pop();\r\n\t\twhile(!S.isEmpty()){\r\n\t\t\tSystem.out.println(\"After poping \"+S.pop());\r\n\t\t\tSystem.out.println(\"Now\tBottom-->\"+S+\"<--Top\");\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"After poping \"+S.pop());\r\n\t\t//System.out.println(\"Now\tBottom-->\"+S+\"<--Top\");\r\n\t}", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}", "public void traverseStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't traverse\");\n return;\n }\n // if stack is not empty\n System.out.println(\"Printing stack...\");\n for(int i=0;i<=this.topOfStack;i++){\n System.out.print(this.arr[i]+\" \");\n }\n System.out.println();\n }", "public CardStack getStack(Card card)\n {\n CardStack temp = new CardStack();\n int index = search(card);\n \n for (int i = 0; i < index; i++)\n {\n temp.push(getCardAtLocation(cards.size() - i - 1).clone());\n getCardAtLocation(cards.size() - i - 1).highlight();\n }\n \n return temp;\n }", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}", "public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tStack<Integer> st = new Stack<Integer>();\n\t\tQueue<Integer> que = new LinkedList<Integer>();\n\t\tArrayList<Integer> path = new ArrayList<>();\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint v = sc.nextInt();\n\t\tint [][] arr= new int [n+1][n+1];\n\t\tboolean [] visit = new boolean[n+1];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tarr[a][b] = 1;\n\t\t\tarr[b][a] = 1;\n\t\t}\n\t\tst.push(v);\n\t\twhile(!st.isEmpty()) {\n\t\t\tint temp = st.pop();\n\t\t\tif(visit[temp]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpath.add(temp);\n\t\t\tvisit[temp] = true;\n\t\t\tfor(int i=n;i>0;i--) {\n\t\t\t\tif(arr[temp][i]==1 && !visit[i]) {\n\t\t\t\t\tst.push(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<path.size();i++) {\n\t\t\tSystem.out.print(path.get(i)+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tArrays.fill(visit, false);\n\t\tpath = new ArrayList<>();\n\t\tque.add(v);\n\t\twhile(!que.isEmpty()) {\n\t\t\tint temp = que.poll();\n\t\t\tif(visit[temp]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpath.add(temp);\n\t\t\tvisit[temp] = true;\n\t\t\tfor(int i=1;i<=n;i++) {\n\t\t\t\tif(arr[temp][i]==1 && !visit[i]) {\n\t\t\t\t\tque.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<path.size();i++) {\n\t\t\tSystem.out.print(path.get(i)+\" \");\n\t\t}\n\t}", "@Test\n public void testPushAndPopD() {\n System.out.println(\"popC - Out of Order\");\n\n String elementOne = \"Bill\";\n String elementTwo = \"Steve\";\n String elementThree = \"Tim\";\n String elementFour = \"Dave\";\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 3);\n assertEquals(instance.isEmpty(), false);\n\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n\n instance.push(elementFour);\n String resultFour = instance.pop();\n\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "void dump_stacks(int count)\r\n{\r\nint i;\r\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\r\n for (i=0;i<count;i++)\r\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\r\n System.out.println(\"======================\");\r\n}", "@Test\n public void basicQueueOfStacksTest() {\n \n QueueOfStacks<String> tempQueue = new QueueOfStacks<String>();\n String tempCurrentElement;\n \n assertTrue(\"Element not in queue\", tempQueue.isEmpty());\n tempQueue.add(\"a\");\n assertTrue(\"Element not in queue\", !tempQueue.isEmpty());\n tempQueue.add(\"b\");\n assertTrue(\"Number of elements not correct\", tempQueue.size() == 2);\n \n tempCurrentElement = tempQueue.peek();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"a\"));\n\n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"a\") &&\n tempQueue.size() == 1);\n \n tempQueue.add(\"c\");\n assertTrue(\"Number of elements not correct\", tempQueue.size() == 2);\n \n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"b\") &&\n tempQueue.size() == 1 &&\n !tempQueue.isEmpty());\n \n tempCurrentElement = tempQueue.remove();\n assertTrue(\"Element not correct\", tempCurrentElement.equals(\"c\") &&\n tempQueue.size() == 0 &&\n tempQueue.isEmpty());\n \n }", "public static void sortStack2(Stack s){\n Stack ordered = new Stack();\n while(s.isEmpty() == false){\n Node top = s.pop();\n while(ordered.isEmpty() == false && ordered.peek() >= top.data){\n s.push(ordered.pop());\n }\n ordered.push(top);\n }\n while(ordered.isEmpty()==false){\n s.push(ordered.pop());\n }\n }", "boolean push(int x) \r\n {\n if(top >= (MAX-1))\r\n {\r\n System.out.println(\"Stack Overflow Occurred!\");\r\n return false;\r\n }\r\n //Write your code here\r\n a[++top] = x;\r\n System.out.println(\"Pushed \" + x + \" into stack\");\r\n return true;\r\n }", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "private static void dfsAgain(int[][] arr, int sv, boolean[] visited, Stack<Integer> stack, ArrayList<Integer> list) {\n\t\t\n\t\twhile(!stack.isEmpty()) {\n\t\t\tint top=stack.pop();\n\t\t\tif(!visited[top]) {\n\t\t\t\t\n\t\t\tvisited[top]= true;\n\t\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\t\tif(arr[top][i]==1 && !visited[i]) {\n\t\t\t\t\tvisited[i]=true;\n\t\t\t\t\tlist.add(i);\n\t\t\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 static void main(String[] args) {\n Solution solution = new Solution();\n TreeNode root = new TreeNode(1);\n root.left = new TreeNode(2);\n root.left.left = new TreeNode(6);\n root.left.left.right = new TreeNode(10);\n root.left.left.right.left = new TreeNode(-1);\n root.left.right = new TreeNode(9);\n\n root.right = new TreeNode(3);\n root.right.right = new TreeNode(5);\n root.right.left = new TreeNode(4);\n root.right.left.left = new TreeNode(7);\n root.right.left.right = new TreeNode(8);\n \n solution.stackList(root);\n for (int i = 0 ; i < solution.list.size(); i++) System.out.print(solution.list.get(i) + \" \");\n }", "public interface Stack<T> {\n boolean isEmpty();\n T pop();\n void push(T t);\n T getTop();\n void clear();\n int size();\n}", "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "int pop2(TwoStack sq)\n {\n if(sq.top2<sq.size)\n {\n int yo2=sq.arr[sq.top2];\n sq.top2++;\n return yo2;\n }\n else\n {\n return -1;\n }\n \n }", "public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public interface StackTest<T> {\n\n T pop();\n void push(T t);\n boolean isEmpty();\n int getSize();\n}", "public static void sort(Stack<Integer> s) {\n Stack<Integer> temp = new Stack<Integer>();\n\n while(!s.isEmpty()) {\n int n = s.pop();\n\n while(!temp.isEmpty() && n > temp.peek())\n s.push(temp.pop());\n\n temp.push(n);\n }\n\n while(!temp.isEmpty())\n s.push(temp.pop());\n }", "@Test\n public void testPushCallTop(){\n ms = new MyStack();\n ms.push(1);\n ms.top();\n assertFalse(ms.IsEmpty());\n }", "@Test\n public void testPushAndPopC() {\n\n System.out.println(\"pushB - All Nulls\");\n String elementOne = null;\n String elementTwo = null;\n String elementThree = null;\n String elementFour = null;\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n instance.push(elementFour);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String resultFour = instance.pop();\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "static void sortStack(Stack<Integer> s)\n\t{\n\t\t// If stack is not empty\n\t\tif (!s.isEmpty()) \n\t\t{\n\t\t\t// Remove the top item\n\t\t\tint x = s.pop();\n\n\t\t\t// Sort remaining stack\n\t\t\tsortStack(s);\n\n\t\t\t// Push the top item back in sorted stack\n\t\t\tsortedInsert(s, x);\n\t\t}\n\t}", "public interface Stack {\n//\tpublic static final Object[] contents = new Object[100]; \n\tpublic void push(Object anElement);\n\tpublic Object pop();\n\n}", "public int maxStack();", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int T = Integer.parseInt(br.readLine());\n for(int t = 0; t < T; t++) {\n int N = Integer.parseInt(br.readLine());\n Stack<Integer> top = new Stack<>();\n Stack<Integer> branch = new Stack<>();\n for(int i = 0; i < N; i++) {\n top.push(Integer.parseInt(br.readLine()));\n }\n boolean b = true; int next = 1;\n while(b && next <= N) {\n if(top.size() > 0 && next == top.peek()) {\n top.pop();\n next++;\n } else if(branch.size() > 0 && branch.peek() == next) {\n branch.pop();\n next++;\n } else if (top.size() > 0) {\n branch.push(top.pop());\n } else {\n b = false;\n }\n }\n if(b) System.out.println(\"Y\");\n else System.out.println(\"N\");\n }\n }", "private synchronized void PCToStack() throws RuntimeException\n {\n int first8bites, second8bites, third8bits;\n \n first8bites = Utils.get_lobyte(mPC);\n second8bites = Utils.get_hibyte(mPC);\n if (PC_BIT_SIZE == 22)\n third8bits = Utils.get_lobyte(mPC >> 16);\n else\n third8bits = 0;\n mStack.push(first8bites);\n mStack.push(second8bites);\n if (PC_BIT_SIZE == 22)\n mStack.push(third8bits);\n }", "public String getStack();", "int pop() \r\n {\n if(top < 0)\r\n {\r\n System.out.println(\"Stack Underflow Occurred!\");\r\n return -1;\r\n }\r\n //Write your code here\r\n int p = a[top];\r\n top--;\r\n return p; \r\n }", "public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }", "public interface Stack<T>\n{\n\t/**\n\t * This method initializes an empty stack with a max size of n.\n\t *\n\t * @param n The maximum capacity of the stack.\n\t */\n\tvoid init(int n);\n\n\t/**\n\t * This method pushes the specified element onto the stack.\n\t *\n\t * @param x The element to be pushed.\n\t */\n\tvoid push(T x);\n\n\t/**\n\t * This method pops the top LIFO element off the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT pop();\n\n\t/**\n\t * This method returns the element on the top of the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT peek();\n\n\t/**\n\t * This method returns the current depth of the stack.\n\t *\n\t * @return |this| - count(empty, this);\n\t */\n\tint depth();\n\n\t/**\n\t * This method returns the maximum capacity of the stack.\n\t *\n\t * @return |this|;\n\t */\n\tint maxDepth();\n\n\t/**\n\t * This method returns the empty status of the stack.\n\t *\n\t * @return true if |this| = 0, otherwise false;\n\t */\n\tboolean isEmpty();\n\n\t/**\n\t * This method clears the stack.\n\t */\n\tvoid clear();\n\n\t/**\n\t * This method prints the contents of the stack.\n\t */\n\tvoid print();\n}", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "public static int sumStack (IntStackInterface inputStack){\n\t\t\n\t\tint result = 0;\n\t\tIntArrayStack tempStack = new IntArrayStack(inputStack.size());\n\t\t\n\t\twhile (!inputStack.isEmpty()){\n\t\t\tint num = inputStack.pop();\n\t\t\tresult += num;\n\t\t\ttempStack.push(num);\n\t\t}\n\t\t\n\t\twhile (!tempStack.isEmpty())\n\t\t\tinputStack.push(tempStack.pop());\n\t\t\n\t\treturn result;\n\t}", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "private void ensureCapacity(){\n if(topIndex >= stack.length - 1){\n int newLength = 2 * stack.length;\n stack = Arrays.copyOf(stack, newLength);\n }\n }", "static boolean checkSorted(int n) \r\n\t{ \r\n\t\tStack<Integer> st = \r\n\t\t\t\t\tnew Stack<Integer>(); \r\n\t\tint expected = 1; \r\n\t\tint fnt; \r\n\t\r\n\t\t// while given Queue \r\n\t\t// is not empty. \r\n\t\twhile (q.size() != 0) \r\n\t\t{ \r\n\t\t\tfnt = q.peek(); \r\n\t\t\tq.poll(); \r\n\t\r\n\t\t\t// if front element is \r\n\t\t\t// the expected element \r\n\t\t\tif (fnt == expected) \r\n\t\t\t\texpected++; \r\n\t\r\n\t\t\telse\r\n\t\t\t{ \r\n\t\t\t\t// if stack is empty, \r\n\t\t\t\t// push the element \r\n\t\t\t\tif (st.size() == 0) \r\n\t\t\t\t{ \r\n\t\t\t\t\tst.push(fnt); \r\n\t\t\t\t} \r\n\t\r\n\t\t\t\t// if top element is less than \r\n\t\t\t\t// element which need to be \r\n\t\t\t\t// pushed, then return fasle. \r\n\t\t\t\telse if (st.size() != 0 && \r\n\t\t\t\t\t\tst.peek() < fnt) \r\n\t\t\t\t{ \r\n\t\t\t\t\treturn false; \r\n\t\t\t\t} \r\n\t\r\n\t\t\t\t// else push into the stack. \r\n\t\t\t\telse\r\n\t\t\t\t\tst.push(fnt); \r\n\t\t\t} \r\n\t\r\n\t\t\t// while expected element are \r\n\t\t\t// coming from stack, pop them out. \r\n\t\t\twhile (st.size() != 0 && \r\n\t\t\t\tst.peek() == expected) \r\n\t\t\t{ \r\n\t\t\t\tst.pop(); \r\n\t\t\t\texpected++; \r\n\t\t\t} \r\n\t\t} \r\n\t\t\r\n\t\t// if the final expected element \r\n\t\t// value is equal to initial Queue \r\n\t\t// size and the stack is empty. \r\n\t\tif (expected - 1 == n && \r\n\t\t\t\tst.size() == 0) \r\n\t\t\treturn true; \r\n\t\r\n\t\treturn false; \r\n\t}", "public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}", "static void stack_search(Stack<Integer> stack,int element)\r\n\t{\r\n\t\tInteger positionOfStackElements=(Integer) stack.search(element);\r\n\t\tif(positionOfStackElements==-1)\r\n\t\t\tSystem.out.println(\"Element not found\");\r\n\t\telse System.out.println(\"Element is found at position :\"+ positionOfStackElements);\r\n\t\t\r\n\t}", "void push2(int x) {\n --top2;\n if(top2 == size / 2) {\n System.out.println(\"Second stack is full\");\n return;\n }\n arr[top2] = x;\n }", "public void push(Employee employee){\n if(isFull()){\n Employee[] newArray = new Employee[2 * employeeStack.length];\n // System.arraycopy(srcArray, srcPos, destisnationArray, destPos, length);\n System.arraycopy(employeeStack, 0, newArray, 0, employeeStack.length);\n employeeStack = newArray;\n }\n employeeStack[top++] = employee;\n }", "final void state_push(int state)\r\n{\r\n try {\r\n\t\tstateptr++;\r\n\t\tstatestk[stateptr]=state;\r\n\t }\r\n\t catch (ArrayIndexOutOfBoundsException e) {\r\n int oldsize = statestk.length;\r\n int newsize = oldsize * 2;\r\n int[] newstack = new int[newsize];\r\n System.arraycopy(statestk,0,newstack,0,oldsize);\r\n statestk = newstack;\r\n statestk[stateptr]=state;\r\n }\r\n}", "public Stack<String> primeAnagram1() \n\t\t{\n\t\t\tStack<String> stack = new Stack<String>(); \t\t\t\n\t\t\tArrayList<String> arr = Utility. primeNumbers(1000);\n\t\t\t\tfor(int i=0; i<arr.size()-1; i++) \n\t\t\t\t{\n\t\t\t\tfor(int j=i+1; j<arr.size(); j++) \n\t\t\t\t{\n\t\t\t\t\tif(Utility.isAnagram(String.valueOf(arr.get(i)),String.valueOf(arr.get(j)))) \n\t\t\t\t\t{ \n\t\t\t\t\t\tstack.push(String.valueOf(arr.get(i))); \n\t\t\t\t\t\tstack.push(String.valueOf(arr.get(j)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\treturn stack;\n\t\t}", "public ArrayStackTest(int capacity){\n\t\tstore = (E[]) new Object[capacity];\n\t\ttop = -1;\n\t}", "public static void main(String[] args) {\n java.util.Stack<String> stack = new java.util.Stack<String>();\n stack.push(\"a\");\n stack.push(\"b\");\n stack.push(\"c\");\n stack.push(\"d\");\n System.out.println(stack.size()); //=> 4\n // bottom of stack at 0\n // top of stack at length-1\n System.out.println(stack.get(1)); //=> \"b\"\n }", "@Test\r\n\tpublic void testCardStack() {\r\n\t\t\r\n\t\t// create a card stack\r\n\t\tCardStack testStack = new CardStack();\r\n\t\t\r\n\t\t// test if we can place a non-king card onto the empty stack\r\n\t\tassertFalse(testStack.isValidMove(deckCards.get(1)));\r\n\t\t\r\n\t\t// test if we can place a king onto an empty stack\r\n\t\t// remember testStack starts at 0 not 1, so kings are at position 12\r\n\t\tassertTrue(testStack.isValidMove(deckCards.get(12)));\r\n\t\t\r\n\t\t// add the king to the stack\r\n\t\tassertEquals(deckCards.get(12), testStack.push(deckCards.get(12)));\r\n\t\t\r\n\t\t// now test can we add the same suit queen\r\n\t\tassertFalse(testStack.isValidMove(deckCards.get(12)));\r\n\t\t\r\n\t\t// now test if can add an off-suit different color queen\r\n\t\tassertTrue(testStack.isValidMove(deckCards.get(37)));\r\n\t\t\r\n\t\t// place the card to the stack\r\n\t\tassertEquals(deckCards.get(37), testStack.push(deckCards.get(37)));\r\n\t\t\r\n\t\t// add a card to the stack via add method as if being dealt\r\n\t\ttestStack.addCard(deckCards.get(40));\r\n\t\t\r\n\t\t// now check if that changes what will be accepted\r\n\t\tassertFalse(testStack.isValidMove(deckCards.get(41)));\r\n\t}", "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 }", "public static void main(String[] args) {\n\t\tunit11.Stack<String> stack = new unit11.Stack<String>();\n\t\t\n\t\tfor(String s : \"My dog has fleas\".split(\" \")){\n\t\t\tstack.push(s);\n\t\t}\n\t\twhile(!stack.empty()){\n\t\t\tSystem.out.println(stack.pop());\n\t\t}\n\t\tjava.util.Stack<String> stack2 = new java.util.Stack<String>();\n\t\tfor(String s : \"My dog has fleas\".split(\" \")){\n\t\t\tstack.push(s);\n\t\t}\n\t\twhile(! stack.empty()){\n\t\t\tSystem.out.println(stack.pop());\n\t\t}\n\t}", "public boolean push(E element){\r\n\t\t/**If array is full, create an array double the current size*/\r\n\t\tif(top==stack.length-1){\r\n\t\t\tstack = Arrays.copyOf(stack, 2*stack.length);\r\n\t\t}\r\n\t\tstack[++top] = element;\t\r\n\t\treturn true;\r\n\t}" ]
[ "0.6785072", "0.67048", "0.65553933", "0.63329184", "0.62648463", "0.62049055", "0.6182148", "0.6159157", "0.6084487", "0.6034364", "0.6030707", "0.59987783", "0.5982124", "0.5979093", "0.59739894", "0.58941346", "0.5870916", "0.5853693", "0.5847921", "0.58401227", "0.58093107", "0.5803485", "0.5768751", "0.5765435", "0.57524127", "0.5737687", "0.5734529", "0.56916964", "0.56908196", "0.5662798", "0.56500053", "0.5648576", "0.56418365", "0.56407976", "0.5596014", "0.5595912", "0.55815566", "0.55587465", "0.5545802", "0.55447745", "0.5540151", "0.5538504", "0.5523341", "0.55162084", "0.5512356", "0.55106044", "0.5505466", "0.55002475", "0.5499629", "0.54975027", "0.5489645", "0.5488483", "0.54873013", "0.5485893", "0.54814047", "0.545464", "0.5446617", "0.5437882", "0.54358417", "0.5413179", "0.5410657", "0.5410657", "0.5410657", "0.54048884", "0.53978544", "0.5397474", "0.539366", "0.53805184", "0.5372239", "0.53711456", "0.53661966", "0.5364277", "0.53563267", "0.5354183", "0.5353261", "0.53500247", "0.5339983", "0.5338486", "0.53290695", "0.5324491", "0.5323284", "0.5321975", "0.5307452", "0.53035724", "0.5299178", "0.52988076", "0.5296535", "0.5292951", "0.5292678", "0.5290128", "0.5289401", "0.5283412", "0.5282851", "0.5282154", "0.52774996", "0.52669626", "0.52655137", "0.5261037", "0.5257031", "0.5255807", "0.52539825" ]
0.0
-1
time complexity: O(N), space complexity: O(N) 1 ms(90.96%), 38.4 MB(94.59%) for 98 tests
public int minOperations2(String[] logs) { int res = 0; for (String log : logs) { switch (log) { case "./": break; case "../": res = Math.max(0, --res); break; default: res++; break; } } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "public int[] fix34(int[] nums) {\r\n\tint i=0; // O(1)\r\n while(i<nums.length && nums[i]!=3) // O(n)\r\n i++; // n+1\r\n int j=i; // O(1)\r\n while(j+1<nums.length && nums[j+1]!=4) // O(n)\r\n j++; // n+1\r\n while(i<nums.length){ // O(n)\r\n if(nums[i]==3){ // O(1)\r\n int temp=nums[i+1]; // O(1)\r\n nums[i+1]=nums[j+1]; //O(1)\r\n nums[j+1]=temp; // O(1)\r\n while(j+1<nums.length && nums[j+1] != 4) //O(n)\r\n j++; // n+1\r\n }\r\n i++; // n+1\r\n }\r\n return nums; //O(1)\r\n}", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}", "public static void main(String args[] ) throws Exception {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] seqArray = new int[n];\n for (int i = 0; i < n; i++) {\n seqArray[i] = scanner.nextInt();\n }\n // getSeqValue(seqArray); //this method is an accepted one on Hackerrank but time complexity is not order n; i.e. !O(n);\n getLinearOrderY(seqArray); // trying to get O(n) time complexity;\n }", "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "public static void main(String[] args) throws IOException {\n int max = 100000;\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n N = Integer.parseInt(br.readLine());\n\n int arr[] = new int[max+1];\n\n for (int p=2; p<=99999; p++)\n {\n if (arr[p] == 0)\n { arr[p] = 1;\n for (int i=p*2; i<=max; i += p) {\n arr[i]++;\n }\n }\n }\n\n int mat[][] = new int[6][max+1];\n// for (int i = 2; i < arr.length; i++) {\n// mat[arr[i]][i] = 1;\n// }\n\n for (int i = 1; i < 6; i++) {\n for (int j = 2; j < mat[0].length; j++) {\n if(arr[j] == i) {\n mat[i][j] = mat[i][j - 1]+1;\n } else {\n mat[i][j] = mat[i][j - 1];\n }\n }\n }\n\n\n for (int i = 0; i < N; i++) {\n String str[] = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int k = Integer.parseInt(str[2]);\n int ans = mat[k][b]-mat[k][a-1];\n System.out.println(ans);\n }\n }", "public static void main(String[] args) {\n\t\tArrays.fill(arr, 1);\n\t\tlong startTime = System.nanoTime();\n\t\t// Traverse till square root of MAX\n\t\t// Using logic similar to sieve of eratosthenes to\n\t\t// populate factor sum array\n\t\tint limit = (int)Math.sqrt(MAX);\n\t\tfor (int i = 2; i <= limit; ++i) {\n\t\t\tint j = i+i;\n\t\t\tint count = 2;\n\t\t\twhile (j <= MAX){\n\t\t\t\t// As we already add count (j/i) to the factor sum when adding i,\n\t\t\t\t// we don't add when i is equal to or greater than count\n\t\t\t\tif (i < count) {\n\t\t\t\t\t// Adding i and count (j/i) to the factor sum of j\n\t\t\t\t\tarr[j] += i;\n\t\t\t\t\tarr[j] += count;\n\t\t\t\t}\n\t\t\t\tj += i;\n\t\t\t\tcount++;\n\t\t\t} \n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tSystem.out.println(\"The following are amicable numbers\");\n\t\tfor (int i = 2; i <= MAX; ++i) {\n\t\t\tint num = arr[i];\n\t\t\tif (num <= MAX && num > i) {\n\t\t\t\tif (arr[num] == i) {\n\t\t\t\t\tSystem.out.println(count+\": \"+i+\" and \"+num);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong endTime = System.nanoTime();\n\t\tdouble duration = timeInSec(endTime,startTime) ;\n\t\tSystem.out.println(\"Run time \" + duration + \" : secs\");\t\t\n\t}", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint T;\n\t\tT=sc.nextInt();\n\t\tfor(int test_case = 1; test_case <= T; test_case++){\n\t\t\tN = sc.nextInt();//3~100,000\n//\t\t\tint Max = 0;\n//\t\t\tint n2 = space(N);\n//\t\t\tint[] arr = new int[n2*2 + 1];\n//\t\t\tfor(int i = n2, size = 0; size < N; i++, size++) {\n//\t\t\t\tarr[i] = sc.nextInt();\n//\t\t\t\tMax = Max < arr[i] ? arr[i] : Max;\n//\t\t\t}\n//\t\t\tint leftIdx = n2;\n//\t\t\tint rightIdx = n2 * 2 - 1;\n//\t\t\twhile(leftIdx != 1) {\n//\t\t\t\tfor(int i = leftIdx; i<=rightIdx; i = i + 2) {\n//\t\t\t\t\tarr[i/2] = arr[i] + arr[i+1];\n//\t\t\t\t\tMax = Max < arr[i/2] ? arr[i/2] : Max;\n//\t\t\t\t}\n//\t\t\t\trightIdx = leftIdx - 1;\n//\t\t\t\tleftIdx = leftIdx / 2;\n//\t\t\t}\n\t\t\tint[] arr = new int[N];\n\t\t\tint Max = 0;\n\t\t\tfor(int i=0;i<N;i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\t\t\tMax = fastMaxSum(arr);\n\t\t\tSystem.out.println(\"#\" + test_case + \" \" + Max);\n\t\t}\n\t}", "public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}", "public static void main(String[] args) throws NumberFormatException, IOException {\n\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tint T = Integer.parseInt(br.readLine());\r\n\t\tStringTokenizer st;\r\n\t\tfor (int test_case = 1; test_case <= T; test_case++) {\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tN = Integer.parseInt(st.nextToken());\r\n\t\t\tK = Integer.parseInt(st.nextToken());\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tlist = new ArrayList[N + 1];\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tlist[i] = new ArrayList<Integer>();\r\n\t\t\t}\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tint k = Integer.parseInt(st.nextToken());\r\n\t\t\t\tlist[k].add(i);\r\n\t\t\t}\r\n//\t\t\tfor (int i = 1; i <= N; i++) {\r\n//\t\t\t\tfor (int j = 0; j < list[i].size(); j++)\r\n//\t\t\t\t\tSystem.out.print(i + \", \" + list[i].get(j) + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\r\n\t\t\tQueue<Integer> q;\r\n//\t\t\tfor(int i = 1; i<=N;i++) {\r\n//\t\t\t\tif(list[i].size()==0) {\r\n//\t\t\t\t\tq.add(i);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\tint visited[];\r\n\t\t\tint answer = 0;\r\n\t\t\tfor (int i = 1; i <= N; i++) {// 각 굴에 대해서 인원 센다\r\n\t\t\t\tq = new LinkedList<Integer>();\r\n\t\t\t\tvisited = new int[N + 1];\r\n\t\t\t\tint count = K;\r\n//\t\t\t\tfor (int j = 1; j < K; j++) {// 지날 수 있는 굴의 최대갯수 K\r\n\t\t\t\tif (list[i].size() < 1) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tint idx;\r\n\t\t\t\tfor (int u = 0; u < list[i].size(); u++) {\r\n\t\t\t\t\tidx = list[i].get(u);\r\n\t\t\t\t\tq.add(idx);\r\n\t\t\t\t}\r\n\t\t\t\twhile (count > 0 && !q.isEmpty()) {\r\n\t\t\t\t\tidx = q.poll();\r\n\r\n\t\t\t\t\tfor (int m = 0; m < list[idx].size(); m++) {\r\n\r\n\t\t\t\t\t\tint dd = list[idx].get(m);\r\n\t\t\t\t\t\tif (visited[dd] == 0 && dd != i) {\r\n\t\t\t\t\t\t\tvisited[dd] = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tq.add(list[idx].get(m));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount--;\r\n\r\n\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tfor (int e = 1; e <= N; e++) {\r\n\t\t\t\t\tif (visited[e] == 1)\r\n\t\t\t\t\t\tanswer++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"#\" + test_case + \" \" + answer);\r\n\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "public static void main(String[] args) {\n\t\tint size = 600_000_000;\n\t\tint[] mas = new int[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tmas[i] = i;\n\t\t}\n\n\t\t// positive test\n\t\tint target = size - 1;\n\n\t\tlong start = System.currentTimeMillis();\n\t\tlinearSearchTestPositive(mas, target, target);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(end - start);\n\n\n\t\tlong start1 = System.currentTimeMillis();\n\t\tbinarySearchTestPositive(mas, target, target);\n\t\tlong end1 = System.currentTimeMillis();\n\t\tSystem.out.println(end1 - start1);\n\t}", "private static int runBenchmark(int n) {\n int result = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n result = benchmarkedMethod();\n }\n }\n return result;\n }", "public static void main(String[] args) { int n = 100000000;\n// Integer[] array = ArrayGenerator.randomGenerator(n, n);\n// Integer[] arr = Arrays.copyOf(array, array.length);\n// PerformanceSort.test(\"QuickSort\", array);\n// PerformanceSort.test(\"MergeSort\", arr);\n// Integer[] array1 = ArrayGenerator.orderGenerator(n);\n// Integer[] arr1 = Arrays.copyOf(array1, array1.length);\n// PerformanceSort.test(\"QuickSort\", array1);\n// PerformanceSort.test(\"MergeSort\", arr1);\n//\n int n = 5000000;\n Integer[] array = ArrayGenerator.randomGenerator(n, 3);\n Integer[] arr = Arrays.copyOf(array, array.length);\n\n PerformanceSort.test(\"QuickSort3\", array);\n PerformanceSort.test(\"QuickSort2\", arr);\n// Integer[] array = new Integer[]{1, 8, 7, 6, 4};\n// PerformanceSort.test(\"QuickSort2\", array);\n\n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "public static void main(String[] args) {\n for (int N = 100; N <= 100000; N *= 10) {\n int[] nums = new int[N];\n Random random = new Random();\n for (int i = 0; i < N; i++) {\n nums[i] = random.nextInt(N * 10);\n }\n Long start = 0L, end = 0L;\n int[] quickSortArray = Arrays.copyOf(nums, nums.length);\n int[] InsertSortArray = Arrays.copyOf(nums, nums.length);\n int[] shellSortArray = Arrays.copyOf(nums, nums.length);\n int[] bubbleSortArray = Arrays.copyOf(nums, nums.length);\n int[] selectionSortArray = Arrays.copyOf(nums, nums.length);\n int[] mergeSortArray = Arrays.copyOf(nums, nums.length);\n System.out.println(\"数据量为:\" + N);\n start = System.currentTimeMillis();\n QuickSort.quickSort(quickSortArray, 0, N - 1);\n end = System.currentTimeMillis();\n System.out.println(\"快速排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n InsertSort.insertSort(InsertSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"插入排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n ShellSort.shellSort(shellSortArray, 8);\n end = System.currentTimeMillis();\n System.out.println(\"希尔排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n BubbleSort.bubbleSort(bubbleSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"冒泡排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n SelectionSort.selectionSort(selectionSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"选择排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n MergeSort.mergeSort(mergeSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"归并排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n }\n }", "public static void main(String[] args) {\r\n\t\t/** 1.000\r\n\t\t * bruteforceBE Asc runtime: 1072294\r\n\t\t * bruteforceBE Desc runtime: 17835245\r\n\t\t * improvedBE Asc runtime: 3562199\r\n\t\t * improvedBE Desc runtime: 794515\r\n\t\t * linearBE Asc runtime: 1680780\r\n\t\t * linearBE Desc runtime: 1629310\r\n\t\t *\r\n\t\t * 10.000\r\n\t\t * bruteforceBE Asc runtime: 3850878\r\n\t\t * bruteforceBE Desc runtime: 113789179\r\n\t\t * improvedBE Asc runtime: 11800873\r\n\t\t * improvedBE Desc runtime: 8166293\r\n\t\t * linearBE Asc runtime: 14381578\r\n\t\t * linearBE Desc runtime: 5897656\r\n\t\t *\r\n\t\t * 100.000\r\n\t\t * bruteforceBE Asc runtime: 19376301\r\n\t\t * bruteforceBE Desc runtime: 7801237491\r\n\t\t * improvedBE Asc runtime: 52015969\r\n\t\t * improvedBE Desc runtime: 33891001\r\n\t\t * linearBE Asc runtime: 43042990\r\n\t\t * linearBE Desc runtime: 10088763\r\n\t\t *\r\n\t\t * 200.000\r\n\t\t * bruteforceBE Asc runtime: 27567279\r\n\t\t * bruteforceBE Desc runtime: 30705593272\r\n\t\t * improvedBE Asc runtime: 87086775\r\n\t\t * improvedBE Desc runtime: 51012088\r\n\t\t * linearBE Asc runtime: 61726040\r\n\t\t * linearBE Desc runtime: 56062681\r\n\t\t */\r\n\t\tArrayList<Integer> ArrayUnsortAsc = new ArrayList<>();\r\n\t\tArrayList<Integer> ArrayUnsortDesc = new ArrayList<>();\r\n\t\tint n = 1000;\r\n\r\n\t\tfor(int i = 1; i <= n; i++ ) {\r\n\t\t\tArrayUnsortAsc.add(i);\r\n\t\t}\r\n\t\tfor(int j = n; j >= 1; j-- ) {\r\n\t\t\tArrayUnsortDesc.add(j);\r\n\t\t}\r\n\r\n\t\tlong beginning = 0, end = 0;\r\n\t\tlong runtime;\r\n\t\t//1a test\r\n\t\tbeginning = System.nanoTime();\r\n\t\tbruteForceBE(ArrayUnsortAsc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"bruteforceBE Asc runtime: \" + runtime);\r\n\r\n\t\tbeginning = System.nanoTime();\r\n\t\tbruteForceBE(ArrayUnsortDesc,ArrayUnsortDesc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"bruteforceBE Desc runtime: \" + runtime);\r\n\r\n\r\n\t\t//1b test\r\n\t\tbeginning = System.nanoTime();\r\n\t\timprovedBE(ArrayUnsortAsc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"improvedBE Asc runtime: \" + runtime);\r\n\r\n\t\tbeginning = System.nanoTime();\r\n\t\timprovedBE(ArrayUnsortDesc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"improvedBE Desc runtime: \" + runtime);\r\n\r\n\r\n\t\t//1c test\r\n\t\tbeginning = System.nanoTime();\r\n\t\tlinearBE(ArrayUnsortAsc,ArrayUnsortAsc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"linearBE Asc runtime: \" + runtime);\r\n\r\n\t\tbeginning = System.nanoTime();\r\n\t\tlinearBE(ArrayUnsortDesc,ArrayUnsortDesc.size()/2);\r\n\t\tend = System.nanoTime();\r\n\t\truntime = end - beginning;\r\n\t\tSystem.out.println(\"linearBE Desc runtime: \" + runtime);\r\n\r\n\t}", "public static void main(String[] args) {\n String res = \"1\";\r\n for (int i = 0; i < 100; i++) res += '0';\r\n MAX = new BigInteger(res);\r\n generate(\"1\", 1, 1);\r\n generate(\"2\", 1, 4);\r\n generate(\"3\", 1, 9);\r\n Arrays.sort(values);\r\n// System.out.println(count);\r\n\r\n// for (int i = 0; i < 100; i++) {\r\n// System.out.println(values[i]);\r\n// }\r\n\r\n\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n String line = br.readLine();\r\n int K = Integer.parseInt(line);\r\n for (int i = 1; i <= K; i++) {\r\n String[] v = br.readLine().split(\" \");\r\n BigInteger A = new BigInteger(v[0]);\r\n BigInteger B = new BigInteger(v[1]);\r\n\r\n int p1 = Arrays.binarySearch(values, A);\r\n if (p1 < 0) {\r\n p1 = -p1 - 1;\r\n }\r\n int p2 = Arrays.binarySearch(values, B);\r\n if (p2 < 0) {\r\n p2 = -p2 - 1;\r\n } else {\r\n p2++;\r\n }\r\n int result = p2 - p1;\r\n //System.out.println(p1 + \" \" + p2);\r\n System.out.println(\"Case #\" + i + \": \" + result);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\r\n }\r\n }", "public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}", "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "public static int Main()\n\t{\n\t\tint s = 0;\n\t\tint t = 0;\n\t\tint[] a = new int[100000];\n\t\tint n;\n\t\tint i;\n\t\tint j;\n\t\tint k;\n\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\n\t\tfor (i = 1;i <= n;i++)\n\t\t{\n\t\t\ta[i - 1] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t}\n\n\t\tk = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\n\t\tfor (j = 1;j <= n;j++) //?for??????????k??????\n\t\t{\n\t\t\tif (a[j - 1] != k)\n\t\t\t{\n\t\t\t\tt++; //?t?????k???????????????????????\n\t\t\t}\n\t\t}\n\t\tfor (j = 1;j <= n;j++)\n\t\t{\n\t\t\tif (a[j - 1] != k) //???k?????\n\t\t\t{\n\t\t\t\ts++;\n\t\t\t\tif (s <= t - 1) //?????????k???s?t????????????\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(a[j - 1]);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\telse //??????????????\n\t\t\t\t{\n\t\t\t\tSystem.out.print(a[j - 1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "static long arrayManipulation(int n, int[][] queries) {\r\n long result = 0, sum = 0;\r\n long[] arr = new long[n];\r\n for(int i = 0; i < queries.length; i++){\r\n int firstIndex = queries[i][0] - 1;\r\n int lastIndex = queries[i][1] - 1;\r\n long numberToAdd = queries[i][2];\r\n arr[firstIndex] += numberToAdd;\r\n if (lastIndex+1 < n)\r\n arr[lastIndex+1] -= numberToAdd;\r\n }\r\n\r\n for(long l : arr){\r\n sum += l;\r\n if(sum > result)\r\n result = sum;\r\n }\r\n\r\n return result;\r\n }", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}", "static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }", "public static void main(String[] args) {\n\t\tboolean[] primes = new boolean[1000000];\r\n\t\tArrayList<Integer> consecutivePrimeSums = new ArrayList<>();\r\n\t\tfor (int i = 0; i < primes.length; i++) {\r\n\t\t\tprimes[i] = true;\r\n\t\t}\r\n\t\tprimes[0] = false;//1 is not prime number\r\n\t\tfor (int p = 2; p*p <= 1000000; p++) {\r\n\t\t\tif (primes[p-1] == true) {\r\n\t\t\t\tfor (int q = p*p; q <= 1000000; q += p) {\r\n\t\t\t\t\tprimes[q-1] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Store the consecutive prime sums as we iterate through the boolean array\r\n\t\tconsecutivePrimeSums.add(0);\r\n\t\tint currentIndex = 1;\r\n\t\tfor (int j = 0; j < primes.length; j++) {\r\n\t\t\tif (primes[j] == true) {\r\n\t\t\t\tconsecutivePrimeSums.add(consecutivePrimeSums.get(currentIndex-1) + (j+1));\r\n\t\t\t\tcurrentIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Now we use 2 nested for loops to loop through all possible consecutive prime sums\r\n\t\tint maxLength = 0;\r\n\t\tint ans = 0;\r\n\t\tfor (int k = consecutivePrimeSums.size()-1; k >= 2; k--) {\r\n\t\t\tfor (int m = k-2; m >= 0; m--) {\r\n\t\t\t\tint currentSum = consecutivePrimeSums.get(k) - consecutivePrimeSums.get(m);\r\n\t\t\t\tif (currentSum >= 1000000)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif (primes[currentSum-1] == true && (k-m) > maxLength) {\r\n\t\t\t\t\tans = currentSum;\r\n\t\t\t\t\tmaxLength = k-m;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(ans);\r\n\t\t/*long endTime = System.nanoTime();\r\n\t\tlong timeElapsed = endTime - startTime;\r\n\t\tSystem.out.println(timeElapsed/1000000 + \" ms\");*/\r\n\t}", "public static void main(String[] args){\n int s = 80;\n int n = (int) Math.pow(10, 7);\n Integer[] a = new Integer[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++){\n a[i] = (int) (n*rand.nextDouble());\n }\n double binTime = binSearchT(s, a);\n double linTime = linSearchT(s, a);\n System.out.println(\"binTime: \"+ binTime);\n System.out.println(\"linTime: \"+ linTime);\n\n }", "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "public static boolean addUpToFast(int[] array, int n){\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tif(hs.contains(n-array[i]))\n\t\t\t\treturn true;\n\t\t\ths.add(array[i]);\n\t\t}\n\t\treturn false;\n\t}", "private static void task3(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(t.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tt.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + t.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "public static void main(String[] args) throws IOException {\n BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n String str = bf.readLine();\n int N = Integer.parseInt(str);\n String[] temp = bf.readLine().split(\" \");\n // 숫자들 저장하는 배열\n int[] dp = new int[N];\n int[] data = new int[N];\n\n // 숫자 변형해서 집어넣기\n for (int i = 0; i < N; i++) {\n data[i] = Integer.parseInt(temp[i]);\n }\n // 2중 포문을 이용한 해결방법(O(N^2))\n for (int i = 0; i < N; i++) {\n dp[i] = 1;\n for (int j = 0; j < i; j++) {\n if (data[j] < data[i] && dp[i] < dp[j] + 1) {\n dp[i] = dp[j] + 1;\n // 증가하는 수열 길이를 증가시켜준다\n }\n }\n }\n Arrays.sort(dp);\n System.out.println(dp[N - 1]);\n }", "public static void checkSpeed(int testSize) {\r\n\t\tSystem.out.println(\"Beginning checkSpeed indexOf test of size \" + testSize);\r\n\t\t\r\n\t\t// keep track of starting time before constructing\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\t\r\n\t\t// fill up the list with even numbers\r\n\t\tint dot = testSize / 10;\r\n\t\tSortedIntList list = new SortedIntList(false, testSize);\r\n\t\tSystem.out.print(\" Building list of the first \" + testSize + \" multiples of 2: \");\r\n\t\tboolean addTooSlow = false;\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\tlist.add(2 * i);\r\n\t\t\tif (i % dot == 0) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t}\r\n\t\t\tif (!addTooSlow && System.currentTimeMillis() >= start + testSize / 20) {\r\n\t\t\t\tSystem.out.print(\" (add is too slow) \");\r\n\t\t\t\taddTooSlow = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tdouble elapsed = (System.currentTimeMillis() - start)/1000.0;\r\n\t\t// System.out.println(\" construction took \" + elapsed + \" seconds\");\r\n\t\t\r\n\t\t// keep track of starting time before indexOf tests\r\n\t\tSystem.out.print(\" Checking indexOf each element: \");\r\n\t\tstart = System.currentTimeMillis();\r\n\t\tdot = testSize / 10;\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\tfor (int j = 0; j < 100; j++) {\r\n\t\t\t\tint actualIndex = list.indexOf(2 * i);\r\n\t\t\t\tif (actualIndex != i) {\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"\\n\\nindexOf \" + 2 * i + \" should have returned: \" +\r\n\t\t\t\t\ti + \",\\n but your method actually returned: \" +\r\n\t\t\t\t\tactualIndex + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (System.currentTimeMillis() >= start + testSize / 5) {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"\\n\\nindexOf appears to be running too slowly.\\n\");\r\n\t\t\t}\r\n\t\t\tif (i % dot == 0) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble elapsed2 = (System.currentTimeMillis() - start)/1000.0;\r\n\t\tif (addTooSlow) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\"\\n\\nYour add method appears to have run too slowly. (runtime: \" + elapsed + \" seconds)\\n\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n Passed! (runtime: \" + elapsed2 + \" seconds)\\n\");\r\n\t}", "static void testCase() throws IOException{\r\n /*\r\n [\"MinStack\",\"push\",\"push\",\"push\",\"top\",\"pop\",\"getMin\",\"pop\",\"getMin\",\"pop\",\"push\",\"top\",\"getMin\",\"push\",\"top\",\"getMin\",\"pop\",\"getMin\"]\r\n[[],[2147483646],[2147483646],[2147483647],[],[],[],[],[],[],[2147483647],[],[],[-2147483648],[],[],[],[]]\r\n */\r\n\r\n try{\r\n long startTime, stopTime;\r\n startTime = System.currentTimeMillis();\r\n printSpace(logic(0));\r\n println(0);\r\n stopTime = System.currentTimeMillis();\r\n println((stopTime - startTime)+\" ms\");\r\n\r\n startTime = System.currentTimeMillis();\r\n printSpace(logic(4));\r\n println(4);\r\n stopTime = System.currentTimeMillis();\r\n println((stopTime - startTime)+\" ms\");\r\n }catch(IOException ex){\r\n ex.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int t = Integer.parseInt(in.readLine());int j=0,k=0; int res1=0, res2=0; \n for(int p=0;p<t;p++){\n int m = Integer.parseInt(in.readLine());\n int n = Integer.parseInt(in.readLine());\n String[] str=in.readLine().split(\" \");\n int[] num = new int[n];\n for(int i=0;i<n;i++){\n num[i] = Integer.parseInt(str[i]);\n }\n for(j=0;j<n;j++){\n for(k=j+1;k<n;k++){\n \tint tmp = num[j]+num[k];\n if(m==tmp){res1=j+1;res2=k+1; break;}\n }\n }\n System.out.println(res1+\" \"+res2);\n j=0;k=0;\n }\n }", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\t//System.out.println(Integer.toBinaryString(31));\r\n\t\tint n = in.nextInt();\r\n\t\tint[] arr = new int[n];\r\n\t\tfor(int i = 0 ;i < n; i++) {\r\n\t\t\tarr[i] = in.nextInt();\r\n\t\t}\r\n\t\tArrays.sort(arr);\r\n\t\tint[] arr1 = new int[n];\r\n\t\tint co = 0;\r\n\t\tfor(int i = n- 1; i >= 0; i--) {\r\n\t\t\tarr1[co++] = arr[i];\r\n\t\t}\r\n\t\tString[] str = new String[n];\r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tstr[i] = Integer.toBinaryString(arr1[i]);\r\n\t\t}\r\n\t\tint[] countArr = new int[n];\r\n\t\tint[] countArr1 = new int[n];\r\n\t\tTreeSet<Integer> set = new TreeSet<Integer>(); \r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tcountArr[i] = 0;\r\n\t\t\tfor(int j = 0; j < str[i].length(); j++) {\r\n\t\t\t\tif(String.valueOf(str[i].charAt(j)).equals(\"1\")) {\r\n\t\t\t\t\tcountArr[i]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tset.add(countArr[i]);\r\n\t\t}\r\n\t\tint[] arrCpy = new int[set.size()];\r\n\t\tint ct = set.size() - 1;\r\n\t\tIterator<Integer> it = set.iterator();\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tarrCpy[ct--] = it.next();\r\n\t\t}\r\n\t\tfor(int i = 0; i < arrCpy.length; i++) {\r\n\t\t\tfor(int j = 0; j < n; j++) {\r\n\t\t\t\tif(arrCpy[i] == countArr[j]) {\r\n\t\t\t\t\tSystem.out.println(arr1[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tN = Integer.parseInt(in.readLine());\n\t\tint temp = 0;\n\t\tcnt = 1;\n\n\t\tint map[][] = new int[N + 1][N + 1];\n\t\tc = new int[N * N + 1];\n\n\t\tString temStr;\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\ttemStr = in.readLine();\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tif (temStr.charAt(j - 1) == '1')\n\t\t\t\t\tmap[i][j] = -1;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\tif (map[i][j] == -1 && map[i][j] != cnt) {\n\t\t\t\t\tdfs(i, j, map);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(cnt - 1);\n\t\tArrays.sort(c);\n\t\tfor (int i = 1; i < c.length; i++) {\n\t\t\tif (c[i] != 0)\n\t\t\t\tSystem.out.println(c[i]);\n\t\t}\n\t}", "static public int solve(int n,int A[])\n {\n int freqArr[] = new int[1001];\n int dp[] = new int[1001];\n\n for(int i=0; i<n; i++){\n freqArr[A[i]]++;\n }\n\n dp[0] = 0;\n dp[1] = freqArr[1] > 0 ? freqArr[1] : 0;\n\n for(int i=2; i<=1000; i++){\n dp[i] = Math.max(dp[i-2] + i*freqArr[i], dp[i-1]);\n }\n return dp[1000];\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int T = scanner.nextInt();\n assert T >=1;\n assert T<=100000;\n long []numArr = new long[T];\n for(int i=0; i<T; i++) {\n numArr[i] = scanner.nextLong ();\n assert numArr[i]>=1;\n assert numArr[i]<=1000000000;\n }\n\n for (long num : numArr) {\n int i=1;\n long sum=0;\n while(i*3<num) {\n sum +=i*3;\n if(i*5<num && i%3!=0)\n sum +=i*5;\n i++;\n }\n System.out.println(sum);\n }\n }", "static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}", "public int solution(int N) {\n String n = Integer.toBinaryString(N);\n char[] cn = n.toCharArray();\n int cnt = 0;\n int ans = 0;\n for(char c: cn) {\n if(c == '0') {\n cnt++;\n } else {\n if(ans < cnt) {\n ans = cnt;\n } \n cnt = 0;\n }\n }\n return ans;\n }", "public static void process(int n){\n\t\tint right, left, i;\n\n\t\tright = i = 0;\n\t\twhile(i < n){\n\t\t\twhile (right < n && c[i] == c[right]) right++;\n\t\t\tfor(int j = i; j < right; ++j) max_right[j] = right;\n\t\t\ti = right;\n\t\t}\n\n\t\tleft = i = n-1;\n\t\twhile(i >= 0){\n\t\t\twhile (left >= 0 && c[i] == c[left]) left--;\n\t\t\tfor (int j = i; j > left; --j) max_left[j] = left;\n\t\t\ti = left;\n\t\t}\n\t}", "private static void task033(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\t\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Deletion in the table...\" );\n\t int count=0;\n\t\tfor( int j = 1; j <= nUMS; j++)\n\t\t{\n\t\t\tif(i.isEmpty() == false)\n\t\t\t{\n\t\t\t\n\t\t\ti.delete(j);\n\t\t\t\n\t\t\t}\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tSystem.out.println(\"Is it empty \" + i.isEmpty());\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\n\t\t\n\t}", "public static void searchTest() {\n\t\t//linear tests\n\t\tStopWatch1 timer;\n\t\tint[] array = generateArray(5000000,1,5000000);\n\t\tSystem.out.printf(\"%15s%10s%10s%10s%10s%10s%n\",\"Size\",\"Sort Type\",\"Pre-sort\",\"Value\",\"Index\",\"Time\");\n\t\tfor(int i = 0; i< 5; i++) {\n\t\t\ttimer = new StopWatch1();\n\t\t\tint temp = (int)(Math.random() * (5000000)) +1;\n\t\t\tSystem.out.printf(\"%15d%10s%10s%10d\",5000000,\"Linear\",\"Random\",temp);\n\t\t\ttimer.start();\n\t\t\tint result = Search.linearSearch(array, temp);\n\t\t\ttimer.stop();\n\t\t\tif(result>0) {\n\t\t\t\tSystem.out.printf(\"%10d\",result);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"%10s\",\"Not Found\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"%10d%n\", timer.getElapsedTime());\n\t\t\t\n\t\t}\n\t\tSort.mergeSort(array);\n\t\tfor(int i = 0; i< 5; i++) {\n\t\t\ttimer = new StopWatch1();\n\t\t\tint temp = (int)(Math.random() * (5000000)) +1;\n\t\t\tSystem.out.printf(\"%15d%10s%10s%10d\",5000000,\"Linear\",\"Sorted\",temp);\n\t\t\tint result = Search.linearSearch(array, temp);\n\t\t\tif(result>0) {\n\t\t\t\tSystem.out.printf(\"%10d\",result);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"%10s\",\"Not Found\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"%10d%n\", timer.getElapsedTime());\n\t\t}\n\t\tfor(int i =0; i< 5; i++) {\n\t\t\ttimer = new StopWatch1();\n\t\t\tint temp = (int)(Math.random() * (5000000)) +1;\n\t\t\tSystem.out.printf(\"%15d%10s%10s%10d\",5000000,\"Binary\",\"Sorted\",temp);\n\t\t\tint result = Search.binarySearch(array, temp);\n\t\t\tif(result>0) {\n\t\t\t\tSystem.out.printf(\"%10d\",result);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"%10s\",\"Not Found\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"%10d%n\", timer.getElapsedTime());\n\t\t}\n\t}", "private static void task333(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"RED BLAST BST DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (i.contains(checker)) {\n\t i.delete(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t}", "private static void task1(int nUMS, BinarySearchTree<Integer> t, GenerateInt generateInt) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Binary Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tt.insert(i);\n//\t\t\t\tSystem.out.println(i);\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "public static void main(String[] args) throws java.lang.Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t// System.out.println(br.readLine());\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t// int N = sc.nextInt();\n\t\tlong[] one = new long[N];\n\t\tlong[] two = new long[N];\n\t\tint count = 0, countb = 0;\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tif (line.charAt(0) == '1') {\n\t\t\t\tone[count] = Long.parseLong(line.substring(2));\n\t\t\t\tcount++;\n\t\t\t\tsum++;\n\t\t\t} else {\n\t\t\t\ttwo[countb] = Long.parseLong(line.substring(2));\n\t\t\t\tsum = sum + 2;\n\t\t\t\tcountb++;\n\t\t\t}\n\t\t}\n\t\tArrays.sort(one, 0, count);\n\t\tArrays.sort(two, 0, countb);\n\t\tint k = (int) sum;\n\t\tlong[] aans = new long[k + 1];\n\t\taans[0] = 0;\n\t\tint c = count;\n\t\tint d = countb;\n\t\tlong[] oned = Arrays.copyOf(one, c + 1);\n\t\tlong[] twod = Arrays.copyOf(two, d + 1);\n\t\tlong ans = 0;\n\t\tfor (int i = 2; i <= sum; i = i + 2) {\n\t\t\tlong temp = 0, temp1 = 0;\n\t\t\tif (count > 0)\n\t\t\t\ttemp = one[count - 1];\n\t\t\tif (count > 1) {\n\t\t\t\ttemp = one[count - 2] + temp;\n\t\t\t}\n\t\t\tif (countb > 0)\n\t\t\t\ttemp1 = two[countb - 1];\n\t\t\tif (temp < temp1) {\n\t\t\t\tans = ans + temp1;\n\t\t\t\tif (countb > 0) {\n\t\t\t\t\tcountb--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tans = ans + temp;\n\t\t\t\tif (count > 1)\n\t\t\t\t\tcount = count - 2;\n\t\t\t\telse if (count > 0)\n\t\t\t\t\tcount--;\n\t\t\t}\n\t\t\taans[i] = ans;\n\t\t}\n\t\tif (c > 0) {\n\t\t\taans[1] = oned[c - 1];\n\t\t\tc--;\n\t\t} else {\n\t\t\taans[1] = 0;\n\t\t}\n\t\tone = oned;\n\t\ttwo = twod;\n\t\tcount = c;\n\t\tcountb = d;\n\t\tans = aans[1];\n\t\tfor (int i = 3; i <= sum; i = i + 2) {\n\t\t\tlong temp = 0, temp1 = 0;\n\t\t\tif (count > 0)\n\t\t\t\ttemp = one[count - 1];\n\t\t\tif (count > 1) {\n\t\t\t\ttemp = one[count - 2] + temp;\n\t\t\t}\n\t\t\tif (countb > 0)\n\t\t\t\ttemp1 = two[countb - 1];\n\t\t\tif (temp < temp1) {\n\t\t\t\tans = ans + temp1;\n\t\t\t\tif (countb > 0) {\n\t\t\t\t\tcountb--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tans = ans + temp;\n\t\t\t\tif (count > 1)\n\t\t\t\t\tcount = count - 2;\n\t\t\t\telse if (count > 0)\n\t\t\t\t\tcount--;\n\t\t\t}\n\t\t\taans[i] = ans;\n\t\t}\n\t\tfor (int i = 1; i <= sum; i++) {\n\t\t\tSystem.out.print(aans[i] + \" \");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint i,j,z,sumA,sumB,sumPairs;\r\n\r\n\t\tsumPairs = 0;\r\n\r\n\t\tfor (i=1;i<10000;i++){\r\n\t\t sumA = 0;\r\n\t\t for (j=1;j<i;j++){\r\n\t\t if (i%j==0) \r\n\t\t sumA += j;\r\n\t\t }\r\n\r\n\t\t sumB = 0;\r\n\t\t for (z=1;z<sumA;z++){\r\n\t\t if (sumA%z==0)\r\n\t\t sumB += z;\r\n\t\t }\r\n\r\n\t\t if (sumB == i && sumB != sumA)\r\n\t\t sumPairs += i; \r\n\t\t}\r\nSystem.out.println(sumPairs);\r\n\t\t\r\n\t}", "private static void task111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RED BLAST BST TREE\" );\n\t int count=0;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(z, z);\n\t\t\tcount = z;\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t}", "static long[] radixsort(int arr[], int n)\r\n\r\n {\n\r\n int m = getMax(arr, n);\r\n\r\n long st = System.nanoTime();\r\n\r\n\r\n\r\n for (int exp = 1; m/exp > 0; exp *= 10)\r\n\r\n countSort(arr, n, exp);\r\n\r\n \r\n\r\n long et = System.nanoTime();\r\n\r\n threeVals[2] = et - st;\r\n\r\n return threeVals;\r\n\r\n }", "private static int f(int n, int complete, int other, int[] arr) {\n if(n<=0)\n return 0;\n int res=0;\n ArrayList<Integer>list=new ArrayList<Integer>();\n for(int a:arr)\n if(a>0)\n list.add(a);\n int brr[]=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n while(brr.length!=0){\n int index=0;\n for(int i=1;i<brr.length;i++)\n if(brr[index]<brr[i])\n index=i;\n for(int i=0;i<brr.length;i++){\n if(index==i)\n brr[i]-=complete;\n else\n brr[i]-=other;\n }\n list=new ArrayList<Integer>();\n for(int a:brr)\n if(a>0)\n list.add(a);\n brr=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n res++;\n }\n return res;\n }", "public static void arraySpeedTestRemove0() {\n ArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int n = 0; n < 8000000; n++) {\n list.add(n);\n }\n\n //Displaying quantity of elements\n\t\tSystem.out.println(\"*** Quantity of elements in the collection: \" + list.size());\n\n //Deleting last element in the collection\n long begin = System.currentTimeMillis();\n\t\tlist.remove(list.size()-1);\n long end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing last element has taken: \" + (end - begin) + \"ms\");\n\n //Deleting first element from collection\n begin = System.currentTimeMillis();\n\t\tlist.remove(0);\n end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing first element has taken: \" + (end - begin) + \"ms\");\n}", "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "void solve() throws IOException {\n int[] nk = ril(2);\n int n = nk[0];\n int k = nk[1];\n int[] p = ril(n);\n int[] b = ril(k);\n for (int i = 0; i < n; i++) p[i]--;\n for (int i = 0; i < k; i++) b[i]--;\n\n int[] numToIdx = new int[n];\n for (int i = 0; i < n; i++) numToIdx[p[i]] = i;\n\n boolean[] remove = new boolean[n];\n Arrays.fill(remove, true);\n for (int bi : b) remove[bi] = false;\n List<Integer> toRemove = new ArrayList<>(n - k);\n for (int i = 0; i < n; i++) if (remove[i]) toRemove.add(i);\n Collections.sort(toRemove);\n\n int[] prevSmaller = new int[n];\n prevSmaller[0] = -1;\n int prevIdx = remove[p[0]] ? -1 : 0;\n for (int i = 1; i < n; i++) {\n int j = prevIdx;\n while (j != -1 && p[i] < p[j]) j = prevSmaller[j];\n prevSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n int[] nextSmaller = new int[n];\n nextSmaller[n-1] = n;\n prevIdx = remove[p[n-1]] ? n : n-1;\n for (int i = n-2; i >= 0; i--) {\n int j = prevIdx;\n while (j != n && p[i] < p[j]) j = nextSmaller[j];\n nextSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n\n int[] init = new int[n];\n Arrays.fill(init, 1);\n SegmentTree st = new SegmentTree(init);\n long ans = 0;\n for (int x : toRemove) {\n int idx = numToIdx[x];\n int l = prevSmaller[idx] + 1;\n int r = nextSmaller[idx] - 1;\n ans += st.query(l, r+1);\n st.modify(idx, 0);\n }\n pw.println(ans);\n }", "static void subsetSums(int arr[], int n)\n {\n \n // There are totoal 2^n subsets\n int total = 1 << n;\n \n // Consider all numbers from 0 to 2^n - 1\n for (int i = 0; i < total; i++) {\n int sum = 0;\n \n // Consider binary reprsentation of\n // current i to decide which elements\n // to pick.\n for (int j = 0; j < n; j++)\n if ((i & (1 << j)) != 0)\n sum += arr[j];\n \n // Print sum of picked elements.\n System.out.print(sum + \" \");\n }\n }", "static int getMissingByAvoidingOverflow(int a[], int n)\n\t {\n\t int total = 2;\n\t for (int i = 3; i <= (n + 1); i++)\n\t {\n\t total =total+ i -a[i - 2];\n\t //total =total- a[i - 2];\n\t }\n\t return total;\n\t }", "private static void task03333(int nUMS, SplayTree<Integer> j) {\n\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Deletion in the table...\" );\n\t int count=0;\n\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t{\n\t\t\tif(j.isEmpty() == false)\n\t\t\t{\n\t\t\t\n\t\t\tj.remove(i);\n\t\t\t\n\t\t\t}\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tSystem.out.println(\"Is it empty \" + j.isEmpty());\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t}", "static int trappingWater(int arr[], int n) {\r\n\r\n // Your code here\r\n /** *** tle\r\n for(int i=1;i<n-1;i++){\r\n int l=arr[i];\r\n for (int j = 0; j < i; j++) {\r\n l=l < arr[j] ? arr[j] : l;\r\n }\r\n int r=arr[i];\r\n for (int j = i+1; j <n ; j++) {\r\n r=r < arr[j] ? arr[j] : r;\r\n }\r\n\r\n s=s+(l>r? r:l) -arr[i];\r\n }\r\n return s;\r\n\r\n //////////////////////////////////////////////\r\n SC=O(N)\r\n if(n<=2)\r\n return 0;\r\n int[] left=new int[n];\r\n int[] right=new int[n];\r\n left[0]=0;\r\n int leftmax=arr[0];\r\n for (int i = 1; i <n ; ++i) {\r\n left[i]=leftmax;\r\n leftmax=Math.max(leftmax,arr[i]);\r\n }\r\n right[n-1]=0;\r\n int mxright=arr[n-1];\r\n for (int i = n-2; i >=0 ; --i) {\r\n right[i]=mxright;\r\n mxright=Math.max(mxright,arr[i]);\r\n }\r\n int s=0;\r\n for (int i = 1; i < n-1; ++i) {\r\n if(arr[i]<left[i] && arr[i]<right[i]){\r\n s+=Math.min(left[i],right[i])-arr[i];\r\n }\r\n }\r\n return s;\r\n /////////////////////////////////////////////////////\r\n **/\r\n\r\n if(n<=2)\r\n return 0;\r\n\r\n int leftMax = arr[0];\r\n int rightMax = arr[n-1];\r\n\r\n int left = 1;\r\n int right = n-2;\r\n int water = 0;\r\n\r\n while(left <= right) {\r\n if (leftMax < rightMax) {\r\n if (arr[left] >= leftMax) {\r\n leftMax = arr[left];\r\n } else\r\n water = water + (leftMax - arr[left]);\r\n\r\n //leftMax = Math.max(leftMax, arr[left]);\r\n left++;\r\n } else {\r\n if (arr[right] > rightMax) {\r\n rightMax = arr[right];\r\n }\r\n\r\n water = water + (rightMax - arr[right]);\r\n right--;\r\n }\r\n }\r\n return water;\r\n\r\n }", "static int countSubarrWithEqualZeroAndOne(int arr[], int n)\n {\n int count=0;\n int currentSum=0;\n HashMap<Integer,Integer> mp=new HashMap<>();\n for(int i=0;i<arr.length;i++)\n {\n if(arr[i]==0)\n arr[i]=-1;\n currentSum+=arr[i];\n \n if(currentSum==0)\n count++;\n if(mp.containsKey(currentSum))\n count+=mp.get(currentSum);\n if(!mp.containsKey(currentSum))\n mp.put(currentSum,1);\n else\n mp.put(currentSum,mp.get(currentSum)+1);\n \n \n }\n return count;\n }", "private static void task03(int nUMS, AVLTree<Integer> h) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(h.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\th.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + h.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\n\t\t\n\t\tfor (int i = 1; i <= 10000; i++) {\n\t\t\t\tlist.add(i + (i / 10000)+((i % 10000)/1000)+((i % 1000)/100)+((i % 100)/10)+((i % 10)/1));\n\t\t\t\n\t\t}\n\t\t\n\t\tint arr[] = new int[10001];\n\t\tfor(int i = 0;i<arr.length;i++) {\n\t\t\tarr[i]=i;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i<list.size();i++) {\n\t\t\tfor(int j=0;j<arr.length;j++) {\n\t\t\t\tif(list.get(i)==arr[j]) {\n\t\t\t\t\tarr[j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i<list.size();i++) {\n\t\t\tif(arr[i]!=0) {\n\t\t\t\tSystem.out.println(arr[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in); //scanner initialization\n String []inputs = in.nextLine().split(\",\");// [5,2]\n int N = Integer.parseInt(inputs[0]);\n int K = Integer.parseInt(inputs[1]);\n String []itemPrices = in.nextLine().split(\" \"); //prices of the items are read.\n long []prices = new long[itemPrices.length];\n for (int i=0;i<prices.length; i++) { //N\n prices[i] = Long.parseLong(itemPrices[i]);\n }\n Arrays.sort(prices); //sorting NLogN\n long result = 0;\n for (int i=2; i<K+2; i++) { //Ktimes\n result = result + prices[i];\n }\n System.out.println(result);\n in.close();\n\n //Time Complexity: O(N+NLogN+K) < O(NLogN+2N)=> O(N*(2+LOGN)) => O(NLOGN)\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t\tint n = sc.nextInt();\r\n\t\tint[] a = new int[n];\r\n\t\tfor(int i = 0; i < n; i++){\r\n\t\t\ta[i] = sc.nextInt();\r\n\t\t}\r\n\t\tint res = 0, p = 0, t = 0;\r\n\t\twhile(true){\r\n\t\t\tp = 0; t = 0;\r\n\t\t\tfor(int i = 0; i < a.length; i++){\r\n\t\t\t\t\r\n\t\t\t\tif(i == a.length-1){\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t\ta[0] += p;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\tint temp = a[0];\r\n\t\t\tfor(int j = 1; j < a.length; j++){\r\n\t\t\t\tif(a[j] != temp){\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(flag){\r\n\t\t\t\tSystem.out.println(res);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfor(int j = 0; j < a.length; j++){\r\n\t\t\t\tif(a[j] % 2 != 0){\r\n\t\t\t\t\ta[j] += 1;\r\n\t\t\t\t\tres++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String args[]) throws Exception\t{\n Scanner sc = new Scanner(new FileInputStream(\"disposal_sample.txt\"));\n\n int T = sc.nextInt();\n for(int test_case = 0; test_case < T; test_case++) {\n\n int N = sc.nextInt();\n int M = sc.nextInt();\n\n\n int[] d = new int[N];\n Queue<Integer> Q = new LinkedList<>();\n int sum = 0;\n int len = 10000;\n\n\n for(int i=0;i<N;i++){\n int input = sc.nextInt();\n Q.add(input);\n sum += input;\n while(sum >= M){\n int size = Q.size();\n\n if(len > size)\n len = size;\n sum -= Q.remove();\n }\n }\n if(len == 10000)\n len = 0;\n\n\n /*\n for(int i=0;i<N;i++) {\n d[i] = sc.nextInt();\n }\n int front = 0;\n int back = 0;\n int sum = d[back];\n int len = Integer.MAX_VALUE;\n\n while(true) {\n\n if(sum < M){\n if(back == N-1)\n break;\n back++;\n sum += d[back];\n\n }\n else{\n if(front == back){\n len = 1;\n break;\n }\n\n int tempLen = (back - front)+1;\n if(len > tempLen) {\n len = tempLen;\n }\n sum -= d[front];\n front++;\n }\n\n }*/\n Answer = len;\n System.out.println(\"Case #\"+(test_case+1));\n System.out.println(Answer);\n }\n }", "public static void cntArray(int A[], int N) \n { \n // initialize result with 0 \n int result = 0; \n \n for (int i = 0; i < N; i++) { \n \n // all size 1 sub-array \n // is part of our result \n result++; \n \n // element at current index \n int current_value = A[i]; \n \n for (int j = i + 1; j < N; j++) { \n \n // Check if A[j] = A[i] \n // increase result by 1 \n if (A[j] == current_value) { \n result++; \n } \n } \n } \n \n // print the result \n System.out.println(result); \n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint N = sc.nextInt();\r\n\t\tint[] arr = new int[N+1];\r\n\t\tfor (int i = 1; i < arr.length; i++) {\r\n\t\t\tarr[i] = sc.nextInt();\r\n\t\t}\r\n\r\n\t\tint num = sc.nextInt();\r\n\r\n\t\tfor (int i = 0; i < num; i++) {\r\n\t\t\tint s = sc.nextInt(); // 성별\r\n\t\t\tint n = sc.nextInt(); // 받은 수\r\n\r\n\t\t\tif (s == 1) { // 남자\r\n\t\t\t\tfor (int j = 1; j < arr.length; j++) {\r\n\t\t\t\t\tif (j % n == 0) { // 자기가 받은 수의 배수이면\r\n\t\t\t\t\t\tarr[j] = Math.abs(arr[j] - 1); // 스위치 상태 변경\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else { // 여자\r\n\t\t\t\tarr[n] = Math.abs(arr[n] - 1); // 스위치 상태 변경\r\n\t\t\t\tint left = n - 1;\r\n\t\t\t\tint right = n + 1;\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tif (left <= 0 || right >= arr.length || arr[left] != arr[right])\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tarr[left] = Math.abs(arr[left] - 1); // 스위치 상태 변경\r\n\t\t\t\t\tarr[right] = Math.abs(arr[right] - 1); // 스위치 상태 변경\r\n\t\t\t\t\tleft -= 1;\r\n\t\t\t\t\tright += 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 1; i < arr.length; i++) {\r\n\t\t\tSystem.out.print(arr[i] + \" \");\r\n\t\t\tif(i % 20 == 0) {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int solution(int[] arr) {\n int n = arr.length;\n for (int i = 0; i < n; i++) {\n while (arr[i] != i + 1 && arr[i] < n && arr[i] > 0) {\n int temp = arr[i];\n if (temp == arr[temp - 1])\n break;\n arr[i] = arr[temp - 1];\n arr[temp - 1] = temp;\n }\n }\n for (int i = 0; i < n; i++)\n if (arr[i] != i + 1)\n return i + 1;\n return n + 1;\n }", "public static void main(String[] args) {\n\t\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint noOftestCases = scanner.nextInt();\n\t\t\n\t\tfor (int p = 0; p < noOftestCases; p++) {\n\t\t\tint buffer[]=new int[100001];\n\t\t\tint size = scanner.nextInt();\n\t\t\t//int x[]=new int[size];\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tint temp=scanner.nextInt();\n\t\t\t\tbuffer[temp%100000]++;\n\t\t\t}\n\t\t\tint kSmallest = scanner.nextInt();\n\t\t\tint i=0;\n\t\t\twhile(kSmallest>0){\n\t\t\t\ti++;\n\t\t\t\tif(buffer[i]!=0)\n\t\t\t\t\tkSmallest-=buffer[i];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(i);\n\t\t\t\n\t\t}\n\t}", "private int gameV(int i, int j, int x) {\n int count = 2;\n for (int ii = 0; ii < i; ii++) {\n for (int jj = ii + 1; jj < n; jj++) {\n if (ii != x && jj != x) count++;\n }\n }\n for (int jj = i + 1; jj < j; jj++) {\n if (jj != x) count++;\n }\n return count;\n }", "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "public static void main(String[] args) {\n\n\t\tint a = 10000;\n\t\tint num = 325489;\n\t\tint [][] lst = new int[a][a];\n\t\tint x = a/4, y = a/4;\n\t\tfinal int x0 = x,y0 = y;\n\t\tint layer = 0,cnt =1;\n\t\twhile (cnt <= num)\n\t\t{\n\t\t\tif (cnt == (2*layer+1)*(2*layer+1))\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty++;\n\t\t\t\tlayer++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer*2-1;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\tx++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty--;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\tx--;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tint finalX = findx(lst,num);\n\t\tint finalY = findy(lst,num);\n\t\tSystem.out.println(Math.abs(finalY - y) + (finalX - x));\n\t}", "public int solution(int[] A) {\n int result = 0;\n int disksStarting[] = new int[A.length];\n int disksEnding[] = new int[A.length];\n for (int i = 0; i < A.length; i++) {\n disksStarting[Math.max(i - A[i], 0)]++;\n if (A.length - 1 < A[i]) {\n disksEnding[A.length - 1]++;\n } else {\n disksEnding[Math.min(i + A[i], A.length - 1)]++;\n }\n }\n \n int activeDisks = 0;\n for (int i = 0; i < A.length; i++) {\n result += activeDisks * disksStarting[i];\n result += disksStarting[i] * (disksStarting[i] - 1) / 2;\n if (result > 10000000) return -1;\n activeDisks += disksStarting[i];\n activeDisks -= disksEnding[i];\n }\n \n return result;\n }", "private static void task4(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"SPLAY DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (t.contains(checker)) {\n\t t.remove(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t\t\n\t}", "private static void task0111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RedBlast BST Tree\" );\n\t int count=1;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(GenerateInt.generateNumber(), GenerateInt.generateNumber());\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\t\t\tcount = z;\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint[] prime= new int[1229]; //only need primes up to 10000\n\t\tint n=1;\n\t\tint index=0;\n\t\tint test=0;\n\t\tfor (int i=2; (i-n)<=1229; i++) {\n\t\t\tfor (int j=2; j<=Math.sqrt(i); j++) {\n\t\t\t\tint k=i%j;\n\t\t\t\tif (k==0) {\n\t\t\t\t\tn++;\n\t\t\t\t\ttest++;\n\t\t\t\t\tj=(int)Math.sqrt(i);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (test==0) {\n\t\t\t\tprime[index]=i;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\ttest=0;\n\t\t}\n\t\t\n\t\t//use primes to find prime factorization and sum of divisors\n\t\tint [] divides= new int[1229]; //Number of times each prime divides a number\n\t\tint [] sumOfDivisors= new int[10000]; //Sum of divisors for i at index i\n\t\tint total=0;\n\t\tint sum=1;\n\t\tindex=1;\n\t\tfor (int i=2; i<=10000; i++) {\n\t\t\tint d=i;\n\t\t\tfor (int j=0; j<1229; j++) { //find prime factorization for i\n\t\t\t\twhile (d%prime[j]==0 && d>1) {\n\t\t\t\t\td=d/prime[j];\n\t\t\t\t\tdivides[j]++;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tfor (int j=0; j<1229; j++) { //use Number theory formula for sum of divisors\n\t\t\t\tsum*=(Math.pow(prime[j], divides[j]+1)-1)/(prime[j]-1);\n\t\t\t}\n\t\t\tif (sum-i<i) { //only check if sum of divisors of i is less than i\n\t\t\t\tif (sumOfDivisors[sum-i-1]==i) { //check if amicable pair\n\t\t\t\t\ttotal=total+i+sum-i; //add both to total (only happens once)\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrays.fill(divides,0); //reset divisors array\n\t\t\tsumOfDivisors[index]=sum-i; //store number of divisors\n\t\t\tsum=1;\n\t\t\tindex++;\n\t\t}\n\t\tSystem.out.print(\"The sum of all amicable numbers less than 10000 is: \");\n\t\tSystem.out.println(total);\n long endTime = System.currentTimeMillis();\n System.out.println(\"It took \" + (endTime - startTime) + \" milliseconds.\");\n\n\t}", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n \n boolean[] isNotPrime = new boolean[(N - 1 - 1) / 2 + 1];\n List<Integer> list = new ArrayList<Integer>();\n HashSet<Integer> primes = new HashSet<Integer>();\n \n list.add(2);\n primes.add(2);\n long sum = 0;\n for (int i = 1; i < isNotPrime.length; i++) {\n if (isNotPrime[i]) {\n continue;\n }\n list.add(2 * i + 1);\n primes.add(2 * i + 1);\n long nextIndex = (((long) 2 * i + 1) * (2 * i + 1) - 1) / 2;\n if (nextIndex >= isNotPrime.length) {\n continue;\n }\n for (int j = ((2 * i + 1) * (2 * i + 1) - 1) / 2; j < isNotPrime.length; j += 2 * i + 1) {\n isNotPrime[j] = true;\n }\n }\n int index = 0;\n while (index < list.size()) {\n int curPrime = list.get(index);\n index++;\n if (curPrime < 10) {\n continue;\n }\n int base = 1;\n while (curPrime / base > 9) {\n base *= 10;\n }\n int leftTruncate = curPrime;\n int rightTruncate = curPrime;\n boolean isValid = true;\n while (base != 1) {\n leftTruncate = leftTruncate - leftTruncate / base * base;\n rightTruncate = rightTruncate / 10;\n base /= 10;\n if (primes.contains(leftTruncate) == false || primes.contains(rightTruncate) == false) {\n isValid = false;\n break;\n }\n }\n if (isValid) {\n sum += curPrime;\n }\n }\n System.out.println(sum);\n scanner.close();\n }", "static long findNumberOfTriangles(int arr[], int n)\n {\n\n long count=0;\n\n for(int i=0;i<n;i++){\n for(int j=i;j<n;j++){\n if(arr[i]>arr[j]){\n int temp=arr[j];\n arr[j]=arr[i];\n arr[i]=temp;\n }\n }\n }\n\n int k =n-1;\n for(int i=n-2;i>=0;i--){\n for(int j=i-1;j>=0;j--){\n if(arr[k]<arr[j]+arr[i]){\n count++;\n }\n }\n k--;\n }\n\n return count;\n }", "public static void main(String... args) {\n\n Set<Long> As = new HashSet<>();\n int N = 100;\n for (long p = -N; p <= N; ++p) {\n for (long q = -N; q <= p; ++q) {\n for (long r = -N; r <= q; ++r) {\n if (r==0 || p==0 || q==0)\n continue;\n\n long nom = r*p*q;\n long den = r*p + r*q + p*q;\n\n if (den != 0 && nom % den==0 && (nom^den)>=0) {\n long A = nom/den;\n\n if (A==nom) {\n As.add(A);\n System.out.printf(\"A=%d (p=%d, q=%d, r=%d)\\n\", A, p, q, r);\n }\n }\n }\n }\n }\n Long[] aa = As.toArray(new Long[As.size()]);\n Arrays.sort(aa);\n System.out.printf(\"============\\n\");\n System.out.printf(\"A(%d)=%s\\n\", aa.length, Arrays.toString(aa));\n\n for (long a = 1; a < 100; ++a) {\n if (isAlexandrian(a))\n System.out.printf(\"A=%dn\", a);\n }\n }" ]
[ "0.7035749", "0.67932683", "0.63114697", "0.6274625", "0.62510115", "0.62284565", "0.62137836", "0.61887586", "0.61797637", "0.6151484", "0.61056346", "0.60911316", "0.6076112", "0.6023081", "0.59838897", "0.5964601", "0.5949651", "0.5930693", "0.59228563", "0.590664", "0.5892189", "0.5873472", "0.5849057", "0.5797226", "0.57844776", "0.5761449", "0.5755696", "0.5745129", "0.5725992", "0.57028615", "0.5690592", "0.56866324", "0.56546223", "0.5640687", "0.564004", "0.5632284", "0.5622124", "0.56129414", "0.5607248", "0.5605788", "0.56037927", "0.5599421", "0.5598483", "0.5595994", "0.55836314", "0.55775887", "0.5576879", "0.55623525", "0.5559277", "0.55516905", "0.5548406", "0.5539458", "0.55349785", "0.5521666", "0.55202407", "0.55184543", "0.55160224", "0.5511145", "0.5503137", "0.54964626", "0.5496331", "0.5495454", "0.5490929", "0.5485876", "0.54836595", "0.5477641", "0.54741544", "0.5473354", "0.5470705", "0.5470043", "0.5466774", "0.5466607", "0.54605615", "0.54588795", "0.545278", "0.54414326", "0.54391855", "0.5432912", "0.54290414", "0.54290044", "0.54284555", "0.54246354", "0.5418989", "0.541821", "0.5417833", "0.5417822", "0.54068094", "0.5401424", "0.54004574", "0.5399652", "0.5398294", "0.5398152", "0.5387466", "0.5379828", "0.5376004", "0.53732055", "0.5366576", "0.53661156", "0.5366041", "0.5365441", "0.53603625" ]
0.0
-1
Returns a deep clone of this.
@Override public Object deepCopy() { final UIAnimationMutable clone = new UIAnimationMutable(getName(), events.size(), controllers.size()); for (int i = 0, len = controllers.size(); i < len; ++i) { clone.controllers.add((UIController) controllers.get(i).deepCopy()); } for (int i = 0, len = events.size(); i < len; ++i) { final UIAttribute p = events.get(i); clone.events.add((UIAttribute) p.deepCopy()); } clone.nextEventsAdditionShouldOverride = nextEventsAdditionShouldOverride; if (driver != null) { clone.driver = (UIAttribute) driver.deepCopy(); } return clone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T cloneDeep();", "public Object clone(){\n \t\n \treturn this;\n \t\n }", "public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }", "public Object clone() {\n return this.copy();\n }", "Component deepClone();", "public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "public Object clone()\n\t{\n\t\treturn new Tree();\n\t}", "public /*@ non_null @*/ Object clone() {\n return this;\n }", "private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "public Solution deepClone() {\n\t\tArrayList<GridPoint> cloneRepresentation = new ArrayList<GridPoint>();\n\t\t\n\t\tfor(GridPoint p : solutionRepresentation) {\n\t\t\tint[] coord = new int[2];\n\t\t\tcoord[0] = p.getX();\n\t\t\tcoord[1] = p.getY();\n\t\t\tcloneRepresentation.add(new GridPoint(coord));\n\t\t}\n\t\treturn new Solution(this.host, cloneRepresentation);\n\t}", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "public Tree<T> clone() {\n Node<T> clonedRoot = this.root.clone();\n clone(this.root, this.root.clone());\n return new Tree<T>(clonedRoot);\n }", "public Restaurant clone() {\r\n return new Restaurant(this);\r\n }", "Object clone();", "Object clone();", "public Object clone()\n {\n PSRelation copy = new PSRelation(new PSCollection(m_keyNames.iterator()),\n new PSCollection(m_keyValues.iterator()));\n \n copy.m_componentState = m_componentState;\n copy.m_databaseComponentId = m_databaseComponentId;\n copy.m_id = m_id;\n\n return copy;\n }", "@Override\n public AggregationBuilder clone() {\n try {\n AggregationBuilder clone = (AggregationBuilder) super.clone();\n clone.root = root.clone();\n clone.current = clone.root;\n return clone;\n } catch(CloneNotSupportedException ex){\n return null;\n }\n }", "public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}", "public Object clone() {\n\t\ttry {\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch(CloneNotSupportedException exc) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Object clone()\n {\n try {\n Object newObj = super.clone();\n ((LDAPUrl)newObj).url = (com.github.terefang.jldap.ldap.LDAPUrl)this.url.clone();\n return newObj;\n } catch( CloneNotSupportedException ce) {\n throw new RuntimeException(\"Internal error, cannot create clone\");\n }\n }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public /*@ non_null @*/ Object clone() { \n //@ assume owner == null;\n return this;\n }", "public Object clone() {\r\n try {\r\n return super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n return null;\r\n }\r\n }", "@Override\n public Board clone() {\n return new Board(copyOf(this.board));\n }", "public Function clone();", "public Object clone() {\n try {\n // clones itself\n return super.clone();\n } catch (Exception exception) {\n ;\n }\n return null;\n }", "public RMShape cloneDeep() { return clone(); }", "public Object clone() {\n GlobalizedAnswer cloned;\n try {\n cloned = (GlobalizedAnswer)super.clone();\n }\n catch (CloneNotSupportedException e) {\n throw new Error(getClass() + \" must support cloning\", e);\n }\n assert cloned != null;\n \n // Copy mutable fields by value\n cloned.tuples = (Tuples) tuples.clone();\n \n return cloned;\n }", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "default C cloneFlat() {\n\t\treturn clone(FieldGraph.of(getFields()));\n\t}", "public Board deepCopy() {\n Board copy = new Board();\n for (int i = 0; i < DIMENSION; i++) {\n System.arraycopy(this.fields[i], 0, copy.fields[i], 0, DIMENSION);\n }\n return copy;\n }", "public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "public Object clone() {\n SetQuery copy = new SetQuery(this.operation);\n\n this.copyMetadataState(copy);\n\n copy.leftQuery = (QueryCommand)this.leftQuery.clone();\n copy.rightQuery = (QueryCommand)this.rightQuery.clone();\n\n copy.setAll(this.all);\n\n if(this.getOrderBy() != null) {\n copy.setOrderBy(this.getOrderBy().clone());\n }\n\n if(this.getLimit() != null) {\n copy.setLimit( this.getLimit().clone() );\n }\n\n copy.setWith(LanguageObject.Util.deepClone(this.getWith(), WithQueryCommand.class));\n\n if (this.projectedTypes != null) {\n copy.setProjectedTypes(new ArrayList<Class<?>>(projectedTypes), this.metadata);\n }\n\n return copy;\n }", "@Override\r\n @GwtIncompatible\r\n public Object clone() {\r\n try {\r\n @SuppressWarnings(\"unchecked\")\r\n PairBuilder<L, R> result = (PairBuilder<L, R>)super.clone();\r\n result.self = result;\r\n return result;\r\n } catch (CloneNotSupportedException e) {\r\n throw new InternalError(e.getMessage());\r\n }\r\n }", "public DessertVO clone() {\r\n return (DessertVO) super.clone();\r\n }", "@Override\n public MultiCache clone () {\n return new MultiCache(this);\n }", "public LinkedList<AnyType> clone() {\n LinkedList<AnyType> clone = new LinkedList<AnyType>();\n LinkedListIterator<AnyType> itr = this.first();\n LinkedListIterator<AnyType> cloneitr = clone.zeroth();\n while (itr.current != null) {\n clone.insert(itr.current.element, cloneitr);\n itr.advance();\n cloneitr.advance();\n }\n return clone;\n }", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }", "public GameBoard clone(){\r\n\t\tGameBoard result = new GameBoard();\r\n\t\ttry{\r\n\t\t\tresult = (GameBoard) super.clone();\r\n\t\t}catch(CloneNotSupportedException e){\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\tresult.board = (Box[]) board.clone();\r\n\t\treturn result;\r\n\t}", "public Solution clone() {\n\t\treturn new Solution(new ArrayList<City>(this.cities));\n\t}", "public Object clone() {\n try {\n return super.clone();\n } catch (Exception exception) {\n throw new InternalError(\"Clone failed\");\n }\n }", "public SetSet deepCopy(){\n\t\tSetSet copy = new SetSet();\n\t\tfor(int i=0;i<size();i++){\n\t\t\tcopy.add(get(i).deepCopy());\n\t\t}\n\t\treturn copy;\n\t}", "public Update cloneShallow() {\n return (Update)cloneShallowContent(new Update());\n }", "protected final Object clone() {\n\t\tBitBoardImpl clone = new BitBoardImpl();\n\t\tfor( int i = 0; i < 5; i++) {\n\t\t clone._boardLayer[i] = _boardLayer[i];\n\t\t}\n\t\treturn clone;\n }", "public Object clone () {\n\t\t\ttry {\n\t\t\t\treturn super.clone();\n\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\tthrow new InternalError(e.toString());\n\t\t\t}\n\t\t}", "private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "@Override\n public MetaContainer clone() {\n return clone(false);\n }", "public Paper clone() \r\n\t{\r\n\t\tPaper copy = null;\r\n\t\ttry\r\n\t\t{ \r\n\t\t\tcopy = new Paper(this.getId(), new String(this.getTitle()), new String(this.getURI()),\r\n\t\t\t\tthis.year, new String(this.biblio_info), \r\n\t\t\t\tnew String(this.authors), new String(this.url) ); \r\n\t\t}\r\n\t\tcatch (Exception e) { e.printStackTrace(System.out); }\r\n\t\treturn copy;\r\n\t}", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }", "public AccessPath copy() {\n HashMap m = new HashMap();\n IdentityHashCodeWrapper ap = IdentityHashCodeWrapper.create(this);\n AccessPath p = new AccessPath(this._field, this._n, this._last);\n m.put(ap, p);\n this.copy(m, p);\n return p;\n }", "public Object clone() {\n \n\tQuerynotyfyaddressbol obj = new Querynotyfyaddressbol(getObjectsDatastore());\n\n\tobj.iNotifyaddress = iNotifyaddress; \n\n\treturn obj;\n }", "public Object clone() throws CloneNotSupportedException { return super.clone(); }", "public Instance cloneShallow() {\n Instance copy;\n try {\n copy = new Instance(getNameValue().toString());\n } catch (JNCException e) {\n copy = null;\n }\n return (Instance)cloneShallowContent(copy);\n }", "public Object clone() {\n View v2;\n try {\n v2 = (View) super.clone();\n } catch (CloneNotSupportedException cnse) {\n v2 = new View();\n }\n v2.center = (Location) center.clone();\n v2.zoom = zoom;\n v2.size = (Dimension) size.clone();\n return v2;\n }", "public FirmReference clone() {\r\n try {\r\n\t\t\treturn (FirmReference) super.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n \r\n\t}", "public JsonMember copy() {\n return new JsonMember(name, value.copy());\n }", "public d clone() {\n ArrayList arrayList = this.e;\n int size = this.e.size();\n c[] cVarArr = new c[size];\n for (int i = 0; i < size; i++) {\n cVarArr[i] = ((c) arrayList.get(i)).clone();\n }\n return new d(cVarArr);\n }", "public Vector clone()\r\n {\r\n Vector<O> v = new Vector<O>();\r\n \r\n VectorItem<O> vi = first;\r\n while (vi != null)\r\n {\r\n v.pushBack (vi.getObject());\r\n vi = vi.getNext();\r\n }\r\n \r\n return v;\r\n }", "public BufferTWeak cloneMe() {\r\n BufferTWeak ib = new BufferTWeak(uc);\r\n ib.increment = increment;\r\n ib.set(new Object[objects.length]);\r\n for (int i = 0; i < objects.length; i++) {\r\n ib.objects[i] = this.objects[i];\r\n }\r\n ib.offset = this.offset;\r\n ib.count = this.count;\r\n return ib;\r\n }", "public ModuleDescriptorAdapter copy() {\n ModuleDescriptorAdapter copy = new ModuleDescriptorAdapter(getId(), getDescriptor(), getComponentId());\n copyTo(copy);\n copy.metaDataOnly = metaDataOnly;\n return copy;\n }", "public ConfabulatorObject getCopy() {\n\t\tConfabulatorObject copy = new ConfabulatorObject(getMessenger());\n\t\tlockMe(this);\n\t\tint maxD = maxLinkDistance;\n\t\tint maxC = maxLinkCount;\n\t\tList<Link> linksCopy = new ArrayList<Link>();\n\t\tfor (Link lnk: links) {\n\t\t\tlinksCopy.add(lnk.getCopy());\n\t\t}\n\t\tunlockMe(this);\n\t\tcopy.initialize(maxD,maxC,linksCopy);\n\t\treturn copy;\n\t}", "public Object clone() {\n \t\treturn new Term(this);\n \t}", "public Update clone() {\n return (Update)cloneContent(new Update());\n }", "public Animal deepCopy() {\n return new Eagle(this);\n }", "public abstract Object clone();", "public AST copy()\n {\n return new Implicate(left, right);\n }", "public JSONSchema clone() {\n JSONSchema clonedSchema = new JSONSchema().id(_id).title(_title).description(_description).required(_required).\n types(Collections2.transform(_types.values(), JSONSchemaTypes.CloningFunction.INSTANCE));\n\n if (_referencesSchema != null) {\n clonedSchema.setReferencesSchema(_referencesSchema);\n } else if (_referencesSchemaID != null) {\n clonedSchema.setReferencesSchemaID(_referencesSchemaID);\n }\n\n if (_extendsSchema != null) {\n clonedSchema.setExtendsSchema(_extendsSchema);\n } else if (_extendsSchemaID != null) {\n clonedSchema.setExtendsSchemaID(_extendsSchemaID);\n }\n\n return clonedSchema;\n }", "public Tree copy() {\n Tree cpTree = new Tree();\n if(!empty()) {\n Node cpNode = copyNodes(root);\n cpTree.setRoot(cpNode);\n }\n return cpTree;\n }", "public final Keyword deepClone()\r\n {\r\n Keyword clone;\r\n try\r\n {\r\n clone = (Keyword) super.clone();\r\n if (translations != null) {\r\n clone.setTranslations(new TreeSet<Translation>());\r\n for (Translation translation: translations)\r\n {\r\n clone.addTranslation(translation.deepClone());\r\n }\r\n }\r\n }\r\n catch (CloneNotSupportedException cnse)\r\n {\r\n clone = null;\r\n }\r\n return clone;\r\n }", "public Srv cloneShallow() {\n return (Srv)cloneShallowContent(new Srv());\n }", "public Matrix copy() {\n Matrix m = new Matrix(rows, cols);\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n m.getMatrix().get(i)[j] = this.get(i, j);\n }\n }\n return m;\n }", "public Object clone() {\n\t\treturn new RelExpr((Term)getTerm(0).clone(), op, (Term)getTerm(1).clone());\n\t}", "public Table shallowCopy() {\n\t\tSubsetTableImpl vt =\n\t\t\tnew SubsetTableImpl(this.getColumns(), this.subset);\n\t\tvt.setLabel(getLabel());\n\t\tvt.setComment(getComment());\n\t\treturn vt;\n\t}", "@Override\n\tpublic MapNode clone()\n\t{\n\t\t// Create copy of this map node\n\t\tMapNode copy = (MapNode)super.clone();\n\n\t\t// Copy KV pairs\n\t\tcopy.pairs = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, AbstractNode> pair : pairs.entrySet())\n\t\t{\n\t\t\tAbstractNode value = pair.getValue().clone();\n\t\t\tcopy.pairs.put(pair.getKey(), value);\n\t\t\tvalue.setParent(copy);\n\t\t}\n\n\t\t// Return copy\n\t\treturn copy;\n\t}", "public VCalendar clone() {\n\t\treturn new VCalendar(this.content, this.collectionId, this.resourceId, this.earliestStart, this.latestEnd, null);\n\t}", "public Object clone() {\n return new ModuleParams(this);\n }", "@Override\n public Data clone() {\n final Data data = new Data(name, code, numeric, symbol, fractionSymbol, fractionsPerUnit, rounding, formatString,\n triangulated.clone());\n return data;\n }", "public Object clone() {\n return new PointImpl( this );\n }", "public Sudoku clone() {\n\t\tSudoku s = new Sudoku(this.B);\n\t\ts.fileName = this.getFileName();\n\t\t// clone the puzzle\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tfor (int j = 1; j <= N; j++) {\n\t\t\t\ts.puzzle[i][j] = puzzle[i][j];\n\t\t\t}\n\t\t}\n\t\t// clone the constraints table\n\t\tfor (int i = 0; i <= N + 1; i++) {\n\t\t\tfor (int j = 0; j <= N; j++) {\n\t\t\t\ts.constraints[i][j] = (BitSet) constraints[i][j].clone();\n\t\t\t}\n\t\t}\n\t\t// clone the nonAssignedCells\n\t\ts.nonAssignedCells.addAll(this.nonAssignedCells);\n\t\treturn s;\n\t}", "@Override\n public User clone(){\n return new User(this);\n }", "public Object clone() {\n\t\ttry {\n\t\t\tAbstractHashSet newSet = (AbstractHashSet) super.clone();\n\t\t\tnewSet.map = (DelegateAbstractHashMap) map.clone();\n\t\t\treturn newSet;\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\tthrow new InternalError();\n\t\t}\n\t}", "public Binaire clone(){\n\t\treturn new Binaire(this.symbole, this.gauche.clone(), this.droit.clone());\n\t}", "public abstract Object clone() ;", "public directed_weighted_graph deepCopy() {\n DWGraph_DS copyGraph = new DWGraph_DS(this); //create a new graph with the original graph data (only primitives)\n HashMap<Integer, node_data> copyNodesMap = new HashMap<>(); //create a new nodes HashMap for the new graph\n for (node_data node : nodes.values()) { //loop through all nodes in the original graph\n copyNodesMap.put(node.getKey(), new NodeData((NodeData) node)); //makes a duplicate of the original HashMap\n }\n copyGraph.nodes = copyNodesMap; //set the new graph nodes to the new HashMap we made.\n return copyGraph;\n }", "public Position copy() {\n return new Position(values.clone());\n }", "public Object clone() {\n\tZPathLayoutManager newObject;\n\ttry {\n\t newObject = (ZPathLayoutManager)super.clone();\n\t} catch (CloneNotSupportedException e) {\n\t throw new RuntimeException(\"Object.clone() failed: \" + e);\n\t}\n\n\tif (path != null) {\n\t newObject.path = (ArrayList)path.clone();\n\t}\n\n\tif (shape != null) {\n\t // JM - not done yet: The shape interface doesn't include a clone() method,\n\t // so to clone a shape we either must cast it to a specific shape class\n\t // and call clone() on that, or use reflection to invoke the clone()\n\t // method. For now, we just continue referencing the old shape.\t\n\t}\n\n\treturn newObject;\n }", "public SyncDevice deepcopy() {\n SyncDevice copy = new SyncDevice(this.id);\n copy.displayName = this.displayName;\n copy.syncTimestamp = this.syncTimestamp;\n copy.lastIP = this.lastIP;\n copy.deletedSecrets = new HashMap<String, DeletedSecret>();\n for (Entry<String, DeletedSecret> deletedSecret : this.deletedSecrets.entrySet()) {\n copy.deletedSecrets.put(deletedSecret.getKey(), \n new DeletedSecret(deletedSecret.getValue().getDescription(), \n deletedSecret.getValue().getTimestamp()));\n }\n return copy;\n }", "@Override\n public LocalStore<V> copy() {\n return this;\n }", "public Object clone() {\n return new RelevantObjectsCommand(name, \n relevantStateVariables, \n relevantObjects,\n relevancyRelationship);\n }", "public Call treeCopy() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }", "public WorldState clone ()\n\t{\n\t\tWorldState clone = new WorldState();\n\t\tclone.copy(this);\n\t\treturn clone;\n\t}", "public SparqlParserConfig clone() {\n SparqlParserConfig result = new SparqlParserConfig(syntax, prologue.copy(), baseURI, sharedPrefixes);\n return result;\n }", "@Override\n public MovePath clone() {\n final MovePath copy = new MovePath(getGame(), getEntity());\n copy.steps = new Vector<MoveStep>(steps);\n copy.careful = careful;\n return copy;\n }", "public Sudoku copy(){\n\t\treturn (Sudoku) this.clone();\n\t}" ]
[ "0.7700862", "0.76551515", "0.7595971", "0.7421318", "0.7400157", "0.7308941", "0.7259989", "0.72043866", "0.7145762", "0.7129059", "0.70932287", "0.70779634", "0.7021453", "0.70213175", "0.69687927", "0.69687927", "0.6944371", "0.69308317", "0.69041324", "0.6888031", "0.68619233", "0.6842561", "0.6842561", "0.6842561", "0.6842561", "0.683997", "0.6836262", "0.6825561", "0.6820696", "0.6782005", "0.6770807", "0.675305", "0.6751594", "0.6743703", "0.67332613", "0.6721016", "0.6718076", "0.6688154", "0.66785485", "0.6668026", "0.6664233", "0.66611713", "0.66392744", "0.6623437", "0.66151077", "0.6600008", "0.6588637", "0.65815866", "0.656618", "0.6524844", "0.65221477", "0.6521955", "0.65164244", "0.6516001", "0.6506245", "0.64957994", "0.6493617", "0.6489429", "0.64808613", "0.6473333", "0.64637333", "0.64536965", "0.64502007", "0.6448664", "0.6441829", "0.6441132", "0.64233434", "0.64216685", "0.6414704", "0.6413871", "0.6409404", "0.6408375", "0.6407412", "0.6403693", "0.6398603", "0.63880605", "0.63830006", "0.6375782", "0.6375318", "0.63715655", "0.6371346", "0.63698506", "0.6369475", "0.6368339", "0.6365715", "0.6362405", "0.6361566", "0.6356123", "0.6355618", "0.6352966", "0.63439846", "0.6341074", "0.63352734", "0.6316957", "0.6315993", "0.63117546", "0.630328", "0.6300219", "0.6291884", "0.62916595", "0.6290221" ]
0.0
-1
TODO Autogenerated method stub
@Override public Customer findByEmail(String email) { return customerDao.findByEmail(email); }
{ "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
Get call using spring based web services
@GetMapping("/myurl") public String sayHello() { System.out.println("sayHello...."); return "Hi User"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String serviceEndpoint();", "public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}", "@RequestMapping(\"/get\")\n\tpublic void get(String id) throws Exception {\n\n\t\tList<ServiceInstance> list = this.discoveryClient.getInstances(\"FEIGN-API\");\n String uri = \"\";\n for (ServiceInstance instance : list) {\n if (instance.getUri() != null && !\"\".equals(instance.getUri())) {\n uri = instance.getUri().toString();\n\t\t\t\tSystem.out.println(uri);\n //break;\n }\n }\n\t\tSystem.out.println(uri+\"/provide/user/get?id=2\" + \"===>\");\n // return uri+\"/provide/user/getInfo\";\n\n//\t\tString baStr = restTemplate.getForObject(uri+\"/provide/user/get?id=2\", String.class );\n//\t\tSystem.out.println(baStr+\"===>\");\n\t\treturn (String) this.userFeignService.get(id);\n\t\t//return \"sss\";\n\t}", "WebClientServiceRequest serviceRequest();", "public interface GPAdimWS {\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.provincia\")\n Call<List<Provincia>> listProvincia();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.especialidad\")\n Call<List<Especialidad>> listEspecialidad();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.cobertura\")\n Call<List<Cobertura>> listCobertura();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.medico/byCoberturaProvinciaEspecialidad/{cobertura}/{provincia}/{especialidad}\")\n Call<List<Medico>> listMedico(@Path(\"cobertura\") String cobertura, @Path(\"provincia\") Long provincia, @Path(\"especialidad\") Long especialidad);\n @POST(\"webresources/com.gylgroup.gp.turno\")\n Call<Turno> createTurno(@Body Turno turno);\n}", "public interface NewsWebService {\n\n\n @GET(\"v1/banner/2\")\n Call<ResponseBody> getBanner();\n\n @POST(\"v1/news/all\")\n Call<ResponseBody> getNews(@Body RequestBody body);\n\n @GET(\"v1/news/{newsId}\")\n Call<ResponseBody> getNewsDetail(@Path(\"newsId\") Long newsId);\n\n}", "public interface ServiceApi {\n @GET(\"/user/login\")\n Observable<DlBean> dL(@Query(\"mobile\") String mobile,@Query(\"password\") String password );\n @GET(\"/user/reg\")\n Observable<ZcBean> zC(@Query(\"mobile\") String mobile,@Query(\"password\") String password );\n @GET(\"/ad/getAd\")\n Observable<LbBean> lieb(@Query(\"source\") String source );\n // http://120.27.23.105/product/getProductDetail?pid=1&source=android\n @GET(\"/product/getProductDetail\")\n Observable<XqBean> xQ(@Query(\"source\") String source, @Query(\"pid\") int pid);\n @GET(\"product/getCarts\")\n Observable<MsgBean<List<DataBean>>> getDatas(@Query(\"uid\") String uid, @Query(\"source\") String source);\n @GET(\"product/deleteCart\")\n Observable<MsgBean> deleteData(@Query(\"uid\") String uid, @Query(\"pid\") String pid, @Query(\"source\") String source);\n\n}", "public interface RequestService {\n @GET(\"index?type=yule&key=d7e184978722fe31928061a05ac7980c\")\n Call<ResponseBody> getString();\n}", "public interface MyServiceTwo {\n\n @GET(\"kehuduan/PAGE14503485387528442/index.json\")\n Call<XiongMao> getTwoImg();\n\n @GET(\"http://api.cntv.cn/apicommon/index?path=iphoneInterface/general/getArticleAndVideoListInfo.json&primary_id=PAGE1449807494852603,PAGE1451473625420136,PAGE1449807502866458,PAGE1451473627439140,PAGE1451473547108278,PAGE1451473628934144&serviceId=panda\")\n Call<Todal> getTwoTodal();\n}", "public interface ApiService {\n\n\n public static final String BASE_URL = \"http://112.124.22.238:8081/course_api/cniaoplay/\";\n\n// @GET(\"featured\")\n// public Call<PageBean<AppInfo>> getApps(@Query(\"p\") String jsonParam);\n\n @GET(\"featured\")\n public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query(\"p\") String jsonParam);\n\n}", "public interface NewsService {\n @GET(\"v1/sources?language=en\")\n Call<WebSite> getSources();\n}", "public interface ServiceApi\n{\n @GET(\"{list}\")\n Call<ResponseBody> request(@Path(\"list\") String postfix, @QueryMap HashMap<String, Object> params);\n}", "public interface INearService {\n @GET(Constant.NEAR_ALL_DATE)\n Call<NearListBean> getNearInfo();\n}", "public interface ApiService {\n @GET(\"get_currency_rates.php\")\n Call<List<Currency>> getRates();\n}", "@WebService(targetNamespace = \"http://service.aiyingshi.com/\", name = \"AppProductServiceHttpGet\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AppProductServiceHttpGet {\r\n\r\n /**\r\n * 获取积分商城的商品信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetAppPointProductInfos\")\r\n public java.lang.String getAppPointProductInfos(\r\n @WebParam(partName = \"categorySysNo\", name = \"categorySysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String categorySysNo,\r\n @WebParam(partName = \"pageSize\", name = \"pageSize\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String pageSize,\r\n @WebParam(partName = \"currentPageNo\", name = \"currentPageNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String currentPageNo\r\n );\r\n\r\n /**\r\n * 获取指定的品牌信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductBrands\")\r\n public java.lang.String getProductBrands(\r\n @WebParam(partName = \"sysNo\", name = \"sysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sysNo\r\n );\r\n\r\n /**\r\n * 获取指定商品的详情或其商品组的商品列表详情\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductDetail\")\r\n public java.lang.String getProductDetail(\r\n @WebParam(partName = \"productSysNo\", name = \"productSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String productSysNo\r\n );\r\n\r\n /**\r\n * 查询指定评价分数的信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductTopicScoreInfo\")\r\n public java.lang.String getProductTopicScoreInfo(\r\n @WebParam(partName = \"sysNo\", name = \"sysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sysNo,\r\n @WebParam(partName = \"score\", name = \"score\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String score\r\n );\r\n\r\n /**\r\n * 用户发表评论 评分等级score的取值 1:极差 2:不好 3:一般 4:还好 5:很好\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"SubmitTopicInfo\")\r\n public java.lang.String submitTopicInfo(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo,\r\n @WebParam(partName = \"title\", name = \"title\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String title,\r\n @WebParam(partName = \"content\", name = \"content\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String content,\r\n @WebParam(partName = \"score\", name = \"score\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String score,\r\n @WebParam(partName = \"sysNo\", name = \"sysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sysNo,\r\n @WebParam(partName = \"sign\", name = \"sign\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sign\r\n );\r\n\r\n /**\r\n * 获取指定条件的筛选条件信息,其中品牌和属性支持多选,多个选值之间用下划线连接,排序说明 1:默认 2:销量 3:价格降序 4:价格升序 6:上架时间\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductCondition\")\r\n public java.lang.String getProductCondition(\r\n @WebParam(partName = \"categorySysNo\", name = \"categorySysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String categorySysNo,\r\n @WebParam(partName = \"currentPageNo\", name = \"currentPageNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String currentPageNo,\r\n @WebParam(partName = \"pageSize\", name = \"pageSize\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String pageSize,\r\n @WebParam(partName = \"brand\", name = \"brand\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String brand,\r\n @WebParam(partName = \"minPrice\", name = \"minPrice\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String minPrice,\r\n @WebParam(partName = \"maxPrice\", name = \"maxPrice\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String maxPrice,\r\n @WebParam(partName = \"attribute\", name = \"attribute\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String attribute,\r\n @WebParam(partName = \"keyword\", name = \"keyword\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String keyword,\r\n @WebParam(partName = \"sort\", name = \"sort\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sort\r\n );\r\n\r\n /**\r\n * 获取用户收藏夹商品\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetFavoriteProducts\")\r\n public java.lang.String getFavoriteProducts(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo\r\n );\r\n\r\n /**\r\n * 提货券查询\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetVoucher\")\r\n public java.lang.String getVoucher(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo,\r\n @WebParam(partName = \"pageSize\", name = \"pageSize\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String pageSize,\r\n @WebParam(partName = \"currentPageNo\", name = \"currentPageNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String currentPageNo,\r\n @WebParam(partName = \"sign\", name = \"sign\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sign\r\n );\r\n\r\n /**\r\n * 根据二维码获取商品SysNo\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductByQRCode\")\r\n public java.lang.String getProductByQRCode(\r\n @WebParam(partName = \"qrCode\", name = \"qrCode\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String qrCode\r\n );\r\n\r\n /**\r\n * 获取指定编号的评论信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetTopicInfoBySysNo\")\r\n public java.lang.String getTopicInfoBySysNo(\r\n @WebParam(partName = \"topicSysNo\", name = \"topicSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String topicSysNo\r\n );\r\n\r\n /**\r\n * 获取用户发表的评论列表信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetUserTopicList\")\r\n public java.lang.String getUserTopicList(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo,\r\n @WebParam(partName = \"pageSize\", name = \"pageSize\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String pageSize,\r\n @WebParam(partName = \"currentPageNo\", name = \"currentPageNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String currentPageNo\r\n );\r\n\r\n /**\r\n * 用户添加回复\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"SubmitTopicReply\")\r\n public java.lang.String submitTopicReply(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo,\r\n @WebParam(partName = \"topicSysNo\", name = \"topicSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String topicSysNo,\r\n @WebParam(partName = \"reply\", name = \"reply\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String reply,\r\n @WebParam(partName = \"sign\", name = \"sign\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sign\r\n );\r\n\r\n /**\r\n * 获取积分商城的商品详情\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetAppPointProductDetail\")\r\n public java.lang.String getAppPointProductDetail(\r\n @WebParam(partName = \"productSysNo\", name = \"productSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String productSysNo\r\n );\r\n\r\n /**\r\n * 积分兑换商品\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"PointProductExchage\")\r\n public java.lang.String pointProductExchage(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo,\r\n @WebParam(partName = \"productSysNo\", name = \"productSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String productSysNo,\r\n @WebParam(partName = \"sign\", name = \"sign\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sign\r\n );\r\n\r\n /**\r\n * 添加商品到收藏夹\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"AddFavoriteProduct\")\r\n public java.lang.String addFavoriteProduct(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo,\r\n @WebParam(partName = \"productSysNos\", name = \"productSysNos\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String productSysNos\r\n );\r\n\r\n /**\r\n * 删除收藏夹中的商品\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"DelFavoriteProduct\")\r\n public java.lang.String delFavoriteProduct(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo,\r\n @WebParam(partName = \"productSysNos\", name = \"productSysNos\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String productSysNos\r\n );\r\n\r\n /**\r\n * 获取热门搜索关键词信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetSearchKeywordInfo\")\r\n public java.lang.String getSearchKeywordInfo();\r\n\r\n /**\r\n * 获取指定分类本身及所有子分类信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductCategory\")\r\n public java.lang.String getProductCategory(\r\n @WebParam(partName = \"sysNo\", name = \"sysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sysNo\r\n );\r\n\r\n /**\r\n * 获取指定对象的评论信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductTopicList\")\r\n public java.lang.String getProductTopicList(\r\n @WebParam(partName = \"sysNo\", name = \"sysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sysNo,\r\n @WebParam(partName = \"score\", name = \"score\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String score,\r\n @WebParam(partName = \"pageSize\", name = \"pageSize\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String pageSize,\r\n @WebParam(partName = \"currentPageNo\", name = \"currentPageNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String currentPageNo\r\n );\r\n\r\n /**\r\n * 根据输入的关键词信息获取相关关键词\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetSuggestKeywordInfo\")\r\n public java.lang.String getSuggestKeywordInfo(\r\n @WebParam(partName = \"kw\", name = \"kw\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String kw\r\n );\r\n\r\n /**\r\n * 获取指定商品的库存信息\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductInventoryInfo\")\r\n public java.lang.String getProductInventoryInfo(\r\n @WebParam(partName = \"productSysNo\", name = \"productSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String productSysNo\r\n );\r\n\r\n /**\r\n * 获取指定条件的商品列表信息,其中品牌和属性支持多选,多个选值之间用下划线连接,排序说明 1:默认 2:销量 3:价格降序 4:价格升序 6:上架时间\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"GetProductList\")\r\n public java.lang.String getProductList(\r\n @WebParam(partName = \"categorySysNo\", name = \"categorySysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String categorySysNo,\r\n @WebParam(partName = \"currentPageNo\", name = \"currentPageNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String currentPageNo,\r\n @WebParam(partName = \"pageSize\", name = \"pageSize\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String pageSize,\r\n @WebParam(partName = \"brand\", name = \"brand\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String brand,\r\n @WebParam(partName = \"minPrice\", name = \"minPrice\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String minPrice,\r\n @WebParam(partName = \"maxPrice\", name = \"maxPrice\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String maxPrice,\r\n @WebParam(partName = \"attribute\", name = \"attribute\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String attribute,\r\n @WebParam(partName = \"keyword\", name = \"keyword\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String keyword,\r\n @WebParam(partName = \"sort\", name = \"sort\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String sort\r\n );\r\n\r\n /**\r\n * 清空收藏夹商品\r\n */\r\n @WebResult(name = \"string\", targetNamespace = \"http://service.aiyingshi.com/\", partName = \"Body\")\r\n @WebMethod(operationName = \"ClearFavoriteProducts\")\r\n public java.lang.String clearFavoriteProducts(\r\n @WebParam(partName = \"customerSysNo\", name = \"customerSysNo\", targetNamespace = \"http://service.aiyingshi.com/\")\r\n java.lang.String customerSysNo\r\n );\r\n}", "public interface RequestService {\n //http://gank.io/api/data/Android/10/1\n /*@GET(\"api/data/Android/10/1\")\n Call<ResponseBody> getAndroidInfo();*/\n @GET(\"api/data/Android/10/1\")\n Call<GankBean> getAndroidInfo();\n @GET(\"api/data/Android/10/{page}\")\n Call<GankBean> getAndroidInfo(@Path(\"page\") int page);\n @GET(\"api/data/query?cityname=深圳\")\n Call<ResponseBody> getWeather(@Query(\"key\") String key,@Query(\"area\") String area);\n @GET(\"group/{id}/users\")\n Call<List<User2>> groupList(@Field(\"id\") int groupId, @QueryMap Map<String,String> options);\n @GET\n Call<GankBean> getAndroid2Info(@Url String url);\n\n}", "public interface StrockIndexApiService {\r\n// @Headers(GlobalContants.HeadsSet)\r\n// @GET(\"?key=a23cd4983655b336fbd1f440acfb1152\")\r\n// Call<StrockIndexBean> getStrockIndex(\r\n// @Query(\"type\") int type\r\n// );\r\n}", "@GET(\"rest/emprego\")\n Call<List<Posto>> callListPostoSINE();", "String getServiceUrl();", "public void doGet( )\n {\n \n }", "@RequestMapping(\"/get1\")\t// 自测如果类上的 @RequestMapping(\"/\") 则这里可以不用 /也可以用\r\n\tpublic @ResponseBody String Get1(HttpServletRequest request) throws Exception {// 不加 @ResponseBody 将默认返回XXX.jsp 页面的名称,不存在则出错\r\n\t\tString id = request.getParameter(\"id\");\r\n\t\treturn id;\r\n//\t\treturn cfxService.GetServiceById(id);\r\n\t}", "@GetMapping(\"/product\") \nprivate List<Products> getAllProducts() \n{ \nreturn ProductsService.getAllProducts(); \n}", "public interface IUserBiz {\n @GET(\"TestServlet\")\n Call<List<User>> getUsers();\n\n @GET(\"{username}\")\n Call<User> getUser(@Path(\"username\")String username);\n}", "public String getAPI()\n {\n ResponseEntity<String> person;\n\n /*\n\t\t * Headers for the response type if we want to return JSON response then we\n\t\t * require to add.\n */\n HttpHeaders headers = new HttpHeaders();\n\n /*\n\t\t * Adding of the response header with application/json type\n */\n headers.add(\"Accept\", \"application/json\");\n\n /*\n\t\t * Creation of the Entity object for the adding the headers into request.\n */\n entity = new HttpEntity<>(headers);\n\n /*\n\t\t * Creation of REST TEMPLET object for the executing of the REST calls.\n */\n restTemplate = new RestTemplate();\n\n /*\n\t\t * Adding the basic type of authentication on the REST TEMPLETE.\n */\n restTemplate.getInterceptors()\n .add(new BasicAuthorizationInterceptor(\"Administrator\", \"Oneeight@admin18\"));\n\n /*\n\t\t * Execution of the REST call with basic authentication and JSON response type\n */\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/login?username=Administrator&password=Oneeight@admin18\", HttpMethod.POST, entity, String.class);\n System.out.println(\"\"+person.toString());\n //headers.add(\"Cookie\", \"JSESSIONID=0FC37952D64B545C46969EFEC0E4FD12\");\n headers.add(\"Cookie\", person.getHeaders().getFirst(HttpHeaders.SET_COOKIE));\n entity = new HttpEntity<>(headers);\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/analytics/v1.0.0/data/provider/tenants/OneEight/features/SDWAN/?qt=summary&start-date=1daysAgo&end-date=today&q=linkusage(site)&metrics=volume-rx&metrics=volume-tx&metrics=volume-rx&metrics=volume-tx&metrics=bandwidth&ds=aggregate&count=10\", HttpMethod.GET, entity, String.class);\n\n /*\n\t\t * Returning the response body with string format that easily readable.\n */\n return person.getBody();\n }", "public interface MeiZhiService {\n\n /**\n * 妹纸列表\n */\n @GET(\"data/福利/{num}/{page}\")\n Flowable<MeizhiBean> getGirlList(@Path(\"num\") int num, @Path(\"page\") int page);\n}", "public interface IMarvelWebService {\n\n\n @GET(\"/v1/public/comics\")\n Call<ComicDataWrapper> getComics(@Query(\"dateDescriptor\") String dateDescriptior,\n @Query(\"offset\") int offset);\n\n}", "public interface CatagoryApiService {\n\n @GET(\"product/getCatagory\")\n Observable<CatagoryBean> getCatagory();\n}", "public interface ServiceClient {\n @GET(\"exec\")\n Call<ListWisata> getWisata(@Query(\"sheet\") String namaSheet);\n}", "public interface PrecosService {\n\n @GET(\"/combustivelbarato/precos/master/precos.json\")\n List<Preco> getPrecos();\n}", "public interface GetService {\n @GET(API.LIST_STORE)\n @Headers({API.HEADERS})\n Call<List<JSONStoreItem>> callJsonListStore();\n\n @GET(API.LIST_COUPON)\n @Headers({API.HEADERS})\n Call<List<JSONCouponItem>> callJsonListCoupon();\n}", "public interface GetCountryDataService {\n\n\n\n @GET(\"country/get/all\")\n Call<Info> getResults();\n\n\n\n\n\n\n\n\n}", "@GetMapping(path=\"/json\")\n public String getTodos() {\n String theUrl = \"http://localhost:8080/hello\";\n ResponseEntity<String> response = restTemplate.exchange(theUrl, HttpMethod.GET, null, String.class);\n\n return response.getBody();\n }", "IHttpService getHttpService();", "public interface ApiService {\n\n @GET(\"/api/v1/rates/daily/\")\n Call<List<ExchangeRate>> getTodayExchangeRates();\n\n}", "public interface TravelsService {\n\n /**\n * Get data list.\n *\n * @param query default \"\"\n * @param page default 1\n * @return\n * @throws Exception\n */\n @GET(App.SUFFIX_URL_TRAVELS)\n Call<TravelsMapObject> getData(@Query(\"query\") String query, @Query(\"page\") Integer page) throws Exception;\n\n}", "@GET\r\n @Produces(MediaType.TEXT_PLAIN)\r\n public String getIt() {\r\n\r\n\r\n \tApplicationContext appContext = new ClassPathXmlApplicationContext(\"beans/Beans.xml\");\r\n\r\n \tPerson pers = (Person) appContext.getBean(\"personBean\");\r\n\r\n \tSystem.out.println(pers.getPerNombre());\r\n\r\n\r\n \tPersonDaoImp personDao = new PersonDaoImp();\r\n\r\n \tPerson aux = new Person(\"Rivero\", new Date(), \"Matias\", 36133395, \"DNI\");\r\n \taux.setPerId(1);\r\n\r\n \tpersonDao.addOrUpdate(aux);\r\n\r\n \tSystem.out.println(personDao.getAll().isEmpty() ? \"Nada\" : \"Varios\");\r\n\r\n return \"Got it!\";\r\n }", "public interface APIService {\n /**\n * 如果不需要转换成Json数据,可以用了ResponseBody;\n * @return call\n */\n @GET(\"apps?api_token={Your API Token}\")\n// Call<AppInfo> getAppInfo();\n Call<ResponseBody> getAppInfo();\n // you can add some other meathod\n}", "public interface ServiceProducto {\n\n// @GET(\"/sites/MLA/search?q=tennis\")\n// Call<ContenedorDeProductos>getProductos();\n\n @GET(\"/sites/MLA/search\")\n Call<ContenedorDeProductos>getProductos(@Query(\"q\") String terminoABuscar);\n\n}", "public interface InterfaceReTrofits {\n\n @GET(\"{viewname}?name=101020100&id=11\")\n Call<String> fundGETRequest(@Path(\"viewname\") String viewname);\n\n @GET(\"{viewname}?id=12\")\n Call<BaseCallBean> fundGETRequestForBean(@Path(\"viewname\") String viewname);\n\n\n Call<BaseCallBean> fundGETRequest(@Url String url, @QueryMap Map<String, String> queryMaps);\n\n\n}", "public interface apiService {\n\n\n\n String base_url= \"http://192.168.43.154:8081/\";\n\n @GET(\"getprofile\")\n Call<Employee> getProfilehero(@Query(\"racf\") String id,@Query(\"password\") String pass);\n\n @GET(\"getpeopleonleave\")\n Call<Datesss> getdetailsondate(@Query(\"date\") String d);\n\n @GET(\"authentication\")\n Call<Auth> getAuth(@Query(\"racf\") String d,@Query(\"password\") String dd);\n\n @GET(\"getleavedates\")\n Call<leaves> getleavedates(@Query(\"racf\") String d);\n\n @GET(\"getwfhdates\")\n Call<WorkFromHome> getwfhdates(@Query(\"racf\") String dd);\n\n @GET(\"updateno\")\n Call<Auth> updating(@Query(\"racf\") String d,@Query(\"contacts\") String dd,@Query(\"contactnames\") String ddd);\n\n @GET(\"updateworkfromhome\")\n Call<Auth> updatingwfh(@Query(\"racf\") String d,@Query(\"dates\") String dd,@Query(\"reasons\") String ddd);\n\n @GET(\"updateonleave\")\n Call<Auth> updatingleave(@Query(\"racf\") String d,@Query(\"date\") String dd,@Query(\"reason\") String ddd);\n\n\n}", "public interface RuntService {\n @Headers({\n \"Accept: application/json\"\n })\n @GET(\"runt/co.com.runt.local.domain.persona/{id}/{placa}\")\n Call<List<RuntVO>> consultaRunt(@Path(\"id\") Integer numeroCedula, @Path(\"placa\") String placa);\n}", "public interface ApiService {\n\n @GET(\"products.json\")\n Call<Product> loadProduct();\n\n}", "public interface GankService {\n\n String BASE_URL = \"http://www.gank.io/api/\";\n\n @GET(\"day/history\")\n Observable<HttpResult<List<String>>> getRecentlyDate();\n\n @GET(\"history/content/5/1\")\n Observable<HttpResult<List<GanHuoTitleBean>>> getTitles();\n}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "public interface GitHubService {\n// @GET(\"article/list/1/15/1\")\n// Call<JinXuanBean> getQuamZiData();\n @GET(\"article/list/{page}/15/{type}\")\n Call<JinXuanBean> getQuamZiData(@Path(\"page\") int page, @Path(\"type\") int type);\n\n @GET(\"article/{articleId}\")\n Call<ArticleBean> getArticle(@Path(\"articleId\") int articleId);\n @GET(\"review/article/content/{page}/15/{articleId}\")\n Call<Comment> getComment(@Path(\"page\") int page, @Path(\"articleId\") int articleId);\n}", "public interface APIService {\n\n @GET(\"api/rates\")\n Observable<List<ProductModel>> getproductdata();\n\n}", "@RequestMapping(value = \"/hello\", method = RequestMethod.GET)\n public String hello(){\n System.out.println(\"========该provider被调用==========\");\n return \"hello world\";\n }", "com.uzak.inter.bean.test.TestRequest.TestBeanRequest getRequest();", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public interface TuduListsWebService {\r\n\r\n /**\r\n * Find all the todo lists for the current user.\r\n */\r\n WsTodoList[] getAllTodoLists();\r\n \r\n /**\r\n * Find all todos from a todo list.\r\n */\r\n WsTodo[] getTodosByTodoList(String listId);\r\n \r\n}", "public interface IWebScheduleService {\r\n public ScheduleResponse getScheduleShowByTeamId(String teamId, Long scheduleDetaildId,Long scheduleId, Long descId);\r\n\r\n //获取页面所有链接的签名map\r\n public ScheduleResponse getScheduleSigns(ScheduleShowRequest showRequest, ScheduleResponse response, SignVo signVo);\r\n\r\n //获取行程中所有导游\r\n public List<LeaderEntity> getScheduleGuides(String teamId);\r\n\r\n // 获取游客列表\r\n public List<MemberEntity> getTouristList(Long scheduleId);\r\n\r\n}", "public interface PageService {\n @GET(\"GetHotDownload.xml\")\n Call<ScreenBean> get(@Query(\"pageNum\") String pageNum1,\n @Query(\"packNumForOnePage\") String packNumForOnePage,\n @Query(\"userId\") String userId, @Query(\"codeVersion\") String version,\n @Query(\"classId\") String classId);\n}", "public interface ApiService {\n @GET(\"api/timelines/users/918753190470619136\")\n Call<HeadPOJO> pojoGetter();\n}", "public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}", "public interface GateWay {\n @GET(\"retrofit-demo.php?company_no=123\")\n Call<EmployeeList> getEmployee();\n}", "@WebService(targetNamespace = \"http://demo.grails.org/\", name = \"CustomerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CustomerService {\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomer\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomer\")\n @WebMethod(operationName = \"GetCustomer\")\n @ResponseWrapper(localName = \"GetCustomerResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomerResponse\")\n public org.grails.demo.soap.customer.Customer getCustomer(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"FirstName\", targetNamespace = \"\")\n java.lang.String firstName\n );\n\n @WebResult(name = \"Customers\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomers\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomers\")\n @WebMethod(operationName = \"GetCustomers\")\n @ResponseWrapper(localName = \"GetCustomersResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomersResponse\")\n public java.util.List<org.grails.demo.soap.customer.Customer> getCustomers();\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"MakePayment\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.MakePayment\")\n @WebMethod(operationName = \"MakePayment\")\n @ResponseWrapper(localName = \"MakePaymentResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.MakePaymentResponse\")\n public org.grails.demo.soap.customer.Customer makePayment(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"PaymentDate\", targetNamespace = \"\")\n java.util.Date paymentDate,\n @WebParam(name = \"PaymentAmount\", targetNamespace = \"\")\n java.lang.Double paymentAmount\n );\n}", "public interface HttpService {\n\n @POST(\"/demo/store/getStoreById/40\")\n Observable<BaseBean<ArticleInfo>> getCarousel();\n\n}", "public interface ApiServer {\n//\n @GET(\"umIPmfS6c83237d9c70c7c9510c9b0f97171a308d13b611?uri=homepage\")\n Observable<HomeBean> getHome();\n @POST\n Observable<Login> getDengLu(@Url String name, @QueryMap Map<String, String> paw);\n @GET(\"product/getCatagory\")\n Observable<Sort_lift> lift();\n @GET\n Observable<Sort_right> right(@Url String s);\n @GET\n Observable<Commodity_pagingBean> xia(@Url String s);\n @GET\n Observable<detailsBean> spxq(@Url String ss);\n @GET\n Observable<AddcartBean> add(@Url String s);\n @GET\n Observable<QurryBean> qurry(@Url String s);\n @GET\n Observable<AddcartBean> delete(@Url String s);\n @GET\n Observable<AddcartBean> addDd(@Url String s);\n @GET\n Observable<OrderBean> Ddlb(@Url String s);\n\n\n\n\n\n\n}", "public interface HostipalRequest {\n @GET(\"centrosatencion\")\n Call<ArrayList<HospitalEntity>> getHospital();\n}", "public interface MovieService {\n @GET(\"/json/movies.json\")\n Call<List<MovieModel>> getDealModel();\n\n}", "@RequestMapping(value = \"/info\", method = RequestMethod.GET)\n public String info() {\n return serviceName;\n }", "@RequestMapping(path=\"/initPaymentGet\", method = RequestMethod.GET)//, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Object> test() {\n\t\tlogger.info(\"Init payment\");\n\t\t//System.out.println(\"DTO: \" + btcDTO.getPrice_currency());\n\t\tString pom = \"\";\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.add(\"Authorization\", \"ab7fzPdN49-xBVoY_LdSifCZiVrqCbdcfjWdweJS\");\n\t\tResponseEntity<String> responseEntity = new RestTemplate().exchange(CREATE_ORDER_API, HttpMethod.GET,\n\t\t\t\tnew HttpEntity<String>(pom, headers), String.class);\n\n\t\t//restTemplate.getForEntity(\"https://google.rs\", String.class);\n\t\t//ResponseEntity<String> response = restTemplate.getForEntity(\"https://api-sandbox.coingate.com/v2/orders\", String.class);\n\t\t//ResponseEntity<String> response = restTemplate.postForEntity(\"https://api.coingate.com/v2/orders\", btcDTO, String.class);\n\t\t\n\t\treturn new ResponseEntity<Object>(responseEntity,HttpStatus.OK);\n\t}", "@WebService\npublic interface TicketWebService {\n\n @WebMethod\n public List<Ticket> search(String searchTerm);\n}", "public interface ProductService extends WebService {\n\n /**\n * Get the Product Details for the specified product(s)\n * Note: Using v1 of ProductManager\n * @param productID - \"1-2-3\" returns Product details of products with Id = 1, Id = 2 & Id = 3;\n * @return Collection of {@link Product }\n *\n */\n public Collection<Product> getProductDetails(String productID) throws ProductNotFoundException, ProductDisabledException;\n\n /**\n * Gets reviews associated with a specific product\n * @param filter - The variable defined in the {@link ServiceFilterBean} can be over-ridden by\n * REQUEST parameters.\n * @param productID - Long - the product ID\n * @return Collection of {@link ProductReview}\n * @throws ProductNotFoundException, ProductDisabledException\n */\n public Collection<ProductReview> getProductReviews(ServiceFilterBean filter, Long productID) throws ProductNotFoundException, ProductDisabledException;\n\n /**\n * Search products against all Merchants (RetailerSites), by default. If a merchant(RetailerSite) name is specified then we\n * restrict the search for the products is restricted to a specific RetailerSite\n * @param filter variable defined in the {@link ServiceFilterBean} can be over-ridden by\n * REQUEST parameters\n * @param merchantName - String merchantName, which essentially is RetailerSite\n * @return Collection of {@link Product}\n * @throws WebServiceException - Exception is thrown, if the parameters 'q' & 'searchFields' are not set on the REQUEST.\n */\n public Collection<Product> searchProducts(ServiceFilterBean filter, String merchantName) throws WebServiceException;\n\n /**\n * TODO: Do we need to implement this on v2\n * @param productId\n * @return\n * @throws Exception\n */\n public Integer updateProductSales(Long productId) throws Exception;\n}", "public interface NewsService {\n\n @GET(\"api/4/news/latest\")\n Observable<NewsBean> getNewsBean();\n}", "public interface ApiService {\n\n @GET(\"20/1\")\n Observable<HttpResult<List<Result>>> getWeal();\n\n\n}", "@WebService\npublic interface LisInfoService {\n\n /**\n * 获取检验信息\n * @param barcode\n * @return\n */\n String getTestInfo(String barcode);\n\n /**\n * 获取细菌信息列表\n * @return\n */\n String getBacteriaList();\n\n /**\n * 获取检验目的列表\n * @return\n */\n String getTestPurposeList();\n\n /**\n * 获取药敏信息列表\n * @return\n */\n String getDrugList();\n\n /**\n * 获取标本各类信息列表\n * @return\n */\n String getSampleTypeList();\n\n /**\n * 获取病人类别信息列表\n * @return\n */\n String getPatientTypeList();\n\n /**\n * 获取病区信息列表\n * @return\n */\n String getWardList();\n\n /**\n * 获取科室信息列表\n * @return\n */\n String getDepartMentList();\n\n /**\n * 获取样本号\n * @return\n */\n String getSampleNo(String barcode);\n\n}", "public interface SinaApiService {\n\n @GET(\"cgi-bin/pitu_open_access_for_youtu.fcg\")\n Observable<MoveListBean> faceMerge(@Header(\"Authorization\") String appSign,\n @Body RequestBody body);\n}", "public void accessWebService() {\n\r\n JsonReadTask task = new JsonReadTask();\r\n // passes values for the urls string array\r\n task.execute(new String[] { url });\r\n }", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "public interface TomcatService {\n @GET(\"blog/{id}\") //这里的{id} 表示是一个变量\n Call<ResponseBody> getBlog(/** 这里的id表示的是上面的{id} */@Path(\"id\") int id);\n}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "@Headers({\n \"Accept: application/json\",\n \"User-Agent: Mozilla/5.0\"\n })\n @GET(\"/products/\")\n Call<List<Product>> listProduct();", "public interface PoiTaeyeonService {\n @GET(\"taeyeons\")\n Call<Taeyeons> listTaeyeon();\n\n @GET(\"taeyeons/taeyeon/latest\")\n Call<Taeyeon> getLatest();\n\n @GET(\"taeyeons/taeyeon\")\n Call<Taeyeon> getById(@Query(\"id\") int id);\n}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tLogger log=Logger.getLogger(ProductsDisplay.class.getName());\n\t\ttry {\n\t\t\tClient c=Client.create();\n\t\t\tlog.info(\"calling web service\");\n\t\t\tWebResource webresource=c.resource(\"https://localhost:9443/integratedprojectserver/products/display\");\n\t\t\tSystem.out.println(webresource.toString());\n\t\t\tString search= request.getParameter(\"search\");\n\t\t\trequest.setAttribute(\"search\", search);\n\t\t\t//System.out.println(\"Search value is: \"+search);\n\t\t\tString order = \"asc\";\n\t\t\torder=request.getParameter(\"sort\");\n\t\t\tif(order==null){\n\t\t\t\torder=\"asc\";\n\t\t\t}\n\t\t\tSystem.out.println(\"order value is: \"+ order);\n\t\t\tClientResponse restResponse = webresource.queryParam(\"searchstring\", search).queryParam(\"order\", order).accept(\"application/text\").get(ClientResponse.class);\n\t\t\t//ClientResponse restResponse = webresource.path(\"/P100\").accept(\"application/text\").get(ClientResponse.class);\n\t\t\t//System.out.println(restResponse.toString());\n\t\t\t//System.out.println(\"uri=\"+restResponse.getLocation());\n\t\t\tif (restResponse.getStatus() != 200) {\n\t\t\t\t//System.out.println(\"uri=\"+restResponse.getLocation());\n\t\t\t\t\n\t\t\t\tlog.info(\"status!=200\");\n\t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \" + restResponse.getStatus());\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlog.info(\"status=200\");\n\t\t\t\tString statusString = restResponse.getEntity(String.class);\n\t\t\t\t//System.out.println(\"In client JSOn=\"+statusString);\n\t\t\t\tJSONArray jsonObject = new JSONArray(statusString);\n\t\t\t\tArrayList products = new ArrayList();\n\t\t\t\tMap row;\n\t\t\t\tfor(int i=0;i<jsonObject.length();i++){\n\t\t\t\t\trow = new HashMap();\n\t\t\t\t\tJSONObject pr =jsonObject.getJSONObject(i);\n\t\t\t\t\trow.put(\"product_id\",pr.getString(\"productid\"));\n\t\t\t\t\trow.put(\"name\",pr.getString(\"name\"));\n\t\t\t\t\t//row.put(\"description\",pr.getString(\"description\"));\n\t\t\t\t\t//row.put(\"category\",pr.getString(\"category\"));\n\t\t\t\t\t//row.put(\"brand\",pr.getString(\"brand\"));\n\t\t\t\t\t//row.put(\"color\",pr.getString(\"color\"));\n\t\t\t\t\trow.put(\"price\",pr.getDouble(\"price\"));\n\t\t\t\t\t//row.put(\"quantity\",pr.getInt(\"quantity\"));\n\t\t\t\t\trow.put(\"discount\",pr.getDouble(\"discount\"));\n\t\t\t\t\trow.put(\"rating\",pr.getDouble(\"rating\"));\n\t\t\t\t\tproducts.add(row);\n\t\t\t\t\trequest.setAttribute(\"category\", pr.getString(\"category\"));\n\t\t\t\t}\n\t\t\t\tHttpSession session=request.getSession();\n\t\t\t\t//System.out.println(\"Hello\");\n\t\t\t\t//System.out.println(\"get 0: \"+products.get(0));\n\t\t\t\tsession.setAttribute(\"products\", products);\n\t\t\t\tRequestDispatcher rd=request.getRequestDispatcher(\"display.jsp\");\n\t\t\t\trd.forward(request, response);\n\t\t\t\t//response.getWriter().append(\"Served at: \").append(request.getContextPath());\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tResponse res =Response.serverError().entity(e.getMessage()).build();\n\t\t\tSystem.out.println(res.toString());\n\t\t}\n\t}", "@GetMapping(\"/product/{productid}\") \nprivate Products getProducts(@PathVariable(\"productid\") int productid) \n{ \nreturn productsService.getProductsById(productid); \n}", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "public interface ApiService {\n @GET(\"questcms/floorplan\")\n Call<List<FloorPlan>> listFloorPlan();\n}", "@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}", "public interface API {\n @GET(\"today\")\n Observable<RecommendBean> getRecommendData();\n\n @GET(\"search/query/listview/category/{category}/count/10/page/{page}\")\n Observable<SearchBean> getSearchData(@Path(\"category\") String category, @Path(\"page\") int page);\n\n @GET(\"xiandu/categories\")\n Observable<Categories> getCategoriesData();\n\n @GET(\"xiandu/category/{type}\")\n Observable<Category> getCategoryData(@Path(\"type\") String type);\n}", "public interface CidadeService {\n @GET(\"cidade\")\n Call<List<Cidade>> listCidade();\n}", "@WebService\npublic interface ManualService {\n @WebMethod\n public int arrival(int regionCode, String berthCode);\n\n @WebMethod\n public int departure(int regionCode, String berthCode);\n}", "public interface BeaconQuestService {\n\n @GET(\"/beaconQuest/index/takeChallenge/{accountId}/{beaconId}\")\n Call<ResponseBody> takeChallenge (@Path(\"accountId\") String accountId,\n @Path(\"beaconId\") String beaconId\n );\n\n @GET(\"beaconQuest/index/challengeAnswer/{accountId}/{beaconId}/{answer}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid,\n @Path(\"answer\") String answer\n );\n\n @GET(\"beaconQuest/index//challengeCancel/{accountId}/{beaconId}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid\n );\n\n @GET(\"beaconQuest/index//register/{username}/{password}\")\n Call<ResponseBody> registerAccount(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n\n @GET(\"beaconQuest/index//login/{username}/{password}/\")\n Call<ResponseBody> login(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n}", "public interface WeatherService {\n @GET(\"data/sk/{cityNumber}.html\")\n Call<WeatherResult>getResult(@Path(\"cityNumber\")String cityNumber);\n\n\n\n}", "public interface ApiService {\n\n @GET(\"/iseAlim/league.json\")\n Call<Leagues> getLeague();\n\n\n}", "@RequestMapping(value = \"/{word}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @Transactional(readOnly = true)\n public ResponseEntity<List<ManagedUserDTO>> spyOn(@PathVariable String word)\n throws URISyntaxException {\n\n String requestURL = \"https://api.stackexchange.com/2.2/search?order=desc&sort=activity&tagged=\" + word + \"&site=stackoverflow\";\n BufferedReader reader = null;\n try {\n\n InputStream is = new URL(requestURL).openStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is, Charset.forName(\"UTF-8\")));\n StringBuilder sb = new StringBuilder();\n int cp;\n while ((cp = rd.read()) != -1) {\n sb.append((char) cp);\n }\n // return sb.toString();\n String jsonText = sb.toString();\n JSONObject json = new JSONObject(jsonText);\n\n\n Optional<User> user = userRepository\n .findOneByEmail(\"[email protected]\");\n mailService.sendHtmlEmail(user.get(), \"Success\");\n\n return new ResponseEntity<>(HttpStatus.OK);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (ProtocolException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }", "public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "@WebService\npublic interface AuthFacade {\n AuthInfoRes queryAuthInfo(String param);\n}", "public interface Api {\n @GET(\"ad/getAd\")\n Observable<ImageBean> getImage();\n @GET(\"product/getCatagory\")\n Observable<JiuBean> getJiu();\n @GET(\"home/getHome\")\n Observable<HomeBean> getHome();\n @GET(\"product/getProductCatagory\")\n Observable<SortBean> getSort(@Query(\"cid\") int cid);\n @GET(\"user/reg\")\n Observable<RegBean> getReg(@Query(\"mobile\") String mobile, @Query(\"password\") String password);\n @GET(\"user/login\")\n Observable<LoginBean> getLogin(@Query(\"mobile\") String mobile, @Query(\"password\") String password);\n @GET(\"product/searchProducts\")\n Observable<SouSuoBean> getSouSuo(@Query(\"keywords\") String keywords, @Query(\"page\") int page);\n @GET(\"product/getProductDetail\")\n Observable<XiangQingBean> getXiangQing(@Query(\"pid\") int pid);\n @GET(\"product/getCarts\")\n Observable<CarBean> getCar(@Query(\"uid\") int uid);\n}", "@WebService(name = \"UserWebService\", targetNamespace = \"http://webservice.openmeetings.apache.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserWebService {\n\n\n /**\n * \n * @param confirm\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.UserDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"add\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Add\")\n @ResponseWrapper(localName = \"addResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.AddResponse\")\n public UserDTO add(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n UserDTO user,\n @WebParam(name = \"confirm\", targetNamespace = \"\")\n Boolean confirm);\n\n /**\n * \n * @param sid\n * @return\n * returns java.util.List<cn.edu.service.userwebService.UserDTO>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"get\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Get\")\n @ResponseWrapper(localName = \"getResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetResponse\")\n public List<UserDTO> get(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid);\n\n /**\n * \n * @param options\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRoomHash\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHash\")\n @ResponseWrapper(localName = \"getRoomHashResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHashResponse\")\n public ServiceResult getRoomHash(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n ExternalUserDTO user,\n @WebParam(name = \"options\", targetNamespace = \"\")\n RoomOptionsDTO options);\n\n /**\n * \n * @param id\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"delete\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Delete\")\n @ResponseWrapper(localName = \"deleteResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteResponse\")\n public ServiceResult delete(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"id\", targetNamespace = \"\")\n long id);\n\n /**\n * \n * @param externaltype\n * @param externalid\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteExternal\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternal\")\n @ResponseWrapper(localName = \"deleteExternalResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternalResponse\")\n public ServiceResult deleteExternal(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"externaltype\", targetNamespace = \"\")\n String externaltype,\n @WebParam(name = \"externalid\", targetNamespace = \"\")\n String externalid);\n\n /**\n * \n * @param pass\n * @param user\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.LoginResponse\")\n public ServiceResult login(\n @WebParam(name = \"user\", targetNamespace = \"\")\n String user,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n String pass);\n\n}", "public RequestUrlHandler() {\n // requestService = SpringContextHolder.getBean(ScfRequestService.class);\n }", "@Override\n\tpublic String service(HttpPojo pojo,BusinessPojo buspojo) {\n\t\tString data = null; \n\t\tlogger.info(\"UrlHttpService is begin\");\n\t\tif(pojo.getServer().length()>=(buspojo.getServer_begin()+buspojo.getServer_length())){\n\t\t\tdata =pojo.getServer().substring(buspojo.getServer_begin(), buspojo.getServer_begin()+buspojo.getServer_length());\n\t\t\tlogger.info(\"file is \"+buspojo.getFile()+File.separator+data);\n\t\t\tFile file = new File(buspojo.getFile()+File.separator+data);\n\t\t\tif(file.isFile()){\n\t\t\t\ttry {\n\t\t\t\t\tInputStream fin = new FileInputStream(file);\n\t\t\t\t\tBufferedInputStream buf = new BufferedInputStream(fin);\n\t\t\t\t\tByteArrayOutputStream dos = new ByteArrayOutputStream();\n\t\t\t\t\tbyte[] tmp = new byte[1024]; \n\t\t\t\t\tint n=0;\n\t\t\t\t\twhile((n=buf.read(tmp))!=-1){ \n\t\t\t\t\t\tdos.write(tmp,0,n); \n\t\t\t\t\t}\n\t\t\t\t\tif(logger.isDebugEnabled()){\n\t\t\t\t\t\tlogger.debug(\"read return xml is \"+dos.toString());\n\t\t\t\t\t}\n\t\t\t\t\tlogger.info(\"UrlHttpService is succ...\");\n\t\t\t\t\treturn dos.toString(\"GBK\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"server is error\",e);\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tlogger.error(\"policy set length is little\");\n\t\t}\n\t\treturn null;\n\t}", "@GET(\"user\")\n Call<User> getUser();", "public interface CategoryRestService {\n\n @GET(\"/category\")\n Call<List<SimpleCategoryDto>> listAllCategory();\n\n}", "public interface WeatherTimeApi {\n\n @GET(\".\")\n Call<WeatherTimeBean> weatherTimeGetCall(@Query(\"city\") String city);\n}", "public interface GetAppService {\n @GET(\"/upload/app/baikangyun.apk\")\n Observable<ResponseBody> get();\n}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n // Empty list of to hold the people\n List<Person> people = null;\n\n // Make the call to the API (Deployed on AWS)\n Client client1 = ClientBuilder.newClient();\n WebTarget serviceWeb1 = client1.target(\"http://18.221.209.59:8080/kmf/api/person\");\n Response response1 = serviceWeb1.request().get();\n\n // Take the response and map it into people objects\n ObjectMapper objectMapper = new ObjectMapper();\n people = objectMapper.readValue(response1.readEntity(String.class), new TypeReference<List<Person>>() {});\n\n // Send the people to the webpage to be displayed\n HttpSession session = req.getSession();\n session.setAttribute(\"people\", people);\n RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/persons.jsp\");\n dispatcher.forward(req, resp);\n }" ]
[ "0.65197134", "0.64671355", "0.6432957", "0.63002133", "0.6297513", "0.6294795", "0.6246508", "0.62421834", "0.62149525", "0.62111956", "0.61784405", "0.6178137", "0.60915256", "0.60885084", "0.6085576", "0.60353166", "0.6031038", "0.60216737", "0.60070115", "0.6005598", "0.60055614", "0.5996207", "0.5994355", "0.5988278", "0.5984116", "0.59784555", "0.5973437", "0.5972026", "0.59632856", "0.5945871", "0.5932663", "0.59235394", "0.59211737", "0.5918747", "0.59144574", "0.5912413", "0.5907262", "0.58905447", "0.5885423", "0.588347", "0.58813894", "0.5871916", "0.58587086", "0.58561677", "0.5853321", "0.5848269", "0.584775", "0.58342", "0.5834145", "0.5834145", "0.5834145", "0.5833415", "0.5827335", "0.58168924", "0.5813924", "0.5812444", "0.5801854", "0.58006227", "0.5795961", "0.5786833", "0.5782409", "0.5777546", "0.57772857", "0.577079", "0.5759358", "0.57591575", "0.5756567", "0.5753712", "0.5753444", "0.5753426", "0.575165", "0.57507724", "0.57493544", "0.574787", "0.57457006", "0.5744777", "0.5743826", "0.57413936", "0.57344276", "0.57320505", "0.57313776", "0.57257086", "0.5725505", "0.5723085", "0.5720597", "0.57182497", "0.57129014", "0.5710742", "0.5709672", "0.57030314", "0.5700298", "0.5699463", "0.5692723", "0.5690732", "0.56875473", "0.56865174", "0.5682719", "0.56820935", "0.5680388", "0.56781065" ]
0.57949364
59
retrieve the person information by id
@GetMapping("/orderinfo/{​​​​​​​id}​​​​​​​") public OrderInfo getOrderById(@PathVariable("id") Integer id) { OrderInfo order =new OrderInfo(); //creating java object order.setOrder_id(1); order.setCustomer_address("Goa"); order.setCustomer_id(555); order.setProduct_id(456); order.setTotal_amt("1234567"); return order; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}", "public Person getPerson(String id) throws DataAccessException {\n Person person;\n ResultSet rs = null;\n String sql = \"SELECT * FROM persons WHERE person_id = ?;\";\n try(PreparedStatement stmt = conn.prepareStatement(sql)) {\n stmt.setString(1, id);\n rs = stmt.executeQuery();\n if (rs.next()) {\n person = new Person(rs.getString(\"person_id\"), rs.getString(\"assoc_username\"),\n rs.getString(\"first_name\"), rs.getString(\"last_name\"),\n rs.getString(\"gender\"), rs.getString(\"father_id\"),\n rs.getString(\"mother_id\"), rs.getString(\"spouse_id\"));\n return person;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n throw new DataAccessException(\"Error encountered while finding person\");\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "public Person getUserById(int id);", "public People getPeopleById(Long id);", "public ResultSet getPerson(int id) throws SQLException {\n\t\tquery = \"SELECT * FROM person WHERE id=\"+ id;\n\t\treturn stmt.executeQuery(query);\n\t}", "public Person get( Integer id ) {\n\t\t// Retrieve existing person\n\t\tPerson person = (Person) entityManager.createQuery(\"FROM Person p where p.id = :id\")\n \t.setParameter(\"id\", id).getSingleResult();\n\t\treturn person;\n\t}", "public Person get( Integer id ) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\t\t\n\t\t\n\t\treturn(Person) session.get(Person.class,id);\n\t}", "private static Person findPersonById(int id) {\n Person personReturn = null;\n\n for (Person person : persons) {\n if (id == person.getId()) {\n personReturn = person;\n }\n }\n\n return personReturn;\n }", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "@Override\n\tpublic Person getPerson(int id) {\n\t\treturn new Person(\"Philippe\", \"Peeters\");\n\t}", "@Override\n\tpublic Person findPersonById(long id){\n\t\tQuery q = em.createQuery(\"SELECT p FROM Person p WHERE p.id = :id\");\n\t\tq.setParameter(\"id\", id);\n\t\t\n\t\tList<Person> persons = q.getResultList();\n\t\t\n\t\tif(persons.size() == 1)\n\t\t\treturn persons.get(0);\n\t\telse return null;\n\t}", "@Override\n\tpublic Personne getPersonne(int id) {\n\t\treturn dao.getPersonne(id);\n\t}", "public Person getPersonById(String id) {\n\t\tfor (Person person : persons) {\n\t\t\tif (person.getId().equals(id)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public UserInformation findInformationById(int id);", "public Person getOne(Integer id) {\n\t\tPerson person = personRepository.getOne(id);\n\t\treturn person;\n\t}", "public List<PersonManage> queryPersonById(String id) {\n\t\treturn getSqlSession().selectList(NAME_SPACE+\".findById\",id);\n\t}", "@Override\r\n\tpublic Person getPerson(String personId) {\r\n\t\treturn sql.getPerson(personId);\r\n\t}", "public SamplePerson getPersonById(int id) {\n //TODO\n throw new NotImplementedException();\n }", "public Person findOne(Long id) {\n\t\treturn personRepository.findById(id).get();\n\t}", "public Person findPerson(Long id) {\n\t\treturn personRepository.findById(id).orElse(null); \n\t}", "@Override\n public Person findById(Long idPerson) {\n return personRepository.findById(idPerson).get();\n }", "@Override\n\tpublic Person get(int id) {\n\t\treturn null;\n\t}", "@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }", "public PersonManage queryPersonCnameById(String id) {\n\t\treturn getSqlSession().selectOne(NAME_SPACE+\".findById\",id);\n\t}", "public SickPerson getSickPerson(int id) throws SQLException;", "public Personel findPersonelById(int id) {\n\t\treturn personelDao.findPersonelById(id);\r\n\t}", "PersonModel fetchPerson(String personID) {\n return mPersonMap.get(personID);\n }", "@Override\r\n\tpublic Person read(int id) {\n\t\treturn null;\r\n\t}", "public PeoplePojo findPeopleById(String id) {\n\t\ttry {\n\n\t\t\t// find people\n\t\t\tvar uri = UriComponentsBuilder.fromUriString(url).uriVariables(Map.of(\"id\", id)).build().toUri();\n\t\t\tResponseEntity<PeoplePojo> responseEntity = restTemplate.getForEntity(uri, PeoplePojo.class);\n\n\t\t\treturn responseEntity.getBody();\n\t\t} catch (final Exception e) {\n\t\t\tthrow new BusinessException(\"An error occoured while find people by id: \" + id , e.getCause());\n\t\t}\n\t}", "public User getUserData(String id);", "public Person getPerson(String idOrUrl) {\n return personMap.get(idOrUrl);\n }", "@RequestMapping(value = \"/{id}\", \n\tmethod = RequestMethod.GET,\n\theaders ={\"Accept=application/json,application/xml\"},\n\tproduces={\"application/json\", \"application/xml\"})\n\tpublic @ResponseBody PersonDTO getPerson(@PathVariable(\"id\") int id){\n\t\tif(log.isDebugEnabled()){\n\t\t\tlog.debug(\"going to query person: \" + id );\n\t\t}\n\t\tPerson person = personService.getPerson(id);\n\t\tif(person == null){\n\t\t\tif(log.isDebugEnabled()){\n\t\t\t\tlog.debug(\"can't find person for : \" + id );\n\t\t\t}\n\t\t\tthrow new EntityNotFoundException(\"can't find person for : \" + id);\n\t\t}else{\n\t\t\treturn new PersonDTO(person);\n\t\t}\n\t}", "Person fetchPersonById(Person person);", "public String getFamilyPerson(String familyId);", "public Personne find(int id) {\n\t\tPersonne p= null;\n\t\ttry {\n\t\t\t\tString req = \"SELECT id,nom, prenom, evaluation FROM PERSONNE_1 WHERE ID=?\";\n\t\t\t\tPreparedStatement ps= connect.prepareStatement(req);\n\t\t\t\tps.setInt(1, id);\n\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\tp =new Personne (id, rs.getString(1),rs.getString(2));\n\t\t\t}catch (SQLException e) {e.printStackTrace();}\n\t\t\t\t\n\t\treturn p;\n\t\t\n\t}", "public Person findUserById(Integer id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Person getPerson(Long personId) {\n\r\n\r\n\t\tPerson person = new Person(\"bob\", String.format(\"Unit%d\", personId), \"carol\", \"alice\", \"42\");\r\n\t\tperson.setId(personId);\r\n\t\treturn person;\r\n\t}", "public Individual getIndividualById(Integer id) throws ObjectNotFoundException{\n \tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\t\t\tif (individual.getId().compareTo(id) == 0) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"id\", id.toString());\n\n\t\treturn individual;\n\n }", "public Person getPerson(String personId) throws DataAccessException {\n Person person;\n ResultSet rs = null;\n String sql = \"SELECT * FROM Person WHERE PersonId = ?;\";\n try (PreparedStatement stmt = conn.prepareStatement(sql)) {\n stmt.setString(1, personId);\n rs = stmt.executeQuery();\n if (rs.next()) {\n person = new Person(rs.getString(\"personId\"), rs.getString(\"AssociatedUsername\"),\n rs.getString(\"firstName\"), rs.getString(\"lastName\"), rs.getString(\"gender\"),\n rs.getString(\"father\"), rs.getString(\"mother\"), rs.getString(\"spouse\"));\n if (person.getFatherID() != null && person.getMotherID() != null && person.getSpouseID() != null) {\n if (person.getFatherID().equals(\"\"))\n person.setFatherID(null);\n if (person.getMotherID().equals(\"\"))\n person.setMotherID(null);\n if (person.getSpouseID().equals(\"\"))\n person.setSpouseID(null);\n }\n return person;\n }\n } catch (SQLException e) {\n throw new DataAccessException(\"Error encountered while finding person\");\n }\n\n return null;\n }", "public void getDetail(int id) {\n\t\t\n\t}", "@GetMapping(\"/person/{id}\")\n public Person findById(@PathVariable(\"id\") Long id) {\n Person person = elasticsearchOperations.get(id.toString(), Person.class);\n return person;\n }", "public void findPersonById(int i) {\n\t\t\n\t}", "@GET\n @Path(\"{id}\")\n @Produces(\"application/json\")\n public Response findById(@PathParam(\"id\") Integer id) {\n try {\n Dao dao;\n DynaActionForm form;\n List<DynaActionForm> resultSet;\n \n dao = DaoFactory.getDao(\"Profile\");\n form = new DynaActionForm();\n form.setItem(\"selector\", \"byId\");\n form.setItem(\"id\", id);\n resultSet = dao.select(form);\n \n if(resultSet.size() != 1){\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n else {\n ProfileEntity profile = new ProfileEntity();\n profile.fromMap(resultSet.get(0).getItems());\n return Response.ok(profile).build();\n }\n } catch (Exception ex) {\n Logger.getLogger(ProfileResource.class.getName()).log(Level.SEVERE, null, ex);\n return Response.serverError().build();\n }\n }", "@Override\r\n\tpublic Personne find(int id) {\n\t\treturn null;\r\n\t}", "@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }", "public long getPersonId();", "@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}", "@GetMapping(path = \"{id}\")\n public Optional<Person> getSinglePerson(@PathVariable(\"id\") UUID id ) {\n return personService.getSinglePerson(id);\n }", "public MemberPo findMember(final String id);", "@Override\n\tpublic Person findOne(Integer id) {\n\t\treturn null;\n\t}", "public String getPersonName(int id) throws SQLException {\n\t\tquery = \"SELECT name FROM person WHERE id=\" + id;\n\t\treturn stmt.executeQuery(query).getString(\"name\");\n\t}", "Persona buscarPersonaPorId(Long id) throws Exception;", "public void getByIdemployee(int id){\n\t\tEmployeeDTO employee = getJerseyClient().resource(getBaseUrl() + \"/employee/\"+id).get(EmployeeDTO.class);\n\t\tSystem.out.println(\"Nombre: \"+employee.getName());\n\t\tSystem.out.println(\"Apellido: \"+employee.getSurname());\n\t\tSystem.out.println(\"Direccion: \"+employee.getAddress());\n\t\tSystem.out.println(\"RUC: \"+employee.getRUC());\n\t\tSystem.out.println(\"Telefono: \"+employee.getCellphone());\n\t}", "public People getPeopleById(ObjectId id) {\r\n if (id == null) {\r\n return null;\r\n }\r\n return datastore.getByKey(People.class, new Key<>(People.class, \"people\", id));\r\n }", "@RequestMapping(value=\"/id/{personId}\", method=RequestMethod.GET)\r\n\tpublic ResponseEntity<?> getPersonById(@PathVariable int personId)\r\n\t{\r\n\t\treturn personService.getPersonById(personId);\r\n\r\n\t}", "PatientInfo getPatientInfo(int patientId);", "Accessprofile getById(Integer id);", "List<Person> findByIdAndName(int id,String name);", "UserDetails get(String id);", "public Owner getOwnerInformation(int id){\n\t\tOwner owner = entityManager.find(Owner.class, id); //find Owner by primary key(int id)\n\t\treturn owner;\n\t}", "public Person login(int id) throws NoSuchPersonIdException{\n _person = getPersons().get(id);\n if(_person == null){\n throw new NoSuchPersonIdException(id);\n }\n return _person;\n }", "public Persona getPersonaById(Long id) throws Exception {\n\t\tDAOPersona dao = new DAOPersona();\n\t\tPersona persona = null;\n\t\ttry \n\t\t{\n\t\t\tthis.conn = darConexion();\n\t\t\tdao.setConn(conn);\n\t\t\tpersona = dao.findPersonaById(id);\n\t\t\tif(persona == null)\n\t\t\t\tthrow new Exception(\"La persona con el id = \" + id + \" no se encuentra persistida en la base de datos.\");\t\t\t\t\n\t\t} \n\t\tcatch (SQLException sqlException) {\n\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\tsqlException.printStackTrace();\n\t\t\tthrow sqlException;\n\t\t} \n\t\tcatch (Exception exception) {\n\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\texception.printStackTrace();\n\t\t\tthrow exception;\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tdao.cerrarRecursos();\n\t\t\t\tif(this.conn!=null){\n\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t}\n\t\t}\n\t\treturn persona;\n\t}", "public Researcher getResearcherByID(int id);", "@Transactional(readOnly = true)\n\t@Override\n\tpublic Optional<Persona> findById(Integer id) throws Exception {\n\t\treturn personaRepository.findById(id);\n\t}", "public Employee viewInformation(int id) {\n\t\tEmployee employee = new Employee(); \n\t\ttry{ \n\n\t\t\tString sql = \"select * from employees where id = \"+id; \n\t\t\tConnection connection = DBConnectionUtil.getConnection();\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(sql);\n\n\t\t\tresultSet.next();\n\t\t\temployee.setId(resultSet.getInt(\"employee_id\"));\n\t\t\temployee.setUsername(resultSet.getString(\"username\"));\n\t\t\temployee.setPassword(resultSet.getString(\"password\"));\n\t\t\temployee.setFirstName(resultSet.getString(\"first_name\"));\n\t\t\temployee.setLastName(resultSet.getString(\"last_name\"));\n\t\t\temployee.setEmail(resultSet.getString(\"email\"));\n\t\t\t\n\t\t\treturn employee;\n\t\t\t \n\t\t}catch(Exception e){System.out.println(e);} \n\t\treturn null; \t\t\n\t}", "@CrossOrigin\r\n @RequestMapping(value = USER_DETAIL, method=RequestMethod.GET)\r\n public ResponseEntity<?> getUserDetail(@RequestParam(\"id\") String id) {\r\n\r\n \tcheckLogin();\r\n EmployeeVO emp = employeeService.getEmployeeDetailById(id);\r\n return new ResponseEntity<>(emp, HttpStatus.OK);\r\n }", "@Override\n\tpublic List<Person> search(Integer id) {\n\t\treturn null;\n\t}", "public MemberInfoDTO read(String id) {\n\t\treturn sqlSessionTemplate.selectOne(\"memberInfo.read\", id);\r\n\t}", "public String fetchNameFromId(long id){\n String response = zendeskAPI.makeGetRequest(USER_REQUEST + id + \".json\");\n return JSONParser.parseUserStringForName(response);\n }", "@Override\n\tpublic Personmanagemarticle selectPersonMInfo(String id) {\n\t\treturn personmanagemarticleMapper.selectByPrimaryKey(id);\n\t}", "@Override\n\tpublic Personnes findOne(Long id) {\n\t\treturn null;\n\t}", "@Override\r\n public Profile getProfileById(int id) {\r\n return profileDAO.getProfileById(id);\r\n }", "@RDFSubject(prefix = \"persons:\")\n\tString getId();", "public Person getPerson(String personID) {\r\n\t\treturn this.persons.get(personID);\r\n\t}", "private void getemp( String name,int id ) {\r\n\t\tSystem.out.println(\" name and id\"+name+\" \"+id);\r\n\t}", "@Override\r\n\tpublic List<PersonOwnerInfo> getPersonOwnerInfoByResidentId(int id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}", "@Override\n\tpublic Personne affichagePersonne(int id) {\n\t\treturn dao.affichagePersonne(id);\n\t}", "public Optional<Persona> findById(Long id);", "@Override\n\tpublic List<Map<String, Object>> findInfoById(long id) {\n\t\treturn gwgyDataDao.findInfoById(id);\n\t}", "public static ResultSet getPatientInfo(int id) {\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Patient WHERE ID =?;\");\r\n\t\t\tstmt.setString(1, String.valueOf(id));\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "PeopleDTO findOne(Long id);", "private OwnerBean getOwnerDetails(String query, int id) {\n\t\tResultSet rs=null;\n\t\tOwnerBean owner = new OwnerBean();\n\t\ttry {\n\t\t\t\n\t\t\t//pstmt = con.prepareStatement(query);\n\t\t\tPreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\tpstmt.setInt(1, id);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\towner.setoEmail(rs.getString(\"oEmail\"));\n\t\t\t\towner.setoFirstName(rs.getString(\"oFirstName\"));\n\t\t\t\towner.setoLastName(rs.getString(\"oLastName\"));\n\t\t\t\towner.setoPassword(rs.getString(\"oPassword\"));\n\t\t\t\towner.setoPhoneNo(rs.getLong(\"oPhoneNo\"));\n\t\t\t\towner.setOwnerId(rs.getInt(\"ownerId\"));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn owner;\n\t}", "Request<UserInfoDetailsProxy> findUserInfoDetails(Long id);", "public int getPersonId() {\n return personId;\n }", "public void getProfileInfo(String id) {\n\n new WebRequestTask(this, _handler, Constants.GET_METHOD,\n WebServiceDetails.GET_PROFILE_INFO_PID, true, WebServiceDetails.GET_PROFILE_INFO + id).execute();\n }", "public PersonaDTO consultarPersona(Long idPersona) ;", "public Person selectUpdateUser(String id) {\n\t\tSystem.out.println(\"selectUpdateUser\");\n\t\treturn personDAO.selectUpdateUser(id);\n\t}", "@Override\r\n\tpublic User getDocterById(int id) {\n\t\treturn docterMapper.selById(id);\r\n\t}", "public Individual getIndividual(int id){\n for(Individual individual : individuals){\n if(individual.getId() == id){\n return individual;\n }\n }\n return null;\n }", "@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 String getPersonID(){\n return personID;\n }", "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 }", "abstract AbstractPerson findPersonById(Integer id);", "public Doctor findById(int id);", "@GetMapping(\"/person/{id}\")\n public String personInfo(@PathVariable(\"id\")int id,Model model){\n Optional<Person> person = personRepo.get(id);\n if(person.isPresent()){\n model.addAttribute(\"person\",person.get());\n return \"personInfo\";\n }\n return \"home\";\n }", "@Override\n\tpublic StudentInfo getStudentInfo(String id) {\n\t\treturn userMapper.getStudentInfo(id);\n\t}", "@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }", "@Override\r\n\tpublic Account getDetails(Integer personId) throws Exception {\n\t\t\r\n\t\tAccountEntity ae=entity.find(AccountEntity.class, personId);\r\n\t\t\r\n\t\tAccount a = new Account();\r\n\t\ta.setPersonId(personId);\r\n\t\ta.setDepartment(ae.getDepartment());\r\n\t\ta.setDesg(ae.getDesg());\r\n\t\ta.setSalary(ae.getSalary());\r\n\t\treturn a;\r\n\t}", "public Candidat getUserByid(int id) {\n Candidat candidat = StaticVars.currentCandidat;\n String url = StaticVars.baseURL + \"/userbyid\";\n ConnectionRequest req = new ConnectionRequest();\n req.setUrl(url);\n req.setPost(false);\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n }\n\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return candidat;\n\n }", "@SuppressWarnings({\"unchecked\"})\n Map findNameFromNameAndPhoneticNameByIdPerson(int idPerson);" ]
[ "0.7679283", "0.7659709", "0.7651667", "0.74744946", "0.74592495", "0.73979145", "0.7390366", "0.7375833", "0.7337284", "0.7281456", "0.7249027", "0.72303", "0.71361965", "0.7121876", "0.7118155", "0.71148574", "0.7114028", "0.7113778", "0.70366436", "0.7013764", "0.6992705", "0.69659394", "0.6963759", "0.6962551", "0.6940862", "0.6932009", "0.6849768", "0.6841011", "0.6838453", "0.6823987", "0.6818222", "0.6811047", "0.6806429", "0.6773831", "0.67699444", "0.67596143", "0.6746353", "0.673096", "0.67010283", "0.66960084", "0.66760486", "0.6672272", "0.66634166", "0.66491413", "0.6642863", "0.66420513", "0.6629846", "0.66124654", "0.6592244", "0.6591529", "0.6585144", "0.65720695", "0.656988", "0.65488863", "0.6541882", "0.6533918", "0.6523754", "0.65071255", "0.65030193", "0.6499316", "0.64974344", "0.6486741", "0.6481521", "0.64756256", "0.6466857", "0.6452037", "0.6448031", "0.6434642", "0.642186", "0.6416172", "0.6415168", "0.6410134", "0.6401741", "0.63960284", "0.6387761", "0.6386532", "0.637505", "0.63719624", "0.6371889", "0.6364729", "0.6352111", "0.6350266", "0.6345247", "0.63422894", "0.63372", "0.63346267", "0.6331488", "0.63303363", "0.6327471", "0.63205266", "0.6307442", "0.6303999", "0.6303666", "0.629725", "0.6296916", "0.6296359", "0.62947494", "0.62926483", "0.62905", "0.62866753", "0.6275906" ]
0.0
-1
add the order information POst
@PostMapping(value = "/insertorderdetails") public OrderInfo insertDummyOrder(@RequestBody OrderInfo order) { return new OrderService().addOrder(order); //calling the service }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}", "static void addOrder(orders orders) {\n }", "public void addOrder(Order o) {\n medOrder.add(o);\n //System.out.println(\"in adding order\");\n for(OrderItem oi: o.getOrderItemList())\n {\n MedicineProduct p=oi.getProduct();\n //System.out.println(\"in for oop produscts \"+p);\n Medicine med = this.searchMedicine(p.getProdName());\n if(med!=null){\n int i = med.getAvailQuantity()+oi.getQuantity();\n med.setAvailQuantity(i);\n // System.out.println(\"in adding quntity \"+i);\n \n }\n }\n \n }", "public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }", "public int addOrderDetail(List<OrderDetail> lOrderDetails, Order order);", "@Override\n\tpublic ResultBO addOrder(OrderInfoVO orderInfo) throws Exception {\n\t\tOrderInfoPO po = new OrderInfoPO();\n\t\tBeanUtils.copyProperties(orderInfo, po);\n\t\tpo.setUserId(orderInfo.getUserId());\n\t\tint rs = orderInfoDaoMapper.addOrder(po);\n\t\tif(orderInfo.getOrderDetailList().size() > 0){//根据明细如入库\n\t\t\t//订单明细\n\t\t\tList<OrderDetailPO> orderDetails = new ArrayList<OrderDetailPO>();\n\t\t\tOrderDetailPO odPo = null;\n\t\t\tList<OrderDetailVO> listOrderDetailVO = orderInfo.getOrderDetailList();\n\t\t\tfor(int i = 0 ; i < listOrderDetailVO.size() ; i++){\n\t\t\t\todPo = new OrderDetailPO();\n\t\t\t\tBeanUtils.copyProperties(listOrderDetailVO.get(i), odPo);\n\t\t\t\todPo.setBuyNumber(listOrderDetailVO.get(i).getBuyNumber());\n\t\t\t\torderDetails.add(odPo);\n\t\t\t}\n\t\t\torderInfoDaoMapper.addOrderDetail(orderDetails);\n\t\t}else{//如果明细为空,则根据投注内容\n\t\t\tif(orderInfo.getBetContent().lastIndexOf(SymbolConstants.SEMICOLON) > -1){//存在分号分割\n\t\t\t\tList<OrderDetailPO> orderDetails = new ArrayList<OrderDetailPO>();\n\t\t\t\tString content = orderInfo.getBetContent().substring(orderInfo.getBetContent().lastIndexOf(SymbolConstants.UP_CAP)+1);\n\t\t\t\tOrderDetailPO odPo = null;\n\t\t\t\tfor(String numStr : content.split(SymbolConstants.SEMICOLON)){\n\t\t\t\t\todPo = new OrderDetailPO();\n\t\t\t\t\todPo.setBuyNumber(Integer.parseInt(numStr));\n\t\t\t\t\torderDetails.add(odPo);\n\t\t\t\t}\n\t\t\t\torderInfoDaoMapper.addOrderDetail(orderDetails);\n\t\t\t}\n\t\t}\n\t\treturn ResultBO.ok(rs);\n\t}", "@Override\n public void addOrder(Order order) throws PersistenceException{\n Order newOrder = orders.put(order.getOrderNumber(), order);\n write(order.getOrderDate());\n }", "public void addOrder(Order order) {\n orders.add(order);\n }", "@Override\n public void addOrder(Order o) {\n orders.add(o);\n }", "public void AddOrder(Shoporder model) {\n\t\tmapper.AddOrder(model);\n\t}", "void add(Order o);", "@Override\n\tpublic void addOrder(Order order) {\n\t\t\n\t em.getTransaction().begin();\n\t\t\tem.persist(order);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t\temf.close();\n\t \n\t}", "public void addOrders() {\n\t\torders.stream()\n\t\t\t.forEach(db::store);\n\t}", "public void saveOrder(Order order) {\n Client client = clientService.findBySecurityNumber(order.getClient().getSecurityNumber());\n Product product = productService.findByBarcode(order.getProduct().getBarcode());\n order.setClient(client);\n order.setProduct(product);\n if (isClientPresent(order) && isProductPresent(order)) {\n do {\n currencies = parseCurrencies();\n } while (currencies.isEmpty());\n\n generateTransactionDate(order);\n\n// Client client = ClientServiceImpl.getClientRepresentationMap().get(order.getClient());\n// Product product = ProductServiceImpl.getProductRepresentationMap().get(order.getProduct());\n convertPrice(order);\n orders.add(order);\n orderedClients.add(client);\n orderedProducts.add(product);\n }\n }", "public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }", "public void addSimpleOrder(Order o) {\n DatabaseConnection connection = new DatabaseConnection();\r\n if(connection.openConnection())\r\n {\r\n if(o.getType() == 1) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO drank_order (`TafelID`, `DrankID`) VALUES(\" + o.getTafelID() + \",\" + o.getID() + \");\");\r\n }\r\n\r\n else if(o.getType() == 0) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO gerecht_order (`TafelID`, `GerechtID`) VALUES(\" + o.getTafelID() + \",\" + o.getID() + \");\");\r\n }\r\n }\r\n\r\n connection.closeConnection();\r\n }", "public void addNewOrder(Order order) {\n\t\tnewOrders.add(order);\n\t}", "private static void writeToOrder() throws IOException {\n FileWriter write = new FileWriter(path5, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Order> orders = Inventory.getOrderHistory();\n for (int i = 0; i < orders.size(); i++) {\n Order o = (Order) orders.get(i);\n\n String orderNum = String.valueOf(o.getOrderNumber());\n String UPC = String.valueOf(o.getUpc());\n String productName = o.getProductName();\n String distName = o.getDistributorName();\n String cost = String.valueOf(o.getCost());\n String quantity = String.valueOf(o.getQuantity());\n String isProcesed = String.valueOf(o.isProcessed());\n\n textLine =\n orderNum + \", \" + UPC + \", \" + quantity + \",\" + productName + \", \" + distName + \", \" + cost\n + \", \" + isProcesed;\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n print_line.close();\n\n }", "public void add(Order o) {\r\n\t\tthis.orders.add(o);\r\n\t}", "public void addToOrder()\n {\n\n if ( donutTypeComboBox.getSelectionModel().isEmpty() || flavorComboBox.getSelectionModel().isEmpty() )\n {\n Popup.DisplayError(\"Must select donut type AND donut flavor.\");\n return;\n } else\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity must be greater than 0.\");\n return;\n } else\n {\n for ( int i = 0; i < quantity; i++ )\n {\n Donut donut = new Donut(donutTypeComboBox.getSelectionModel().getSelectedIndex(), flavorComboBox.getSelectionModel().getSelectedIndex());\n mainMenuController.getCurrentOrder().add(donut);\n }\n if ( quantity == 1 )\n {\n Popup.Display(\"Donuts\", \"Donut has been added to the current order.\");\n } else\n {\n Popup.Display(\"Donuts\", \"Donuts have been added to the current order.\");\n }\n\n\n donutTypeComboBox.getSelectionModel().clearSelection();\n flavorComboBox.getSelectionModel().clearSelection();\n quantityTextField.setText(\"0\");\n subtotalTextField.setText(\"$0.00\");\n }\n }\n\n\n }", "public void addOrder(Order o) throws SQLException\r\n {\r\n String sqlQuery = \r\n \"INSERT INTO orders (custname, tablenumber, foodname, beveragename, served, billed) VALUES (\" +\r\n \"'\" + o.getCustomerName() + \"', \" + \r\n o.getTable() + \", \" + \r\n \"'\" + o.getFood() + \"', \" +\r\n \"'\" + o.getBeverage() + \"', \" + \r\n o.isServed() + \", \" +\r\n o.isBilled() + \")\";\r\n myStmt.executeUpdate(sqlQuery);\r\n }", "@POST\r\n\t@Produces({\"application/xml\" , \"application/json\"})\r\n\t@Path(\"/order\")\r\n\tpublic String addOrder(OrderRequest orderRequest) {\n\t\tOrderActivity ordActivity = new OrderActivity();\r\n\t\treturn ordActivity.addOrder(orderRequest.getOrderDate(),orderRequest.getTotalPrice(), orderRequest.getProductOrder(),orderRequest.getCustomerEmail());\r\n\t}", "public void addOrderToFile(Order order) {\n\n try {\n dao.addToFile(order, date);\n\n } catch (FlooringMasteryDaoException e) {\n\n }\n }", "public void addOrder(Order newOrder) {\n\t\tif ( units.containsKey(newOrder.getPerson().hashCode()) && units.get(newOrder.getPerson().hashCode()).length > 0 ) {\n\t\t\tunits.put(newOrder.getPerson().hashCode(), addUnitsRecord(units.get(newOrder.getPerson().hashCode()), newOrder));\n\t\t} else {\n\t\t\tOrder[] eq = new Order[3];\n\t\t\tunits.put(newOrder.getPerson().hashCode(), addUnitsRecord(eq, newOrder));\n\t\t}\n\t}", "public void AddToFinalOrder(Order_Detail_Object order_detail_object) {\n\n g = (Globals) getApplication();\n // get product id of particular product from product hashmap\n String ProductId = g.getProductsHashMap().get(order_detail_object.getItem()).getID();\n if(addToCart_flag) {\n // check condition that contains ProductId\n if (g.getFinal_order().containsKey(ProductId)) {\n\n // get quantity from g.getFinal_order() into int variable\n int qty = Integer.parseInt(g.getFinal_order().get(ProductId).getQuantity());\n // increment qty\n qty = qty + 1;\n // set quantity into final_order of hashmap\n g.getFinal_order().get(ProductId).setQuantity(String.valueOf(qty));\n } else {\n // put id and order_detail_object from globals\n g.getFinal_order().put(ProductId, order_detail_object);\n }\n } else{\n product_ids_for_list.add(ProductId);\n }\n }", "public static void addOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Adding ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tItemManager itemManager = new ItemManager();\n\t\tList listOfItems = itemManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tItem item = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfItems.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no items!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to add the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfItems.size(); i++) {\n\t\t\t\t\titem = (Item) listOfItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \" + item.getId()\n\t\t\t\t\t\t\t+ \" | Name: \" + item.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ item.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\titem = (Item) listOfItems.get(choice - 1);\n\n\t\t\t\t\torderedItem = new OrderedItem();\n\t\t\t\t\torderedItem.setItem(item);\n\t\t\t\t\torderedItem.setOrder(order);\n\t\t\t\t\torderedItem.setPrice(item.getPrice());\n\n\t\t\t\t\torder.addOrderedItem(orderedItem);\n\n\t\t\t\t\tcheck = orderedItemManager.createOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK UPDATE\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Item added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out.println(\"Failed to add item into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of adding items************\");\n\t}", "Order addOrder(String orderId, Order order) throws OrderBookOrderException;", "public void addOrder(Order order) {\n\t\tPreparedStatement addSQL = null;\n\t\tSystem.out.println(\"Creating order..\");\n\t\ttry {\n\n\t\t\taddSQL = getConnection()\n\t\t\t\t\t.prepareStatement(\"INSERT INTO orders(code, name, quantity) values(?,?,?);\",\n\t\t\t\t\t\t\tStatement.RETURN_GENERATED_KEYS);\n\n\t\t\taddSQL.setInt(1, order.getCode());\n\t\t\taddSQL.setString(2, order.getName());\n\t\t\taddSQL.setInt(3, order.getQuantity());\n\n\t\t\tint rows = addSQL.executeUpdate();\n\n\t\t\tif (rows == 0) {\n\t\t\t\tSystem.out.println(\"Failed to insert order into database\");\n\t\t\t}\n\n\t\t\ttry (ResultSet generatedID = addSQL.getGeneratedKeys()) {\n\t\t\t\tif (generatedID.next()) {\n\t\t\t\t\torder.setID(generatedID.getInt(1));\n\t\t\t\t\tSystem.out.println(\"Order created with id: \" + order.getID());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Failed to create order.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (addSQL != null) {\n\t\t\t\ttry {\n\t\t\t\t\taddSQL.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void createOrder(Shop shop, FileManager fileManager, ArrayList<Tool> toolList,\n ArrayList<Integer> quantityList) {\n if (toolList.size() != 0) {\n if (shop.createOrderOrAppendOrder(shop, toolList, quantityList, fileManager)) {\n System.out.println(\"Successfully added and/or appended order to orders.txt!\");\n } else {\n System.out.println(\"ERROR: Could not edit orders.txt.\");\n }\n }\n }", "public void addOrder(Order order) {\r\n\t\torders.put(order.getOrderID(), order);\r\n\t}", "public void setOrder(Order order){\n this.order = order;\n }", "public void onOrderAdded(OrderEntry orderEntry);", "void newOrder();", "public void addToOrderList(Order order) {\n this.orderListMap.put(order.getOrderID(), order);\n OrderIO.setOrderIO(this.orderListMap);\n }", "private void addOrderDB(){\n OrganiseOrder organiser = new OrganiseOrder();\n Order finalisedOrder = organiser.Organise(order);\n // Generate the order id\n String id = UUID.randomUUID().toString();\n // Set the name of the order to the generated id\n finalisedOrder.setName(id);\n\n // Get the firebase reference\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"Orders\").child(id);\n\n // Update the order\n ref.setValue(finalisedOrder);\n }", "public void add( Order item ) {\n\t\tsuper.internalAdd(item);\n\t}", "public void process(PurchaseOrder po)\n {\n File file = new File(path + \"/\" + ORDERS_XML);\n \n try\n {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource();\n is.setCharacterStream(new FileReader(file));\n\n Document doc = db.parse(is);\n\n Element root = doc.getDocumentElement();\n Element e = doc.createElement(\"order\");\n\n // Convert the purchase order to an XML format\n String keys[] = {\"orderNum\",\"customerRef\",\"product\",\"quantity\",\"unitPrice\"};\n String values[] = {Integer.toString(po.getOrderNum()), po.getCustomerRef(), po.getProduct().getProductType(), Integer.toString(po.getQuantity()), Float.toString(po.getUnitPrice())};\n \n for(int i=0;i<keys.length;i++)\n {\n Element tmp = doc.createElement(keys[i]);\n tmp.setTextContent(values[i]);\n e.appendChild(tmp);\n }\n \n // Set the status to submitted\n Element status = doc.createElement(\"status\");\n status.setTextContent(\"submitted\");\n e.appendChild(status);\n\n // Set the order total\n Element total = doc.createElement(\"orderTotal\");\n float orderTotal = po.getQuantity() * po.getUnitPrice();\n total.setTextContent(Float.toString(orderTotal));\n e.appendChild(total);\n\n // Write the content all as a new element in the root\n root.appendChild(e);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer m = tf.newTransformer();\n DOMSource source = new DOMSource(root);\n StreamResult result = new StreamResult(file);\n m.transform(source, result);\n\n }\n catch(Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "@Override\n\tpublic boolean addOrder(OrderDO orderDO) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic int addOrder(Order order, List<OrderItem> OrderItem, OrderShipping orderShipping) {\n\t\treturn odi.addOrder(order, OrderItem, orderShipping);\r\n\t}", "@Override\r\n\tpublic void insertOrderDetail(OrderDetailVO vo) throws Exception {\n\t\tsqlSession.insert(namespaceOrderDetail+\".addOrderDetail\",vo);\r\n\t}", "@Override\n public Order addUpdateOrder(Order order) throws ChangeOrderException {\n\n if (!orderExists(order.getOrderNumber())) {\n List<Order> newOrder = new ArrayList<>();\n order.setOrderNumber(Integer.toString(currentOrderNumber + 1));\n order.setOrderStatus(false);\n newOrder.add(order);\n\n order.recalculateData();\n orderMap.put(order.getOrderNumber(), newOrder);\n\n if (!orderMap.get(order.getOrderNumber()).get(0).equals(order)) {\n currentOrderNumber = currentOrderNumber - 1;\n order.setOrderStatus(false);\n order.setOrderNumber(null);\n throw new ChangeOrderException(\"Problem adding new order... \");\n }\n\n // Try to write the changes to file. If we fail, remove the order\n // from the map...0\n try {\n writeSingleOrderToDirectory(newOrder);\n } catch (FileIOException | BackupFileException e) {\n orderMap.remove(order.getOrderNumber());\n throw new ChangeOrderException(\"Problem adding new order... \");\n\n }\n currentOrderNumber = currentOrderNumber + 1;\n\n } else {\n\n // Order already exists, now we append it instead of adding a new order\n List<Order> oldOrder = orderMap.get(order.getOrderNumber());\n order.recalculateData();\n oldOrder.add(0, order);\n orderMap.put(order.getOrderNumber(), oldOrder);\n\n if (orderMap.get(order.getOrderNumber()).get(0) != order) {\n oldOrder.remove(0);\n orderMap.put(order.getOrderNumber(), oldOrder);\n throw new ChangeOrderException(\"Problem adding new order... \");\n }\n\n // Try to write the changes to file. If we fail, remove the order\n // from the map...\n try {\n writeSingleOrderToDirectory(oldOrder);\n } catch (FileIOException | BackupFileException e) {\n oldOrder.remove(0);\n orderMap.put(order.getOrderNumber(), oldOrder);\n orderMap.remove(order.getOrderNumber());\n throw new ChangeOrderException(\"Problem adding new order... \");\n }\n\n }\n\n return order;\n }", "public void placeOrder(TradeOrder order) {\r\n\t\tString msg = \"New order: \";\r\n\t\tif (order.isBuy()) {\r\n\t\t\tbuy.add(order);\r\n\t\t\tmsg += \"Buy \";\r\n\r\n\t\t}\r\n\r\n\t\tif (order.isSell()) {\r\n\t\t\tsell.add(order);\r\n\t\t\tmsg += \"Sell \";\r\n\t\t}\r\n\r\n\t\tmsg += this.getSymbol() + \" (\" + this.getName() + \")\";\r\n\t\tmsg += \"\\n\" + order.getShares() + \" shares at \";\r\n\r\n\t\tif (order.isLimit())\r\n\t\t\tmsg += money.format(order.getPrice());\r\n\t\telse\r\n\t\t\tmsg += \"market\";\r\n\t\tdayVolume += order.getShares();\r\n\t\torder.getTrader().receiveMessage(msg);\r\n\t\t\r\n\t}", "static void addCustomerOrder() {\n\n Customer newCustomer = new Customer(); // create new customer\n\n Product orderedProduct; // initialise ordered product variable\n\n int quantity; // set quantity to zero\n\n String name = Validate.readString(ASK_CST_NAME); // Asks for name of the customer\n\n newCustomer.setName(name); // stores name of the customer\n\n String address = Validate.readString(ASK_CST_ADDRESS); // Asks for address of the customer\n\n newCustomer.setAddress(address); // stores address of the customer\n\n customerList.add(newCustomer); // add new customer to the customerList\n\n int orderProductID = -2; // initialize orderProductID\n\n while (orderProductID != -1) { // keep looping until user enters -1\n\n orderProductID = Validate.readInt(ASK_ORDER_PRODUCTID); // ask for product ID of product to be ordered\n\n if(orderProductID != -1) { // keep looping until user enters -1\n\n quantity = Validate.readInt(ASK_ORDER_QUANTITY); // ask for the quantity of the order\n\n orderedProduct = ProductDB.returnProduct(orderProductID); // Search product DB for product by product ID number, return and store as orderedProduct\n\n Order newOrder = new Order(); // create new order for customer\n\n newOrder.addOrder(orderedProduct, quantity); // add the new order details and quantity to the new order\n\n newCustomer.addOrder(newOrder); // add new order to customer\n\n System.out.println(\"You ordered \" + orderedProduct.getName() + \", and the quantity ordered is \" + quantity); // print order\n }\n }\n }", "public void addOrder(HashMap<Integer, Integer> orders, int manager_id, int orderMethod, Object userObject) {\n HashMap<Integer, Product> products = new HashMap<Integer, Product>();\n double order_totalprice = 0;\n double order_price = 0;\n try {\n DBConnect connectionTester = new DBConnect();\n connectionTester.testConnection();\n\n for (int product_id : orders.keySet()) {\n\n String sql = \"select * from product where idproduct = ?\";\n PreparedStatement prpStmt = connectionTester.connection.prepareStatement(sql);\n prpStmt.setInt(1, product_id);\n\n // Not only is information requested, information like the total price is also processed\n ResultSet result = prpStmt.executeQuery();\n while (result.next()) {\n int id_product = result.getInt(\"idproduct\");\n String product_name = result.getString(\"product_name\");\n double price = result.getDouble(\"price\");\n int in_stock = result.getInt(\"in_stock\");\n String amount = result.getString(\"amount\");\n int ordered_amount = orders.get(product_id);\n if (orderMethod == 2 || orderMethod == 3) {\n order_price = result.getDouble(\"price\") * ordered_amount;\n } else if (orderMethod == 1) {\n order_price = result.getDouble(\"price\") * ordered_amount - 0.10;\n }\n\n // Calling the builder to store the information in a class\n products.put(id_product, new Product.Builder(id_product)\n .productName(product_name)\n .productPrice(price)\n .productInStock(in_stock)\n .productAmount(amount)\n .productOrderedAmount(ordered_amount)\n .productOrderPrice(order_price)\n .build());\n order_totalprice = order_totalprice + order_price;\n }\n }\n\n } catch (SQLException err) {\n System.out.println(err.getMessage());\n }\n\n reviewOrder(products, order_totalprice, manager_id, orderMethod, userObject);\n }", "private void setOrderField() \n\t{\n\t\tString size = currentOrder.get(\"size\");\n\t\tString temperature = currentOrder.get(\"drinkTemperature\");\n\t\tString drinkName = currentOrder.get(\"name\");\n\t\t\n\t\torderField.setText(\"Order Status: \" + size + \" \" + temperature + \" \" + drinkName);\n\t}", "public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}", "@Override\n\tpublic int update(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}", "Order addOrder(String orderNumber, Order order)\n throws FlooringMasteryPersistenceException;", "@Override\n\tpublic ResultMessage add(PaymentOrderPO po) {\n\t\tString sql=\"insert into paymentlist(ID,date,amount,payer,bankaccount,entry,note)values(?,?,?,?,?,?,?)\";\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tstmt.setString(1, po.getID());\n\t\t\tstmt.setString(2, po.getDate());\n\t\t\tstmt.setDouble(3, po.getAmount());\n\t\t\tstmt.setString(4, po.getPayer());\n\t\t\tstmt.setString(5, po.getBankAccount());\n\t\t\tstmt.setString(6, po.getEntry());\n\t\t\tstmt.setString(7, po.getNote());\n\t\t\tstmt.executeUpdate();\n\t\t\treturn ResultMessage.Success;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn ResultMessage.Fail;\n\t\t}\n\t}", "public static void addToOrder(ArrayList order){\n String itemOrdered = orderItem();\n switch (itemOrdered) {\n case \"D\":\n order.add(orderDrink());\n break;\n case \"B\":\n order.add(orderBurger());\n break;\n case \"P\":\n order.add(orderPizza());\n break;\n default:\n break;\n }\n }", "@Override\n\tpublic void insertOrder(Orders order) throws SQLException {\n\t\tConnection conn = null;\n PreparedStatement stmt = null;\n String sql=\"INSERT INTO orders(orderName,orderAddress,orderPhone,orderNumber,orderTime,bookName,orderMemo) VALUES(?,?,?,?,?,?,?)\";\n try {\n conn = DBCPUtils.getConnection();\n stmt = conn.prepareStatement(sql);\n stmt.setString(1,order.getOrderName());\n stmt.setString(2,order.getOrderAddress());\n stmt.setString(3,order.getOrderPhone());\n stmt.setInt(4,order.getOrderNumber());\n stmt.setString(5,order.getOrderTime());\n stmt.setString(6,order.getBookName());\n stmt.setString(7,order.getOrderMemo());\n stmt.executeUpdate();\n \n } catch (SQLException e) {\n e.printStackTrace();\n }finally{\n DBCPUtils.releaseConnection(conn, stmt, null); \n }\n\t\t\n\t\t\n\t}", "@Test\n public void addOrderTest() {\n Orders orders = new Orders();\n orders.addOrder(order);\n\n Order test = orders.orders.get(0);\n String[] itemTest = test.getItems();\n String[] priceTest = test.getPrices();\n\n assertEquals(items, itemTest);\n assertEquals(prices, priceTest);\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "@Test\n public void testAddOrder() {\n Order addedOrder = new Order();\n\n addedOrder.setOrderNumber(1);\n addedOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n addedOrder.setCustomer(\"Add Test\");\n addedOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n addedOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n addedOrder.setArea(new BigDecimal(\"100.00\"));\n addedOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n addedOrder.setLaborCost(new BigDecimal(\"475.00\"));\n addedOrder.setTaxCost(new BigDecimal(\"61.88\"));\n addedOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(addedOrder);\n\n Order daoOrder = dao.getAllOrders().get(0);\n\n assertEquals(addedOrder, daoOrder);\n }", "@Override\r\n\tpublic int addProduct(ClosedOrder co) {\n\t\tint flag=0;\r\n\t\ttry {\r\n\t\t\tString sql=\"INSERT INTO closedorder VALUES(?,?,?,?,?,?,?,?,?,?)\";\r\n\t\t\tflag= qr.update(sql,co.getClosedorder_id(),co.getClosedorder_name(),co.getClosedorder_payId(),co.getClosedorder_location(),co.getClosedorder_picturename(),co.getClosedorder_price(),co.getClosedorder_count(),co.getClosedorder_closetime(),co.getClosedorderproduct_orderId(),co.getShoppingcart_orderStatus());\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\t\treturn flag;\r\n\t}", "@Override\r\n\tpublic int add(OrderDetailBean detail) {\n\t\treturn dao.add(detail);\r\n\t}", "public void addPendingOrder(Order order) {\n\t\tmOrders.add(order);\n\t}", "@Override\n\tpublic ResponseInfo addPurchaseorderinfo(Map<String, Object> map) {\n\t\tResponseInfo info = new ResponseInfo();\n\t\tint result = purchaseDao.addPurchaseorderinfo(map);\n\t\tSystem.out.println(map.get(\"Id\"));\n\t\t\tif(result > 0) {\n\t\t\t\t\tinfo.setMessage(\"操作成功\");\n\t\t\t\t\tinfo.setCode(\"success\");\n\t\t\t\t}else {\n\t\t\t\t\tinfo.setMessage(\"操作失败\");\n\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t}\n\t\treturn info;\n\t}", "private void addOrder(String orderNumber, String barcodeNumber, String customNumber, String customerName, String orderDate) {\n\t\t_database = this.getWritableDatabase();\n\t \n\t ContentValues values = new ContentValues();\n\t \n\t values.put(ORDER_NUMBER, orderNumber); \n\t \n\t if(barcodeNumber.length()>0) {\n\t \tvalues.put(BARCODE_NUMBER, barcodeNumber); \n\t }\n\t \n\t values.put(CUSTOMER_NUMBER, customNumber); \n\t values.put(CUSTOMER_NAME, customerName); \n\t values.put(ORDER_DATE, orderDate); \n\t \n\t // Inserting Row\n\t _database.insertOrThrow(ORDER_RECORDS_TABLE, null, values);\n\t}", "public void setOrder(List<Order> order) {\n this.order = order;\n }", "public void add(final ItemOrder theOrder) {\r\n Objects.requireNonNull(theOrder, \"theOrder can't be null!\");\r\n myShoppingCart.put(theOrder.getItem(), theOrder.calculateOrderTotal());\r\n }", "void order(Pizza pizza) {\n order.add(pizza);\n }", "public int addOrder(Order order, int diff) throws Exception, SQLException {\n PreparedStatement ps = conn.prepareStatement(\"insert into orders(status, cid, total, createdate) values(?,?,?,NOW())\", Statement.RETURN_GENERATED_KEYS);\n ps.setInt(1, order.getStatus());\n ps.setInt(2, order.getCid());\n ps.setFloat(3, order.getTotal());\n //ps.setInt(4, diff);\n int rows = ps.executeUpdate();\n if (rows == 1) {\n ResultSet rs = ps.getGeneratedKeys();\n rs.next();\n ps = conn.prepareStatement(\"update orders set shipdate = DATE_ADD(NOW(), INTERVAL ? HOUR) where oid = ?\");\n ps.setInt(1, diff);\n ps.setInt(2, rs.getInt(1));\n ps.executeUpdate();\n return rs.getInt(1);\n }\n throw new Exception(\"order id mismatch\");\n }", "@Override\r\n\tpublic void insertOrder(OrderVO vo) throws Exception {\n\t\tsqlSession.insert(namespaceOrder+\".createOrder\",vo);\r\n\t}", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public Integer add(Order order) {\n\t\treturn orderDAO.add(order);\n\t}", "private void addOrder() {\r\n // Variables\r\n String date = null, cust_email = null, cust_location = null, product_id = null;\r\n int quantity = 0;\r\n\r\n // Date-Time Format \"YYYY-MM-DD\"\r\n DateTimeFormatter dateFormatter = DateTimeFormatter.ISO_LOCAL_DATE;\r\n boolean date_Valid = false;\r\n\r\n // Separator for user readability\r\n String s = \"----------------------------------------\"; // separator\r\n\r\n boolean user_confirmed = false;\r\n while (!user_confirmed) {\r\n\r\n // module header\r\n System.out.println(s);\r\n System.out.println(\"Adding Order: \");\r\n System.out.println(s);\r\n\r\n // Getting the user date for entry\r\n System.out.print(\"Enter Date(YYYY-MM-DD): \");\r\n date = console.next();\r\n //This while loop will check if the date is valid\r\n while (!date_Valid) {\r\n try {\r\n LocalDate.parse(date, dateFormatter);\r\n System.out.println(\"Validated Date\");\r\n date_Valid = true;\r\n } catch (DateTimeParseException e) {\r\n date_Valid = false;\r\n System.out.println(\"Invalid Date\");\r\n System.out.print(\"Enter valid date(YYYY-MM-DD):\");\r\n date = console.next();\r\n }\r\n }\r\n\r\n // Getting user email\r\n System.out.print(\"Enter customer email: \");\r\n cust_email = console.next();\r\n boolean flag = false;\r\n int countr = 0, countd = 0;\r\n while(!flag) {\r\n //This loop will check if the email is valid\r\n for (int i = 0; i < cust_email.length(); i++) {\r\n if (cust_email.charAt(i) == '@') {\r\n countr++;\r\n if (countr > 1) {\r\n flag = false;\r\n break;\r\n }\r\n if (i >= 1) flag = true;\r\n else {\r\n flag = false;\r\n break;\r\n }\r\n\r\n }\r\n if (cust_email.charAt(i) == '.') {\r\n countd++;\r\n if (countd > 1) {\r\n flag = false;\r\n break;\r\n }\r\n if (i >= 3) flag = true;\r\n else {\r\n flag = false;\r\n break;\r\n }\r\n }\r\n if (cust_email.indexOf(\".\") - cust_email.indexOf(\"@\") >= 2) {\r\n flag = true;\r\n }\r\n if (!flag) break;\r\n }\r\n if (flag && cust_email.length() >= 5) {\r\n System.out.println(\"Validated Email\");\r\n break;\r\n } else {\r\n System.out.println(\"Invalid Email\");\r\n }\r\n }\r\n\r\n //Validate the customer ZIP code\r\n System.out.print(\"Enter ZIP Code: \");\r\n cust_location = console.next();\r\n while((cust_location.length()) != 5){\r\n System.out.println(\"ZIP Code must be 5 characters long\");\r\n System.out.print(\"Enter ZIP Code: \");\r\n cust_location = console.next();\r\n }\r\n\r\n // Validate product id\r\n System.out.print(\"Enter Product ID: \");\r\n product_id = console.next();\r\n while ((product_id.length()) != 12) {\r\n System.out.println(\"Product ID must be 12 characters long!\");\r\n System.out.print(\"Enter Product ID: \");\r\n product_id = console.next();\r\n }\r\n\r\n // Validate quantity\r\n System.out.print(\"Enter Quantity: \");\r\n while (!console.hasNextInt()) {\r\n System.out.println(\"Quantity must be a whole number!\");\r\n System.out.print(\"Enter Quantity: \");\r\n console.next();\r\n }\r\n quantity = console.nextInt();\r\n\r\n //Confirming Entries\r\n System.out.println(s);\r\n System.out.println(\"You entered the following values:\");\r\n System.out.println(s);\r\n System.out.printf(\"%-11s %-20s %-20s %-18s %-11s\\n\", \"|DATE:|\", \"|CUSTOMER EMAIL:|\", \"|CUSTOMER LOCATION:|\", \"|PRODUCT ID:|\", \"|QUANTITY:|\");\r\n System.out.printf(\"%-11s %-20s %-20s %-18s %11s\\n\", date, cust_email, cust_location, product_id, quantity);\r\n System.out.println(s);\r\n System.out.println(\"Is this correct?\");\r\n System.out.print(\"Type 'yes' to add this record, type 'no' to start over: \");\r\n String inp = console.next();\r\n boolean validated = false;\r\n while (validated == false) {\r\n if (inp.toLowerCase().equals(\"yes\")) {\r\n validated = true;\r\n user_confirmed = true;\r\n }\r\n else if (inp.toLowerCase().equals(\"no\")) {\r\n validated = true;\r\n\r\n }\r\n else {\r\n System.out.print(\"Invalid response. Please type 'yes' or 'no': \");\r\n inp = console.next();\r\n }\r\n }\r\n }\r\n OrderItem newItem = new OrderItem(date, cust_email, cust_location, product_id, quantity);\r\n orderInfo.add(newItem);\r\n\r\n // alert user and get next step\r\n System.out.println(s);\r\n System.out.println(\"Entry added to Data Base!\");\r\n System.out.println(s);\r\n System.out.println(\"Do you want to add another entry?\");\r\n System.out.print(\"Type 'yes' to add another entry, or 'no' to exit to main menu: \");\r\n String inp = console.next();\r\n boolean valid = false;\r\n while (valid == false) {\r\n if (inp.toLowerCase().equals(\"yes\")) {\r\n valid = true;\r\n addOrder();\r\n } else if (inp.toLowerCase().equals(\"no\")) {\r\n valid = true; // possibly direct to main menu later\r\n } else {\r\n System.out.print(\"Invalid response. Please type 'yes' or 'no': \");\r\n inp = console.next();\r\n }\r\n }\r\n }", "public void addOrderToFile(Order order, LocalDate date) {\n\n try {\n\n dao.addToFile(order, date);\n\n } catch (FlooringMasteryDaoException e) {\n\n }\n }", "private void getOrderFromDatabase() {\r\n Cursor cursor = helper.getOrderMoreDetails(orderId);\r\n cursor.moveToFirst();\r\n try {\r\n JSONObject senderObject = new JSONObject(cursor.getString(0));\r\n sender = senderObject.getString(\"name\");\r\n JSONObject receiverObject = new JSONObject(cursor.getString(1));\r\n receiver = receiverObject.getString(\"name\");\r\n JSONObject departureObject = new JSONObject(cursor.getString(2));\r\n if (departureObject.getString(\"type\").equals(\"SpecifyAddress\"))\r\n departure = departureObject.getString(\"long_name\");\r\n else\r\n departure = departureObject.getString(\"short_name\");\r\n JSONObject destinationObject = new JSONObject(cursor.getString(3));\r\n if (destinationObject.getString(\"type\").equals(\"SpecifyAddress\"))\r\n destination = destinationObject.getString(\"long_name\");\r\n else\r\n destination = destinationObject.getString(\"short_name\");\r\n numberOfGoods = cursor.getInt(4);\r\n orderTime = cursor.getString(5);\r\n state = cursor.getString(6);\r\n JSONArray goodIdArray = new JSONArray(cursor.getString(7));\r\n goodId = new String[goodIdArray.length()];\r\n for (int i = 0; i < goodIdArray.length(); i++) {\r\n goodId[i] = goodIdArray.getString(i);\r\n }\r\n orderType = cursor.getString(8);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n cursor.close();\r\n }", "@Override\n\tpublic void cr_Order(String id, String name, String dizi, String date,\n\t\t\tFloat cost, int status, int type, String serilNumber) {\n\t\tConnection lianjie = super.lianjie();\n\t\tString sql=\"insert into easybuy_order values(null,?,?,?,?,?,?,?,?)\";\n\t\tPreparedStatement pr=null;\n\t\ttry {\n\t\t\tpr=lianjie.prepareStatement(sql);\n\t\t\tpr.setString(1, id);\n\t\t\tpr.setString(2, name);\n\t\t\tpr.setString(3, dizi);\n\t\t\tpr.setString(4, date);\n\t\t\tpr.setFloat(5, cost);\n\t\t\tpr.setInt(6, status);\n\t\t\tpr.setInt(7, type);\n\t\t\tpr.setString(8, serilNumber);\n\t\t\tpr.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsuper.guanbi(null, pr, lianjie);\n\t}", "private void showOrderDetails(Order order) {\n\t\tString status, shownOption;\n\n\t\tif (order.getStatus()) {\n\t\t\tstatus = new String();\n\t\t\tstatus = \"Processed\";\n\n\t\t\tshownOption = new String();\n\t\t\tshownOption = \"Return\";\n\t\t}\n\t\telse {\n\t\t\tstatus = new String();\n\t\t\tshownOption = new String();\n\n\t\t\tstatus = \"Pending\";\n\t\t\tshownOption = \"Set Processed\";\n\t\t}\n\n\t\tString orderDetailsMessage = \"ORDER DATE : \" + order.getDate();\n\t\torderDetailsMessage += \"\\nSTATUS: \" + status;\n\t\torderDetailsMessage += \"\\nITEMS: \";\n\t\tfor (StockItem stockItem : order.getOrderEntryList()) {\n\t\t\torderDetailsMessage += \"\\n \" + stockItem.getQuantity() + \" \\t x \\t \"\n\t\t\t\t\t+ stockItem.getProduct().getProductName() + \" \\t\\t\\t Subtotal: \\t\\u20ac\"\n\t\t\t\t\t+ (stockItem.getProduct().getRetailPrice() * stockItem.getQuantity());\n\t\t}\n\n\t\torderDetailsMessage += \"\\n\\nCUSTOMER ID: \" + order.getPerson().getId()\n\t\t\t\t+ \"\\nPersonal Details: \";\n\t\torderDetailsMessage += \"\\n Name: \\t\" + order.getPerson().getName();\n\t\torderDetailsMessage += \"\\n Phone: \\t\" + order.getPerson().getContactNumber();\n\t\torderDetailsMessage += \"\\n Address: \\t\" + order.getPerson().getAddress();\n\t\torderDetailsMessage += \"\\n\\nThe total order value is \\t\\u20ac\"\n\t\t\t\t+ order.getGrandTotalOfOrder() + \"\\n\";\n\n\t\tObject[] options = { \"OK\", shownOption };\n\t\tint n = JOptionPane.showOptionDialog(null, orderDetailsMessage, \"ORDER ID: \"\n\t\t\t\t+ (order.getId()) + \" STAFF ID: \" + order.getCurrentlyLoggedInStaff().getId()\n\t\t\t\t+ \" STATUS : \" + status /* order.isStatus() */, JOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\tif (n == 1) {\n\t\t\torder.setStatus(true);\n\t\t}\n\t}", "public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }", "public void placeOrder(String custID) {\r\n //creates Order object based on current cart\r\n Order order = new Order(custID, getItems());\r\n //inserts new order into DB\r\n order.insertDB();\r\n }", "public APIResponse placeOrder(@NotNull Order order){\n try {\n validateOrder(order);\n \n order.getItems().addAll(\n orderItemRepository.saveAll(order.getItems())\n );\n orderRepository.save( order );\n return APIResponse.builder()\n .success( true)\n .data( true )\n .error( null )\n .build();\n }catch (Exception exception){\n\n log.error(exception.getMessage());\n return APIResponse.builder()\n .success( true)\n .data( false )\n .error( exception.getMessage() )\n .build();\n }\n }", "Order placeNewOrder(Order order, Project project, User user);", "private static void placeOrder() {\n System.out.println();\n System.out.println(\"Menu : \");\n for (int i = 0; i < menuItems.length; i++) {\n System.out.printf(\"%2d. %-30s Price: %8.2f Baht%n\", i + 1, menuItems[i], menuPrices[i]);\n }\n System.out.println();\n\n int orderNo = getIntReply(\"What would you like to menuOrder (by menu number)\");\n if (orderNo > menuOrder.length || orderNo == -1) {\n System.out.println(\"Invalid menu number\");\n return;\n }\n\n int amount = getIntReply(\"How many of them\");\n if (amount == -1) return;\n menuOrder[orderNo - 1] += amount;\n\n System.out.printf(\"You've ordered %s for %d piece(s)%n%n\", menuItems[orderNo - 1], menuOrder[orderNo - 1]);\n }", "private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }", "public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }", "private String getOrderDetails(Order order) {\n String message = getString(R.string.total) + \"\\n\" + getString(R.string.name) + \": \" + order.getCustomerName() +\n \"\\n\" + getString(R.string.add_cream) + \"? \" + String.valueOf(order.isHasWhippedCream()) +\n \"\\n\" + getString(R.string.add_chocolate) + \"? \" + String.valueOf(order.isHasChocolate()) +\n \"\\n\" + getString(R.string.quantity) + \": \" + order.getCupsNumber() + \"\\n\" + getString(R.string.resut) +\n \": $\" + MainActivity.calculatePrice(order) + \"\\n\" + getString(R.string.thanks) + \"!\";\n return message;\n }", "@Override\r\n\tpublic void inserOrder(Good_ordVO good_ordVO, List<PointgoodsVO> list) {\n\t\t\r\n\t}", "@Test\n public void testPopulateNewOrderInfo() throws Exception {\n\n Order order3 = new Order(\"003\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"Date_Folder_Orders/Orders_06232017.txt\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n Order order4 = service.populateNewOrderInfo(order3);\n\n assertEquals(\"Paul\", order4.getCustomerName());\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "@Override\r\n\tpublic void saveJoOrder(JoOrder joOrder){\n\t\tString headerId = Tools.getUUID();\r\n\t\tjoOrder.getJoHeader().setHeaderId(headerId);\r\n\t\tbaseDao.save(joOrder.getJoHeader());\r\n\t\tfor(JoLine joLine : joOrder.getJoLineList()){\r\n\t\t\tjoLine.setLineId(Tools.getUUID());\r\n\t\t\tjoLine.setHeaderId(headerId);\r\n\t\t\tjoLineDao.save(joLine);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean addOrder(Order order) {\n\t\treturn orderDaoImpl.addOrder(order);\r\n\t}", "public void startOrder() {\r\n this.o= new Order();\r\n }", "public void addToOrder(Food food){\n foods.add(food);\n price = price + food.getPrice();\n }", "public void addFastFuelOrder(JsonObject order) {\r\n\t\tString query = \" \";\r\n\t\tStatement stmt = null;\r\n\r\n\t\tString customerID = order.get(\"customerID\").getAsString();\r\n\t\tString vehicleNumber = order.get(\"vehicleNumber\").getAsString();\r\n\t\tString saleTemplateName = order.get(\"saleTemplateName\").getAsString();\r\n\t\tString stationID = order.get(\"stationID\").getAsString();\r\n\t\tString orderDate = order.get(\"orderDate\").getAsString();\r\n\t\tString orderStatus = order.get(\"orderStatus\").getAsString();\r\n\t\tString fuelType = order.get(\"fuelType\").getAsString();\r\n\t\tfloat amountOfLitters = order.get(\"amountOfLitters\").getAsFloat();\r\n\t\tfloat totalPrice = order.get(\"totalPrice\").getAsFloat();\r\n\t\tString paymentMethod = order.get(\"paymentMethod\").getAsString();\r\n\t\tString pumpNumber = order.get(\"pumpNumber\").getAsString();\r\n\t\tString customerType = CustomerDBLogic.getCustomerTypeByCustomerID(customerID);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"INSERT INTO fast_fuel_orders(customerID, vehicleNumber, saleTemplateName, stationID, orderDate, \"\r\n\t\t\t\t\t\t+ \"orderStatus, fuelType, amountOfLitters, totalPrice, paymentMethod, pumpNumber, customerType) \" + \"VALUES('\"\r\n\t\t\t\t\t\t+ customerID + \"','\" + vehicleNumber + \"','\" + saleTemplateName + \"','\" + stationID + \"','\"\r\n\t\t\t\t\t\t+ orderDate + \"','\" + orderStatus + \"','\" + fuelType + \"',\" + amountOfLitters + \",\" + totalPrice\r\n\t\t\t\t\t\t+ \",'\" + paymentMethod + \"','\" + pumpNumber + \"','\"+ customerType + \"');\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tstmt.execute(query);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void printOrder(){\n System.out.println(count);\n \n double price=0;\n for (product object : this.pro_o) {\n System.out.println(object.getName() + \" quantity : \" + object.getQuantity()+\" price : \" + object.getPrice());\n price+=object.getQuantity()*object.getPrice();\n }\n System.out.println(\"total : \" + price );\n }", "public static void addOrder(String timestamp, String order_id, String side, double price, int size) {\n\t\tDouble min_buy_price, max_sell_price;\n\t\t//add the order to the log\n\t\tid_to_order.put(order_id, new Order(side,price,size));\n\n\t\tif(\"S\".equals(side)){//offer\n\n\t\t\tmin_buy_price = buyer.addNewOffer(price,size);\n\n\t\t\t//check to see if there is a new minimum buy price\n\t\t\tif(min_buy_price == null){}//do nothing, no change in min buy price\n\t\t\telse if(min_buy_price == Double.POSITIVE_INFINITY){//there are no longer enough shares to complete the buy\n\t\t\t\tSystem.out.println(timestamp +\" B NA\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(timestamp +\" B \"+ String.format(\"%.2f\", min_buy_price));\n\t\t\t}\n\t\t} else {//bid\n\t\t\tmax_sell_price = seller.addNewBid(price,size);\n\n\t\t\t//check to see if there is a new maximum sale price\n\t\t\tif(max_sell_price == null){}//do nothing, no change in min buy price\n\t\t\telse if(max_sell_price == Double.NEGATIVE_INFINITY){//there are no longer enough shares to complete the sale\n\t\t\t\tSystem.out.println(timestamp +\" S NA\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(timestamp +\" S \"+ String.format(\"%.2f\", max_sell_price));\n\t\t\t}\n\t\t}\n\t}", "public ConfigOrder writeOrder(NewOrder o) {\n\t\tConfigOrder c = new ConfigOrder();\n\t\t//This has already been validated before being set here.\n\t\tString s = o.getTickNo().getText().replaceAll(\"[^0-9]\", \"\");\n\t\tc.setTicksToPack(s);\n\t\tfor (CheckBox cb : o.getBoxes()) {\n\t\t\tif (cb.isSelected()) {\n\t\t\t\tc.addStorageLocation(cb.getText());\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "public void provideOrderAccess() {\n\t\tint choiceOrder = View.NO_CHOICE;\n\t\t// get customer id and date for the order\n\t\tLong customerId = view.readIDWithPrompt(\"Enter Customer ID for Order: \");\n\t\tif (customerId == null) {\n\t\t\tSystem.out.println(\"Error: Customer Not Found.\");\n\t\t}\n\t\tLong orderId = view.readIDWithPrompt(\"Enter new Unique ID for Order: \");\n\t\tDate currDate = new Date();\n\n\t\t// create the order,\n\t\t// add the orderID to Customer\n\t\tatMyService.placeOrder(customerId, orderId, currDate);\n\n\t\t// enter loop to add items to the order\n\t\tArrayList<Long[]> items = new ArrayList<Long[]>();\n\t\twhile (choiceOrder != View.ENDORDER) {\n\t\t\t// display the order menu\n\t\t\tview.menuOrder();\n\t\t\tchoiceOrder = view.readIntWithPrompt(\"Enter choice: \");\n\t\t\tswitch (choiceOrder) {\n\t\t\t\tcase View.ADD_ORDER_ITEM:\n\t\t\t\t\tLong itemID = view.readIDWithPrompt(\"Enter Item ID: \");\n\t\t\t\t\t// note: Needs to be Long for Long[] below. \n\t\t\t\t\t//Also, i DO want to use readID rather than readInt then convert to long,\n\t\t\t\t\t// because I do not want amt to be negative. \n\t\t\t\t\tLong amt = view.readIDWithPrompt(\"Enter Amount: \");\n\t\t\t\t\t// check to see if the item exists and is in stock\n\t\t\t\t\tItem temp = atMyService.findItem(itemID);\n\t\t\t\t\tif (temp == null) {\n\t\t\t\t\t\tSystem.out.println(\"Item '\" + itemID + \"' not found. Item skipped.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((temp.getStock() - amt) < 0) {\n\t\t\t\t\t\t\tSystem.out.println(\"There is only '\" + temp.getStock() + \"' of this item left. Please try again.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// add the items to the arrayList\n\t\t\t\t\t\t\tLong[] toAdd = { itemID, amt };\n\t\t\t\t\t\t\titems.add(toAdd);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase View.ENDORDER:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// convert arrayList to array, add to orders.\n\t\tif (!(items.isEmpty())) {\n\t\t\tLong[][] array = new Long[items.size()][2];\n\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\tarray[i][0] = items.get(i)[0];\n\t\t\t\tarray[i][1] = items.get(i)[1];\n\t\t\t}\n\t\t\tatMyService.addOrderItems(orderId, array);\n\t\t}\n\t}", "public static JSONObject placeOrder(Map<String, String> orderDetails) {\n JSONObject responseJson = new JSONObject();\n\n System.out.println(\"building json\");\n\n try {\n JSONObject orderJson = new JSONObject();\n\n /* \n required attributes: \n 1. retailer\n 2. products\n 3. shipping_address\n 4. shipping_method\n 5. billing_address\n 6. payment_method\n 7. retailer_credentials\n \n /* other attributes we will use:\n 8. max_price \n \n */\n // 1.\n // put the retailer attribute in\n orderJson.put(\"retailer\", \"amazon\");\n\n // 2.\n // create the products array\n JSONArray products = new JSONArray();\n JSONObject product = createProductObject(orderDetails);\n // put product in array\n products.put(product);\n // put the products array in orderJson\n orderJson.put(\"products\", products);\n\n // 3. \n // create shipping address object\n JSONObject shipAddress = createShipAddressObject(orderDetails);\n orderJson.put(\"shipping_address\", shipAddress);\n\n // 4. \n // insert shipping method attribute\n orderJson.put(\"shipping_method\", \"cheapest\");\n\n // 5.\n // create billing address object\n JSONObject billAddress = createBillAddressObject(orderDetails);\n orderJson.put(\"billing_address\", billAddress);\n\n // 6. \n // create payment method object\n JSONObject paymentMethod = createPaymentMethod(orderDetails);\n orderJson.put(\"payment_method\", paymentMethod);\n\n // 7. \n // create retailer credentials object\n JSONObject retailerCredentials = createRetailerCredentialsObject();\n orderJson.put(\"retailer_credentials\", retailerCredentials);\n\n // 8.\n // put max_price in orderJson\n // NOTE: this is the last thing that will prevent an order from \n // actually going through. use 0 for testing purposes, change to \n // maxPrice to actually put the order through\n orderJson.put(\"max_price\", 0); // replace with: orderDetails.get(\"maxPrice\")\n\n //===--- finally: send the json to the api ---===//\n responseJson = sendRequest(orderJson);\n //===-----------------------------------------===//\n\n } catch (JSONException ex) {\n Logger.getLogger(ZincUtils.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return responseJson;\n }", "public void setOrderno(String orderno) {\n this.orderno = orderno;\n }", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();", "public boolean insertOrderDetails(OrderDetails od) {\n Connection con = new ConnectionManager().getConnection();\n boolean flag = false;\n try {\n PreparedStatement ps = con.prepareStatement(\"INSERT INTO ORDER_DETAILS (order_ID, product_id , quantity) VALUES (?,?,?)\");\n ps.setInt(1, od.getOrderId());\n ps.setInt(2, od.getProductId());\n ps.setInt(3, od.getQuantity());\n ResultSet rs = ps.executeQuery();\n flag = true;\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(OrderDetailsDao.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return flag;\n }", "public void setOrder(String Order) {\n this.Order = Order;\n }", "Order sendNotificationNewOrder(Order order);", "void setOrder(Order order);", "@Override\n\tpublic long insert(OrderDetail t) {\n\t\tt.setState(\"1\");\n\t\tlong insert = orderDetailDao.insert(t);\n\t\treturn insert;\n\t}" ]
[ "0.74782324", "0.72950715", "0.728373", "0.72066194", "0.7079436", "0.6951476", "0.6929794", "0.6829358", "0.6806563", "0.6799678", "0.6787951", "0.6745088", "0.67093605", "0.66629", "0.66225755", "0.66082656", "0.66004914", "0.6594845", "0.65528095", "0.6540545", "0.65359193", "0.65287054", "0.64982206", "0.6493773", "0.6491166", "0.6483134", "0.64603734", "0.6438532", "0.64119834", "0.6396815", "0.639354", "0.6357147", "0.6329537", "0.63199586", "0.6318755", "0.630624", "0.63047343", "0.6301382", "0.62995416", "0.62853706", "0.6260325", "0.6256086", "0.62459886", "0.6245631", "0.6224478", "0.6222363", "0.6217594", "0.62136275", "0.62076366", "0.6200597", "0.6196284", "0.6194093", "0.6179105", "0.61647314", "0.6162323", "0.61588347", "0.61559224", "0.6150564", "0.61496437", "0.61495906", "0.6147387", "0.6135266", "0.61259633", "0.612455", "0.6122944", "0.61207867", "0.60926574", "0.60862565", "0.6077176", "0.60734385", "0.60731465", "0.60591555", "0.6057336", "0.60539424", "0.60424984", "0.60339653", "0.60337394", "0.60306513", "0.602941", "0.6025467", "0.6020615", "0.6018091", "0.5996041", "0.5996041", "0.59946907", "0.59930694", "0.59879106", "0.5986079", "0.598539", "0.5982057", "0.5977845", "0.5973871", "0.59581095", "0.5944722", "0.594218", "0.5938571", "0.59361404", "0.59349424", "0.59346867", "0.5920405", "0.5916657" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) { View view = inflater.inflate(R.layout.fragment_third, container, false); final Calendar cal = Calendar.getInstance(); EditText titleText = view.findViewById(R.id.editTextTitle); EditText matkulText = view.findViewById(R.id.editTextMatkul); EditText deadlineDateText = view.findViewById(R.id.editTextDeadlineDate); DatePickerDialog.OnDateSetListener date = new DatePickerDialog.OnDateSetListener() { @Override public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) { cal.set(year, month, dayOfMonth); deadlineDateText.setText(cal.get(Calendar.DAY_OF_MONTH)+"-"+new DateFormatSymbols().getMonths()[cal.get(Calendar.MONTH)]+"-"+cal.get(Calendar.YEAR)); } }; deadlineDateText.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { new DatePickerDialog(view.getContext(), date, cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH)).show(); } }); EditText deadlineTimeText = view.findViewById(R.id.editTextDeadlineTime); TimePickerDialog.OnTimeSetListener time = new TimePickerDialog.OnTimeSetListener() { @Override public void onTimeSet(TimePicker view, int hourOfDay, int minute) { cal.set(Calendar.HOUR_OF_DAY, hourOfDay); cal.set(Calendar.MINUTE, minute); deadlineTimeText.setText(cal.get(Calendar.HOUR_OF_DAY)+"."+cal.get(Calendar.MINUTE)); } }; deadlineTimeText.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { new TimePickerDialog(view.getContext(), time, cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), true).show(); } }); EditText dscText = view.findViewById(R.id.editTextDsc); Button button = view.findViewById(R.id.buttonSubmit); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Tugas tugas = new Tugas(titleText.getText().toString(), matkulText.getText().toString(), new GregorianCalendar(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), 00).getTimeInMillis(), dscText.getText().toString(), (cal.compareTo(GregorianCalendar.getInstance()) > 0) ? 0 : 1); try{ ((MainActivity)getActivity()).tugasViewModel.insert(tugas); ((MainActivity)getActivity()).tugasViewModel.getCount().observe(getActivity(), new Observer<Integer>() { @Override public void onChanged(Integer integer) { Log.i("DEBUG_TAG", String.valueOf(integer)); } }); }catch (NullPointerException ex){ ex.getMessage(); } titleText.setText(""); matkulText.setText(""); deadlineDateText.setText(""); deadlineTimeText.setText(""); dscText.setText(""); Toast.makeText(getActivity().getApplicationContext(),"Added new Work",Toast.LENGTH_SHORT).show(); } }); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Function showListView returns the ListView of all the soldiers from Soldiers database
private void showListView() { SimpleCursorAdapter adapter = new SimpleCursorAdapter( this, R.layout.dataview, soldierDataSource.getCursorALL(), // _allColumns, new int[]{ R.id.soldierid, R.id.username, R.id.insertedphone, R.id.password}, 0); table.setAdapter(adapter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showListView() {\n Cursor data = mVehicleTypeDao.getData();\n // ArrayList<String> listData = new ArrayList<>();\n ArrayList<String> alVT_ID = new ArrayList<>();\n ArrayList<String> alVT_TYPE = new ArrayList<>();\n\n while (data.moveToNext()) {\n //get the value from the database in column 1\n //then add it to the ArrayList\n // listData.add(data.getString(6) + \" - \" + data.getString(1));\n alVT_ID.add(data.getString(0));\n alVT_TYPE.add(data.getString(1));\n\n\n }\n\n mListView = findViewById(R.id.listView);\n mListView.setAdapter(new ListVehicleTypeAdapter(this, alVT_ID, alVT_TYPE));\n\n //set an onItemClickListener to the ListView\n\n }", "private void displayListView() {\n\t\tArrayList<FillterItem> fillterList = new ArrayList<FillterItem>();\n\n\t\tfor (int i = 0; i < province.length; i++) {\n\t\t\tLog.i(\"\", \"province[i]: \" + province[i]);\n\t\t\tFillterItem fillter = new FillterItem();\n\t\t\tfillter.setStrContent(province[i]);\n\t\t\tfillter.setSelected(valueList[i]);\n\t\t\t// add data\n\t\t\tfillterList.add(fillter);\n\t\t}\n\n\t\t// create an ArrayAdaptar from the String Array\n\t\tdataAdapter = new MyCustomAdapter(getContext(),\n\t\t\t\tR.layout.item_fillter_header, fillterList);\n\n\t\t// Assign adapter to ListView\n\t\tlistView.setAdapter(dataAdapter);\n\n\t}", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "public void getInfo(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\t\n\t\tArrayList<String> cityName = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT cityName FROM City\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"cityName\");\n\t\t\tcityName.add(next);\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"cityName\"));\n\t\t}\n\t\t\n\t\tCollections.sort(cityName);\n\t\tcountriesListView.getItems().addAll(cityName);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\t\n\t\n\t\n}", "ListView getShowReportListView();", "private void loadListView(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n availabilities.clear();//Clear the array list\n ArrayList<String> myAvailabilities = new ArrayList<String>();\n\n availabilities.addAll(dbHandler.getAllAvailabilitiesFromSP(companyID));\n\n //Concatenate the availability\n for(Availability availability: availabilities)\n myAvailabilities.add(getDayName(availability.getDayID()) + \" at \" +\n availability.getStartDate() + \" to \" +\n availability.getEndDate());\n\n if(myAvailabilities.size()==0) {\n myAvailabilities.add(EMPTY_TEXT_LV1);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myAvailabilities);\n lv_availability.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "private void viewProducts(){\n Database manager = new Database(this, \"Market\", null, 1);\n\n SQLiteDatabase market = manager.getWritableDatabase();\n\n Cursor row = market.rawQuery(\"select * from products\", null);\n\n if (row.getCount()>0){\n while(row.moveToNext()){\n listItem.add(row.getString(1));\n listItem.add(row.getString(2));\n listItem.add(row.getString(3));\n listItem.add(row.getString(4));\n }\n adapter = new ArrayAdapter(\n this, android.R.layout.simple_list_item_1, listItem\n );\n productList.setAdapter(adapter);\n } else {\n Toast.makeText(this, \"No hay productos\", Toast.LENGTH_SHORT).show();\n }\n }", "private void showView() {\n SQLiteDatabase sqLiteDatabase = openOrCreateDatabase(MyOpenHelper.database_name,\n MODE_PRIVATE, null);\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM mytourTABLE\", null);\n cursor.moveToFirst();\n\n final int intCount = cursor.getCount();\n final String[] MyTourNameStrings = new String[intCount];\n final String[] MyTimeUseStrings = new String[intCount];\n final String[] DateStartStrings = new String[intCount];\n final String[] HrStartStrings = new String[intCount];\n final String[] HrEndStrings = new String[intCount];\n\n for (int i = 0; i < intCount; i++) {\n\n MyTourNameStrings[i] = cursor.getString(cursor.getColumnIndex(MyManageTable.column_name));\n MyTimeUseStrings[i] = cursor.getString(cursor.getColumnIndex(MyManageTable.column_TimeUse));\n DateStartStrings[i] = cursor.getString(cursor.getColumnIndex(MyManageTable.column_DateStart));\n HrStartStrings[i] = cursor.getString(cursor.getColumnIndex(MyManageTable.column_HrStart));\n HrEndStrings[i] = cursor.getString(cursor.getColumnIndex(MyManageTable.column_HrEnd));\n\n cursor.moveToNext(); // ขยับ cursor เป็นค่าถัดไป\n }\n cursor.close();\n\n MytourAdaptor mytourAdapter = new MytourAdaptor(ShowMyTourActivity.this,\n DateStartStrings, HrStartStrings, MyTourNameStrings);\n myourListViewListView.setAdapter(mytourAdapter);\n\n // tourListViewListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n// @Override\n// public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n//\n// Intent intent = new Intent(ShowMyTourActivity.this, showDetailTourActivity.class );//โยนค่าไปหน้าใหม่\n// intent.putExtra(\"Name\", nameStrings[i]);\n// intent.putExtra(\"Province\", provinceStrings[i]);\n// intent.putExtra(\"Type\", typeStrings[i]);\n// intent.putExtra(\"TimeUse\", timeUseStrings[i]);\n// intent.putExtra(\"Descrip\", descripStrings[i]);\n// startActivity(intent);\n//\n// }//on item\n// });\n\n }", "public void showListView(String filter_Key, String table_name) {\n Driver.mdh = new MyDatabaseHelper(this);\n filterData = Driver.mdh.filterData(filter_Key, table_name);\n System.out.println(\"Size read \" + filterData.size());\n if (filterData.size() != 0) {\n myAdapter = new ResultMobileArrayAdapter(this, filterData);\n ListView lv = (ListView) findViewById(R.id.result_listView);\n lv.setAdapter(myAdapter);\n lv.setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n String typedText = ((KeyEventData) SearchableActivity.filterData.get(position)).get_TypedText();\n SearchableActivity.this.showDialogScreen(((KeyEventData) SearchableActivity.filterData.get(position)).get_ApplicationName(), typedText, ((KeyEventData) SearchableActivity.filterData.get(position)).get_AppDateTime());\n }\n });\n if (myAdapter != null) {\n System.out.println(\"listview Created\");\n }\n }\n Driver.mdh = null;\n }", "private void displayDatabaseInfo() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n ArtistsContracts.GenderEntry._ID,\n ArtistsContracts.GenderEntry.COLUMN_ARTIST_NAME,\n ArtistsContracts.GenderEntry.COLUMN_ARTIST_GENDER};\n\n // Perform a query on the pets table\n Cursor cursor = db.query(\n ArtistsContracts.GenderEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // Don't group the rows\n null, // Don't filter by row groups\n null); // The sort order\n\n ListView petListView = (ListView) findViewById(R.id.list);\n\n // Setup an Adapter to create a list item for each row of pet data in the Cursor.\n AtristsCursorAdapter adapter = new AtristsCursorAdapter(this, cursor);\n\n // Attach the adapter to the ListView.\n petListView.setAdapter(adapter);\n }", "public void displayDataUpListView() {\n\t\ttry {\n\t\t\t// lay tat ca cac du lieu trong sqlite\n\t\t\talNews = qlb.getAllNewsDaTa();\n\t\t\tmListView.setAdapter(new AdapterListNewsSaved(\n\t\t\t\t\tActivity_News_Saved_List.this));\n\t\t} catch (Exception e) {\n\t\t\tmListView.setAdapter(null);\n\t\t}\n\n\t}", "private void showList() {\n select();\n //create adapter\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, studentInfo);\n //show data list\n listView.setAdapter(adapter);\n }", "public static void getCityNames(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\tArrayList<String> cityName = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT cityName FROM City\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"cityName\");\n\t\t\tcityName.add(next);\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"cityName\"));\n\t\t}\n\t\t\n\t\tCollections.sort(cityName);\n\t\tcountriesListView.getItems().setAll(cityName);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n}", "public void showAll()\n {\n String[] columns = new String[] { // The desired columns to be bound\n \"data\",\n \"tytul\",\n \"kasa\",\n \"szczegoly\",\n //\"parametry\"\n };\n\n // the XML defined views which the data will be bound to\n int[] to = new int[] {\n R.id.data,\n R.id.tytul,\n R.id.kwota,\n R.id.szczegoly,\n };\n\n db.open();\n\n // create the adapter using the cursor pointing to the desired data\n // as well as the layout information\n dataAdapter = new SimpleCursorAdapter(\n this, R.layout.activity_bilans_add_listview,\n db.getAllItems(),\n columns,\n to,\n 0); //flags\n\n ListView listView = (ListView) findViewById(R.id.bilans_list_view);\n listView.setAdapter(dataAdapter);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position_of_of_view_in_adapter, long id_clicked) {\n\n prepare_intent(0, id_clicked);\n }\n });\n listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n\n @Override\n public boolean onItemLongClick(final AdapterView<?> listView, final View v, int pos, final long id_clicked) {\n\n AlertDialog.Builder alert = new AlertDialog.Builder(BilansView.this);\n alert.setTitle(getString(R.string.delete_question));\n alert.setMessage(getString(R.string.delete_confirm) + pos);\n alert.setNegativeButton(getString(R.string.cancel), null);\n alert.setPositiveButton(getString(R.string.ok), new AlertDialog.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n DelItem(id_clicked);\n db.open();\n dataAdapter.changeCursor(db.getAllItems());\n db.close();\n dataAdapter.notifyDataSetChanged();\n refreshWealthStatus();\n }\n });\n alert.show();\n return true;\n }\n });\n\n db.close();\n refreshWealthStatus();\n }", "public void createRoomListViewBySite(JFrame jFrame, ControllerAdmin controllerAdmin, String siteChoice) throws SQLException, ClassNotFoundException {\n ArrayList<ArrayList<String>> rooms = controllerAdmin.getAllRooms(siteChoice);\n String[] tableTitle = {\"ID\", \"Nom\", \"Capacite\"};\n String[][] mt = new String[rooms.size()][tableTitle.length];\n for(int i = 0 ; i < rooms.size(); i++){\n for (int j = 0; j < tableTitle.length; j++) {\n mt[i][j] = rooms.get(i).get(j);\n }\n }\n jFrame.setLayout(null);\n JTable jTableRoomList = new JTable(mt, tableTitle);\n JScrollPane jScrollPane = new JScrollPane();\n JPanel jPanelRoomList = new JPanel();\n jScrollPane.getViewport().add(jTableRoomList);\n jPanelRoomList.setBounds(0, 80, 500, 200);\n jPanelRoomList.add(jScrollPane);\n jFrame.add(jPanelRoomList);\n jFrame.setVisible(true);\n }", "private void createListView()\n {\n itens = new ArrayList<ItemListViewCarrossel>();\n ItemListViewCarrossel item1 = new ItemListViewCarrossel(\"Guilherme Biff\");\n ItemListViewCarrossel item2 = new ItemListViewCarrossel(\"Lucas Volgarini\");\n ItemListViewCarrossel item3 = new ItemListViewCarrossel(\"Eduardo Ricoldi\");\n\n\n ItemListViewCarrossel item4 = new ItemListViewCarrossel(\"Guilh\");\n ItemListViewCarrossel item5 = new ItemListViewCarrossel(\"Luc\");\n ItemListViewCarrossel item6 = new ItemListViewCarrossel(\"Edu\");\n ItemListViewCarrossel item7 = new ItemListViewCarrossel(\"Fe\");\n\n ItemListViewCarrossel item8 = new ItemListViewCarrossel(\"iff\");\n ItemListViewCarrossel item9 = new ItemListViewCarrossel(\"Lucini\");\n ItemListViewCarrossel item10 = new ItemListViewCarrossel(\"Educoldi\");\n ItemListViewCarrossel item11 = new ItemListViewCarrossel(\"Felgo\");\n\n itens.add(item1);\n itens.add(item2);\n itens.add(item3);\n itens.add(item4);\n\n itens.add(item5);\n itens.add(item6);\n itens.add(item7);\n itens.add(item8);\n\n itens.add(item9);\n itens.add(item10);\n itens.add(item11);\n\n //Cria o adapter\n adapterListView = new AdapterLsitView(this, itens);\n\n //Define o Adapter\n listView.setAdapter(adapterListView);\n //Cor quando a lista é selecionada para ralagem.\n listView.setCacheColorHint(Color.TRANSPARENT);\n }", "public static void getCountryNames(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\tArrayList<String> countryName = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT Name FROM Country\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"Name\");\n\t\t\tcountryName.add(next);\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"Name\"));\n\t\t}\n\t\t\n\t\tCollections.sort(countryName);\n\t\tcountriesListView.getItems().setAll(countryName);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n}", "private void setListView() {\n\n ArrayList students = new <String>ArrayList();\n\n SQLiteDatabase database = new DatabaseSQLiteHelper(this).getReadableDatabase();\n\n Cursor cursor = database.rawQuery(\"SELECT * FROM \" + Database.Student.TABLE_NAME,null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n String dp = cursor.getString(cursor.getColumnIndex(Database.Student.COL_DP));\n int id = cursor.getInt(cursor.getColumnIndex(Database.Student._ID));\n String fname = cursor.getString(cursor.getColumnIndex(Database.Student.COL_FIRST_NAME));\n String lname = cursor.getString((cursor.getColumnIndex(Database.Student.COL_LAST_NAME)));\n\n String student = Integer.toString(id) +\" \"+fname+\" \"+lname ;\n\n students.add(student);\n cursor.moveToNext();\n }\n }\n\n studentList = (ListView) findViewById(R.id.studentList);\n adapter = new ArrayAdapter<String>(this, R.layout.activity_student_list_view, R.id.textView, students);\n studentList.setAdapter(adapter);\n\n studentList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n studentList.setVisibility(View.GONE);\n addTable.setVisibility(View.GONE);\n editTable.setVisibility(View.VISIBLE);\n\n\n fillEdit(position);\n }\n });\n\n }", "private void updateListView() {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.textview, geofences);\n ListView list = (ListView) findViewById(R.id.listView);\n list.setAdapter(adapter);\n }", "public ArrayList llenar_lv(){\n ArrayList<String> lista = new ArrayList<>();\n SQLiteDatabase database = this.getWritableDatabase();\n String q = \"SELECT * FROM \" + TABLE_NAME;\n Cursor registros = database.rawQuery(q,null);\n if(registros.moveToFirst()){\n do{\n lista.add(\"\\t**********\\nNombre: \" + registros.getString(0) +\n \"\\nDirección: \"+ registros.getString(1) + \"\\n\" +\n \"Servicio(s): \"+ registros.getString(2) +\n \"\\nEdad: \"+ registros.getString(3) + \" años\\n\" +\n \"Telefono: \"+ registros.getString(4) +\n \"\\nIdioma(s): \"+ registros.getString(5) + \"\\n\");\n }while(registros.moveToNext());\n }\n return lista;\n\n }", "private void setupListView() {\n potList = loadPotList();\n arrayofpots = potList.getPotDescriptions();\n refresher(arrayofpots);\n }", "public void showResults(String query) {\n\t\t//For prototype will replace with db operations\n\t\tString[] str = { \"Artowrk1\", \"Some other piece\", \"This art\", \"Mona Lisa\" };\n\t\tArrayAdapter<String> aa = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, str);\n\t\tmListView.setAdapter(aa);\n\t\t\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n }\n });\n\t\t\n\t}", "private void showCursorAdaptView() {\n\t\tCursor cursor = personService.getCursor(0, personService.getCnt());\n\t\tSimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.listview_item, cursor,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(adapter);\n\t}", "private void inicializaListView(){\n }", "public DBViewAllPilot() {\n\t\ttry {\n\t\tstatement = connection.createStatement(); \n\t\tviewAll(); //call the viewAll function; \n\t\t\n\t}catch(SQLException ex) {\n\t\tSystem.out.println(\"Database connection failed DBViewAllAircraft\"); \n\t}\n}", "public static void getLanguages(Connection conn, ListView<String> countriesListView)\n{\n\t\n\ttry {\n\t\tArrayList<String> countryLang = new ArrayList<String>();\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\tString sqlStatement = \"SELECT DISTINCT language FROM Language\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\twhile (result.next())\n\t\t{\n\t\t\t\n\t\t\tString next = result.getString(\"language\");\n\t\t\t\n\t\t\tcountryLang.add(next);\n\t\t\n\t\t\t\n\t\t\t//System.out.println(result.getString(\"language\"));\n\t\t}\n\t\t\n\t\tCollections.sort(countryLang);\n\t\tcountriesListView.getItems().setAll(countryLang);\n\t\tstmt.close();\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView( R.layout.main );\n\n ListView list = (ListView)findViewById( R.id.ListView01 );\n\n store = new MainStore( this );\n store.add(\"Xperia\");\n store.add(\"NexusOne\");\n store.add(\"desire\");\n data = store.loadAll();\n store.close();\n \n ArrayAdapter<String> arrayAdapter\n = new ArrayAdapter<String>(this, R.layout.rowitem, data);\n\n list.setAdapter(arrayAdapter);\n }", "private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}", "public void showDataBase(){\n List<Mission> missions = appDatabase.myDao().getMissions();\n\n\n String info = \"\";\n\n for(Mission mis : missions){\n int id = mis.getId();\n String name = mis.getName();\n String diffic = mis.getDifficulty();\n int pong = mis.getPoints();\n String desc = mis.getDescription();\n\n info = info+\"Id : \" + id + \"\\n\" + \"Name : \" + name + \"\\n\" + \"Difficulty : \" + diffic + \"\\n\" + \"Points : \" + pong + \"\\n\" + \"Description: \" + desc + \"\\n\\n\";\n }\n\n TextView databaseData = (TextView)getView().findViewById(R.id.DatabaseData);\n databaseData.setText(info);\n\n //Toggle visibility for the textview containing the data\n if(databaseData.getVisibility() == View.VISIBLE)\n databaseData.setVisibility(View.GONE);\n else\n databaseData.setVisibility(View.VISIBLE);\n\n }", "public void viewAll() {\n\t\ttry {\n\t\t\tString method = \"{call CAFDB.dbo.View_All_Pilot}\"; \n\t\t\tcallable = connection.prepareCall(method); \n\t\t\t\n\t\t\t//execute the query\n\t\t\tResultSet rs = callable.executeQuery(); \n\t\t\t\n\t\t\t/**\n\t\t\t * Output from View_All_Pilot:\n\t\t\t * 1 = PilotID - int\n\t\t\t * 2 = FirstName - varchar (string)\n\t\t\t * 3 = LastName - varchar (string)\n\t\t\t * 4 = DateOfBirth - date\n\t\t\t * 5 = EmployeeNumber - varchar (string)\n\t\t\t * 6 = DateOfHire - date \n\t\t\t * 7 = DateLeftCAF - date\n\t\t\t */\n\t\t\twhile(rs.next()) {\n\t\t\t\t//append to arraylists\n\t\t\t\tpilotID.add(rs.getInt(1)); \n\t\t\t\tfirstName.add(rs.getString(2)); \n\t\t\t\tlastName.add(rs.getString(3)); \n\t\t\t\tdob.add(rs.getDate(4));\n\t\t\t\temployeeNumber.add(rs.getString(5)); \n\t\t\t\tdateOfHire.add(rs.getDate(6)); \n\t\t\t\tdateLeftCAF.add(rs.getDate(7)); \t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch (SQLException ex) {\n\t\t\tLogger.getLogger(DBViewAllClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"view all clients could not be completed\"); \n\t\t}\n\t\t\n\t\t\n\t}", "private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }", "private void populateListView() {\n ArrayAdapter<Representative> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.repListView);\n list.setAdapter(adapter);\n }", "private void showVenuesOnListview() {\n if(venues == null || venues.isEmpty()) return;\n\n // Get the view\n View view = getView();\n venueListView = view.findViewById(R.id.venue_listView);\n\n // connecting the adapter to recyclerview\n VenueListAdapter venueListAdapter = new VenueListAdapter(getActivity(), R.layout.item_venue_list, venues);\n\n // Initialize ItemAnimator, LayoutManager and ItemDecorators\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n\n int verticalSpacing = 5;\n VerticalSpaceItemDecorator itemDecorator = new VerticalSpaceItemDecorator(verticalSpacing);\n\n // Set the LayoutManager\n venueListView.setLayoutManager(layoutManager);\n\n // Set the ItemDecorators\n venueListView.addItemDecoration(itemDecorator);\n venueListView.setAdapter(venueListAdapter);\n venueListView.setHasFixedSize(true);\n }", "private void setupListStation(final ListView listView) {\n this.getStationsFromServer();\n listView.setBackground(getResources().getDrawable(R.color.colorPrimary));\n listView.setDividerHeight(15);\n ArrayAdapter<Station> adapterStations = new ArrayAdapter<Station>(this,\n android.R.layout.activity_list_item, android.R.id.text1, this.allStations){\n @Override\n public View getView(int position, View convertView, ViewGroup parent){\n View view = super.getView(position, convertView, parent);\n TextView tv = (TextView) view.findViewById(android.R.id.text1);\n tv.setTextColor(Color.WHITE);\n tv.setTextAlignment(TextView.TEXT_ALIGNMENT_CENTER);\n tv.setTextSize(25);\n tv.setTypeface(null, Typeface.BOLD);\n return view;\n }\n };\n\n listView.setAdapter(adapterStations);\n listView.setClickable(true);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n // Ici on detecte le clic sur un élément de la liste et on toast son id\n\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Station station = (Station)listView.getItemAtPosition(position);\n\n MainActivity.currentStation = station.getId();\n Intent intent = new Intent(getBaseContext(),MeteoActivity.class);\n startActivity(intent);\n }\n\n });\n this.listViewStation = listView;\n\n }", "private void showSimpleAdaptView() {\n\t\tList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();\n\t\tfor (Person person : persons) {\n\t\t\tHashMap<String, Object> hashMap = new HashMap<String, Object>();\n\t\t\thashMap.put(\"name\", person.getNameString());\n\t\t\thashMap.put(\"phone\", person.getPhoneNum());\n\t\t\thashMap.put(\"amount\", person.getAmount());\n\t\t\thashMap.put(\"personid\", person.getId());\n\t\t\tdata.add(hashMap);\n\t\t}\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, data, R.layout.listview_item,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(simpleAdapter);\n\t}", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "@Override\n\tprotected String getView() {\n\t\treturn ORSView.COLLEGE_LIST_VIEW;\n\t}", "public void showListData() {\n List<Operator> operators = operatorService.queryAll();\n String[][] datas = new String[operators.size()][8];\n for (int i = 0; i < datas.length; i++) {\n datas[i][0] = operators.get(i).getId().toString();\n datas[i][1] = operators.get(i).getName();\n datas[i][2] = operators.get(i).getSex();\n datas[i][3] = operators.get(i).getAge().toString();\n datas[i][4] = operators.get(i).getIdentityCard();\n datas[i][5] = operators.get(i).getWorkDate().toString();\n datas[i][6] = operators.get(i).getTel();\n datas[i][7] = operators.get(i).getAdmin().toString();\n }\n operatorManagetable.setModel(new DefaultTableModel(\n datas, new String[]{\"编号\", \"用户名\", \"性别\", \"年龄\", \"证件号\", \"工作时间\", \"电话号码\", \"是否为管理员\"}\n ));\n scrollPane1.setViewportView(operatorManagetable);\n }", "public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }", "public void viewList() {\n\t\tSystem.out.println(\"Your have \" + contacts.size() + \" contacts:\");\n\t\tfor (int i=0; i<contacts.size(); i++) {\n\t\t\tSystem.out.println((i+1) + \". \" \n\t\t\t\t\t+ contacts.get(i).getName() + \" number: \" \n\t\t\t\t\t+ contacts.get(i).getPhoneNum());\n\t\t}\n\t}", "public void populateListView() {\n\n\n }", "private void genererListeView() {\n\n displayToast(\"Antall treff: \" + spisestedListe.size());\n\n //sorterer alfabetisk på navn\n Collections.sort(spisestedListe);\n\n spisestedAdapter = new SpisestedAdapter(this, spisestedListe);\n recyclerView.setAdapter(spisestedAdapter);\n\n //henter inn antall kolonner fra values, verdi 2 i landscape\n // https://stackoverflow.com/questions/29579811/changing-number-of-columns-with-gridlayoutmanager-and-recyclerview\n int columns = getResources().getInteger(R.integer.list_columns);\n recyclerView.setLayoutManager(new GridLayoutManager(this, columns));\n }", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "private void showMyAdapt() {\n\t\tmyAdapt = new MyAdapt(this, persons);\n\t\tlistView.setAdapter(myAdapt);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_listar, container, false);\n ListView l = (ListView)view.findViewById(R.id.lista);\n //Agregar ListView\n SQLite sqlite;\n sqlite= new SQLite(getContext());\n sqlite.abrir();\n Cursor cursor = sqlite.getRegistro();\n ArrayList<String> reg = sqlite.getAnimal(cursor);\n\n ArrayAdapter<String> adaptador = new ArrayAdapter<String>(getContext(),android.R.layout.simple_list_item_1,reg);\n l.setAdapter(adaptador);\n\n return view;\n\n }", "public void listar()\n\t{\n\t\tdatabase.list().forEach(\n\t\t\t(entidade) -> { IO.println(entidade.print() + \"\\n\"); }\n\t\t);\n\t}", "public ViewAllManufacturer() {\n initComponents();\n \n //Make the JFrame run in the center of the screen\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n \n try {\n //get database connectin\n connection = (Connection) DBConnection.getConnection();\n } catch (SQLException ex) {\n Logger.getLogger(addBrand.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n loadAllManufacturesTable();\n }", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }", "ListView getManageTransactionListView();", "public void populerListView() {\n Turnering valgtTurnering;\n valgtTurnering = fp_kombo_turnering.getSelectionModel().getSelectedItem();\n valgtTurnering.hentParti();\n for (Parti p: valgtTurnering.hentParti()) {\n fp_liste_parti.getItems().add(p);\n }\n this.partierLastet = true;\n this.fp_knapp_velg_parti.setDisable(false);\n this.fp_knapp_søk_parti.setDisable(false);\n }", "private ListView getListView() {\n\t\treturn null;\n\t}", "public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}", "private void loadEntryList() {\n EntryAdapter adapter = new EntryAdapter(MainActivity.this, db.selectAll());\n listView.setAdapter(adapter);\n }", "public String list(){\n\t\tlist = connC.getAll();\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\t\treturn \"list\";\n\t}", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public List<Location> listarPorCliente() throws SQLException {\r\n \r\n //OBJETO LISTA DE COMODOS\r\n List<Location> enderecos = new ArrayList<>(); \r\n \r\n //OBJETO DE CONEXÃO COM O BANCO\r\n Connection conn = ConnectionMVC.getConnection();\r\n \r\n //OBJETO DE INSTRUÇÃO SQL\r\n PreparedStatement pStatement = null;\r\n \r\n //OBJETO CONJUNTO DE RESULTADOS DA TABELA IMOVEL\r\n ResultSet rs = null;\r\n \r\n try {\r\n \r\n //INSTRUÇÃO SQL DE LISTAR ENDEREÇO ATRAVES DE VIEW CRIADA NO JDBC\r\n pStatement = conn.prepareStatement(\"select * from dados_imovel_cliente;\");\r\n \r\n //OBJETO DE RESULTADO DA INSTRUÇÃO\r\n rs = pStatement.executeQuery();\r\n \r\n //PERCORRER OS DADOS DA INSTRUÇÃO\r\n while(rs.next()) {\r\n \r\n //OBJETO UTILIZADO PARA BUSCA\r\n Location endereco = new Location();\r\n \r\n //PARAMETROS DE LISTAGEM\r\n endereco.setCep(rs.getString(\"cep\"));\r\n endereco.setRua(rs.getString(\"rua\"));\r\n endereco.setNumero(rs.getInt(\"numero\"));\r\n endereco.setBairro(rs.getString(\"bairro\"));\r\n endereco.setCidade(rs.getString(\"cidade\"));\r\n endereco.setUf(rs.getString(\"uf\"));\r\n endereco.setAndar(rs.getInt(\"andar\"));\r\n endereco.setComplemento(rs.getString(\"complemento\"));\r\n \r\n //OBJETO ADICIONADO A LISTA\r\n enderecos.add(endereco); \r\n }\r\n \r\n //MENSAGEM DE ERRO\r\n } catch (SQLException ErrorSql) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao listar do banco: \" +ErrorSql,\"erro\", JOptionPane.ERROR_MESSAGE);\r\n\r\n //FINALIZAR/FECHAR CONEXÃO\r\n }finally {\r\n ConnectionMVC.closeConnection(conn, pStatement, rs);\r\n } \r\n return enderecos;\r\n }", "private void setupOpenHoursListView() {\n }", "private void displayDatabaseInfo() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Perform this raw SQL query \"SELECT * FROM pets\"\n // to get a Cursor that contains all rows from the pets table.\n\n String[] projection = {\n WaterEntry._ID,\n WaterEntry.COLUMN_DRINK_NAME,\n WaterEntry.COLUMN_DIURETIC_TYPE,\n WaterEntry.COLUMN_DRINK_OUNCES\n };\n\n Cursor cursor = db.query(\n WaterEntry.TABLE_NAME,\n projection,\n null,\n null,\n null,\n null,\n null);\n\n TextView displayView = (TextView) findViewById(R.id.water_view);\n\n try {\n // Create a header in the Text View that looks like this:\n //\n // The pets table contains <number of rows in Cursor> pets.\n // _id - name - breed - gender - weight\n //\n // In the while loop below, iterate through the rows of the cursor and display\n // the information from each column in this order.\n displayView.setText(\"The pets table contains \" + cursor.getCount() + \" pets.\\n\\n\");\n displayView.append(WaterEntry._ID + \" - \" +\n WaterEntry.COLUMN_DRINK_NAME + \" - \" +\n WaterEntry.COLUMN_DIURETIC_TYPE + \" - \" +\n WaterEntry.COLUMN_DRINK_OUNCES + \"\\n\");\n\n // Figure out the index of each column\n int idColumnIndex = cursor.getColumnIndex(WaterEntry._ID);\n int nameColumnIndex = cursor.getColumnIndex(WaterEntry.COLUMN_DRINK_NAME);\n int typeColumnIndex = cursor.getColumnIndex(WaterEntry.COLUMN_DIURETIC_TYPE);\n int ouncesColumnIndex = cursor.getColumnIndex(WaterEntry.COLUMN_DRINK_OUNCES);\n\n // Iterate through all the returned rows in the cursor\n while (cursor.moveToNext()) {\n // Use that index to extract the String or Int value of the word\n // at the current row the cursor is on.\n int currentID = cursor.getInt(idColumnIndex);\n String currentName = cursor.getString(nameColumnIndex);\n String currentType = cursor.getString(typeColumnIndex);\n int currentOunces = cursor.getInt(ouncesColumnIndex);\n String drinkMeasure =\" oz.\";\n // Display the values from each column of the current row in the cursor in the TextView\n displayView.append((\"\\n\" + currentID + \" - \" +\n currentName + \" - \" +\n currentType + \" - \" +\n currentOunces + drinkMeasure));\n }\n } finally {\n // Always close the cursor when you're done reading from it. This releases all its\n // resources and makes it invalid.\n cursor.close();\n }\n\n }", "public void showIngredients() {\n list = dbController.getIngredientsList();\n\n idColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Integer>(\"id\"));\n nameColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, String>(\"name\"));\n caloriesColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"calories\"));\n proteinColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"protein\"));\n fatColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"fat\"));\n carbohydratesColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"carbohydrates\"));\n selectColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, CheckBox>(\"select\"));\n\n TableView.setItems(list);\n }", "public List<Lv1p2> listar()\n {\n \n List<Lv1p2> lista = new ArrayList<Lv1p2>();\n String sql = \"SELECT * FROM lv1p2\";\n PreparedStatement pst = Conexao.getPreparedStatement(sql);\n \n try {\n //Executo o aql e jogo em um resultSet\n ResultSet res = pst.executeQuery();\n //Eqaunto tiver REGISTRO eu vou relacionar\n //com a minha classe Jogador e adicionar na lista \n while(res.next())\n {\n Lv1p2 lv1p2 = new Lv1p2();\n lv1p2.setLota_pro(res.getDouble(\"lota_pro\"));\n lv1p2.setUsuario_id(res.getInt(\"usuario_id\"));\n lv1p2.setVacadecria(res.getInt(\"vaca_de_cria\"));\n lv1p2.setVacadedescarte(res.getInt(\"vaca_de_descarte\"));\n lv1p2.setTerneiro(res.getInt(\"terneiro\"));\n lv1p2.setTerneira(res.getInt(\"terneira\"));\n lv1p2.setNovilho1324(res.getInt(\"novilho_13a24\"));\n lv1p2.setNovilha1324(res.getInt(\"novilha_13a24\"));\n lv1p2.setNovilho2536(res.getInt(\"novilho_25a36\"));\n lv1p2.setNovilha2536(res.getInt(\"novilha_25a36\"));\n lv1p2.setNovilho36(res.getInt(\"novilho_36\"));\n lv1p2.setTouro(res.getInt(\"touro\"));\n lv1p2.setRebanhodecria(res.getInt(\"rebanho_de_cria\"));\n lista.add(lv1p2);\n }\n } catch(SQLException ex){\n \n ex.printStackTrace();\n }\n return lista;\n }", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "@Override\n public ArrayList<Zona> list(String description) {\n ArrayList<Zona> res = new ArrayList<>();\n conn = new Connector();\n conn.conectar();\n con = conn.getConexion();\n String list = \"SELECT id, name \"\n + \"FROM zone \"\n + \"WHERE concat(id,' ',name) like '%\"\n + description + \"%' \"\n + \"ORDER BY id DESC\";\n try {\n st = con.createStatement();\n \n rt = st.executeQuery(list);\n //mientras rt tenga datos se iterara\n while (rt.next()) {\n //accedes en el orden q espesificaste en el select rt.getInt(1) = id_user;\n res.add(new Zona(rt.getInt(1), rt.getString(2)));\n }\n System.out.println(\"Lista de zonas recuperadas correctamente\");\n conn.desconectar();\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, ex);\n }\n return res;\n }", "public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }", "public void populateCarList(View v) {\n String[] carList = new String[singleton.getCars().size()];\n for (int i = 0; i < singleton.getCars().size(); i++) {\n carList[i] = singleton.getCars().get(i).getMake() + \" \" + singleton.getCars().get(i).getModelName()\n + \" \" + singleton.getCars().get(i).getYearMade() + \" \" + singleton.getCars().get(i).getTransmission()\n + \" \" + singleton.getCars().get(i).getEngineDisplacement() + \" L\";\n }\n\n ArrayAdapter<String> adapter = new ArrayAdapter<>(getActivity(), R.layout.car_list_dialog, R.id.carList, carList);\n\n ListView list = (ListView) v.findViewById(R.id.listOfCarData);\n list.setAdapter(adapter);\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n carPosition = position;\n }\n });\n }", "void showAll();", "public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= results.getInt(1)+\"\";\r\n\t\t\t\trow[1]= results.getString(2);\r\n\t\t\t\trow[2]= results.getString(3);\r\n\t\t\t\trow[3]= results.getString(4);\r\n\t\t\t\trow[4]= results.getString(5);\r\n\t\t\t\trow[5]= results.getInt(6)+\"\";\r\n\t\t\t\tmodelHostory.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "public void showListLessonResult(){\n\n //create an ArrayAdapter\n ArrayAdapter<LessonItem> adapter = new ArrayAdapter<LessonItem>(getApplicationContext(),\n R.layout.listview_lesson_item, queryResults){\n @Override\n public View getView(int position, View convertView, ViewGroup parent){\n\n if(convertView == null){\n convertView = getLayoutInflater().inflate(R.layout.listview_lesson_item, parent, false);\n }\n\n tvLesson = (TextView)convertView.findViewById(R.id.tv_lessonName);\n\n LessonItem lesson = queryResults.get(position);\n\n String lessonName = \"Lesson \" + String.valueOf(position + 1) + \": \" + lesson.getLessonName();\n tvLesson.setText(lessonName);\n tvCourseName.setText(\"Software Testing\");\n\n return convertView;\n }\n };\n\n //Assign adapter to ListView\n lvLesson.setAdapter(adapter);\n\n }", "public ListReservations() {\n\t\tsetTitle(\"Liste de Reservations\");\n\t\tsetBounds(100, 100, 450, 300);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\t//contentPane.setLayout(null);\n\t\t//Appel de la couche service\n\t\t\n\t\t\t\tIService service = new ServiceImpl();\n\t\t\t\t\n\t\t\t\t//Appel de la methode ListEtudiants de la couche service.\n\t\t\t\tList<Etudiant> etudiants;\n\t\t\t\t\n\t\t\t\tetudiants = service.listEtudiantsService();\n\t\t\t\t\n\t\t\t\tetudiantModel = new EtudiantModel (etudiants);\n\t\t\t\t //Insertion des attributs de la variable Etudiant model dans la table.\n\t\t table_1 = new JTable(etudiantModel);\t\n\t\ttable_1.setBounds(160, 105, 1, 1);\n\t\t//contentPane.add(table_1);\n\t\tJScrollPane scrollPane = new JScrollPane(table_1);\n\t\t//scrollPane.setBounds(0, 264, 435, -264);\n\t\tcontentPane.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t}", "@Override\n\tpublic List<Show> viewShowList(int theatreid) throws ShowNotFoundException {\n\n\t\tList<Show> showData = repository.findByTheatreId(theatreid);\n\t\tif (showData.isEmpty()) {\n\n\t\t\tthrow new ShowNotFoundException(\"No show found\");\n\t\t} else\n\t\t\treturn showData;\n\t}", "public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }", "ListView getManageReportListView();", "protected List<Map<String, Object>> show() {\n List<Map<String, Object>> output = new ArrayList<>();\n try {\n ResultSet rs;\n try (PreparedStatement stmt = DBConnect.getConnection()\n .prepareStatement(String.format(\"SELECT * FROM %s WHERE userID = ?\", table))) {\n stmt.setLong(1, userId);\n rs = stmt.executeQuery();\n }\n output = DBConnect.resultsList(rs);\n rs.close();\n DBConnect.close();\n } catch (SQLException e) {\n Logger.getLogger(DBConnect.class.getName()).log(Level.SEVERE, \"Failed select\", e);\n }\n return output;\n }", "public List<Client> displayClient ()\r\n {\r\n List<Client> clientListe = new ArrayList<Client>();\r\n String sqlrequest = \"SELECT idCLient,nom,prenom,email,nbrSignalisation FROM pi_dev.client ;\";\r\n try {\r\n PreparedStatement ps = MySQLConnection.getInstance().prepareStatement(sqlrequest);\r\n ResultSet resultat = ps.executeQuery(sqlrequest);\r\n while (resultat.next()){\r\n Client client = new Client();\r\n \r\n \r\n client.setEmail(resultat.getString(\"email\"));\r\n client.setIdClient(resultat.getInt(\"idClient\"));\r\n client.setNom(resultat.getString(\"nom\"));\r\n client.setPrenom(resultat.getString(\"prenom\"));\r\n client.setNbrSignalisation(resultat.getInt(\"nbrSignalisation\"));\r\n \r\n clientListe.add(client);\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ClientDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return clientListe;\r\n }", "public ArrayList<ServerClient> displayAll() throws SQLException\n\t{\n\t\tString SQL_P = \"SELECT * FROM Clients\";\n\t\tResultSet rs;\n\n\t\tArrayList<ServerClient> array = new ArrayList<>();\n\t\tStatement stmt = con.createStatement();\n\t\ttry\n\t\t{\n\t\t\trs = stmt.executeQuery(SQL_P);\n\t\t\twhile (rs.next())\n\t\t\t{\n\n\t\t\t}\n\t\t\treturn array;\n\t\t} finally\n\t\t{\n\t\t\tif (stmt != null)\n\t\t\t{\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t}", "private void displayRoutesList() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tlistOfBus = new ArrayList<Bus>();\r\n\t\taBusStop = new BusStop();\r\n\r\n\t\tStrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()\r\n\t\t\t\t.permitAll().build();\r\n\t\tStrictMode.setThreadPolicy(policy);\r\n\r\n\t\tnew LoadRoutesTask().execute();\t\r\n\t\t/* getBusRoutes();\r\n\t\t \r\n\t\t TextView searchTitle = (TextView) findViewById(R.id.searchPageTitle);\r\n\t\t\tsearchTitle.setText(aBusStop.getStopName() + \" (\"\r\n\t\t\t\t\t+ aBusStop.getStopCode() + \")\");\r\n\t\t\tboxAdapter = new ListAdapter(self, listOfBus);\r\n\t\t\tListView lvMain = (ListView) findViewById(R.id.lvMain);\r\n\t\t\tlvMain.setAdapter(boxAdapter);*/\r\n\t}", "private void getUserList() {\n // GET ENTRIES FROM DB AND TURN THEM INTO LIST \n DefaultListModel listModel = new DefaultListModel();\n Iterator itr = DBHandler.getListOfObjects(\"FROM DBUser ORDER BY xname\");\n while (itr.hasNext()) {\n DBUser user = (DBUser) itr.next();\n listModel.addElement(user.getUserLogin());\n }\n // SET THIS LIST FOR INDEX OF ENTRIES\n userList.setModel(listModel);\n }", "public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void refreshListView() {\n\t\tSQLiteDatabase db = dbh.getReadableDatabase();\n\t\tsharedListView.setAdapter(null);\n\t\tCursor c1 = db.rawQuery(\"SELECT _id, title, subtitle, content, author, otheruser FROM todos WHERE otheruser = '\" + author + \"'\", null);\n\t\tListAdapter adapter2 = new SimpleCursorAdapter(this, R.layout.activity_items, c1, from, to, 0);\n\t\tsharedListView.setAdapter(adapter2);\n\t\tadapter.notifyDataSetChanged();\n\t}", "public S<T> list(String idView,List<Object> objects){\n\t\t\n\t\tidView =idView.intern();\n\t\tT aux = t;\n\t\tint resID = activity.getResources().getIdentifier(idView, \"layout\", activity.getPackageName());\n\t\tListView list = (ListView) t;\n\t\tSAdapter a = new SAdapter(resID,objects);\n\t\tlist.setAdapter(a);\n\t\t\n\t\tt = aux;\n\t\treturn this;\n\t}", "private void LoadList() {\n try {\n //get the list\n ListView termListAdpt = findViewById(R.id.assessmentListView);\n //set the adapter for term list\n AssessmentAdapter = new ArrayAdapter<String>(AssessmentActivity.this, android.R.layout.simple_list_item_1, AssessmentData.getAssessmentsbyNames());\n termListAdpt.setAdapter(AssessmentAdapter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tprotected void doListado() throws Exception {\n\t\tList<Department> deptos = new DepartmentDAO().getAllWithManager();\n//\t\tList<Department> deptos = new DepartmentDAO().getAll();\n\t\tthis.addColumn(\"Codigo\").addColumn(\"Nombre\").addColumn(\"Manager\").newLine();\n\t\t\n\t\tfor(Department d: deptos){\n\t\t\taddColumn(d.getNumber());\n\t\t\taddColumn(d.getName());\n\t\t\taddColumn(d.getManager().getFullName());\n\t\t\tnewLine();\n\t\t}\n\t}", "private void rutasToTabla(){\n //Cargamos base de datos.\n ManejadorBD db = new ManejadorBD(getApplicationContext());\n //Obtenemos todas las rutas de la base de datos\n ArrayList<Ruta> rutas = db.obtenerRutas();\n\n ListView lista = (ListView) findViewById(R.id.ListView_listado);\n //Cada ruta estará almacenada en una listview que mostrará la información de la misma.\n lista.setAdapter(new com.asimov.sportroutes.General.ListAdapter(this, R.layout.info_ruta, rutas) {\n @Override\n public void onEntrada(Object entrada, View view) {\n if (entrada != null) {\n //Mostramos el nombre\n TextView nombre = (TextView) view.findViewById(R.id.textNombre);\n if (nombre != null)\n nombre.setText(((Ruta) entrada).getNombre());\n //Mostramos el mejor tiempo.\n TextView mejor = (TextView) view.findViewById(R.id.textMejor);\n if (mejor != null)\n mejor.setText(((Ruta) entrada).getTiempoMejorHumano());\n //Mostramos el ultimo tiempo.\n TextView ultimo = (TextView) view.findViewById(R.id.textUltimo);\n if (ultimo != null)\n ultimo.setText(((Ruta) entrada).getTiempoUltimoHumano());\n final TextView ciudad = (TextView) view.findViewById(R.id.textViewCiudad);\n final ImageView img = (ImageView) view.findViewById(R.id.imageViewClima);\n final TextView temp = (TextView) view.findViewById(R.id.textViewTemperatura);\n if (!mostrarTiempo){\n img.setVisibility(View.INVISIBLE);\n }\n if(!mostrarTemperatura){\n temp.setVisibility(View.INVISIBLE);\n }\n\n //lo mismo para el clima\n LatLng coordenada = ((Ruta) entrada).getCoordenadas().get(0);\n class ClimaAsincrono extends AsyncTask<String, Void, Clima> {\n\n @Override\n protected Clima doInBackground(String... params) {\n Clima clima = new Clima();\n String data = ((new ClimaClienteHttp()).getClima(params[0], params[1]));\n\n try {\n clima = jsonClimaParser.getWeather(data);\n\n clima.iconDrawable = ((new ClimaClienteHttp()).getImagen(clima.currentCondition.getIcon()));\n Log.d(\"LOGD\", clima.currentCondition.getIcon() );\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return clima;\n\n }\n\n @Override\n protected void onPostExecute(Clima clima) {\n super.onPostExecute(clima);\n img.setImageDrawable(clima.iconDrawable);\n temp.setText(String.valueOf(clima.temperature.getTemp() + \" ºC\"));\n String textAux =clima.localizacion.getCiudad() + \", \" + clima.localizacion.getPais();\n ciudad.setText(textAux);\n }\n }\n ClimaAsincrono peticion = new ClimaAsincrono();\n peticion.execute(String.valueOf(coordenada.latitude),\n String.valueOf(coordenada.longitude));\n }\n }\n });\n //Indicamos lo que le pasa al elemento al ser clicado\n lista.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Ruta rPulsada = (Ruta) parent.getItemAtPosition(position);\n Intent intent = new Intent(getApplicationContext(),VerRutaActivity.class);\n intent.putExtra(\"ruta\", rPulsada);\n startActivity(intent);\n }\n });\n }", "private void displayNearbyDoctors(ListView mListView) {\n\n if (!nearbyDoctorsData.isEmpty()) {\n\n Sort.byKeyValue(nearbyDoctorsData, \"distance\", float.class, Sort.ASCENDING);\n\n for (HashMap i : nearbyDoctorsData) {\n\n float distance = Float.parseFloat(i.get(\"distance\").toString());\n String convertedDistance;\n\n if (distance < 1) {\n //convert to m\n\n convertedDistance = String.format(\"%.0f\", (distance * 1000)) + \" m\";\n } else {\n convertedDistance = String.format(\"%.1f\", distance) + \" km\";\n }\n\n i.remove(\"distance\");\n i.put(\"distance\", convertedDistance);\n\n }\n\n String[] from = {\n \"id\",\n \"name\",\n \"address\",\n \"distance\"\n };\n\n int[] to = {R.id.hidden_nearby_id, R.id.text_nearby_name, R.id.text_nearby_address, R.id.text_nearby_distance};\n\n //create a list adapter\n doctorsAdapter = new SimpleAdapter(getApplicationContext(), nearbyDoctorsData, R.layout.item_nearby_doctor, from, to);\n\n //apply list adapter\n mListView.setAdapter(doctorsAdapter);\n mListView.setVisibility(View.VISIBLE);\n\n addDoctorsMarkers(this.mMapboxMap, nearbyDoctorsData);\n\n //apply onclick listener to redirect to the selected doctors profile activity\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //on click send to doctor profile activity\n TextView mTextViewId = view.findViewById(R.id.hidden_nearby_id);\n TextView mTextViewName = view.findViewById(R.id.text_nearby_name);\n TextView mTextViewAddress = view.findViewById(R.id.text_nearby_address);\n\n Intent intent = new Intent(LocateDoctorActivity.this, DoctorInfoActivity.class);\n\n //pass intent extra(doctorID)\n intent.putExtra(\"doctorId\", mTextViewId.getText().toString());\n intent.putExtra(\"doctorName\", mTextViewName.getText().toString());\n intent.putExtra(\"doctorAddress\", mTextViewAddress.getText().toString());\n startActivity(intent);\n\n }\n });\n\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_display_moves, container, false);\n\n SQLiteDatabase db = PokeDatabase.getInstance(getActivity()).getReadableDatabase();\n String query = \"select moves.name, types.name, moves.accuracy, moves.power, moves.pp, \" +\n \"move_categories.name, moves.description \" +\n \"from moves \" +\n \"join move_categories on move_category_id = move_categories.id \" +\n \"join types on type_id = types.id\";\n Cursor c = db.rawQuery(query, null);\n\n List<Move> moves = new ArrayList<>();\n while (c.moveToNext()) {\n moves.add(new Move(c));\n }\n c.close();\n\n MovesAdapter adapter = new MovesAdapter(getActivity(), moves);\n setFilterableAdapter(adapter);\n setQueryHint(\"Search moves\");\n\n ListView listView = (ListView) view.findViewById(R.id.listview);\n listView.setAdapter(adapter);\n listView.setEmptyView(view.findViewById(R.id.empty_text));\n return view;\n }", "@Override\r\n\tpublic void showlist() {\n int studentid = 0;\r\n System.out.println(\"请输入学生学号:\");\r\n studentid = input.nextInt();\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.showlist(studentid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n \r\n\t}", "public void listado()\n {\n BuscarL.setText(\"Listado Libros\");\n listViewLibros.setVisibility(View.VISIBLE);\n editTextBuscar.setVisibility(View.INVISIBLE);\n btnBuscarL.setVisibility(View.INVISIBLE);\n textView2.setVisibility(View.INVISIBLE);\n texto.setVisibility(View.INVISIBLE);\n radioButtonTitulo.setVisibility(View.INVISIBLE);\n radioButtonAutor.setVisibility(View.INVISIBLE);\n radioButtonEditorial.setVisibility(View.INVISIBLE);\n\n\n\n\n\n Libro[] arr=new Libro[arrLibros.size()];\n for(int i=0;i<arrLibros.size();i++)\n {\n arr[i]=arrLibros.get(i);\n }\n AdaptadorLibros adaptador = new AdaptadorLibros(BuscarLibro.this, arr);\n listViewLibros.setAdapter(adaptador);\n\n\n\n }", "private void setupListView() {\n //Main and Description are located in the strings.xml file\n String[] title = getResources().getStringArray(R.array.Main);\n String[] description = getResources().getStringArray(R.array.Description);\n SimpleAdapter simpleAdapter = new SimpleAdapter(this, title, description);\n listview.setAdapter(simpleAdapter);\n\n listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n switch(position){\n case 0: {\n //Intent means action (communication between two components of the app)\n Intent intent = new Intent(MainActivity.this, WeekActivity.class);\n startActivity(intent);\n break;\n }\n case 1: {\n Intent intent = new Intent(MainActivity.this, SubjectActivity.class);\n startActivity(intent);\n break;\n }\n case 2: {\n Intent intent = new Intent(MainActivity.this, FacultyActivity.class);\n startActivity(intent);\n break;\n }\n case 3: {\n break;\n }\n default:{\n break;\n }\n }\n }\n });\n }", "public List<T> showAllClients();", "public void displayDatabaseInfo() {\n SQLiteDatabase db = this.getReadableDatabase();\r\n\r\n String[] projection = {\r\n StoreEntry._ID,\r\n StoreEntry.COLUMN_PRODUCT_NAME,\r\n StoreEntry.COLUMN_PRODUCT_QUANTITY,\r\n StoreEntry.COLUMN_PRODUCT_PRICE,\r\n StoreEntry.COLUMN_PRODUCT_SUPPLIER_NAME,\r\n StoreEntry.COLUMN_PRODUCT_SUPPLIER_PHONE };\r\n\r\n Cursor cursor = db.query(\r\n StoreEntry.TABLE_NAME, // The table to query\r\n projection, // The columns to return\r\n null, // The columns for the WHERE clause\r\n null, // The values for the WHERE clause\r\n null, // Don't group the rows\r\n null, // Don't filter by row groups\r\n null); // The sort order\r\n\r\n try {\r\n\r\n int idColumnIndex = cursor.getColumnIndex(StoreEntry._ID);\r\n int nameColumnIndex = cursor.getColumnIndex(StoreEntry.COLUMN_PRODUCT_NAME);\r\n\r\n while (cursor.moveToNext()) {\r\n\r\n int currentID = cursor.getInt(idColumnIndex);\r\n String currentName = cursor.getString(nameColumnIndex);\r\n\r\n Log.v(currentID + \"\", currentName + \"\");\r\n }\r\n } finally {\r\n cursor.close();\r\n }\r\n }", "@Override\n\tpublic Iterable<Flight> viewAllFlight() {\n\t\treturn flightDao.findAll();\n\t}", "public abstract void executeListView(int pos);", "public ListaCliente() {\n\t\tClienteRepositorio repositorio = FabricaPersistencia.fabricarCliente();\n\t\tList<Cliente> clientes = null;\n\t\ttry {\n\t\t\tclientes = repositorio.getClientes();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tclientes = new ArrayList<Cliente>();\n\t\t}\n\t\tObject[][] grid = new Object[clientes.size()][3];\n\t\tfor (int ct = 0; ct < clientes.size(); ct++) {\n\t\t\tgrid[ct] = new Object[] {clientes.get(ct).getNome(),\n\t\t\t\t\tclientes.get(ct).getEmail()};\n\t\t}\n\t\tJTable table= new JTable(grid, new String[] {\"NOME\", \"EMAIL\"});\n\t\tJScrollPane scroll = new JScrollPane(table);\n\t\tgetContentPane().add(scroll, BorderLayout.CENTER);\n\t\tsetTitle(\"Clientes Cadastrados\");\n\t\tsetSize(600,400);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tsetLocationRelativeTo(null);\n\t}", "public void displayUsers(){\n //go through the userName arraylist and add them to the listView\n for(String val:this.userNames){\n this.userListView.getItems().add(val);\n }\n }", "public void setListView() {\n arr = inSet.toArray(new String[inSet.size()]);\n adapter = new ArrayAdapter(SetBlock.this, android.R.layout.simple_list_item_1, arr);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n adapter.notifyDataSetChanged();\n listView.setAdapter(adapter);\n }\n });\n }", "public void displayOnderwerpList() {\n List<Onderwerp> onderwerpList = winkel.getOnderwerpList();\n System.out.println(\"Kies een onderwerp: \");\n for (int i = 0; i < onderwerpList.size(); i++) {\n System.out.println((i + 1) + \". \" + onderwerpList.get(i));\n }\n }", "@Override\n\tpublic void initView() {\n\t\tmylis_show.setTitleText(\"我的物流\");\n\t\tlistView = mylis_listview.getRefreshableView();\n\t\t\n\t}", "private void showArrayAdaptView() {\n\t\tPersonAdapt personAdapt = new PersonAdapt(this, persons, R.layout.listview_item);\n\t\tlistView.setAdapter(personAdapt);\n\t}", "protected void displayListView(ListView eventsList) {\n final ArrayAdapter adapter = new EventsAdapter(this, events);\n eventsList.setAdapter(adapter);\n eventsList.setVisibility(View.VISIBLE);\n }", "public void updateListView(){\n mAdapter = new ListViewAdapter(getActivity(),((MainActivity)getActivity()).getRockstarsList());\n mRockstarsListView.setAdapter(mAdapter);\n }", "public static void searchDisplays(){\r\n try {\r\n \r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(displays);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT *,r.tam,r.resolucion FROM articulos a,mon r WHERE a.codigo = r.producto_id\");\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n \r\n singleton.dtm.addRow(getArrayDeObjectosMon(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"tam\"),rs.getString(\"resolucion\")));\r\n\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }" ]
[ "0.67847985", "0.65353984", "0.64636886", "0.63712525", "0.6341951", "0.6335774", "0.6307048", "0.630487", "0.63023573", "0.62684166", "0.62569135", "0.6199689", "0.61862314", "0.6174594", "0.6158796", "0.6137387", "0.61330384", "0.6083893", "0.60819906", "0.6058839", "0.60368496", "0.60350955", "0.60039264", "0.59963447", "0.5971141", "0.59701663", "0.596651", "0.59438884", "0.59297556", "0.5922642", "0.59116054", "0.59030485", "0.5895655", "0.58886564", "0.5849113", "0.5833635", "0.5825104", "0.57893604", "0.57558644", "0.5744433", "0.5743453", "0.57230407", "0.57085294", "0.56987244", "0.5692804", "0.5680652", "0.5656524", "0.5644521", "0.564104", "0.56326455", "0.5632584", "0.56184524", "0.56162006", "0.5610061", "0.56074274", "0.55970377", "0.55928504", "0.55830014", "0.557626", "0.5572668", "0.55722207", "0.5570169", "0.55593765", "0.5552757", "0.5548097", "0.5545329", "0.5527444", "0.55220723", "0.55190223", "0.5508695", "0.55005676", "0.54984754", "0.5495731", "0.54847544", "0.5481387", "0.5473985", "0.54704934", "0.54573023", "0.5443877", "0.5433095", "0.54316276", "0.541472", "0.54116756", "0.5409266", "0.5408843", "0.5408693", "0.5402328", "0.5399728", "0.5390275", "0.5373032", "0.5368958", "0.5367832", "0.53663784", "0.53656787", "0.53629875", "0.53609055", "0.53595483", "0.535796", "0.53513485", "0.5345773" ]
0.7860506
0
Function DeleteData is getting a userToDelete from the Admin , and then deletes the soldier from Soldiers database.
private void DeleteData (String userToDelete) { cursor = db.rawQuery("SELECT * FROM "+MySQLiteHelper.TABLE_NAME+" WHERE "+MySQLiteHelper.COLUMN_USERNAME+"=?",new String[] {userToDelete}); if (cursor != null) { if(cursor.getCount() > 0) { cursor.moveToFirst(); String whereClause = MySQLiteHelper.COLUMN_USERNAME+ "=?"; String [] whereArgs = new String[] {userToDelete}; db.delete(MySQLiteHelper.TABLE_NAME , whereClause , whereArgs); showListView(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteSoldierArrangement (String userToDelete)\n {\n cursor3 = arrangement_db.rawQuery(\"SELECT * FROM \"+MyArrangementSQLiteHelper.TABLE_NAME+\" WHERE \"+MyArrangementSQLiteHelper.COLUMN_USERNAME+\"=?\",new String[] {userToDelete});\n if (cursor3!=null)\n {\n cursor3.moveToFirst();\n String whereClause = MyArrangementSQLiteHelper.COLUMN_USERNAME+ \"=?\";\n String [] whereArgs = new String[] {userToDelete};\n arrangement_db.delete(MyArrangementSQLiteHelper.TABLE_NAME , whereClause , whereArgs);\n Toast.makeText(ListDataActivity.this,\"The arrangments of the deleted soldier deleted sucssesfully\",Toast.LENGTH_LONG);\n }\n else Toast.makeText(ListDataActivity.this,\"There are no arrangements for the deleted soldier\",Toast.LENGTH_LONG);\n }", "public void deleteDataInUserTable() throws SQLException {\n\t\tdeleteData(\"login_register\",idCondition);\n\t\tdeleteData(\"user_period\",\"APPLICANT_\"+idCondition);\n\t\tdeleteData(\"user_period\",\"APPLICANT_\"+idCondition);\n\t\tdeleteData(\"message\",idCondition);\n\t\tdeleteData(\"jp_user\",\"CI != 123\");\n\t}", "public void deleteUserData(){\n buttonResetDb.setOnClickListener(\n new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n app_db.truncateAllFactTables();\n Toast.makeText(MainActivity.this, \"DB Cleansed\", Toast.LENGTH_LONG).show();\n resetMainActivity();\n }\n }\n );\n }", "private void deleteDataResult(final DataResult dataResult) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n alertDialogBuilder.setTitle(\"Are You Sure ?\");\n alertDialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(final DialogInterface dialogInterface, int i) {\n\n if (dataResult.isIs_clouded()) {\n// DatabaseReference databaseReference = firebaseUserHelper.getDatabaseReference().child(\"user\").child(firebaseUserHelper.getFirebaseUser().getUid()).child(\"data_result\").child(String.valueOf(dataResult.getId()));\n// databaseReference.removeValue();\n// firebaseUserHelper.getStorageReference().child(String.valueOf(dataResult.getId())).delete();\n DeleteDataResult deleteDataResult = new DeleteDataResult();\n deleteDataResult.setUid(MoflusSharedPreferenceHelper.getUser(context).getUid());\n deleteDataResult.setData_result_id(dataResult.getId());\n MoFluSService.getService().deleteDataResult(\n deleteDataResult\n ).enqueue(new Callback<Status>() {\n @Override\n public void onResponse(Call<Status> call, Response<Status> response) {\n if (response.body()!= null &&response.body().isSuccess()) {\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n } else {\n Toast.makeText(context, \"Delete Failed\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n\n @Override\n public void onFailure(Call<Status> call, Throwable t) {\n Toast.makeText(context, \"No Internet Access\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n });\n }else{\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n });\n alertDialogBuilder.show();\n }", "void deleteUser(int id) throws DataAccessException;", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "public void deleteExercise(User user) {\n\n\t}", "public void deleteUser(User selectedUser) throws SQLException, IOException {\n userManager.deleteUser(selectedUser);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }", "public static int delete(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from t_user where id=?\"); \n ps.setInt(1,u.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }", "public void Delete() {\r\n try {\r\n\r\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\r\n } catch (Exception e) {}\r\n\r\n\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n try {\r\n conn =\r\n DriverManager.getConnection(\"jdbc:mysql://127.0.0.1/logingui?user=root&password=\");\r\n\r\n // Do something with the Connection\r\n stmt = conn.createStatement();\r\n\r\n String del = delUser.getText();\r\n\r\n if (stmt.execute(\"DELETE FROM `logingui`.`company` WHERE `id`='\" + del + \"';\")) {\r\n\r\n }\r\n JOptionPane.showMessageDialog(this, \"User deleted from the system!\");\r\n\r\n // loop over results\r\n\r\n } catch (SQLException ex) {\r\n // handle any errors\r\n System.out.println(\"SQLException: \" + ex.getMessage());\r\n System.out.println(\"SQLState: \" + ex.getSQLState());\r\n System.out.println(\"VendorError: \" + ex.getErrorCode());\r\n }\r\n }", "private void deleteHocSinh() {\n\t\tString username = (String) table1\n\t\t\t\t.getValueAt(table1.getSelectedRow(), 0);\n\t\thocsinhdao.deleteUser(username);\n\t}", "public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }", "@Override\n protected Void doInBackground(Void... voids) {\n mDb.getAppDatabase()\n .mydao()\n .delete(userToDel);\n\n return null;\n }", "public static void deleteUser(String[] parameter) throws ClassNotFoundException, SQLException{\n //delete user\n userDB.getConnection();\n userDB.executeUpdate(UdeleteCmd, parameter);\n userDB.closeAll();\n //clear interest information\n interest.interestDB.getConnection();\n interest.interestDB.executeUpdate(interest.IdeleteCmd, parameter);\n interest.interestDB.closeAll();\n }", "private void deleteUser() throws SQLException {\n System.out.println(\"Are you sure you want to delete your user? Y/N\");\n if (input.next().equalsIgnoreCase(\"n\")) return;\n\n List<Integer> websiteIds = new ArrayList<>();\n try (PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n websiteIds.add(rs.getInt(\"website_data_id\"));\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n for (int website : websiteIds) {\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM website_data \" +\n \"WHERE website_data_id like (?)\")) {\n stmt.setInt(1, website);\n stmt.executeUpdate();\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM users \" +\n \"WHERE id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n System.out.println(\"User \" + user.getUsername() + \" deleted.\");\n System.exit(0);\n }", "void DeleteCompteUser(int id);", "public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }", "@DeleteMapping(\"/user-data/{id}\")\n @Timed\n public ResponseEntity<Void> deleteUserData(@PathVariable Long id) {\n log.debug(\"REST request to delete UserData : {}\", id);\n userDataRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }", "@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el usuario de la bd\");\n\t}", "@Override\n\tpublic String deleteUser(Map<String, Object> reqs) {\n\t\tString result = \"success\";\n\t\tString sql = \"delete from tp_users where userId=:userId\";\n\t\n\t\ttry {\n\t\t\tjoaSimpleDao.executeUpdate(sql, reqs);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tresult = \"failed\";\n\t\t}\n\t\treturn result;\n\t}", "public void deleteUser(User userToDelete) throws Exception;", "public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "public static void remove() {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString jdbcURL = \"jdbc:mysql://localhost:3306/sampldb\";\n\t\t String dbUsername=\"root\";\n\t\t String dbPassword=\"password\";\n\t\t \n\t\t System.out.println(\"Database Connected Successfully\");\n\t\t\t\t \n\t\t\t\t \n\t\t \n\t\t Scanner in4=new Scanner(System.in);\n\t\t \n\t\t System.out.println(\"Enter Username\");\n\t\t String username=in4.nextLine();\n\t\t \n\t\t \n\t\t \n\t\t\t/* System.out.println(\"Which operation you want to execute \\n 1.Insert into table.\\n 2.Update table \\n 3.Delete data from table \\n 4.Show the data\");\n\t\t */\n\t\t \n\t\t \n\t\t \t \n\t\t \n\t\t try {\n\t\t Connection connection = DriverManager.getConnection(jdbcURL,dbUsername,dbPassword);\n\t \n\t\t if(connection!=null) {\n\t\t \tSystem.out.println(\"\\nconnected to the database.....................\");\n\t\t \t\n\t\t }\n\t\t \n\t\t String sql=\"DELETE FROM users WHERE username=?\";\n\t\t \n\t\t \tPreparedStatement statement = connection.prepareStatement(sql);\n\t\t \tstatement.setString(1,username);\n\t\t \t\n\t\t \tint rows=statement.executeUpdate();\n\t\t \t\n\t\t \tif (rows >0) {\n\t\t \t\tSystem.out.println(\"A user has been removed successfully.....!!!!!!!!\");\n\t\t \t}\n\t\t \t connection.close();\n\t\t \t \n\t\t }\n\t\t catch(SQLException ex) {\n\t\t \tex.printStackTrace();\n\t\t }\n\t\t \n\n\t\t}", "public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}", "public void delete(User user)throws Exception;", "@Override\r\n\tpublic String delete() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(admin.getAdminAccount());\r\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doDelete(paramList)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"ɾ³ý\");\r\n\t\treturn SUCCESS;\r\n\t}", "void delData();", "void deleteUser(String deleteUserId);", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "@Override\r\n public void damdelete(Integer[] da_id) {\n userMapper.damdelete(da_id);\r\n }", "public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public void delete() throws Exception {\n\t\tLOGGER.info(\n\t\t\t\t\"Start of DataListTableBean:delete()\");\n\t\ttry {\n\t\t\tcomponentService.delete(data);\n\t\t\tdataList = componentService.findAllComponent();\n\t\t\t\n\t\t\tFacesMessage facesMessage = new FacesMessage(\n\t\t\t\t\tFacesMessage.SEVERITY_INFO, \"Data is Deleted\",\n\t\t\t\t\t\"Data is Deleted\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, facesMessage);\n\t\t\t\n\t\t\tLOGGER.info(\n\t\t\t\t\t\"End of DataListTableBean:delete()\");\t\n\t\t} catch (Exception e) {\n\t\t\tmanageError(e, \"Error while Deleting data. \");\n\t\t}\n\t}", "public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }", "public void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);", "@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}", "public static String deleteUser(ArrayList<String> arrayUser) {\n\t\tConnection con = ConnectDB.getConnection();\n\t\tString sql=\"\";\n\t\ttry{\n\t\t\tfor(int i=0;i<arrayUser.size();i++){\n\t\t\t\tif(\"chunhahang\".equals(arrayUser.get(i))) return \"chunhahang\";\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"Administrator vừa xóa các tài khoản: \");\n\t\t\tfor(int i=0;i<arrayUser.size();i++){\n\t\t\t\tsql = \"{call deleteUser(?)}\";\n\t\t\t\tCallableStatement stmt = con.prepareCall(sql);\n\t\t\t\tstmt.setString(1, arrayUser.get(i));\n\t\t\t\tstmt.execute();\n\t\t\t\tstmt.close();\n\t\t\t\t\n\t\t\t\tSystem.out.print(arrayUser.get(i)+\" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\t\t\t\t\n\t\t\treturn \"ok\";\n\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn \"error\";\n\t}", "private void deleteExec(){\r\n\t\tList<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1);\r\n\t\tif(selectedDatas.size()<1){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Please select at least 1 item to delete\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint options = 1;\r\n\t\tif(selectedDatas.size() ==1 ){\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete this Item ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}else{\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete these \"+selectedDatas.size()+\" Items ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}\r\n\t\tif(options==1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor(HashMap<String,String> map:selectedDatas){\r\n\t\t\t\r\n\t\t\tdiscountService.deleteDiscountByMap(NameConverter.convertViewMap2PhysicMap(map, \"Discount\"));\r\n\t\t}\r\n\t\tthis.initDatas();\r\n\t}", "public void delete(User usuario);", "@PostMapping(path = \"/delete\", produces = \"application/json\")\n public @ResponseBody\n String deleteUser(@RequestBody TaiKhoan user) {\n // Admin admin = mAdminDao.findByToken(token);\n //if (admin != null) {\n TaiKhoan tk = mTaiKhoanDao.findByTentkAndSdt(user.getTentk(), user.getSdt());\n if (tk != null) {\n mTaiKhoanDao.delete(tk);\n return AC_DELETE_SUCESS;\n } else return AC_DELETE_NO_SUCESS;\n //} else return AC_DELETE_NO_SUCESS;\n }", "private ArrayList<String> doDelete(){\n \t\tUserBean user = (UserBean) Util.loadDataFromLocate(this.getContext(), \"user\");\n \t\tString mobile = user.getPhone();\n \t\tString password = user.getPassword();\n \n \t\tjson = \"\";\n //\t\tString apiName = \"ad_delete\";\n \t\tArrayList<String> list = new ArrayList<String>();\n \t\tlist.add(\"mobile=\" + mobile);\n \t\tString password1 = Communication.getMD5(password);\n \t\tpassword1 += Communication.apiSecret;\n \t\tString userToken = Communication.getMD5(password1);\n \t\tlist.add(\"userToken=\" + userToken);\n \t\tlist.add(\"adId=\" + detail.getValueByKey(GoodsDetail.EDATAKEYS.EDATAKEYS_ID));\n \t\tlist.add(\"rt=1\");\n \t\t\n \t\treturn list;\t\t\n \t}", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "public int deleteEntry(String UserName) {\n\n String where = \"USERNAME=?\";\n int numberOFEntriesDeleted = db.delete(\"LOGIN\", where,\n new String[] { UserName });\n Toast.makeText(\n context,\n \"Number fo Entry Deleted Successfully : \"\n + numberOFEntriesDeleted, Toast.LENGTH_LONG).show();\n return numberOFEntriesDeleted;\n\n }", "public void deleteDoctor() {\n\n\t\tSystem.out.println(\"\\n----Remove Doctor----\");\n\t\tSystem.out.print(\"Enter Doctor Id: \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString doctor_id = sc.nextLine();\n\n\t\ttry {\n\t\t\tif (doctorDao.searchById(doctor_id).size() == 0) {\n\t\t\t\tlogger.info(\"Doctor Not Found!\");\n\t\t\t} else {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdoctorDao.delete(doctor_id);\n\t\t\t\t\tlogger.info(\"Data Deleted Successfully...\");\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.info(\"Data Deletion Unsuccessful...\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tlogger.info(e.getMessage());\n\t\t}\n\t}", "public static void deleteUserByUsernameForAdmin(String username){\n\n adminServices.deleteUserByUsername(username);\n\n // boolean deleted = adminServices.deleteUserByUsername(username);\n//\n// if (deleted){\n//\n// System.out.println(\"Der Employee mit der Username:\"+ username +\"wurde gelöscht.\");\n// }else {\n//\n// System.out.println(\"Der Employee mit der Username:\"+ username +\"wurde nicht gelöscht.\");\n// }\n }", "@Test\n void testDeleteUser() {\n List<User> allUsers = userData.crud.getAll();\n int deleteId = allUsers.get((allUsers.size() - 1)).getId();\n userData.crud.deleteRecord(userData.crud.getById(deleteId));\n assertNull(userData.crud.getById(deleteId));\n // List<User> allUsersMinusOne = userData.crud.getAll();\n // assertNotEquals(allUsersMinusOne, allUsers);\n logger.info(\"Deleted record for ID: \" + deleteId);\n\n LocationData locationData = new LocationData();\n Location location = new Location();\n Set<Location> userLocations = location.getLocations((User) userData.crud.getById(deleteId));\n\n assertEquals(0, userLocations.size());\n\n }", "public void DeleteData()\n {//Delete Data\n String strQuery = \"DELETE FROM HW_Stock WHERE ItemCode='\" + txtIC.getText() +\"';\";\n\n int yn;\n yn = JOptionPane.showConfirmDialog(null, \"Are you sure you want to DELETE this record ?\", \"Conformation...\",\n JOptionPane.YES_NO_OPTION, 3, imgQ);\n\n if (yn == JOptionPane.YES_OPTION)\n {\n try\n {\n hwscon.DeleteData(strQuery);\n StartWorking(\"DELETING RECORD\");\n JOptionPane.showMessageDialog(null, \"Server: Record Deleted!\", \"Information\", 1);\n clearFields();\n getConnected();\n\n }catch(RemoteException re)\n {\n System.out.println(\"Client [frmHWStock]: DELETE DATA Error\");System.out.println(\"Error: \"+re.getMessage());\n JOptionPane.showMessageDialog(null, \"SAVE DATA Error\\nClient [frmHWStock]: \"+re.getMessage(),\n \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }\n else {}\n }", "@Override\n\tpublic void delUser(String[] id) {\n\n\t}", "void eliminarPedidosUsuario(String idUsuario);", "public void deleteUsuario(Usuario usuario) {\n\t\t\n\t}", "@Override\n\tpublic List<Resident> deleteResident(int user_id) {\n\t\tQuery query = getSession().createQuery(\"delete from RESIDENT_HMS resident where user_id=:user_id\");\n\t\tquery.setParameter(\"user_id\",user_id);\n\t\tint noofrows=query.executeUpdate();\n\t\tif(noofrows>0)\n\t\t{\n\t\t\tSystem.out.println(\"Deleted successfully\");\n\t\t}\n\t\t\n\t\treturn getResidentList();\n\t}", "int delTravelByIdUser(Long id_user);", "@Override\r\n public void userdelete(Integer[] u_id) {\n userMapper.userdelete(u_id);\r\n }", "void deleteUser(int id);", "private void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query = \"select * from items where IT_ID=?\";\n\t\t\t\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\tpst.setString(1, txticode.getText());\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 1)\n\t\t\t{\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null, \"Are you sure you want to delete selected item data?\", \"ALERT\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(choice==JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\tquery=\"delete from items where IT_ID=?\";\n\t\t\t\t\tpst = con.prepareStatement(query);\n\t\t\t\t\t\n\t\t\t\t\tpst.setString(1, txticode.getText());\n\t\t\t\t\t\n\t\t\t\t\tpst.execute();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deleted Successfully\", \"RESULT\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tloadData();\n\t\t\t\t\n\t\t\t\trs.close();\n\t\t\t\tpst.close();\n\t\t\t\tcon.close();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Record Not Found!\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tcon.close();\n\t\t\t\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t}", "private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }", "public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View v) {\n final Intent intent = new Intent(context, admin_show_std.class);\n intent.putExtra(\"roll\", adminUserList.get(holder.getAdapterPosition()).getRoll());\n final String roll = intent.getStringExtra(\"roll\");\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Delete ?\" + roll).setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n adminUserList.remove(adminUserList.get(position));\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference().child(\"UsersData\");\n assert roll != null;\n databaseReference.child(roll).removeValue();\n notifyItemRemoved(position);\n notifyDataSetChanged();\n Toast.makeText(context, \"User Deleted\" + position, Toast.LENGTH_SHORT).show();\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.setTitle(\"Confirm\");\n dialog.show();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String nama = String.valueOf(cbbNama.getSelectedItem());\n String pilihan2 = String.valueOf(cbbPilihan2.getSelectedItem());\n //dapetin nama nama table\n LinkedList<String> arrTable = DataAksesAdmin.listTable();\n //linked list buat nampung yg mau dihapus\n LinkedList<String> forDelete = new LinkedList<>();\n //pindahin ke array kalo ada namanya\n for(int i = 0; i < arrTable.size(); i++){\n for(int j = 1; j < 15; j++){\n if(arrTable.get(i).equals(nama+j)){\n forDelete.add(arrTable.get(i));\n }\n }\n }\n DataAksesAdmin.delUser(nama, pilihan2, forDelete);\n JOptionPane.showMessageDialog(null, \"Data Berhasil Dihapus!\");\n }", "public static int deleteUser(int adminId) {\r\n\t\t//conn = DBConnection.getConnection();\r\n\t\tPreparedStatement statement;\r\n\t\ttry {\r\n\r\n\t\t\tstatement = conn.prepareStatement(deleteQuery);\r\n\t\t\tstatement.setInt(1, adminId);\r\n\t\t\tint rowsUpdated = statement.executeUpdate();\r\n\t\t\tif (rowsUpdated == 1)\r\n\t\t\t\treturn 1;\r\n\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 boolean deleteAllOfUser(Integer idu);", "public void eliminarUsuario(Long idUsuario);", "public static void deleteUser() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.deleteUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void deleteSelectRecord(User selectUser) {\r\n Connection con;\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Deletestmt(selectUser.getmNum());\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeUpdate(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "public void deleteUser(int userID) {\n\n\t\tString sql = \"DELETE FROM Portfolio_of_Project WHERE Pop_id = \" + userID;\n\n\t\tjdbcTemplate.update(sql);\n\n\t}", "@Override\n\tpublic Item delete() {\n\t\treadAll();\n\t\tLOGGER.info(\"\\n\");\n\t\t//user can select either to delete a customer from system with either their id or name\n\t\tLOGGER.info(\"Do you want to delete record by Item ID\");\n\t\tlong id = util.getLong();\n\t\titemDAO.deleteById(id);\n\t\t\t\t\n\t\t\t\t\n\t\treturn null;\n\t}", "void deleteUser(String userId);", "void deleteUser(String username) throws UserDaoException;", "public void removeUser(int id) throws AdminPersistenceException {\n CallBackManager.invoke(CallBackManager.ACTION_BEFORE_REMOVE_USER, id, null,\n null);\n \n UserRow user = getUser(id);\n if (user == null)\n return;\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des groupes dans la base\", null);\n GroupRow[] groups = organization.group.getDirectGroupsOfUser(id);\n for (int i = 0; i < groups.length; i++) {\n organization.group.removeUserFromGroup(id, groups[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des rôles dans la base\", null);\n UserRoleRow[] roles = organization.userRole.getDirectUserRolesOfUser(id);\n for (int i = 0; i < roles.length; i++) {\n organization.userRole.removeUserFromUserRole(id, roles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" en tant que manager d'espace dans la base\", null);\n SpaceUserRoleRow[] spaceRoles = organization.spaceUserRole\n .getDirectSpaceUserRolesOfUser(id);\n for (int i = 0; i < spaceRoles.length; i++) {\n organization.spaceUserRole.removeUserFromSpaceUserRole(id,\n spaceRoles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Delete \" + user.login\n + \" from user favorite space table\", null);\n UserFavoriteSpaceDAO ufsDAO = DAOFactory.getUserFavoriteSpaceDAO();\n if (!ufsDAO.removeUserFavoriteSpace(new UserFavoriteSpaceVO(id, -1))) {\n throw new AdminPersistenceException(\"UserTable.removeUser()\",\n SilverpeasException.ERROR, \"admin.EX_ERR_DELETE_USER\");\n }\n \n SynchroReport.debug(\"UserTable.removeUser()\", \"Suppression de \"\n + user.login + \" (ID=\" + id + \"), requête : \" + DELETE_USER, null);\n \n // updateRelation(DELETE_USER, id);\r\n // Replace the login by a dummy one that must be unique\r\n user.login = \"???REM???\" + Integer.toString(id);\n user.accessLevel = \"R\";\n user.specificId = \"???REM???\" + Integer.toString(id);\n updateRow(UPDATE_USER, user);\n }", "public void deleteByVaiTroID(long vaiTroId);", "public void delete(Privilege pri) throws Exception {\n\t\tCommandUpdatePrivilege com=new CommandUpdatePrivilege(AuthModel.getInstance().getUser(),pri);\r\n\t\tClient.getInstance().write(com);\r\n\t\tObject obj=Client.getInstance().read();\r\n\t\tif(obj instanceof Command){\r\n\t\t\tdirty=true;\r\n\t\t\tlist=this.get(cond);\r\n\t\t\tthis.fireModelChange(list);\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tthrow new Exception(\"Delete Customer failed...\"+list);\r\n\t}", "@Override\n public void deleteUser(Integer id){\n try {\n runner.update(con.getThreadConnection(),\"delete from user where id=?\",id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }", "@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }", "public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }", "public void deleteUser(long userId);", "@Override\r\n\tpublic int delete(ProfitUserDomain t) {\n\t\treturn profitUserDAO.delete(t);\r\n\t}", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "public int deleteTrouser(Trouser trouser) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n return db.delete(TrouserEntry.TABLE_NAME, TrouserEntry._ID + \" = ?\",\n new String[]{String.valueOf(trouser.getId())});\n }", "public void delete(int TrainingId, int loggedInUserId) {\n\r\n\t}", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic String userDelete(Map<String, Object> reqs, Map<String, Object> conds) {\n\t\treturn null;\n\t}", "public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }", "private void popupMenuDeleteData(int rowIndex, int columnIndex) {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tDeleteDataDialog deleteDataDialog = new DeleteDataDialog(parent.getShell());\n\t\tif (deleteDataDialog.open() != Window.OK)\n\t\t\treturn;\n\t\tint delSize = deleteDataDialog.getResult();\n\n\t\tif (delSize == 0) {\n\t\t\t//\n\t\t\t// Cancel button pressed - do nothing\n\t\t\t//\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// Delete data from the table\n\t\tdelete(rowIndex, columnIndex - 1, delSize);\n\n\t\t//\n\t\t// Update the status panel\n\t\t//\n\t\tupdateStatusPanel();\n\t}", "private void deleteTodoMenu(User u) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(Usuario t) {\n\t\t\r\n\t}", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "public void deleteAdmin(Long idAdmin);", "public void setDelUser(String delUser) {\n this.delUser = delUser;\n }", "@Override\n public void delete(Usuario usuario) {\n }", "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void deleteUser(String name);", "public void deleteDataInProgramTable() throws SQLException {\n\t\tdeleteDataInUserTable();\n\t\tdeleteDataInPeriodTable();\n\t\tdeleteData(\"group_stage\",\"STAGE_\"+idCondition);\n\t\tdeleteData(\"jp_group\",idCondition);\n\t\tdeleteData(\"program\",idCondition);\n\t}", "public void deleteUser(int userid) {\n\t\t\n\t}", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }" ]
[ "0.69210374", "0.67774564", "0.6627461", "0.6466448", "0.62974966", "0.6258556", "0.625364", "0.62508804", "0.62326026", "0.62282705", "0.62012583", "0.6200129", "0.61841935", "0.618156", "0.61727256", "0.6166896", "0.61653113", "0.61639524", "0.6160431", "0.6160166", "0.6103619", "0.61032", "0.60983163", "0.6097847", "0.6095138", "0.6092213", "0.6075401", "0.6072219", "0.6067881", "0.6062858", "0.6059974", "0.6056049", "0.60513276", "0.60376364", "0.60150933", "0.60106564", "0.6004293", "0.60041195", "0.59787047", "0.59690994", "0.5967828", "0.59669405", "0.59642446", "0.59640235", "0.59604037", "0.5950634", "0.59448946", "0.5933711", "0.5930458", "0.59264326", "0.5920904", "0.59155846", "0.5898922", "0.5897698", "0.58950967", "0.5892728", "0.58912677", "0.5884872", "0.585982", "0.58592397", "0.58490974", "0.58447176", "0.584328", "0.58424735", "0.584039", "0.58354294", "0.5828366", "0.5826383", "0.5821769", "0.5819313", "0.58138216", "0.58137167", "0.58050996", "0.58003145", "0.5798099", "0.5791687", "0.5789951", "0.57893836", "0.5787587", "0.5784482", "0.57817495", "0.578036", "0.57718855", "0.5768364", "0.5764286", "0.57596606", "0.5757169", "0.575468", "0.5748403", "0.57481587", "0.5746016", "0.5743248", "0.5740583", "0.5740277", "0.5739524", "0.57386094", "0.57375777", "0.5726436", "0.5725152", "0.57243216" ]
0.6286439
5
Function SoldierCheckChoice is alertdialog that warns the Admin before the soldier delete. and then if the Admin press "yes" the Soldier will be deleted , else , the delete will be canceled
public void SoldierCheckChoice(View view){ AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this); alertDialogBuilder.setMessage("Are you sure , You want to remove the soldier and his arrangements?"); alertDialogBuilder.setPositiveButton("yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface arg0, int arg1) { userToDelete = delUserName.getText().toString(); if (ifHasArrangement(userToDelete)) { deleteSoldierArrangement(userToDelete); } DeleteData(userToDelete); } }); alertDialogBuilder.setNegativeButton("No",new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(ListDataActivity.this,"You cancelled the Soldier delete!",Toast.LENGTH_LONG).show(); } }); AlertDialog alertDialog = alertDialogBuilder.create(); alertDialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private AlertDialog AskOption(final Exercise item) {\n AlertDialog myQuittingDialogBox = new AlertDialog.Builder(ShowRoutine.this)\n //set message, title, and icon\n .setTitle(\"Delete\")\n .setMessage(\"Do you want to Delete\")\n .setIcon(R.drawable.ic_delete_name)\n\n .setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int whichButton) {\n delete(item);\n dialog.dismiss();\n }\n\n })\n\n .setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .create();\n return myQuittingDialogBox;\n\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteEmployee();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the fruit.\n deleteFruit();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the fruit.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg_course);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteCourse();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the goal.\n deleteGoal();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showConfirmationDeleteDialog(\n DialogInterface.OnClickListener yesButtonClickListener) {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.are_you_sure);\n builder.setPositiveButton(R.string.yes, yesButtonClickListener);\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the Item.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}", "private void deleteDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.warmhint));\n\t\tbuilder.setMessage(getString(R.string.changequestion2));\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdeleteAllTag();\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\tgetString(R.string.successdelete),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the inventory item.\n deleteItem();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the inventory item.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deletePet();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(R.string.delete_dialog_msg);\r\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n // User clicked the \"Delete\" button, so delete the pet.\r\n// deletePet();\r\n }\r\n });\r\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n // User clicked the \"Cancel\" button, so dismiss the dialog\r\n // and continue editing.\r\n if (dialog != null) {\r\n dialog.dismiss();\r\n }\r\n }\r\n });\r\n\r\n // Create and show the AlertDialog\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteFav();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteProduct();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the Product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showConfirmDeletionDialog(){\n //give builder our custom dialog fragment style\n new AlertDialog.Builder(this, R.style.dialogFragment_title_style)\n .setMessage(getString(R.string.powerlist_confirmRemoval))\n .setTitle(getString(R.string.powerList_confirmRemoval_title))\n .setPositiveButton(getString(R.string.action_remove),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n myActionListener.userDeletingPowersFromList(\n PowerListActivity.this.adapter.getSelectedSpells());\n deleteButton.setVisibility(View.GONE);\n //tell adapter to switch selection mode off\n PowerListActivity.this.adapter.endSelectionMode();\n }\n })\n .setNegativeButton(getString(R.string.action_cancel), null)\n .show();\n }", "@Override\n public void onClick(View v) {\n builder.setMessage(\"Are you sure you want to delete this?\")\n .setTitle(\"Warning\");\n\n // Add the buttons\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK button\n Pokemon crtPokemon = database.PokemonDao().getEntries().get(index);\n database.PokemonDao().delete(crtPokemon);\n finish();\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // 3. Get the AlertDialog from create()\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteBook();\n finish();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.deleteEntrenador) {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n // set title\n //String alert_title = getResources().getString(\"Confirmación\");\n String alert_title = (getResources().getString(R.string.confirmation));\n String alert_description = (getResources().getString(R.string.areYouSure));\n alertDialogBuilder.setTitle(alert_title);\n\n // set dialog message\n alertDialogBuilder\n .setMessage(alert_description)\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.yes),new DialogInterface.OnClickListener() {\n // Lo que sucede si se pulsa yes\n public void onClick(DialogInterface dialog,int id) {\n\n try {\n Client myUserClient = null;\n do {\n myUserClient = ClientsFromEntrenadorSuperAdmin.this.searchEntrenador(selectedEntrenador.getObjectId());\n if (myUserClient != null) {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(\"entrenadorId\", selectedEntrenador.getObjectId());\n ParseCloud.callFunction(\"deleteEntrenadorDependencies\", params);\n }\n }while(myUserClient != null);\n\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(\"entrenadorId\", selectedEntrenador.getObjectId());\n ParseCloud.callFunction(\"deleteEntrenador\", params);\n\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n Intent i = new Intent(getApplicationContext(), SuperAdminDashboard.class);\n startActivity(i);\n finish();\n }\n\n\n })\n .setNegativeButton(getResources().getString(R.string.no),new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // Si se pulsa no no hace nada\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n\n // show it\n alertDialog.show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void showConfirmDialog() {\n mDialogClickInterface = (DialogueInterface) mContext;\n final Dialog dialog = new Dialog(mContext);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialogue_modify);\n Button buttonCancel = dialog.findViewById(R.id.btn_cancel);\n Button buttonOK = dialog.findViewById(R.id.btn_ok);\n final RadioGroup radioGroupLanguage = dialog.findViewById(R.id.radio_group);\n\n\n\n\n dialog.setCancelable(true);\n dialog.show(); // if decline button is clicked, close the custom dialog\n buttonCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n buttonOK.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n int selectedId = radioGroupLanguage.getCheckedRadioButtonId();\n\n switch (selectedId) {\n\n case R.id.rb_arabic:\n view.editItem(listModel,index);\n break;\n case R.id.rb_english:\n view.deleteItem(listModel);\n break;\n }\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n\n }", "private void delete() {\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n setResult(RESULT_OK, null);\n datasource.deleteContact(c);\n dbHelper.commit();\n finish();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n //Do Nothing\n break;\n }\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getString(R.string.confirm_delete) + (c==null?\"\":c.getName()) + \"?\").setPositiveButton(getString(R.string.yes), dialogClickListener)\n .setNegativeButton(getString(R.string.no), dialogClickListener).show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder to display a confirmation message about deleting the book\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.editor_activity_delete_message);\n builder.setPositiveButton(getString(R.string.editor_activity_delete_message_positive),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Delete\"\n deleteBook();\n }\n });\n\n builder.setNegativeButton(getString(R.string.editor_activity_delete_message_negative),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Cancel\"\n if (dialogInterface != null)\n dialogInterface.dismiss();\n }\n });\n\n // Create and show the dialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void execute() {\n if (myItemSelection.getSize() > 0) {\n confirmationDialogbox = new ConfirmationDialogbox(constants.deleteRolesDialogbox(), patterns.deleteRolesWarn( myItemSelection.getSelectedItems().size()), constants.okButton(), constants.cancelButton());\n confirmationDialogbox.addCloseHandler(new CloseHandler<PopupPanel>(){\n public void onClose(CloseEvent<PopupPanel> event) {\n if(confirmationDialogbox.getConfirmation()){\n deleteSelectedItems();\n }\n }} );\n } else {\n if (myMessageDataSource != null) {\n myMessageDataSource.addWarningMessage(messages.noRoleSelected());\n }\n } \n \n }", "@FXML\n\tprivate void handleDelete() {\n\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\talert.getButtonTypes().clear();\n\t\talert.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\talert.setHeaderText(lang.getString(\"deleteCustomerMessage\"));\n\t\talert.initOwner(stage);\n\t\talert.showAndWait()\n\t\t.filter(answer -> answer == ButtonType.YES)\n\t\t.ifPresent(answer -> {\n\t\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\t\tdeleteCustomer(customer);\n\t\t});\n\t}", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_all_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the book.\n deleteAllBooks();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n final Dialog dialog;\n dialog = new AlertDialog.Builder(this).setMessage(\n \"Are you sure you want to delete \" + listOfMyPalaces.getPalace(palacePosition).getName() + \" ?\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.out.println(listOfMyPalaces + \" \" + palacePosition);\n listOfMyPalaces.deletePalace(palacePosition, getApplicationContext());\n finish();\n startActivity(new Intent(MyPalaceDetail.this, ViewPalaceList.class));\n }\n })\n .setNegativeButton(\"No\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n }\n }).create();\n return dialog;\n\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message\n // This also creates click listeners for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the phone.\n deletePhone();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the phone.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void showDeleteConfirmationDialog(){\n //Create an AlertDialog.Builder and set the message, and click listeners\n //for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Delete this item?\");\n builder.setPositiveButton(\"Delete\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id){\n //User clicked the \"Delete\" button, so delete the item.\n deleteItem();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id){\n //User clicked the \"Cancel\" button, so dismiss the dialog\n //and continue editing the item.\n if(dialog != null){\n dialog.dismiss();\n }\n }\n });\n\n //Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void Confirm(){\n new AlertDialog.Builder(MapsActivity.this)\n .setTitle(\"Confirm Location\")\n .setMessage(\"Are you sure about this location?\")\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // continue with delete\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }", "private void deleteRoutine() {\n String message = \"Are you sure you want to delete this routine\\nfrom your routine collection?\";\n int n = JOptionPane.showConfirmDialog(this, message, \"Warning\", JOptionPane.YES_NO_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n Routine r = list.getSelectedValue();\n\n collection.delete(r);\n listModel.removeElement(r);\n }\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(R.string.delete_book_warning);\r\n builder.setPositiveButton(R.string.delete_button, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n deletebook();\r\n }\r\n });\r\n builder.setNegativeButton(R.string.cancel_button, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n if (dialogInterface != null) {\r\n dialogInterface.dismiss();\r\n }\r\n }\r\n });\r\n\r\n //show alert dialog upon deletion\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }", "private void promptUserToDeleteGame(final BaseDTO game) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(R.string.removeGame);\n\t\t\n\t\tTextView textView = new TextView(this);\n\t\ttextView.setText(R.string.removeGameMsg);\n\t\tbuilder.setView(textView);\n\t\t\n\t\tbuilder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tremoveGame(game);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuilder.show();\n\t}", "private void deleteComic() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(\"Delete Comic?\");\n builder.setMessage(\"Are you sure you want to delete this comic? This cannot be undone\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(dbHandler.deleteComic(comic.getComicID())) {\n //Success\n Toast.makeText(getContext(), \"Comic successfully deleted\", Toast.LENGTH_SHORT).show();\n mainActivity.loadViewCollectionFragment();\n } else {\n //Failure\n Toast.makeText(getContext(), \"Comic not deleted successfully. Please try again\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Nothing needs to happen here\n }\n });\n builder.create().show();\n }", "@FXML\n private void handleBookDeleteOption(ActionEvent event) {\n Book selectedItem = tableViewBook.getSelectionModel().getSelectedItem();\n if (selectedItem == null) {\n AlertMaker.showErrorMessage(\"No book selected\", \"Please select book for deletion.\");\n return;\n }\n if (DatabaseHandler.getInstance().isBookAlreadyIssued(selectedItem)) {\n AlertMaker.showErrorMessage(\"Cant be deleted\", \"This book is already issued and cant be deleted.\");\n return;\n }\n //confirm the opertion\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Deleting Book\");\n Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();\n UtilitiesBookLibrary.setStageIcon(stage);\n alert.setHeaderText(null);\n alert.setContentText(\"Are u sure u want to Delete the book ?\");\n Optional<ButtonType> response = alert.showAndWait();\n if (response.get() == ButtonType.OK) {\n \n boolean result = dbHandler.deleteBook(selectedItem);\n if (result == true) {\n AlertMaker.showSimpleAlert(\"Book delete\", selectedItem.getTitle() + \" was deleted successfully.\");\n observableListBook.remove(selectedItem);\n } else {\n AlertMaker.showSimpleAlert(\"Failed\", selectedItem.getTitle() + \" unable to delete.\");\n\n }\n } else {\n AlertMaker.showSimpleAlert(\"Deletion Canclled\", \"Deletion process canclled.\");\n\n }\n\n }", "int confirmar(String s) {\n\t\treturn JOptionPane.showConfirmDialog(this, s, \"Alerta\", 0, 1, null);\n\t}", "private void confirmerSuppressionCourse() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(R.string.activity_course_dialog_suppr_title)\n .setMessage(R.string.activity_course_dialog_suppr_message)\n .setPositiveButton(R.string.activity_course_dialog_suppr_yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n DbHelper.getInstance(CourseDetails.this).deleteCourse(course);\n finish();\n }\n })\n .setNegativeButton(R.string.activity_course_dialog_suppr_no, null).show();\n }", "private void showDeleteDialog(String yesLabel, String noLabel, String messageText, final int parameterId){\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AppTheme_Dialog));\n builder.setMessage(messageText)\n .setPositiveButton(yesLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n new DeleteAquariumTask(parameterId).execute();\n }\n })\n .setNegativeButton(noLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n builder.create();\n builder.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the book.\n deleteBook();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void confirmarGuardarEmpleado() {\n String pregunta = \"Esto seguro de realizar guardar la categoria?\";\n new AlertDialog.Builder(this)\n .setTitle(getResources().getString(R.string.msj_confirmacion))\n .setMessage(pregunta)\n .setNegativeButton(android.R.string.cancel, null)//sin listener\n .setPositiveButton(getResources().getString(R.string.lbl_aceptar),\n new DialogInterface.OnClickListener() {//un listener que al pulsar, solicite el WS de Transsaccion\n @Override\n public void onClick(DialogInterface dialog, int which){\n guardarEmpleado();\n }\n })\n .show();\n }", "@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteItem(parent, position);\n } else if (item == 1) {\n updateBook(parent, position);\n } else if (item == 2) {\n updateAuthor(parent, position);\n }else if (item == 3) {\n makeChoice(false);\n } else if (item == 4) {\n makeChoice(true);\n }\n\n\n }", "private void confirmDelete(){\n\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\tdialog.setIcon(R.drawable.warning);\n\t\tdialog.setTitle(\"Confirm\");\n\t\tdialog.setMessage(\"Are you sure you want to Delete Selected Bookmark(s).?\");\n\t\tdialog.setCancelable(false);\n\t\tdialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdeleteBookmark();\n\t\t\t}\n\t\t});\n\t\tdialog.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Pack and show\n\t\tAlertDialog alert = dialog.create();\n\t\talert.show();\n\t}", "public void showSucceedDeleteDialog() {\n\t\tString msg = getApplicationContext().getResources().getString(\n\t\t\t\tR.string.MSG_DLG_LABEL_DELETE_ITEM_SUCCESS);\n\t\tfinal AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\tthis);\n\t\talertDialogBuilder\n\t\t\t\t.setMessage(msg)\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\n\t\t\t\t\t\tgetApplicationContext().getResources().getString(\n\t\t\t\t\t\t\t\tR.string.MSG_DLG_LABEL_OK),\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tstartActivity(getIntent());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\talertDialog.show();\n\n\t}", "public void deleteDialog(){\n AlertDialog ad = new AlertDialog.Builder(this).create();\n ad.setMessage(getString(R.string.del_message));\n ad.setButton(getString(R.string.del_btnPos),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n deleteTaleFromStorage();\n }\n });\n ad.setButton2(getResources().getString(R.string.del_btnNeg),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n ad.setCancelable(true);\n ad.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n // Set the message.\n builder.setMessage(R.string.delete_dialog_msg);\n\n // Handle the button clicks.\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the book.\n deleteBook();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@FXML\n public void removeFromTableChoiceDialog() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"View Account\");\n } else {\n Dialog<Pair<String, LocalDateTime>> dialog = new Dialog<>();\n dialog.setTitle(\"Removal from Transplant List\");\n dialog.setHeaderText(\"Removal from Transplant List\");\n dialog.getDialogPane().getButtonTypes().addAll(ButtonType.OK, ButtonType.CANCEL);\n\n GridPane grid = new GridPane();\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(20, 150, 10, 10));\n\n //Creating a setting labels buttons for dialog\n ComboBox<String> choose = new ComboBox<>();\n\n choose.getItems().addAll(\n errorOption,\n curedOption,\n deathOption\n );\n choose.getSelectionModel().selectFirst();\n\n DatePicker date = new DatePicker(); //For the date of death option\n date.setValue(LocalDate.now());\n date.setVisible(false);\n\n Label dateLabel = new Label(); //Date of death label\n dateLabel.setText(\"Date of Death: \");\n dateLabel.setVisible(false);\n\n Label errorLabel = new Label(); //Error label for date of death\n errorLabel.setText(\"Please enter a date\");\n errorLabel.setTextFill(Color.RED);\n errorLabel.setVisible(false);\n\n CheckBox yes = new CheckBox();\n yes.setText(\"Yes\");\n yes.setVisible(false);\n\n CheckBox no = new CheckBox();\n no.setText(\"No\");\n no.setVisible(false);\n\n Label curedQuestion = new Label();\n curedQuestion.setText(\"Would you like to check the illnesses of the receiver?\");\n curedQuestion.setVisible(false);\n\n Label curedQuestionError = new Label();\n curedQuestionError.setText(\"Please choose yes or no\");\n curedQuestionError.setTextFill(Color.RED);\n curedQuestionError.setVisible(false);\n\n //Adding buttons/Labels to the grid\n grid.add(new Label(\"Reason for removal:\"), 0, 0);\n grid.add(choose, 1, 0);\n grid.add(dateLabel, 0, 1);\n grid.add(date, 1, 1);\n grid.add(errorLabel, 2, 1);\n\n grid.add(curedQuestion, 0, 1);\n grid.add(yes, 1, 1);\n grid.add(no, 2, 1);\n grid.add(curedQuestionError, 3, 1);\n\n createDeathListener(choose, errorLabel, curedQuestionError, date, dateLabel, curedQuestion,\n yes, no);\n\n dialog.getDialogPane().setContent(grid);\n\n //Catches a null date of death value if the reason is death, otherwise closes\n final Button okButton = (Button) dialog.getDialogPane().lookupButton(ButtonType.OK);\n okButton.addEventFilter(ActionEvent.ACTION, event -> {\n if ((date.getValue() == null) && (choose.getSelectionModel().getSelectedItem()\n .equals(deathOption))) {\n errorLabel.setVisible(true);\n event.consume();\n } else if ((!yes.isSelected()) && (!no.isSelected()) && (choose.getSelectionModel()\n .getSelectedItem().equals(curedOption))) {\n curedQuestionError.setVisible(true);\n event.consume();\n } else {\n closeDeathPopup(choose, date, yes);\n }\n });\n dialog.showAndWait();\n }\n }", "private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void alertSelection() {\n JOptionPane.showMessageDialog(gui.getFrame(),\n \"`Please select a choice.\",\n \"Invalid Selection Error\",\n JOptionPane.ERROR_MESSAGE);\n }", "public void delLift(){\n //https://stackoverflow.com/questions/36747369/how-to-show-a-pop-up-in-android-studio-to-confirm-an-order\n AlertDialog.Builder builder = new AlertDialog.Builder(SetsPage.this);\n builder.setCancelable(true);\n builder.setTitle(\"Confirm Delete\");\n builder.setMessage(\"Are you sure you want to delete this lift?\");\n builder.setPositiveButton(\"Confirm Delete\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n lift.setId(lift.getId()*-1);\n Intent intent=new Intent(SetsPage.this, LiftsPage.class);\n intent.putExtra(\"lift\", lift);\n setResult(Activity.RESULT_OK, intent);\n finish();\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the product.\n deleteProduct();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@FXML\n public void confirmStudentDelete(ActionEvent e) {\n Student s = handledStudent;\n DBhandler db = new DBhandler();\n String title =\"Confirm delete\";\n String HeaderText = \"Student will be permanently deleted\";\n String ContentText = \"Are you sure you want to delete this student?\";\n\n AlertHandler ah = new AlertHandler();\n\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n db.deleteStudentFromDatabase(s);\n Cancel(new ActionEvent());\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }", "@FXML\n private void handleDeletePerson() {\n //remove the client from the view\n int selectedIndex = informationsClients.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n //remove the client from the database\n ClientManager cManager = new ClientManager();\n cManager.deleteClient(informationsClients.getSelectionModel().getSelectedItem().getId());\n informationsClients.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Erreur : Pas de selection\");\n alert.setHeaderText(\"Aucun client n'a été selectionné\");\n alert.setContentText(\"Veuillez selectionnez un client.\");\n alert.showAndWait();\n }\n }", "public void onCreateDialogSingleChoice(List<String> list, final String title, int pos) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n//Source of the data in the DIalog\n String[] array = list.toArray(new String[list.size()]);\n for (int i = 0; i < list.size(); i++) {\n array[i] = list.get(i);\n }\n// Set the dialog title\n builder.setTitle(title)\n\n// Specify the list array, the items to be selected by default (null for none),\n// and the listener through which to receive callbacks when items are selected\n .setSingleChoiceItems(array, pos, (dialog, which) -> {\n// TODO Auto-generated method stub\n\n\n })\n\n// Set the action buttons\n .setPositiveButton(\"Ok\", (dialog, id) -> {\n// User clicked OK, so save the result somewhere\n// or return them to the component that opened the dialog\n\n ListView lw = ((AlertDialog) dialog).getListView();\n Object checkedItem = lw.getAdapter().getItem(lw.getCheckedItemPosition());\n\n if (title.equalsIgnoreCase(\"Title\")) {\n vEdtTxtTitle.setText(checkedItem.toString());\n mSelectPosi = lw.getCheckedItemPosition();\n } else if (title.equalsIgnoreCase(\"Security Question\")) {\n vEdtTxtSecurityQsn.setText(checkedItem.toString());\n mSelectPosiSecurity = lw.getCheckedItemPosition();\n }\n\n Log.d(getLocalClassName(), \" Selected Item \" + checkedItem.toString());\n// ad.dismiss();\n dialog.dismiss();\n\n })\n .setNegativeButton(\"Cancel\", (dialog, id) -> {\n// ad.dismiss();\n dialog.dismiss();\n });\n builder.show();\n }", "@FXML\r\n void onActionDelete(ActionEvent event) throws IOException {\r\n\r\n Customer customerToDelete = customerTable.getSelectionModel().getSelectedItem();\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete customer ID# \" + customerToDelete.getID() + \", Name: \" + customerToDelete.getName());\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n DBCustomer.deleteCustomer(customerToDelete.getID());\r\n\r\n //Alert alert1 = new Alert(Alert.AlertType.WARNING, \"You have deleted customer ID# \" + customerToDelete.getID() + \", Name: \" + customerToDelete.getName());\r\n //Optional<ButtonType> result1 = alert.showAndWait();\r\n\r\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainScreen.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n\r\n }", "public void showDeleteConfirmationAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //builder.setTitle(\"AlertDialog\");\n builder.setMessage(R.string.income_deletion_confirmation);\n\n // add the buttons\n builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (mIncome.getReceiptPic() != null) {\n if (!mIncome.getReceiptPic().equals(\"\")) {\n new File(mIncome.getReceiptPic()).delete();\n }\n }\n mDatabaseHandler.setPaymentLogEntryInactive(mIncome);\n //IncomeListFragment.incomeListAdapterNeedsRefreshed = true;\n setResult(MainActivity.RESULT_DATA_WAS_MODIFIED);\n IncomeViewActivity.this.finish();\n }\n });\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n // create and show the alert mDialog\n mDialog = builder.create();\n mDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_all_products);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete products.\n deleteAllProducts();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void confirmar(){\n\n cliente = new Cliente();\n\n if (validaCampos() == false){\n\n cliente.idade = Integer.parseInt(edtIdade.getText().toString());\n try {\n\n clienteRepositorio.inserir(cliente);\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n finish();\n dlg.setTitle(\"Sucess\");\n dlg.setMessage(\"Cadastro realizado com sucesso\");\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n\n }catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Error\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }\n }", "@Override\n public void ActionSiguiente(ActionEvent e) {\n if(ce.EliminarLeccion(leccion, materia))\n JOptionPane.showMessageDialog(this,Util.MENSAJE_LECCION_BORRADA, Util.DIALOG_TITULO_MENSAJE, JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(this,Util.ERROR_OPERACION_FALLIDA, Util.DIALOG_TITULO_MENSAJE, JOptionPane.INFORMATION_MESSAGE);\n \n ActionSalir(e);\n }", "public String btn_confirm_delete_action()\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(\n getgermplasm$SementalSessionBean().getDeleteSemental());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n \n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n \n return null;\n }", "public void deletePart()\n {\n ObservableList<Part> partRowSelected;\n partRowSelected = partTableView.getSelectionModel().getSelectedItems();\n if(partRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Part you want to delete.\");\n alert.show();\n } else {\n int index = partTableView.getSelectionModel().getFocusedIndex();\n Part part = Inventory.getAllParts().get(index);\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Part?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if (result == ButtonType.OK) {\n Inventory.deletePart(part);\n }\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n switch(which){\n case DialogInterface.BUTTON_POSITIVE: // yes\n t.setText(\"You have successfully deleted the Beacon\");\n// simpleSwitch.isChecked();\n// simpleSwitch.setChecked(false);\n// editText.getText().clear();\n// editText1.getText().clear();\n\n\n break;\n case DialogInterface.BUTTON_NEGATIVE: // no\n t.setText(\"The Beacon devise is still connected\");\n break;\n default:\n // nothing\n break;\n }\n }", "@FXML\n\tprivate void handleOk() {\n\t\ttry {\n\t\t\ttypeDAO.supprimerType(new Type(listIdType.get(comboboxtype.getSelectionModel().getSelectedIndex()),\"\",\"\"));\n\t\t\tnew Popup(\"Type \"+comboboxtype.getValue()+\" supprimer !\");\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\t}", "private void correctDialog() {\n // Update score.\n updateScore(scoreIncrease);\n\n // Show Dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Correct! This Tweet is \" + (realTweet ? \"real\" : \"fake\"));\n //builder.setPositiveButton(\"OK\", (dialog, which) -> chooseRandomTweet());\n builder.setOnDismissListener(unused -> chooseRandomTweet());\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_all_products_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the product.\n deleteAllProducts();\n }\n });\n builder.setNegativeButton(R.string.cancel, null);\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@FXML\r\n private void excluir(ActionEvent event) {\n selecionado = tabelaCliente.getSelectionModel()\r\n .getSelectedItem();\r\n \r\n //Verifico se tem cliente selecionado\r\n if(selecionado != null){ //existe cliente selecionado\r\n \r\n //Pegando a resposta da confirmacao do usuario\r\n Optional<ButtonType> btn = \r\n mensagemDeConfirmacao(\"Deseja mesmo excluir?\",\r\n \"EXCLUIR\");\r\n \r\n //Verificando se apertou o OK\r\n if(btn.get() == ButtonType.OK){\r\n \r\n //Manda para a camada de serviço excluir\r\n servico.excluir(selecionado);\r\n \r\n //mostrar mensagem de sucesso\r\n mensagemSucesso(\"cliente excluído com sucesso\");\r\n \r\n //Atualizar a tabela\r\n listarClienteTabela(); \r\n \r\n }\r\n \r\n \r\n \r\n }else{\r\n mensagemErro(\"Selecione um cliente.\");\r\n }\r\n \r\n }", "@Override\r\n public void confirmClicked(boolean result, int id) {\r\n if (result == true) {\r\n deleteSelectedWaypoints();\r\n }\r\n\r\n // reset the current gui screen to be ourselves now that we are done\r\n // with the GuiYesNo dialog\r\n this.mc.displayGuiScreen(this);\r\n }", "public void deleteHouse() {\n System.out.println(\"------Delete House------\");\n System.out.print(\"enter house id(-1 cancel) you want to delete: \");\n int delId = Utility.readInt();\n if (delId == -1) {\n System.out.println(\"cancel delete program\");\n return;\n }\n char choice = Utility.readConfirmSelection(); //loop\n if (choice == 'Y') {\n boolean b = houseService.removeHouse(delId);\n if (b) {\n System.out.println(\"id=\" + delId + \" house has been delete!\");\n } else {\n System.out.println(\"-----Failed to delete-----\");\n }\n } else {\n System.out.println(\"cancel delete program\");\n return;\n }\n System.out.println();\n }", "private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }", "public void onDelete(View view){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(\"Are you sure you want to delete this item?\")\n\t\t .setCancelable(false)\n\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t dialog.cancel();\n\t\t }\n\t\t })\n\t\t\t\t.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t deleteItem();\n\t }\n\t });\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\tdoDeleteAvailability(true);\t\t\t\t\t\t\t\t\t\n\n//\t\t\t\t\t\t\t\tif(ravail_id == null || ravail_id.equals(\"null\")) {\n//\t\t\t\t\t\t\t\t\tLog.d(CommonUtilities.TAG, \"Avail ID \" + avail_id + \" \");\n//\n//\t\t\t\t\t\t\t\t\tdoDeleteAvailability(true);\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\t\t\tLog.d(CommonUtilities.TAG, \"Ravail ID \" + ravail_id + \" \");\n//\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\tdoDeleteAvailability(false);\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}", "public boolean pregunta(){\n int d = JOptionPane.showConfirmDialog(null, \"¿Desea escribir otra palabra?\", \"¿Escribir?\", JOptionPane.YES_NO_OPTION);\n if (d == 0) {\n return true;\n }else if (d == 1) {\n return false;\n }\n return false;\n }", "@FXML\r\n void onActionDelete(ActionEvent event) throws IOException {\r\n\r\n Appointment toDelete = appointmentsTable.getSelectionModel().getSelectedItem();\r\n\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete appointment ID# \" + toDelete.getAppointmentID() + \" Title: \" + toDelete.getTitle()\r\n + \" Type: \" + toDelete.getType());\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n DBAppointments.deleteAppointment(toDelete.getAppointmentID());\r\n\r\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/appointments.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }", "public String btn_delete_action()\n {\n int n = this.getDataTableSemental().getRowCount();\n ArrayList<SementalDTO> selected = new ArrayList();\n for (int i = 0; i < n; i++) { //Obtener elementos seleccionados\n this.getDataTableSemental().setRowIndex(i);\n SementalDTO aux = (SementalDTO) this.\n getDataTableSemental().getRowData();\n if (aux.isSelected()) {\n selected.add(aux);\n }\n }\n if(selected == null || selected.size() == 0)\n {\n //En caso de que no se seleccione ningun elemento\n MessageBean.setErrorMessageFromBundle(\"not_selected\", this.getMyLocale());\n return null;\n }\n else if(selected.size() == 1)\n { //En caso de que solo se seleccione un elemento\n \n //si tiene hijos o asociacions despliega el mensaje de alerta\n if(getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n haveSemenGathering(\n selected.get(0).getSementalId()))\n {\n this.getAlertMessage().setRendered(true);\n this.getMainPanel().setRendered(false);\n getgermplasm$SementalSessionBean().setDeleteSemental(\n selected.get(0).getSementalId());\n }\n else\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(selected.get(0).getSementalId());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n }\n \n return null;\n }\n else{ //En caso de que sea seleccion multiple\n MessageBean.setErrorMessageFromBundle(\"not_yet\", this.getMyLocale());\n return null;\n }\n }", "public void confirmRemove(View view) {\n if(networkID == null || networkID.equals(\"Select a Network\"))\n {\n Toast.makeText(getApplicationContext(), \"You must select a network\", Toast.LENGTH_LONG).show();\n return;\n }\n if(gatewayID == null || gatewayID.length() == 0)\n {\n Toast.makeText(getApplicationContext(), \"You must select a gateway\", Toast.LENGTH_LONG).show();\n return;\n }\n AlertDialog.Builder alert = new AlertDialog.Builder(RemoveGatewayActivity.this);\n alert.setTitle(\"Delete\");\n alert.setMessage(\"Are you sure you want to delete \" + gatewayName + \"?\");\n\n alert.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n removeGateway();\n dialog.dismiss();\n }\n });\n\n alert.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n alert.show();\n }", "private void showDeleteAlert(final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater layoutInflater = LayoutInflater.from(this);\n final View view = layoutInflater.inflate(R.layout.unfollow_alert_dialog, null);\n TextView tvDialogContent = (TextView) view.findViewById(R.id.dialog_content);\n tvDialogContent.setText(getResources().getString(R.string.delete_topic_message));\n builder.setView(view);\n\n Button yesBtn = (Button) view.findViewById(R.id.yes_btn);\n Button noBtn = (Button) view.findViewById(R.id.no_btn);\n\n yesBtn.setText(getString(R.string.yes));\n noBtn.setText(getString(R.string.no));\n\n final AlertDialog alertDialog = builder.create();\n alertDialog.setCancelable(false);\n alertDialog.show();\n\n yesBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n deleteMagazine(title);\n }\n });\n\n\n noBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n }\n });\n }", "public void showDialog(String modename, int hu,int idd, int pos)\n {\n final int h=hu;\n final int i=idd;\n final int posi=pos;\n final Dialog dialog = new Dialog(DeleteModesActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_warning_delete);\n TextView txtname=(TextView) dialog.findViewById(R.id.lbl_warning_del_device);\n txtname.setText(getResources().getString(R.string.label_warning_delete_device)+\" \"+modename+\"?\");\n Button dialogButton = (Button) dialog.findViewById(R.id.btnDel);\n dialogButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n deleteMode(h,i,posi);\n dialog.dismiss();\n }\n });\n\n dialogButton = (Button) dialog.findViewById(R.id.btnCancelDel);\n dialogButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n dialog.show();\n }", "private void gaVerder()\n {\n /**\n * Dialog tonen waarbij de gebruiker de keuze krijgt om al dan niet nog een spelbord te maken.\n */\n Alert keuze = new Alert(Alert.AlertType.CONFIRMATION);\n keuze.setTitle(ResourceHandling.getInstance().getString(\"Configureer.gaverder\"));\n keuze.setHeaderText(ResourceHandling.getInstance().getString(\"Knop.verder\"));\n\n ButtonType btnNieuw = new ButtonType(ResourceHandling.getInstance().getString(\"Spelbord.nieuw\"));\n ButtonType btnCancel = new ButtonType(ResourceHandling.getInstance().getString(\"Annuleer.knop\"));\n\n keuze.getButtonTypes().setAll(btnCancel, btnNieuw);\n Optional<ButtonType> result = keuze.showAndWait();\n\n if (result.get() == btnNieuw)\n {\n LoaderSchermen.getInstance().load(\"Sokoban\", new GaVerderSchermController(dc), 488, 213, this);\n } else\n {\n LoaderSchermen.getInstance().load(\"Sokoban\", new KiesConfigureerSchermController(dc), 300, 300, this);\n }\n }", "private void deleteItem(final int id){\n // Instantiate AlertDialog builder\n builder = new AlertDialog.Builder(context);\n\n // Inflate the confirmation dialog\n inflater = LayoutInflater.from(context);\n View view = inflater.inflate(R.layout.confirmation_popup, null);\n\n // Instantiate buttons\n Button noButton = view.findViewById(R.id.conf_no_button);\n Button yesButton = view.findViewById(R.id.conf_yes_button);\n\n builder.setView(view);\n dialog = builder.create();\n dialog.show();\n\n\n // When user confirms to delete, delete the task item and clear the dialog\n yesButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // DatabaseHandler\n DatabaseHandler db1 = new DatabaseHandler(context, \"task_details\"); // MODIFIED JUNE 5TH\n\n // Delete the task from database\n db1.deleteTask(id);\n todoItems.remove(getAdapterPosition());\n notifyItemRemoved(getAdapterPosition());\n\n dialog.dismiss();\n }\n });\n\n // When user confirms not to delete, just get rid of the dialog\n noButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n }", "protected void btnDeletactionPerformed() {\n\t\tjava.sql.Connection conObj = JdbcConnect.createConnection();\r\n\t\t\tString account = deletAccountjTextField.getText();\r\n\t\t\t\r\n\t\t\tif (!(\"Administrer\".equals(account)))\r\n\t\t\t{\r\n\t\t\t\t\tif (\"Administrer\".equals(usrname)||usrname.equals(account))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint request = javax.swing.JOptionPane.showConfirmDialog(null, \"Are your sure you want to remove User@\"+account+\" from the system?\", \"Delete User@\"+account, javax.swing.JOptionPane.YES_NO_OPTION, javax.swing.JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\tif (request == javax.swing.JOptionPane.YES_OPTION)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint i = 0;\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\ti = JdbcDeleteUSERACCOUNTS.deleteAccountFromSystem(conObj,account);\r\n\t\t\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (i==1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"User@\"+account+\" removed from the system\");\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"User@\"+account+\" not in the system\", \"User@\"+account+\" access not available\", javax.swing.JOptionPane.ERROR_MESSAGE); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\telse if (request == javax.swing.JOptionPane.NO_OPTION)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"Great Option! Nothing was interfered\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"You Are No The Parent Administrator, Not Permitted To Inteffere With Other Accounts\", \"User@\"+usrname+\" access denied\", javax.swing.JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Not permitted to interfere with the parent Administrator\", \"Security message\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t}", "public void deletar() {\n if(Sessao.isConfirm()){\n Usuario use = new Usuario();\n use.setId(Sessao.getId());\n Delete_Banco del = new Delete_Banco();\n del.Excluir_Usuario(use);\n this.setVisible(false);\n Sessao.setId(0);\n tela_Principal prin = Sessao.getPrin();\n prin.atualizar_Tela();\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n appViewModel.eliminarDireccion(userId, direccion.direccion, direccion.telefono);\n }", "private void btnDropActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDropActionPerformed\n String message = \"Failed to edit data...\";\n int flag = JOptionPane.showConfirmDialog(this, \"Tenane?\", \"APA KOE YAKIN MEH NGEHAPUS?\", \n JOptionPane.YES_NO_OPTION);\n if (flag == 0){\n if (cutiController.drop(txtCutiID.getText())){\n message = \"Success to drop data...\";\n }\n JOptionPane.showMessageDialog(this, message, \"Notification\", \n JOptionPane.QUESTION_MESSAGE);\n }\n bindingTable();\n reset();\n }", "public boolean getUserConfirmation() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Box\");\n alert.setHeaderText(\"Are you sure you want to delete?\");\n alert.setResizable(false);\n Optional<ButtonType> result = alert.showAndWait();\n ButtonType button = result.orElse(ButtonType.CANCEL);\n\n if (button == ButtonType.OK) {\n return true;\n } else {\n return false;\n }\n }", "@FXML\n private void confirmDeletionOfRecords(){\n ObservableList<Record> recordsToBeDeleted = tbvRecords.getSelectionModel().getSelectedItems();\n\n DBhandler db = new DBhandler();\n String title =\"Confirm delete\";\n String HeaderText = \"Record(s) will be permanently deleted\";\n String ContentText = \"Are you sure you want to delete this data?\";\n AlertHandler ah = new AlertHandler();\n\n if(recordsToBeDeleted.isEmpty()){\n ah.getTableError();\n }\n else{\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n db.deleteRecordsFromDatabase(recordsToBeDeleted);\n populateRecords();\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }}", "private void confirmarGuardarUsr() {\n String pregunta = \"Esto seguro de realizar el registro?\";\n new AlertDialog.Builder(this)\n .setTitle(getResources().getString(R.string.msj_confirmacion))\n .setMessage(pregunta)\n .setNegativeButton(android.R.string.cancel, null)//sin listener\n .setPositiveButton(getResources().getString(R.string.lbl_aceptar),\n new DialogInterface.OnClickListener() {//un listener que al pulsar, solicite el WS de Transsaccion\n @Override\n public void onClick(DialogInterface dialog, int which){\n guardarUsr();\n }\n })\n .show();\n }", "@FXML\n private void handleDeletePerson() {\n int selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n personTable.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }", "@FXML\n public void OADeleteAppointment(ActionEvent event) {\n try {\n Appointment appointment = Appointments.getSelectionModel().getSelectedItem();\n\n int appointmentID = appointment.getAppointmentID();\n Alert warning = new Alert(Alert.AlertType.CONFIRMATION, \"This will permanently delete this appointment \" + appointmentID + \", do you wish to continue?\");\n Optional<ButtonType> result = warning.showAndWait();\n if (result.isPresent() && result.get() == ButtonType.OK) {\n\n try {\n String table = \"appointments\";\n String column = \"Appointment_ID\";\n int delete = DBQuery.deleteStatement(table, column, appointment.getAppointmentID());\n if (delete > 0) {\n Appointment.deleteAppointment(appointment);\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setHeaderText(\"Appointment Deleted.\");\n alert.setContentText(\"Appointment \" + appointmentID + \" was delete.\");\n alert.showAndWait();\n } else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"Appointment deletion error.\");\n alert.setContentText(\"Connection to the database to delete Appointment \" + appointmentID + \" was unsuccessful. Please try again.\");\n alert.showAndWait();\n }\n } catch (NullPointerException | SQLException e) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"No appointment selected.\");\n alert.setContentText(\"Please select a appointment to Delete.\");\n alert.showAndWait();\n }\n }\n }catch (NullPointerException e){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"No appointment selected.\");\n alert.setContentText(\"Please select a appointment to Delete.\");\n alert.showAndWait();\n }\n }", "@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n Dialog deleteDialog = new Dialog(SettingsActivity.this, R.style.Theme_Dialog);\n // Include dialog.xml file\n deleteDialog.setContentView(R.layout.dialog_delete_confirmation);\n deleteDialog.setTitle(null);\n\n TextView agree, disagree, title, content;\n agree = deleteDialog.findViewById(R.id.agree);\n disagree = deleteDialog.findViewById(R.id.disagree);\n title = deleteDialog.findViewById(R.id.title);\n content = deleteDialog.findViewById(R.id.textContent);\n\n title.setText(\"Import Notes?\");\n content.setText(\"Existing backup notes will be replaced by latest imported notes.\");\n\n agree.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n importDB();\n check = 1;\n }\n });\n\n disagree.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n deleteDialog.dismiss();\n }\n });\n\n deleteDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n deleteDialog.show();\n }", "@Override\n public void onClick(View v) {\n\n ViewDialog alert = new ViewDialog();\n alert.showDialog(RoundSetting.this, \"Remove Golfer ?\",3);\n\n }", "private void keluarMenuItemActionPerformed(java.awt.event.ActionEvent evt) {\n int exit = JOptionPane.showConfirmDialog(this, \"Anda yakin akan keluar ?\",\"\", JOptionPane.OK_CANCEL_OPTION);\n if(exit == JOptionPane.OK_OPTION){\n System.exit(0);\n }\n }", "public void confirmStudentUpdate(){\n\n String title =\"Confirm student information update\";\n String HeaderText = \"Confirm inserted data\";\n String ContentText = \"Are you sure you want to update this student's information?\";\n\n AlertHandler ah = new AlertHandler();\n\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n updateStudent();\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }", "@FXML\r\n void onActionDeletePart(ActionEvent event) {\r\n\r\n Part part = TableView2.getSelectionModel().getSelectedItem();\r\n if(part == null)\r\n return;\r\n\r\n //EXCEPTION SET 2 REQUIREMENT\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setHeaderText(\"You are about to delete the product you have selected!\");\r\n alert.setContentText(\"Are you sure you wish to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK){\r\n product.deleteAssociatedPart(part.getId());\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == R.id.deleteCar) {\n\n // Alert box asking if you really want to delete this car.\n // It would be kind if rude to silently delete things.\n AlertDialog.Builder deleteDialog = new AlertDialog.Builder(this);\n deleteDialog.setTitle(R.string.are_you_sure);\n deleteDialog.setMessage(R.string.not_reversible_car);\n deleteDialog.setIcon(android.R.drawable.ic_dialog_info);\n deleteDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n\n // A function to delete the oil change history for this car.\n Cursor oilInfo = carDB.getOilInfo(dataBundle.getInt(schema.COL_CAR_ID));\n if(oilInfo.getCount() > 0) {\n do {\n int oilID = oilInfo.getInt(oilInfo.getColumnIndex(schema.COL_ID));\n carDB.deleteOilChange(oilID);\n } while (oilInfo.moveToNext());\n }\n\n // A function to delete the maintenance history for this car.\n Cursor maintenanceInfo = carDB.getMaintenanceInfo(dataBundle.getInt(schema.COL_CAR_ID));\n if(oilInfo.getCount() > 0) {\n do {\n int maintID = maintenanceInfo.getInt(oilInfo.getColumnIndex(schema.COL_ID));\n carDB.deleteMaintenance(maintID);\n } while (oilInfo.moveToNext());\n }\n\n // The function launched here iterates through the cursor deleting all OEM parts and\n // their associated TPM parts. (TPM = Third Part Manufacture).\n // The method tests to see if there are other cars mapped to an\n // OEM part and will not delete it from the parts table if there are.\n Cursor partsList = carDB.getCarsToParts(dataBundle.getInt(schema.COL_CAR_ID));\n if (partsList.getCount() > 0) {\n do {\n int partID = partsList.getInt(partsList.getColumnIndex(\"PartID\"));\n carDB.deleteOemPart(partID, dataBundle.getInt(schema.COL_CAR_ID));\n } while (partsList.moveToNext());\n }\n\n\n // Once the histories and parts are deleted from the db for this car, delete the car.\n carDB.deleteCar(dataBundle.getInt(schema.COL_CAR_ID));\n\n // Return to the MainActivity when finished.\n Intent returnToCars = new Intent(getApplicationContext(), MainActivity.class);\n returnToCars.putExtras(dataBundle);\n startActivity(returnToCars);\n }\n });\n deleteDialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel(); // Do nothing.\n }\n });\n AlertDialog deleteWarning = deleteDialog.create();\n deleteWarning.show();\n }\n\n // Up button\n if (item.getItemId() == android.R.id.home) {\n Intent backNavIntent = new Intent(getApplicationContext(), RecordSelectActivity.class);\n backNavIntent.putExtras(dataBundle);\n startActivity(backNavIntent);\n }\n\n // Not to be confused with the Up button\n if (item.getItemId() == R.id.homeView) {\n Intent homeIntext = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(homeIntext);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteHoliday(hObj);\n\n }", "boolean updateOrDelete (String choice){\r\n if (choice.equalsIgnoreCase(\"U\") || choice.equalsIgnoreCase(\"D\")){\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "private void deleteButtonClick() {\n\n final CharSequence[] p = new CharSequence[players.size()]; // create char array of players\n final boolean[] pChecked = new boolean[p.length]; // array to record whether or not a player is selected\n for (int i = 0; i < players.size(); i++) {\n p[i] = players.get(i).toString();\n }\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n if (players.size() > 0) {\n builder.setTitle(\"Select the players to delete...\"); // dialog shows user list of saved players and tick boxes to select them\n builder.setPositiveButton(\"Remove\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) { // when the user presses the \"Remove\" button\n\n for (int i = 0; i < p.length; i++) {\n if (pChecked[i]) { // if a name is selected\n\n selectedPlayers.remove(p[i]); // remove the player from the list of selected players\n players.remove(p[i]); // remove it from the list of names to save\n savedNames = players.toString(); // convert the list of names to a single string that will be saved later\n savedNames = savedNames.replaceAll(\"\\\\[\", \"\").replaceAll(\"\\\\]\", \"\"); // the new string will include the list's square brackets. This removes them.\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"savedNames\", savedNames); // save the new list of players' names\n editor.commit();\n pChecked[i] = false; // untick the name\n }\n }\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n builder.setMultiChoiceItems(p, new boolean[p.length], new DialogInterface.OnMultiChoiceClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) { // Fills the dialog with the saved players' names a tick boxes to select them\n pChecked[which] = isChecked;\n }\n });\n } else {\n builder.setTitle(\"No players saved.\"); // If the user tries to delete players when no players are saved\n builder.setPositiveButton(\"I see...\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n }\n builder.show();\n }", "private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }", "private void addConfirmDialog() {\n builder = UIUtil.getConfirmDialog(getContext(),\"You are about to delete data for this payment. proceed ?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n boolean isDeleted = mydb.deletePayment(paymentId);\n if(isDeleted) {\n Bundle bundle = new Bundle();\n bundle.putString(\"orderId\", String.valueOf(orderId));\n FragmentViewPayments mfragment = new FragmentViewPayments();\n UIUtil.refreshFragment(mfragment,bundle, getFragmentManager());\n } else {\n Toast.makeText(getContext(),\"Error deleting data!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "void optionsDialog(){\r\n\t\tString title = getString(R.string.select_option);\r\n\t\tString[] options = getResources().getStringArray(R.array.options);\r\n\t\t\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n\t\t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t \r\n\t // specify the list array\r\n\t builder.setItems(options, new DialogInterface.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tswitch(which){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\t// open update dialog\r\n\t\t\t\t\tupdateDialog();\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t// open delete dialog\r\n\t\t\t\t\tdeleteDialog();\r\n\t\t\t\t\tdialog.dismiss();\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 \r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}", "public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\n btn.setEnabled(false); //griser le bouton\n }", "@Override\n public void onClick(View v) {\n\n ViewDialog alert = new ViewDialog();\n alert.showDialog(RoundSetting.this, \"Remove Golfer ?\",1);\n\n }" ]
[ "0.68911296", "0.6827023", "0.66776747", "0.66445684", "0.6629233", "0.66006607", "0.6591457", "0.6582531", "0.6571064", "0.655829", "0.6535482", "0.6519219", "0.6502942", "0.64115775", "0.63931245", "0.63898265", "0.637995", "0.6379558", "0.63397366", "0.6324495", "0.6315994", "0.6315467", "0.63038915", "0.63024604", "0.628959", "0.62692297", "0.6261612", "0.6250554", "0.6244806", "0.6237904", "0.6225895", "0.62242293", "0.6222826", "0.620855", "0.6189017", "0.6157188", "0.6147258", "0.6143514", "0.61424124", "0.61391085", "0.613905", "0.61373466", "0.6131017", "0.6121639", "0.6119769", "0.61173785", "0.60838914", "0.6078153", "0.6067761", "0.6063078", "0.6058163", "0.603596", "0.6031983", "0.6030237", "0.6023621", "0.6022776", "0.60212874", "0.6015545", "0.6014321", "0.6005102", "0.60000354", "0.5989421", "0.59844935", "0.5981996", "0.5981414", "0.59807897", "0.5979703", "0.595828", "0.5955393", "0.59471756", "0.593852", "0.5936674", "0.59341764", "0.5926311", "0.5923093", "0.59206927", "0.5903303", "0.5893551", "0.5889766", "0.58886206", "0.5887363", "0.58643097", "0.58603185", "0.58562833", "0.58559793", "0.5850486", "0.5849018", "0.58487684", "0.58478737", "0.58468467", "0.5846641", "0.58457553", "0.58435124", "0.5841726", "0.58370847", "0.5833585", "0.5832925", "0.58259785", "0.5823262", "0.5818137" ]
0.82394004
0
Function ifHasArrangement is getting userTodelete from the Admin and then returns true if the soldier has arrangement , else , the function returns false.
public boolean ifHasArrangement (String userToDelete) { cursor2 = arrangement_db.rawQuery("SELECT * FROM "+MyArrangementSQLiteHelper.TABLE_NAME+" WHERE "+MyArrangementSQLiteHelper.COLUMN_USERNAME+"=?",new String[] {userToDelete}); if (cursor2!=null) { cursor2.moveToFirst(); return true ; } return false ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isAutorisationUtilisation();", "boolean hasMission();", "boolean isAdmin();", "boolean hasTeam();", "boolean hasDonator();", "boolean isPlaced();", "public boolean populateAdmins(){\r\n\t\t\r\n\t\tboolean done=false;\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\tConnection conn=Database.getConnection();\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tif(conn != null){\r\n\t\t\t\t\t\r\n\t\t\t\t\tArrayList<Department> getAllDepts=Department.getAllDepartments();\r\n\t\t\t\t\t//Retrieve the current semester ID\r\n\t\t\t\t\tString SemesterSelect = \"Select * FROM names3 order by rand() LIMIT 50\";\r\n\t\t\t\t\tPreparedStatement statement = conn.prepareStatement(SemesterSelect);\r\n\t\t\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\t\tint size=getAllDepts.size();\r\n\t\t\t\t\t\tint rand=(int)(Math.random()*size);\r\n\t\t\t\t\t\tDepartment d=getAllDepts.get(rand);\r\n\t\t\t\t\t\tString name = rs.getString(1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Adding new admin\");\r\n\t\t\t\t\t\t\t\tAdmin.addAdmin(name, d);\r\n\t\t\t\t\t\t\t\tSystem.out.println(d.getDepartmentName()+\"-------\"+name);\r\n\t\t\t\t\t\t\t\tThread.sleep(10);\r\n\t\t\t\t\t\t\t\tdone=true;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tcatch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t} catch (People.loginDetailsnotAdded e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcatch(SQLException e){\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} \r\n\t\t\t\t\r\n\t\t\tfinally{\r\n\t\t\t\t//Database.commitTransaction(conn);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfinally{\r\n\t\t}\r\n\t\t\r\n\t\treturn done;\r\n\t}", "public boolean perdeu() {\n\t\tif(tabuleiro.getAtiradores().length==0)\n\t\t{\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasArmor();", "public boolean isAdmin();", "boolean hasArtilleryFactorySelected();", "boolean hasAttackerRoleId();", "public boolean esmenor(){\n //este metodo no aplica en la resolución del caso de uso planteado\n //sólo sirve para determinar si el participante es menor de edad para \n //poner como obligatorio el campo nombreTutor de acuerdo a las reglas\n //del negocio.\n return false;\n }", "boolean hasDrugLumn();", "boolean hasDrugLumn();", "boolean hasAttackerRoleName();", "@Override\n public boolean equipped() {\n\treturn this.equipped;\n }", "boolean hasSelectedUser();", "boolean hasHotelGroupView();", "boolean getIsOccupation();", "boolean hasTruckid();", "boolean hasTruckid();", "boolean hasTruckid();", "boolean hasTruckid();", "boolean hasTruckid();", "boolean hasTruckid();", "boolean esMovimientoLegal(Jugada jugada) throws CeldasFueraTableroException;", "boolean getMission();", "public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }", "private boolean validaSituacao() {\r\n\t\treturn Validacao.validaSituacao((String) this.situacao.getSelectedItem()) != 0;\r\n\t}", "public boolean VerifyOrderConfirmation_UponDeliverySection() {\n\t\t\tboolean flag = false;\n\t\t\t\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyUponDeliverySection\", \"UponDeliverySectionIsDisplayed\");\n\t\t }else{extentLogs.fail(\"VerifyUponDeliverySection\", \"UponDeliverySectionIsNotDisplayed\");}\n\t\t\t\n\t\t\treturn flag;\n\t\t}", "boolean hasTruckId();", "boolean isAchievable();", "private boolean isAdventureMode(EntityPlayer player) {\n\t\t/*if(player.worldObj.isRemote) {\n\t\t\treturn isAdventureMode_Client(player);\n\t\t}*/\n\t\t//return !player.worldObj.isRemote && ((EntityPlayerMP) player).theItemInWorldManager.getGameType().isAdventure();\n\t\treturn !(player instanceof FakePlayer) && !player.worldObj.isRemote && ((EntityPlayerMP) player).theItemInWorldManager.getGameType() != GameType.CREATIVE && !player.canCommandSenderUseCommand(2, \"cv\");\n\t}", "public boolean sucheMitspieler();", "boolean makeAdmin(User user);", "public boolean checkAdmin()\r\n\t{\r\n\t\tboolean admin=false;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(\"administrator\"))\r\n\t\t\t{\r\n\t\t\t\tadmin=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn admin;\r\n\t}", "public boolean placementDone() {return placedShips == 4;}", "public boolean isAdminExists(String pIdentifiant, String pMotDePasse);", "public boolean isGroupAdmin(int userId){\n return userId == groupAdmin;\n }", "boolean CanUseSoldier(int victimIndex, HexLocation location);", "public void isOrderUpTrump(int playerID){\n if(turn == playerID && gameStage == 1 && dealer != 0){\n currentTrumpSuit = middleCardSuit;\n // make dealer discard a card and give them the middle card\n if(dealer == 1){\n // remove a card from the player's hand and add the middle card\n player2Hand.remove(2);\n player2Hand.add(middleCard);\n turn = 2;\n gameStage = 3;\n }\n else if(dealer == 2){\n // remove a card from the player's hand and add the middle card\n player3Hand.remove(2);\n player3Hand.add(middleCard);\n turn = 3;\n gameStage = 3;\n }\n else if(dealer == 3){\n // remove a card from the player's hand and add the middle card\n player4Hand.remove(2);\n player4Hand.add(middleCard);\n turn = 0;\n gameStage = 3;\n }\n }\n }", "public boolean isVital() {\n\t\treturn isVital;\n\t}", "public String checkDepartment(String departmentName);", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "boolean hasAchievementType();", "public boolean shouldExecute() {\n return ShulkerEntity.this.world.getDifficulty() == Difficulty.PEACEFUL ? false : super.shouldExecute();\n }", "private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}", "boolean hasDonatie();", "public boolean isEliminable(VOUsuario us) {\n return true;\n }", "public abstract boolean isUsable();", "@Override\n public boolean isUsable(Player player, boolean firstTurn) {\n\n return player.canPlaceOnThisTurn(firstTurn) && player.canUseCardOnThisTurn(firstTurn) && player.getGrid().getPlacedDice() >0;\n }", "boolean isSetLegs();", "boolean hasRole();", "protected abstract boolean isSatisfiedBy(Design design, AUndertaking t);", "@Override\n public boolean isUsable(Game game) {\n// game.getCurrentPlayer().setInQue(true);\n availableSquare.clear();\n Boolean result = false;\n Worker worker = (Worker) game.getTargetInUse();\n if (game.getTargetSelected() != null) {\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(true);\n return true;\n }\n // if(game.getTargetSelected().getSquare().getWorker()==null) {\n for (Square s : worker.getSquare().getAdjacentSquares()) {\n if (s.getLevel() < 4 && (s.getWorker() == null || s.getWorker().getC() != worker.getC()) && ((worker.getCanMoveUp() && worker.getSquare().getLevel() == s.getLevel() - 1) || (worker.getSquare().getLevel() > s.getLevel() - 1)))\n availableSquare.add(s);\n }\n result = true;\n List<SquareToJson> availableSquares = new ArrayList<>();\n for (Square s1 : availableSquare)\n availableSquares.add(new SquareToJson(s1.getLevel(), \"\", s1.getCoordinateX(), s1.getCoordinateY()));\n\n SquareToJson[][] map = game.squareToJsonArrayGenerator();\n\n ChooseTarget chooseTarget = new ChooseTarget(\"Where do you want to move?\", availableSquares, map);\n UpdateEvent event = new UpdateEvent(map);\n game.notifyObservers(event);\n game.notifyCurrent(chooseTarget);\n\n //}\n /*else{\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(true);\n return true;\n }*/\n if (worker.getSquareNotAvailable() != null)\n availableSquare.remove(worker.getSquareNotAvailable());\n\n if (availableSquare.size() == 0) {\n game.getCurrentPlayer().setDefeat(true);\n result = false;\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(false);\n return result;\n }\n worker.setCanBeMoved(result);\n game.getCurrentPlayer().setInQue(true);\n game.getController().setGoOn(true);\n return result;\n }", "public boolean isGoal() \n {\n return this.manhattan() == 0;\n // return this.manhattan() == 0 || this.checkTwinSolution();\n }", "public void SoldierCheckChoice(View view){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(\"Are you sure , You want to remove the soldier and his arrangements?\");\n alertDialogBuilder.setPositiveButton(\"yes\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n userToDelete = delUserName.getText().toString();\n if (ifHasArrangement(userToDelete))\n {\n deleteSoldierArrangement(userToDelete);\n }\n DeleteData(userToDelete);\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(ListDataActivity.this,\"You cancelled the Soldier delete!\",Toast.LENGTH_LONG).show();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "boolean hasInstructor(){\n\t\treturn instructor == null ? false : true;\n\t}", "public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }", "private boolean inGameInvariant(){\n if (owner != null && troops >= 1)\n return true;\n else\n throw new IllegalStateException(\"A Territory is left without a Master or Troops\");\n }", "public boolean verifyAddInvestmentGoalModalContents(Boolean retirement) {\n log(\"Verifying the contents of the Add Investment Goal modal\");\n Boolean college = false;\n Boolean retire = true;\n if ((retirement == true) && (isElementDisplayed(retirementStartBtn, \"Start button for retirement\") == false)) {\n retire = false;\n }\n if (isElementDisplayed(collegeStartBtn, \"Start button for college\")) {\n college = true;\n }\n return college && retire;\n }", "private void IsAbleToGebruikEigenschap() throws RemoteException {\n boolean eigenschapGebruikt = speler.EigenschapGebruikt();\n if (eigenschapGebruikt == true) {\n gebruikEigenschap.setDisable(true);\n }\n }", "boolean hasPants();", "public boolean isPermisoAgendaPersonal() {\n for(Rolpermiso rp : LoginController.getUsuarioLogged().getRol1().getRolpermisoList()){\n if(rp.getPermiso().getDescripcion().equals(\"AAgenda\")){\n return true;\n }\n }\n return false;\n }", "boolean hasQuestId();", "boolean hasQuestId();", "boolean hasQuestId();", "boolean hasQuestId();", "public abstract boolean isEdible();", "boolean getIsVegetable();", "boolean isSetUnordered();", "boolean hasGroupPlacementView();", "public boolean checkTroopToPlanetMove(Troop aTroop){\r\n\t boolean found = false;\r\n\t int i = 0;\r\n\t while ((found == false) & (i < troopToPlanetMoves.size())){\r\n\t\t TroopToPlanetMovement tempMove = troopToPlanetMoves.get(i);\r\n\t\t if (tempMove.isThisTroop(aTroop)){\r\n\t\t\t found = true;\r\n\t\t }else{\r\n\t\t\t i++;\r\n\t\t }\r\n\t }\r\n\t return found;\r\n }", "public boolean isAchieved(){\n\t\treturn achieved;\n\t}", "public boolean wantsToAttack() {\n boolean ret = false;\n \n potentialAttackers.clear(); //Previous potentials might no longer be adjacent to an enemy\n \n //Look at all my territories. If it has enough troops to smack someone, it does.\n for(Territory t : gameController.getBoard().getAgentsTerritories(this)){\n if(t.getNumTroops() > 1){\n \n //Check adjacent territories to see if we can do anything about it.\n List<Territory> adjs = gameController.getBoard().getAdjacentTerritories(t);\n for(Territory adj : adjs){\n //Record a boolean so we don't need to call it twice;\n boolean yes = !adj.getOwner().equals(this);\n \n //Check if we have an acceptable chance of success\n int tTroops = t.getNumTroops() - 1;\n int aTroops = adj.getNumTroops();\n double odds = MarkovLookupTable.getOddsOfSuccessfulAttack(tTroops, aTroops);\n yes &= Double.compare(odds, ACCEPTABLE_RISK) >= 0;\n \n //If we can attack with this territory, yes will be true, throw this Territory\n //in the list of potential attackers if it isn't already in there.\n if(yes){\n if(!potentialAttackers.contains(t)){\n potentialAttackers.add(t);\n }\n }\n ret |= yes; //Ret will be set to true and can't be unset if even 1 t can attack\n }\n }\n }\n \n return ret;\n }", "boolean hasSuit();", "boolean hasAgent();", "@Override\n protected String isSpecificMissionValid() {\n if (!Ants.getWorld().getEnemyHills().contains(hill))\n return \"Enemy hill \" + hill + \" is no longer there\";\n return partialMission.isValid();\n }", "public boolean isAllowed(Player owner, Item item) {\r\n if (item.getValue() > 50000) {\r\n owner.getActionSender().sendMessage(\"This item is too valuable to trust to this familiar.\");\r\n return false;\r\n }\r\n if (!item.getDefinition().isTradeable()) {\r\n owner.getActionSender().sendMessage(\"You can't trade this item, not even to your familiar.\");\r\n return false;\r\n }\r\n if (!owner.getFamiliarManager().getFamiliar().getDefinition().getName().toLowerCase().contains(\"abyssal\")) {\r\n if (item.getId() == 1436 || item.getId() == 7936 || !item.getDefinition().getConfiguration(ItemConfiguration.BANKABLE, true)) {\r\n owner.getActionSender().sendMessage(\"You can't store \" + item.getName().toLowerCase() + \" in this familiar.\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isAdmin()\n {\n return admin;\n }", "public boolean isAdmin()\n {\n return admin;\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "private boolean canExecuteProposalTask( String userId, ProposalDevelopmentDocument doc, String taskName ) {\n\t\tProposalTask task = new ProposalTask( taskName, doc );\n\t\tTaskAuthorizationService taskAuthenticationService = KraServiceLocator.getService( TaskAuthorizationService.class );\n\t\treturn taskAuthenticationService.isAuthorized( userId, task );\n\t}", "public boolean hasDeal() {\r\n/* 285 */ return this._has_deal;\r\n/* */ }", "boolean hasQuestID();", "boolean hasQuestID();", "boolean hasQuestID();", "boolean hasQuestID();", "public static boolean isDealerSelectionDone() {\r\n\t\tboolean dealerSelected = false;\r\n\t\t\r\n\t\t//Check if the dealer has been selected.\r\n\t\tif (GameSetup.player1IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.player2IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.player3IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (GameSetup.player4IsDealer.getState()) {\r\n\t\t\t\tdealerSelected = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!dealerSelected) FrameUtils.showDialogBox(\"A dealer must be selected.\");\r\n\t\t\r\n\t\t//Save who the dealer is.\r\n\t\tsaveDealerName();\r\n\t\t\t\r\n\t\treturn dealerSelected;\r\n\t}", "public abstract boolean isAdminPacket();", "boolean hasDdzConfirmRule();", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "boolean hasUserType();" ]
[ "0.5913239", "0.5827806", "0.576404", "0.5744502", "0.5642043", "0.5633808", "0.56257254", "0.56200165", "0.56019473", "0.5600749", "0.5536634", "0.55319476", "0.5502776", "0.5490155", "0.5490155", "0.5464137", "0.54549754", "0.54451984", "0.5416353", "0.54125637", "0.5403112", "0.5403112", "0.5403112", "0.5403112", "0.5403112", "0.5403112", "0.5402758", "0.5401245", "0.5384434", "0.53816664", "0.5369904", "0.53687525", "0.5366855", "0.5353097", "0.53362244", "0.53310394", "0.53219026", "0.5313457", "0.53028625", "0.52986264", "0.52916896", "0.52902293", "0.52822745", "0.5275432", "0.5275004", "0.5270131", "0.52632", "0.5255741", "0.52551395", "0.5252474", "0.5246176", "0.5246022", "0.5241309", "0.52345526", "0.5224333", "0.52190506", "0.52152514", "0.52151054", "0.5211141", "0.51974624", "0.51876175", "0.51843023", "0.51816344", "0.5175244", "0.51692945", "0.51621234", "0.51621234", "0.51621234", "0.51621234", "0.51593614", "0.51582044", "0.5155714", "0.51534337", "0.5152589", "0.5149674", "0.5148446", "0.5145889", "0.5145463", "0.5140016", "0.51385164", "0.5137317", "0.5137317", "0.51367265", "0.51367265", "0.51367265", "0.51367265", "0.51367265", "0.51367265", "0.51367265", "0.5134017", "0.5132052", "0.51314795", "0.51314795", "0.51314795", "0.51314795", "0.51308215", "0.51301265", "0.5123862", "0.512249", "0.51198816" ]
0.67451274
0
Function deleteSoldierArrangement is getting userTodelete from the Admin and then delete the soldier's arrangements.
public void deleteSoldierArrangement (String userToDelete) { cursor3 = arrangement_db.rawQuery("SELECT * FROM "+MyArrangementSQLiteHelper.TABLE_NAME+" WHERE "+MyArrangementSQLiteHelper.COLUMN_USERNAME+"=?",new String[] {userToDelete}); if (cursor3!=null) { cursor3.moveToFirst(); String whereClause = MyArrangementSQLiteHelper.COLUMN_USERNAME+ "=?"; String [] whereArgs = new String[] {userToDelete}; arrangement_db.delete(MyArrangementSQLiteHelper.TABLE_NAME , whereClause , whereArgs); Toast.makeText(ListDataActivity.this,"The arrangments of the deleted soldier deleted sucssesfully",Toast.LENGTH_LONG); } else Toast.makeText(ListDataActivity.this,"There are no arrangements for the deleted soldier",Toast.LENGTH_LONG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteDepartmentByDeptName(String dept_name);", "public void deleteDepartmentByDeptNo(int dept_no);", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "@Test\n\tpublic void deleteByAdministratorTest() throws ParseException {\n\t\t\n\t\tSystem.out.println(\"-----Delete announcement by administrator test. Positive 0 to 1, Negative 2 to 4.\");\n\t\t\n\t\tObject testingData[][]= {\n\t\t\t\t//Positive cases\n\t\t\t\t{\"announcement1-1\", \"admin\", null},\n\t\t\t\t{\"announcement1-2\", \"admin\", null},\n\t\t\t\t\n\t\t\t\t//Negative cases\n\t\t\t\t//Without announcement\n\t\t\t\t{null, \"admin\", NullPointerException.class},\n\t\t\t\t//Without user\n\t\t\t\t{\"announcement2-1\", null, IllegalArgumentException.class},\n\t\t\t\t//With not admin\n\t\t\t\t{\"announcement2-1\", \"user1\", IllegalArgumentException.class}\n\t\t\t\t};\n\t\t\n\t\t\n\t\tfor (int i = 0; i< testingData.length; i++) {\n\t\t\ttemplateDeleteByAdministratorTest(\n\t\t\t\t\ti,\n\t\t\t\t\t(Integer) this.getEntityIdNullable((String) testingData[i][0]),\n\t\t\t\t\t(String) testingData[i][1],\n\t\t\t\t\t(Class<?>) testingData[i][2]\n\t\t\t\t\t);\n\t\t}\n\t}", "void deleteDepartmentById(Long id);", "public String deleteDepartmentRow(Departmentdetails departmentDetailsFeed);", "@Override\r\n public int deptDelete(int dept_seq) {\n return sqlSession.delete(\"deptDAO.deptDelete\", dept_seq);\r\n }", "@Override\npublic int delete(Department department) {\n\treturn 0;\n}", "public boolean deleteDepartmentById(Integer id);", "public void deleteDepartment(Department deparmentInDB) {\n\t\tdepartmentRepository.delete(deparmentInDB);\n\t\t\n\t}", "@Override\n\tpublic void delete(Integer deptno) {\n\t\t\n\t}", "public void deleteDepartment(Department a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\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\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void deleteDepartment(String deptNum)\n\t{\n\t\tHRProtocol envelop = null;\n\t\tenvelop = new HRProtocol(HRPROTOCOL_DELETE_DEPARTMENT_REQUEST, deptNum, null);\n\t\tsendEnvelop(envelop);\n\t\tenvelop = receiveEnvelop();\n\t\tif(envelop.getPassingCode() == HRPROTOCOL_DELETE_DEPARTMENT_RESPONSE)\n\t\t{\t//Success in transition\n\t\t}else\n\t\t{\n\t\t\t//Error in transition. or other error codes.\n\t\t}\n\t}", "@Test\n\tpublic void deleteAnnouncementTest() {\n\n\t\tSystem.out.println(\"-----Delete announcement test. Positive 0 to 2, Negative 3 to 5.\");\n\n\t\tfinal Object testingData[][] = {\n\t\t\t//Positives test cases\n\t\t\t{\n\t\t\t\t// Positivo 1: Admin deletes an inappropiate announcement\n\t\t\t\t\"P1\", \"admin\", \"rendezvous1\", \"announcement1-1\", null\n\t\t\t}, {\n\t\t\t\t//Positivo 2: Admin deletes announcement from other rendezvous\n\t\t\t\t\"P2\", \"admin\", \"rendezvous2\", \"announcement2-1\", null\n\t\t\t},\n\t\t\t//Negative test cases\n\t\t\t{\n\t\t\t\t// Negativo 1: Anonymous deletes user can create an user\n\t\t\t\t\"N1\", \"\", \"rendezvous1\", \"announcement1-1\", IllegalArgumentException.class\n\t\t\t}, {\n\t\t\t\t//Negativo 2: Admin deletes an inappropiate announcement that doesn't belong to rendezvous\n\t\t\t\t\"N2\", \"admin\", \"rendezvous1\", \"announcement2-1\", IllegalArgumentException.class\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateCreateUser(i, (String) testingData[i][0], //Nº Positive/Negative\n\t\t\t\t(String) testingData[i][1], //Username login\n\t\t\t\t(String) testingData[i][2], //Rendezvous Id\n\t\t\t\t(String) testingData[i][3], //Announcement Id\n\t\t\t\t(Class<?>) testingData[i][4]); //Exception class\n\t}", "@Override\r\n\tpublic String deleteDepartment(Long deptId) {\n\t\tdeptRepo.deleteById(deptId);\r\n\t\treturn \"Deleted successfully\";\r\n\t}", "public void deleteDepartmentUser(DepartmentUser a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\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\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void SoldierCheckChoice(View view){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(\"Are you sure , You want to remove the soldier and his arrangements?\");\n alertDialogBuilder.setPositiveButton(\"yes\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n userToDelete = delUserName.getText().toString();\n if (ifHasArrangement(userToDelete))\n {\n deleteSoldierArrangement(userToDelete);\n }\n DeleteData(userToDelete);\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(ListDataActivity.this,\"You cancelled the Soldier delete!\",Toast.LENGTH_LONG).show();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "int deleteByPrimaryKey(String deptCode);", "public void delete(CostEngineering costEngineering) {\n cost_engineering_dao.delete(costEngineering);\n }", "public void annulerDemande (int idGroupe) throws RemoteException {\r\n\t\t\t\r\n\t\t String requete = \"delete from demande where d_idGroupe = \" + idGroupe + \" and d_idEtudiant = \" + \r\n\t\t \t\t\t\t _etudiant.getId(); \r\n\t\t System.out.println(\"requete annulerDemande : \" + requete);\r\n\t\t database.executeUpdate(requete);\r\n\t\t \r\n\t\t}", "protected static void deletePassenger(Passenger[][] waitingRoom, PassengerQueue trainQueue) {\n // Setting scanner for console inputs.\n Scanner sc = new Scanner(System.in);\n\n // Taking user input for how to delete passenger.\n System.out.print(\"Press S to delete passenger using the seat number\\n\" +\n \"Press N to delete a passenger using passenger name\\n\" +\n \"\\t: \");\n String text = formattingWhitespace(sc.nextLine());\n\n // Validating User Input for How to delete passenger.\n if (text.equalsIgnoreCase(\"s\") || text.equalsIgnoreCase(\"n\")) {\n\n // Taking User Input for train to delete customer from.\n System.out.println(\"Select the Train : \");\n for (int train = 0; train < GUI.trains.length; train++) {\n System.out.println(\"\\t \" + train + \" : \" + GUI.trains[train]);\n }\n System.out.print(\"Enter Train Number : \");\n try {\n int train = sc.nextInt();\n sc.nextLine(); // Consuming the newline, so the next sc.nextLine does not react to it.\n\n // Validating User Input for train to delete customer from.\n if (train == 0 || train == 1) {\n\n // If customer select to delete customer using seat number.\n if (text.equalsIgnoreCase(\"S\")) {\n\n // Taking seat number to delete customer from.\n System.out.print(\"Enter Seat Number : \");\n String seatNumberText = formattingWhitespace(convert(sc.nextLine()));\n\n // Validating User Input for seat to delete customer from.\n int seatNumber = seatNumberConverter(seatNumberText);\n if (seatNumber < 42 && seatNumber > -1) {\n // Checking a passenger array for the seat to delete passenger..\n boolean isRemoved = false;\n for (int seat = 0; seat < trainQueue.getQueueLength(train); seat++) {\n // When the seat found.\n if (trainQueue.getQueueArray(train)[seat].getSeatNumber().equalsIgnoreCase(seatNumberText)) {\n waitingRoom[train][seatNumber] = trainQueue.getQueueArray(train)[seat];\n trainQueue.remove(trainQueue.getQueueArray(train)[seat], train);\n isRemoved = true;\n System.out.println(\"Passenger Deleted from seat : \" + seatNumber);\n break;\n }\n }\n // When the loop didn't find the seat in the TrainQueue.\n if (!isRemoved) {\n System.out.println(\"Seat : \" + seatNumberText + \" is not in the Train Queue.\");\n }\n }\n // If the user input for the seat number is invalid.\n else {\n System.out.println(\"Invalid Seat Number.\");\n }\n }\n // If customer select to delete passenger using passenger name.\n else if (text.equalsIgnoreCase(\"N\")) {\n // Taking user input of the passenger name to delete.\n System.out.print(\"Enter Passenger Name : \");\n String passengerName = formattingWhitespace(convert(sc.nextLine()));\n\n // Checking a passenger array for the passenger name to delete passenger..\n boolean isRemoved = false;\n for (int seat = 0; seat < trainQueue.getQueueLength(train); seat++) {\n // Deleting the every passenger with that name.\n if (trainQueue.getQueueArray(train)[seat].getPassengerName().equalsIgnoreCase(passengerName)) {\n String seatNumber = trainQueue.getQueueArray(train)[seat].getSeatNumber();\n waitingRoom[train][seatNumberConverter(seatNumber)] = trainQueue.getQueueArray(train)[seat];\n trainQueue.remove(trainQueue.getQueueArray(train)[seat], train);\n isRemoved = true;\n System.out.println(\"Passenger deleted : \" + passengerName + \" form seat : \" + seatNumber);\n }\n }\n // If there was no passenger with the user given passenger.\n if (!isRemoved) {\n System.out.println(\"Invalid Passenger Name.\");\n }\n }\n }\n // When the user given Train is invalid.\n else {\n System.out.println(\"Invalid Train Number.\");\n }\n }\n // When the user enter a letter for a train instead of a number.\n catch (InputMismatchException e) {\n System.out.println(\"Invalid Input.\");\n }\n }\n // When the user given delete Method is Invalid.\n else {\n System.out.println(\"Invalid Input.\");\n }\n }", "public Goal deleteGoalDiary(Integer goal_goalid, Integer related_diary_iddiary);", "void deleteTransmission(Transmission transmission, SiteUser siteUser);", "public void deleteDepartments() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(\"departments\", null, null);\n db.close();\n }", "public static void removeDept() {\n\t\tScanner sc = ReadFromConsole.sc;\n\t\tSystem.out.println(\"Enter Department Id: \");\n\t\tint deptId = sc.nextInt();\n\t\tboolean deletion = false;\n\t\tDepartment d = null;\n\t\tsc.nextLine();\n\n\t\t// loop thru all dept obj of the deptInfo list\n\t\tfor (Department dept : deptInfo) {\n\t\t\tif (dept.getDeptId() == deptId) {\n\t\t\t\tdeletion = true;\n\t\t\t\td = dept;\n\t\t\t}\n\t\t}\n\t\tif (deletion) {\n\t\t\tdeptInfo.remove(d);\n\t\t\tSystem.out.println(\"Department removed\");\n\t\t}\n\t}", "@Override\r\n\tpublic void deleteDepartment(Department department) {\n\t\tgetHibernateTemplate().delete(department);\r\n\t}", "@Override\n public void deleteSelectedConnectathonParticipant() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteSelectedConnectathonParticipant\");\n }\n\n selectedConnectathonParticipant = entityManager.find(ConnectathonParticipant.class,\n selectedConnectathonParticipant.getId());\n\n try {\n\n entityManager.remove(selectedConnectathonParticipant);\n entityManager.flush();\n\n } catch (Exception e) {\n LOG.warn(USER + selectedConnectathonParticipant.getEmail()\n + \" cannot be deleted - This case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\",\n selectedConnectathonParticipant.getFirstname(), selectedConnectathonParticipant.getLastname(),\n selectedConnectathonParticipant.getEmail());\n }\n FinancialCalc.updateInvoiceIfPossible(selectedConnectathonParticipant.getInstitution(),\n selectedConnectathonParticipant.getTestingSession(), entityManager);\n getAllConnectathonParticipants();\n\n }", "public void deleteTAlgmntSalesTeam(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"=========== Delete TAlgmntSalesTeam ===========\");\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t\tgenericDAO.remove(tAlgmntSalesTeam);\n\t}", "void actualizarItemVentaEliminada(DetalleVentaJPA dv);", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "public Inventory inventoryDelete (TheGroceryStore g, LinkedList<Inventory> deleter) throws ItemNotFoundException;", "public int delDepById(String id)\r\n/* 122: */ {\r\n/* 123:102 */ String sql = \"delete from t_department where id=?\";\r\n/* 124:103 */ int i = 0;\r\n/* 125: */ try\r\n/* 126: */ {\r\n/* 127:105 */ this.ct = new ConnDb().getConn();\r\n/* 128:106 */ this.ps = this.ct.prepareStatement(sql);\r\n/* 129:107 */ this.ps.setString(1, id);\r\n/* 130:108 */ i = this.ps.executeUpdate();\r\n/* 131:109 */ return i;\r\n/* 132: */ }\r\n/* 133: */ catch (Exception e)\r\n/* 134: */ {\r\n/* 135:112 */ e.printStackTrace();\r\n/* 136:113 */ return -1;\r\n/* 137: */ }\r\n/* 138: */ finally\r\n/* 139: */ {\r\n/* 140:115 */ closeSourse();\r\n/* 141: */ }\r\n/* 142: */ }", "public void deleteByVaiTroID(long vaiTroId);", "@Test\n\tpublic void deleteTest() throws ParseException {\n\t\t\n\t\tSystem.out.println(\"-----Delete announcement by user test. Positive 0 to 1, Negative 2 to 4.\");\n\t\t\n\t\tObject testingData[][]= {\n\t\t\t\t//Positive cases\n\t\t\t\t{\"announcement1-1\", \"user1\", null},\n\t\t\t\t{\"announcement1-2\", \"user1\", null},\n\t\t\t\t\n\t\t\t\t//Negative cases\n\t\t\t\t//Without announcement\n\t\t\t\t{null, \"user1\", NullPointerException.class},\n\t\t\t\t//Without user\n\t\t\t\t{\"announcement2-1\", null, IllegalArgumentException.class},\n\t\t\t\t//With rendezvous not from the user\n\t\t\t\t{\"announcement2-1\", \"user1\", IllegalArgumentException.class}\n\t\t\t\t};\n\t\t\n\t\t\n\t\tfor (int i = 0; i< testingData.length; i++) {\n\t\t\ttemplateDeleteTest(\n\t\t\t\t\ti,\n\t\t\t\t\t(Integer) this.getEntityIdNullable((String) testingData[i][0]),\n\t\t\t\t\t(String) testingData[i][1],\n\t\t\t\t\t(Class<?>) testingData[i][2]\n\t\t\t\t\t);\n\t\t}\n\t}", "public void DeleteEmployeePlanning(int idEmployee ,int idPlanning)\n\t{\n\t\tfor(Department depart : CompanyController.departments)\n\t\t\t\n\t\t\tfor(Employee emp : depart.getEmployeeList())\n\t\t\t{\n\t\t\t\tif(emp.getIdEmployee()==idEmployee)\n\t\t\t\t{\n\t\t\t\t\tfor(Planning pl : emp.getPlanningList())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(pl.getIdPlanning()==idPlanning) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\temp.removePlanning(pl);break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "public void deleteDistrict(District District);", "public void deleteExercise(User user) {\n\n\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n new AgendamentoDAO(MainActivity.this).delete(agendamentos.get(position));\n\n // Remover o item da lista de agendamentos que está em memória\n agendamentos.remove(position);\n\n // Atualizar lista\n adapter.notifyItemRemoved(position);\n\n // Avisar o usuário\n Toast.makeText(MainActivity.this, R.string.agendamento_excluido, Toast.LENGTH_LONG).show();\n }", "public static void delete(String id, String department) {\r\n\t\tarrays = ReadingAndWritingInFile.readObject(department.concat(\"Department.txt\"));\r\n\t\taverageandidofemployees = (ArrayList<ArrayList<Double>>) arrays[0];\r\n\t\tdegreespersemester = (ArrayList<ArrayList<Double>>) arrays[1];\r\n\t\tidperemployee = (ArrayList<Double>) arrays[2];\r\n\t\tfor (int i = 0; i < averageandidofemployees.size(); i++) {\r\n\t\t\tif (averageandidofemployees.get(i).get(1) == Double.parseDouble(id)) {\r\n\t\t\t\taverageandidofemployees.remove(i);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tReadingAndWritingInFile.writeObject(department.concat(\"Department.txt\"), averageandidofemployees,\r\n\t\t\t\tdegreespersemester, idperemployee);\r\n\t}", "public void clickedPresentationDelete() {\n\t\tif(mainWindow.getSelectedRowPresentation().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowPresentation().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowPresentation()[0];\n\t\t\tPresentations tmpPresentation = presentationList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deletePresentation(tmpPresentation);\t\n\t\t\trefreshPresentationTable();\t\t\t\n\t\t}\n\t}", "public void deleteExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "@Test\n @DisplayName(\"Testataan tilausten poisto tietokannasta\")\n void deleteReservation() {\n TablesEntity table = new TablesEntity();\n table.setSeats(2);\n tablesDao.createTable(table);\n\n ReservationsEntity reservation = new ReservationsEntity(\"Antero\", \"10073819\", new Date(System.currentTimeMillis()), table.getId(), new Time(1000), new Time(2000));\n reservationsDao.createReservation(reservation);\n\n // Confirm that the reservation is in DB\n ReservationsEntity reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(reservation, reservationFromDb);\n\n // Delete reservation and confirm that it's not in the DB\n reservationsDao.deleteReservation(reservation);\n\n reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(null, reservationFromDb);\n\n }", "int deleteByExample(DeptExample example);", "@DeleteMapping(\"/delete/designation/{designation_id}\")\n\tpublic ResponseEntity<?> deleteInterest(@PathVariable int designation_id) {\n\n\t\tinterestService.deleteInterest(designation_id);\n\n\t\treturn new ResponseEntity<String>(\"position deleted successfully\", HttpStatus.OK);\n\t}", "@Test\n\tpublic void test04_05_DeleteADisabledUserByAdministrator() {\n\t\tinfo(\"Test 4: Delete a disabled user by administrator\");\n\t\tString name=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tcreateNewUser();\n\t\tdisableUser();\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open User Management\n\t\t*Step Description: \n\t\t\t- Log in as admin.\n\t\t\t- Go to Administration \n\t\t\t-\n\t\t\t-> Community \n\t\t\t-\n\t\t\t-> Manage Community.\n\t\t\t- Choose the tab \"User Management\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The list of users is displayed: enabled and disabled\n\t\t\t- The column \"Action\" is displayed with 2 icons: Edit and Delete.*/\n\t\tuserAndGroup.goToEditUserInfo(username);\n\t\tuserAndGroup.editUserInfo_AccountTab(\"\", \"\",name, \"\");\n\t\t\n\t\t/*Step number: 2\n\t\t*Step Name: Step 2: Delete a disabled user\n\t\t*Step Description: \n\t\t\t- From a Disabled user, click on the icon \"Delete\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The disabled user is removed from the list*/ \n\t\tuserAndGroup.deleteUser(username);\n\t}", "public String deleterPetDetails(int petId);", "@Override\n\tpublic void deleteTeachers(String[] deletes) {\n\t\ttry{\n\t\t\t\n\t\t\tfor(int i=0;i<deletes.length;i++){\n\t\t\t\tstmt=conn.prepareStatement(\"DELETE FROM Professor WHERE ssn=?\");\n\t\t\t\tstmt.setString(1,deletes[i]);\n\t\t\t\t//stmt.setString(2, administrator.getPassword());\n\t\t\t\tstmt.executeUpdate();\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tex=e;\n\t\t}finally{\n\t\t\tif(conn!=null){\n\t\t\t\ttry{\n\t\t\t\t\tconn.close();\n\t\t\t\t}catch(SQLException e){\n\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\tex=e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif(ex!=null){\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void delete(ExperTypeVO expertypeVO) {\n\n\t}", "public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;", "@Override\n\tpublic void deleteGerant(Gerant g) {\n\t\t\n\t}", "void deleteVehicle(String vehicleID);", "@Override\n @Modifying\n @Query(value = \"delete from Dept where deptId = ?1\", nativeQuery = true)\n void deleteById(Long deptId);", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n instance.eliminar(idDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public void deleteDistrictById(String districtId);", "public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }", "int deleteByExample(EquipmentOrderExample example);", "public void delete(MainItemOrdered mainItemOrdered);", "public String btn_confirm_delete_action()\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(\n getgermplasm$SementalSessionBean().getDeleteSemental());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n \n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n \n return null;\n }", "public void eliminar(CategoriaArticuloServicio categoriaArticuloServicio)\r\n/* 24: */ {\r\n/* 25:53 */ this.categoriaArticuloServicioDao.eliminar(categoriaArticuloServicio);\r\n/* 26: */ }", "public void eliminar(DetalleArmado detallearmado);", "public void deleteByTdiarySeq(int tdiarySeq) {\n\r\n\t}", "int deleteByExample(DepartExample example);", "public void deleteDepartment(Department department) {\n\t\tgetHibernateTemplate().delete(department);\n\t}", "public void deleteByComplement(int id, TripletType type) throws DAOException;", "public void delete() throws Exception{\n\t\tm_service = new DistrictService();\n\t\tString deleteId = \"3751~`~`~`~@~#\";\n\t\tDecoder objPD = new Decoder(deleteId);\n\t\tString objReturn = m_service.delete(objPD);\n\t\tSystem.out.println(objReturn);\n\t}", "public void delete(Department department) {\n\t\tdepartmentRepository.delete(department);\n\t}", "public void deleteDepartmentById(int id) {\n this.departmentDao.deleteById(id);\n }", "boolean deleteMeal(int mealId, int restaurantId);", "@Override\n\t@Transactional\n\tpublic int eliminarSgAgenteOpcion(SgAgenteOpcion objSgAgenteOpcion) {\n\t\ttry {\n\t\t\t\n\t\t\tsgAgenteOpcionDao.delete(objSgAgenteOpcion);\n\t\t\t\n\t\t\treturn 1;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t}", "@Override\r\n\tpublic void deleteDistrict(Integer districtId) {\n\t\t\r\n\t}", "public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }", "public String btn_delete_action()\n {\n int n = this.getDataTableSemental().getRowCount();\n ArrayList<SementalDTO> selected = new ArrayList();\n for (int i = 0; i < n; i++) { //Obtener elementos seleccionados\n this.getDataTableSemental().setRowIndex(i);\n SementalDTO aux = (SementalDTO) this.\n getDataTableSemental().getRowData();\n if (aux.isSelected()) {\n selected.add(aux);\n }\n }\n if(selected == null || selected.size() == 0)\n {\n //En caso de que no se seleccione ningun elemento\n MessageBean.setErrorMessageFromBundle(\"not_selected\", this.getMyLocale());\n return null;\n }\n else if(selected.size() == 1)\n { //En caso de que solo se seleccione un elemento\n \n //si tiene hijos o asociacions despliega el mensaje de alerta\n if(getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n haveSemenGathering(\n selected.get(0).getSementalId()))\n {\n this.getAlertMessage().setRendered(true);\n this.getMainPanel().setRendered(false);\n getgermplasm$SementalSessionBean().setDeleteSemental(\n selected.get(0).getSementalId());\n }\n else\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(selected.get(0).getSementalId());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n }\n \n return null;\n }\n else{ //En caso de que sea seleccion multiple\n MessageBean.setErrorMessageFromBundle(\"not_yet\", this.getMyLocale());\n return null;\n }\n }", "@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}", "protected void deleteStudyTool() {\n regularPresenter.selectStudyToolToDeletePrompt();\n String studyToolID = scanner.nextLine();\n\n if (verifyRightToEdit(studyToolID)) {\n studyToolManager.deleteStudyTool(studyToolID);\n } else {\n regularPresenter.sayNoStudyToolToDelete();\n }\n }", "public static void deleteequipo(Integer idequipo) {\r\n\r\n\t\tConnection c = ConnectionDB.conectarMySQL();\r\n\t\ttry {\r\n\t\t\tPreparedStatement stm = c.prepareStatement(\"update jugador set equipo =null where equipo=\"+idequipo);\r\n\t\t\tstm.executeUpdate();\r\n\t\t\tPreparedStatement stmt = c.prepareStatement(\"Delete from equipo where id =\" + idequipo);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void deleteOrganizationStages(long orgId) throws ServiceManagementException {\n\t\tPreparedStatement preparedDELETEStatement = null;\n\t\t\n\t\t// get the connection\n\t\tConnection conn = openConnection();\n\t\t\n\t\t// \n\t\t// process the request\n\t\t\n\t\t\n\t\t// create the query\n\t\tString deleteQuery = \" DELETE FROM group_data_type WHERE org_id = ?\";\n\t\t\n\t\t// create the statement\n\t\ttry {\n\t\t\tpreparedDELETEStatement = conn\n\t\t\t .prepareStatement(deleteQuery);\n\t\t\t\n\t\t\t// execute the statement \n\t\t\tpreparedDELETEStatement.setLong(1, orgId);\n\t\t\tpreparedDELETEStatement.execute();\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\t// re-throw the proper exception\n\t\t\tthrow new ServiceManagementException(\"Error while deleting a stages list with id=\" + orgId, e);\n\t\t}\n\n\t\t// release the connection\n\t\tcloseConnection(conn);\n\t}", "void deleteByOrgId(String csaOrgId);", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "public void templateDeleteDish(final String username,final Integer dishid, final Class<?> expected) {\n\t\tClass<?> caught = null;\n\n\t\ttry {\n\t\t\tthis.authenticate(username);\n\t\t\tDish dish = dishService.findOne(dishid);\n\t\t\tdishService.delete(dish);\n\t\t\tdishService.flush();\n\n\t\t} catch (final Throwable oops) {\n\t\t\tcaught = oops.getClass();\n\t\t}\n\t\tthis.checkExceptions(expected, caught);\n\t}", "int deleteByExample(PensionRoleMenuExample example);", "@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "@Override\r\n public void moveSoldier(int previousLocationX, int previousLocationY, int newLocationX, int newLocationY) {\r\n\r\n // delete soldier representation from previous location \r\n // then render soldier representation in new location \r\n }", "public void deletePersonnelUnit(PersonnelUnit personnelUnit) throws SQLException {\n try {\n MysqlDbManager mysqlDbManager = MysqlDbManager.getInstance();\n if (personnelUnit.getClass() == Employee.class) {\n Employee employee = (Employee) personnelUnit;\n mysqlDbManager.deleteQuery(employee.getId(), \"employees\");\n }\n if (personnelUnit.getClass() == Technology.class) {\n Technology technology = (Technology) personnelUnit;\n mysqlDbManager.deleteQuery(technology.getId(), \"technologies\");\n }\n if (personnelUnit.getClass() == Affair.class) {\n Affair affair = (Affair) personnelUnit;\n mysqlDbManager.deleteQuery(affair.getId(), \"affair\");\n }\n } catch (ClassCastException e) {\n LOGGER.log(Level.SEVERE, \"ClassCastException\" + e.toString());\n } catch (SQLException e) {\n LOGGER.log(Level.SEVERE, \"SQLException\" + e.toString());\n }\n }", "public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }", "void deleteTransmission(Long transmissionId, SiteUser siteUser);", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "private void deleteRoutine() {\n String message = \"Are you sure you want to delete this routine\\nfrom your routine collection?\";\n int n = JOptionPane.showConfirmDialog(this, message, \"Warning\", JOptionPane.YES_NO_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n Routine r = list.getSelectedValue();\n\n collection.delete(r);\n listModel.removeElement(r);\n }\n }", "private void deleteExec(){\r\n\t\tList<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1);\r\n\t\tif(selectedDatas.size()<1){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Please select at least 1 item to delete\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint options = 1;\r\n\t\tif(selectedDatas.size() ==1 ){\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete this Item ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}else{\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete these \"+selectedDatas.size()+\" Items ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}\r\n\t\tif(options==1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor(HashMap<String,String> map:selectedDatas){\r\n\t\t\t\r\n\t\t\tdiscountService.deleteDiscountByMap(NameConverter.convertViewMap2PhysicMap(map, \"Discount\"));\r\n\t\t}\r\n\t\tthis.initDatas();\r\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void eliminarEmpladoTest() {\n\t\tEmpleado ad = entityManager.find(Empleado.class, \"125\");\n\t\tAssert.assertNotNull(ad);\n\t\tentityManager.remove(ad);\n\t\tAssert.assertNull(\"No se ha eliminado\", entityManager.find(Administrador.class, \"125\"));\n\t}", "public void delete(SmsAgendaGrupoPk pk) throws SmsAgendaGrupoDaoException;", "public void eliminar(Periodo periodo)\r\n/* 27: */ {\r\n/* 28: 53 */ this.periodoDao.eliminar(periodo);\r\n/* 29: */ }", "public void delete() {\n\t\tif(verificaPermissao() ) {\n\t\t\tentidades = EntidadesDAO.find(idEntidades);\n\t\t\tEntidadesDAO.delete(entidades);\n\t\t\tentidades.setAtiva(false);\n\t\t}\t\n\t}", "public void deleteAdmin(Long idAdmin);", "public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }", "@Delete({\n \"delete from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "private void deleteItem(final int id){\n // Instantiate AlertDialog builder\n builder = new AlertDialog.Builder(context);\n\n // Inflate the confirmation dialog\n inflater = LayoutInflater.from(context);\n View view = inflater.inflate(R.layout.confirmation_popup, null);\n\n // Instantiate buttons\n Button noButton = view.findViewById(R.id.conf_no_button);\n Button yesButton = view.findViewById(R.id.conf_yes_button);\n\n builder.setView(view);\n dialog = builder.create();\n dialog.show();\n\n\n // When user confirms to delete, delete the task item and clear the dialog\n yesButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // DatabaseHandler\n DatabaseHandler db1 = new DatabaseHandler(context, \"task_details\"); // MODIFIED JUNE 5TH\n\n // Delete the task from database\n db1.deleteTask(id);\n todoItems.remove(getAdapterPosition());\n notifyItemRemoved(getAdapterPosition());\n\n dialog.dismiss();\n }\n });\n\n // When user confirms not to delete, just get rid of the dialog\n noButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n }", "public void deleteGoal(Goal goal_1);" ]
[ "0.6220188", "0.6195777", "0.6035712", "0.5988375", "0.5916746", "0.5882001", "0.5878912", "0.5789424", "0.5781408", "0.5729813", "0.5638961", "0.5510489", "0.5502472", "0.54421824", "0.53970635", "0.5393517", "0.53601223", "0.53358966", "0.5307086", "0.5294305", "0.5289302", "0.5274509", "0.52724284", "0.5260423", "0.525055", "0.52290434", "0.52287287", "0.5223719", "0.5211719", "0.5211661", "0.5211335", "0.5208873", "0.519546", "0.5187881", "0.51844525", "0.51815873", "0.51790345", "0.5162292", "0.51518404", "0.5151568", "0.5149127", "0.5130781", "0.51137877", "0.51031715", "0.508035", "0.50781065", "0.50684625", "0.5067348", "0.5065954", "0.50586104", "0.50540817", "0.5046612", "0.50449747", "0.50449526", "0.50424516", "0.5042078", "0.50372237", "0.50334036", "0.5032172", "0.5028807", "0.5015624", "0.50081223", "0.499995", "0.49832657", "0.49762908", "0.49734196", "0.4972656", "0.49707654", "0.4967999", "0.49659395", "0.4964377", "0.49617973", "0.49612224", "0.49565685", "0.49546805", "0.49504867", "0.49471015", "0.49461254", "0.49436927", "0.49426663", "0.4939178", "0.49358597", "0.49346387", "0.49339688", "0.4932536", "0.49319008", "0.49303576", "0.49291041", "0.4925959", "0.49187505", "0.49184406", "0.4906612", "0.4904688", "0.49008182", "0.48959148", "0.48758888", "0.4868423", "0.48683628", "0.48663753", "0.48657882" ]
0.70037556
0
Apache's Bag data structure.
public static void main(String[] args) { Bag<Character> bag = new CharacterCount().findCharacterCount("Hello World."); bag.uniqueSet().stream().forEach(ch -> {System.out.println(ch + "-" + bag.getCount(ch));}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bag() {\n\t\tinstances = new ArrayList<double[]>();\n\t\tname = \"\";\n\t}", "public interface Bag<T>\n{\n // ----------------------------------------------------------\n /**\n * Adds the specified element to the bag.\n *\n * @param element item to be added\n * @precondition parameter element is not null\n */\n public void add(T element);\n\n\n // ----------------------------------------------------------\n /**\n * Removes and returns the specified element from the bag. If multiple\n * copies of the same element appear in the bag, only one is removed.\n *\n * @param target item to be removed\n * @return the item removed or null if not found\n * @precondition parameter target is not null\n * @postcondition returned value x.equals(target)\n */\n public T remove(T target);\n\n\n // ----------------------------------------------------------\n /**\n * Removes and returns a random element from the bag.\n *\n * @return the element removed or null if the bag is empty\n */\n public T removeRandom();\n\n\n // ----------------------------------------------------------\n /**\n * Determines if the bag contains the specified element.\n *\n * @param target element to be found\n * @return true if target is in the collection, false otherwise\n * @precondition parameter target is not null\n */\n public boolean contains(T target);\n\n\n // ----------------------------------------------------------\n /**\n * Determines if the bag contains no elements.\n *\n * @return true if collection is empty, false otherwise\n */\n public boolean isEmpty();\n\n\n // ----------------------------------------------------------\n /**\n * Determines the number of elements currently in the bag.\n *\n * @return the number of elements in the bag\n */\n public int size();\n\n\n // ----------------------------------------------------------\n /**\n * Returns a string representation of this bag. A bag's string\n * representation is written as a comma-separated list of its\n * contents (in some arbitrary order) surrounded by curly braces,\n * like this:\n * <pre>\n * {52, 14, 12, 119, 73, 80, 35}\n * </pre>\n * <p>\n * An empty bag is simply {}.\n * </p>\n *\n * @return a string representation of the bag and its contents\n */\n public String toString();\n}", "public Bag getBag()\n\t{\n\t\treturn m_bag;\n\t}", "public interface IBag<T>{\n void add(T t);\n boolean isEmpty();\n}", "public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }", "public /*@ non_null @*/ JMLObjectBag<E> toBag() {\n JMLObjectBag<E> ret = new JMLObjectBag<E>();\n JMLIterator<E> elems = iterator();\n while (elems.hasNext()) {\n //@ assume elems.moreElements;\n E o = elems.next();\n E e = (o == null ? null : o);\n ret = ret.insert(e);\n }\n return ret;\n }", "public Bag[] get_bags() {\r\n return this.bags;\r\n }", "public void packBags() {\r\n GroceryBag[] packedBags = new GroceryBag[numItems];\r\n int bagCount = 0;\r\n\r\n GroceryBag currentBag = new GroceryBag();\r\n for (int i=0; i<numItems; i++) {\r\n GroceryItem item = (GroceryItem) cart[i];\r\n if (item.getWeight() <= GroceryBag.MAX_WEIGHT) {\r\n if (!currentBag.canHold(item)) {\r\n packedBags[bagCount++] = currentBag;\r\n currentBag = new GroceryBag();\r\n }\r\n currentBag.addItem(item);\r\n removeItem(item);\r\n i--;\r\n }\r\n }\r\n // Check this in case there were no bagged items\r\n if (currentBag.getWeight() > 0)\r\n packedBags[bagCount++] = currentBag;\r\n\r\n // Now create a new bag array which is just the right size\r\n pBags = new GroceryBag[bagCount];\r\n for (int i=0; i<bagCount; i++) {\r\n pBags[i] = packedBags[i];\r\n }\r\n\r\n // Add all grocery bags bag into cart\r\n for (int i = 0; i < bagCount; i++) {\r\n addItem(pBags[i]);\r\n }\r\n }", "public Basket(){\r\n\r\n basket = new Hashtable();\r\n keys = new Vector();\r\n }", "public StringBag(){\n\n list = new ArrayList();\n\n\t}", "public Bag add(D elt) {\n return new SetBag_NonEmpty(elt);\n }", "public void setBag(Bag b)\n\t{\n\t\tm_bag = b;\n\t}", "public ArrayListBag() {\n\t\tlist = new ArrayList<T>();\n\t}", "@Test\n\tpublic void testStorage() {\n\t\tBag<Object> bag = new Bag<>();\n\t\tObject element0 = new Object();\n\t\tObject element1 = new Object();\n\t\tObject element2 = new Object();\n\t\tObject element3 = new Object();\n\t\tObject element4 = new Object();\n\t\tObject element5 = new Object();\n\t\tObject element6 = new Object();\n\t\tObject element7 = new Object();\n\n\t\tbag.set(0, element0);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(null, bag.get(1));\n\t\tassertSame(null, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(1, element1);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(null, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(2, element2);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(3, element3);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(4, element4);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(5, element5);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(element5, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(6, element6);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(element5, bag.get(5));\n\t\tassertSame(element6, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(7, element7);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(element5, bag.get(5));\n\t\tassertSame(element6, bag.get(6));\n\t\tassertSame(element7, bag.get(7));\n\n\t\tbag.clear();\n\n\t\tassertSame(null, bag.get(0));\n\t\tassertSame(null, bag.get(1));\n\t\tassertSame(null, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\t}", "private C_TidyBag(Builder builder) {\n super(builder);\n }", "@SuppressWarnings(\"unchecked\")\n public ArrBag( String infileName ) throws Exception\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n BufferedReader infile = new BufferedReader( new FileReader( infileName ) );\n while ( infile.ready() )\n this.add( (T) infile.readLine() );\n infile.close();\n }", "protected void parseBagProperty(XMPMetadata metadata, QName bagName,\n\t\t\tXmpPropertyType stype, ComplexPropertyContainer container)\n\t\t\t\t\tthrows XmpUnexpectedTypeException, XmpParsingException,\n\t\t\t\t\tXMLStreamException, XmpUnknownPropertyTypeException,\n\t\t\t\t\tXmpPropertyFormatException {\n\t\tComplexProperty bag = new ComplexProperty(metadata,\n\t\t\t\tbagName.getPrefix(), bagName.getLocalPart(),\n\t\t\t\tComplexProperty.UNORDERED_ARRAY);\n\t\tcontainer.addProperty(bag);\n\t\t// <rdf:Bag>\n\t\texpectNextSpecificTag(XMLStreamReader.START_ELEMENT, \"Bag\",\n\t\t\t\t\"Expected Seq Declaration\");\n\t\t// Each property definition\n\t\tint elmtType = reader.get().nextTag();\n\t\twhile ((elmtType != XMLStreamReader.END_ELEMENT)\n\t\t\t\t&& !reader.get().getName().getLocalPart().equals(\"Bag\")) {\n\t\t\tparseXmpSimpleProperty(metadata, reader.get().getName(), stype, bag\n\t\t\t\t\t.getContainer());\n\t\t\telmtType = reader.get().nextTag();\n\n\t\t}\n\t\texpectNextSpecificTag(XMLStreamReader.END_ELEMENT, bagName\n\t\t\t\t.getLocalPart(), \"Expected end of Bag property\");\n\n\t}", "public int get_Bag_id() {\r\n return this.bag_id;\r\n }", "public Bag getStats(){\n\treturn stats;\n }", "@SuppressWarnings(\"unchecked\")\n public ArrBag( int optionalCapacity )\n {\n theArray = (T[]) new Object[optionalCapacity ];\n count = 0; // i.e. logical size, actual number of elems in the array\n }", "@Test\n public void testBagCodeExamples() {\n logger.info(\"Beginning testBagCodeExamples()...\");\n\n // Create an empty bag\n Bag<Integer> emptyBag = new Bag<>();\n\n // Create a bag with items in it\n Integer[] first = { 1, 5, 3 };\n Bag<Integer> firstBag = new Bag<>(first);\n\n // Create a second bag with items in it\n Integer[] second = { 4, 2, 6, 4 };\n Bag<Integer> secondBag = new Bag<>(second);\n\n // Create a third bag with all the items in it\n Integer[] third = { 1, 2, 3, 4, 4, 5, 6 };\n Bag<Integer> thirdBag = new Bag<>(third);\n\n // Merge a bag with the empty bag\n Bag<Integer> bag = Bag.aggregate(emptyBag, firstBag);\n assert bag.equals(firstBag);\n logger.info(\"{} merged with {} yields {}\", emptyBag, firstBag, bag);\n\n // Merge two bags with items in them\n bag = Bag.aggregate(firstBag, secondBag);\n assert bag.equals(thirdBag);\n logger.info(\"{} merged with {} yields {}\", firstBag, secondBag, bag);\n\n // Find the difference between an empty bag and one with items in it\n bag = Bag.difference(emptyBag, firstBag);\n assert bag.isEmpty();\n logger.info(\"The difference between {} and {} is {}\", emptyBag, firstBag, bag);\n\n // Find the difference between a bag with items in it and an empty one\n bag = Bag.difference(firstBag, emptyBag);\n assert bag.equals(firstBag);\n logger.info(\"The difference between {} and {} is {}\", firstBag, emptyBag, bag);\n\n // Find the difference between two bags with items in them\n bag = Bag.difference(thirdBag, firstBag);\n assert bag.equals(secondBag);\n logger.info(\"The difference between {} and {} is {}\", thirdBag, firstBag, bag);\n\n logger.info(\"Completed testBagCodeExamples().\\n\");\n }", "@SuppressWarnings(\"unchecked\")\n public SortedOrderedBag() {\n this.comp = (Comparator<E>) DEFAULT_COMPARATOR;\n }", "@Test\n\tpublic void testDefault() {\n\t\tBag<Object> bag = new Bag<>();\n\t\tassertNull(bag.get(0));\n\t\tbag.set(0, new Object());\n\t\tassertNull(bag.get(1));\n\t\tassertNull(bag.get(2));\n\t\tassertNull(bag.get(3));\n\t}", "public Bag(String name, int weightCapacity) {\n\t\tthis.name = name;\n\t\tthis.weightCapacity = weightCapacity;\n\t}", "private static void displayBag(BagInterface<String> aBag)\n {\n System.out.println(\"The bag contains the following string(s):\");\n Object[] bagArray = aBag.toArray();\n for (int index = 0; index < bagArray.length; index++)\n {\n System.out.print(bagArray[index] + \" \");\n } // end for\n\n System.out.println();\n }", "public static void main(String[] args) {\n\t\tSet<Bag> bags = new TreeSet<Bag>();\n\t\tBag bag1=new Bag(\"LV\",15000.0);\n\t\tBag bag2=new Bag(\"hermas\",100000.0);\n\t\tBag bag3=new Bag(\"chanel\",30000.0);\n\t\tBag bag4=new Bag(\"coach\",3000.0);\n\t\tBag bag5=new Bag(\"MK\",2000.0);\n\t\tbags.add(bag1);\n\t\tbags.add(bag2);\n\t\tbags.add(bag3);\n\t\tbags.add(bag4);\n\t\tbags.add(bag5);\n\t\tfor(Bag bag:bags){//foreach循环\n\t\t\tSystem.out.println(bag);\n\t\t}\n \t}", "public FrequencyBag() {\n\t\tfirstNode = null;\n\t\tnumEntries = 0;\n\t}", "public final AstValidator.bag_return bag() throws RecognitionException {\n AstValidator.bag_return retval = new AstValidator.bag_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree BAG_VAL434=null;\n AstValidator.tuple_return tuple435 =null;\n\n\n CommonTree BAG_VAL434_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:5: ( ^( BAG_VAL ( tuple )* ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:7: ^( BAG_VAL ( tuple )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n BAG_VAL434=(CommonTree)match(input,BAG_VAL,FOLLOW_BAG_VAL_in_bag3558); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BAG_VAL434_tree = (CommonTree)adaptor.dupNode(BAG_VAL434);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BAG_VAL434_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:18: ( tuple )*\n loop120:\n do {\n int alt120=2;\n int LA120_0 = input.LA(1);\n\n if ( (LA120_0==TUPLE_VAL) ) {\n alt120=1;\n }\n\n\n switch (alt120) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:18: tuple\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_tuple_in_bag3560);\n \t tuple435=tuple();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, tuple435.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop120;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public Bag(String name, int weightCapacity, int lowerFit, int upperFit) {\n\t\tthis.name = name;\n\t\tthis.weightCapacity = weightCapacity;\n\t\tthis.lowerFit = lowerFit;\n\t\tthis.upperFit = upperFit;\n\t}", "public int get_nrBags() {\r\n return this.nr_bags;\r\n }", "@Override\r\n\tpublic AbstractBagGift createBagGift() {\n\t\treturn new MerchantCollection();\r\n\t}", "public int size() {\n return bag.size();\n }", "private void initialiseBags() {\r\n\t\t//Player one bag\r\n\t\taddToBag1(GridSquare.Type.a, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.b, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.c, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.d, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.e, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.f, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.g, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.h, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.i, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.j, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.k, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.l, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.m, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.n, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.o, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.p, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.r, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.s, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.t, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.u, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.v, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.w, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.x, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\t\r\n\t\t//Player two bag\r\n\t\taddToBag2(GridSquare.Type.A, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.B, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.C, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.D, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.E, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.F, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.G, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.H, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.I, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.J, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.K, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.L, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.M, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.N, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.O, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.P, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.Q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.R, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.S, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.T, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.U, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.V, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.W, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.X, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t}", "ImmutableBag<T> toImmutable();", "public HashBag(Collection<E> c) {\n map = new HashMap<>((c.size() * 4) / 3);\n for (E item : c) {\n if (item == null)\n continue;\n Counter val = map.get(item);\n if (val == null)\n map.put(item, new Counter(1));\n else\n val.increment();\n }\n }", "public ObjectStack() {collection = new ArrayIndexedCollection();}", "public Iterator<Item> iterator() {\n return new LinkedBagIterator();\n }", "private static void testAdd(BagInterface<String> aBag, String[] content)\n {\n System.out.print(\"Adding the following strings to the bag: \");\n for (int index = 0; index < content.length; index++)\n {\n if (aBag.add(content[index]))\n System.out.print(content[index] + \" \");\n else\n System.out.print(\"\\nUnable to add \" + content[index] +\n \" to the bag.\");\n } // end for\n System.out.println();\n\n displayBag(aBag);\n }", "public Bucket() {\n\t\t\te = new ArrayList<Entry<K, V>>();\n\t\t}", "public final void mT__37() throws RecognitionException {\n try {\n int _type = T__37;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:35:7: ( 'Bag' )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:35:9: 'Bag'\n {\n match(\"Bag\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "protected Basket makeBasket() {\n\t\treturn new Basket();\n\t}", "Astro bag(AstroArg args);", "public static void main(String[] args) {\n\t\t\n\t\tItem[] itemArray = new Item[5];\n\t\titemArray[0] = new Item(\"Duster\", 20.0);\n\t\titemArray[1] = new Item(\"Pencil\", 10.0);\n\t\titemArray[2] = new Item(\"Stapler\", 75.5);\n\t\titemArray[3] = new Item(\"Sharpener\", 15.5);\n\t\titemArray[4] = new Item(\"Stencil\", 25.5);\n\t\t\n\t\tBag b1 = new Bag(\"VIP\", 5);\n\t\t\n\t\tint i = 0;\n\t\t\n\t\twhile (i < itemArray.length) {\n\t\t\tSystem.out.println(\"Adding item of index :\" + i + \"into bag now...\");\n\t\t\tb1.addItem(itemArray[i++]);\n\t\t}\n\t\t\n\t\tb1.printItems();\n\t\tb1.getTotal();\n\t}", "@SuppressWarnings(\"unchecked\")\n public SortedOrderedBag(Collection<E> coll) {\n this.comp = (Comparator<E>) DEFAULT_COMPARATOR;\n this.addAll(coll);\n }", "public Bag inter(Bag u) {\n\t\treturn empty(); \n }", "@Override\n public Bag createBag(final ArrayList<Goods> cards,final int money) {\n Bag bag = super.createBag(cards, money);\n\n if (Game.getInstance().isOddRound()) {\n if (bag.getItems().size() < Constants.MAX_BAG_SIZE && bag.getItems().size() > 0) {\n // If we can add a illegal good\n ArrayList<Goods> uniqueItems = new ArrayList<>();\n\n for (Goods item : cards) {\n if (!uniqueItems.contains(item) && item.getType() == GoodsType.Illegal) {\n uniqueItems.add(item);\n }\n }\n\n if (uniqueItems.size() != 0) {\n ItemValueComparator valueCompare = new ItemValueComparator();\n uniqueItems.sort(valueCompare);\n bag.addItem(uniqueItems.get(0), 1);\n }\n }\n }\n\n return bag;\n }", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "@Override\n\tpublic List<? extends MyHashMap.Bucket<K, V>> getBuckets() {\n\t\treturn (ArrayList<? extends MyHashMap.Bucket<K, V>>) b;\n\t}", "private List<Map<Number160, PeerStatistic>> initMap(final int[] bagSizes, final boolean caching) {\n List<Map<Number160, PeerStatistic>> tmp = new ArrayList<Map<Number160, PeerStatistic>>();\n for (int i = 0; i < Number160.BITS; i++) {\n // I made some experiments here and concurrent sets are not\n // necessary, as we divide similar to segments aNonBlockingHashSets\n // in a concurrent map. In a full network, we have 160 segments, for\n // smaller we see around 3-4 segments, growing with the number of\n // peers. bags closer to 0 will see more read than write, and bags\n // closer to 160 will see more writes than reads.\n //\n // We also only allocate memory for the bags far away, as they are likely to be filled first.\n if (caching) {\n tmp.add(new CacheMap<Number160, PeerStatistic>(bagSizes[i], true));\n } else {\n final int memAlloc = bagSizes[i] / 8;\n tmp.add(new HashMap<Number160, PeerStatistic>(memAlloc));\n }\n }\n return Collections.unmodifiableList(tmp);\n }", "public CredentialBag()\n {\n credentialBag = new Vector();\n }", "private S_SynBagItem(Builder builder) {\n super(builder);\n }", "public KnowledgeBase() {\r\n super();\r\n this.m_data = new Concept[64 * 1024];\r\n this.m_services = new Service[1024];\r\n }", "public final AstValidator.bag_type_return bag_type() throws RecognitionException {\n AstValidator.bag_type_return retval = new AstValidator.bag_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree BAG_TYPE104=null;\n CommonTree IDENTIFIER105=null;\n AstValidator.tuple_type_return tuple_type106 =null;\n\n\n CommonTree BAG_TYPE104_tree=null;\n CommonTree IDENTIFIER105_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:10: ( ^( BAG_TYPE ( IDENTIFIER )? ( tuple_type )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:12: ^( BAG_TYPE ( IDENTIFIER )? ( tuple_type )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n BAG_TYPE104=(CommonTree)match(input,BAG_TYPE,FOLLOW_BAG_TYPE_in_bag_type1157); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BAG_TYPE104_tree = (CommonTree)adaptor.dupNode(BAG_TYPE104);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BAG_TYPE104_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:24: ( IDENTIFIER )?\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0==IDENTIFIER) ) {\n alt27=1;\n }\n switch (alt27) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:24: IDENTIFIER\n {\n _last = (CommonTree)input.LT(1);\n IDENTIFIER105=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_bag_type1159); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IDENTIFIER105_tree = (CommonTree)adaptor.dupNode(IDENTIFIER105);\n\n\n adaptor.addChild(root_1, IDENTIFIER105_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:36: ( tuple_type )?\n int alt28=2;\n int LA28_0 = input.LA(1);\n\n if ( (LA28_0==TUPLE_TYPE) ) {\n alt28=1;\n }\n switch (alt28) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:36: tuple_type\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_type_in_bag_type1162);\n tuple_type106=tuple_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, tuple_type106.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private Itemsets() {\n\t\t\tfrequentItemsets = new LinkedHashMap<Itemset, Integer>();\n\t\t\tinfrequentItemsets = new LinkedHashMap<Itemset, Integer>();\n\t\t}", "public ArrayADT() \r\n\t{\r\n\t\tbookArray = new String[MAXSIZE];\r\n\t\tnumItems = 0;\r\n\t}", "public ObjectStack() {\n this.collection = new ArrayIndexedCollection();\n }", "java.util.List<com.message.BagProto.PlayerBagMsg> \n getListPlayerBagsList();", "public ObjectStack() {\n\t\tcollection = new ArrayBackedIndexedCollection();\n\t}", "public static void main(String args[]) {\n ArrayBag<Integer> headBag = null;\n \n ArrayBag<String> workBag = null;\n \n \n int size;\n \n System.out.println(\"Please enter initial size of heads:\");\n \n size = getInt(\"(It should be an integer value greater than or equal to 1)\");\n\n \n // initializing two bags \n headBag= new ArrayBag<Integer>();\n \n // take input from user\n headBag.add(size);\n \n workBag= new ArrayBag<String>(); \n\n \n \n System.out.println(\"The head bag is Bag \" + headBag);\n \n boolean notOverflow = true;\n \n //run simulationStep if there is no overflow \n while(headBag.getCurrentSize()!=0 && notOverflow == true){\n \t\n notOverflow= simulationStep(headBag, workBag);\n \n // print out how many heads are left \n System.out.println(\"The head bag is \" + headBag); \n }\n \n if (notOverflow == true) {\n System.out.println(\"The number of chops required is \" + workBag.getCurrentSize());\n }\n // end early if there is overflow\n else {\n System.out.println(\"Computation ended early with a bag overflow\");\n }\n }", "public void addPublisher(String value) {\n/* 246 */ addStringToBag(\"publisher\", value);\n/* */ }", "@Override\n public boolean add(E item) {\n if (item == null)\n throw new IllegalArgumentException(\"null invalid value for bag\");\n Counter count = map.get(item);\n if (count == null)\n map.put(item, new Counter(1));\n else\n count.increment();\n return true;\n }", "public java.lang.String getITBAG() {\n return ITBAG;\n }", "public DataBag getBagField(int i) {\n Datum field = getField(i); // throws exception if field doesn't exist\n\n if (field instanceof DataBag) {\n return (DataBag) field;\n }\n\n throw newTupleAccessException(field, \"bag\", i);\n }", "public Graph(int V)\n {\n this.V = V;\n adj = (Bag<Integer>[]) new Bag[V];\n for (int v = 0; v < V; v++)\n adj[v] = new Bag<Integer>();\n }", "public RandomizedSet() {\r\n\t\tbucket = new BucketItem[BUCKET_SIZE];\r\n\t}", "BSet createBSet();", "public void setup() {\r\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tthis.bag.add(new Gem(1));\r\n\t\t}\r\n\t\tthis.bag.add(new Crash());\r\n\t}", "public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }", "B getBucket();", "public Basket getBasket() {\n\t\treturn theBasket;\n\t}", "public static void main(String[] args) {\n Scanner keyboard = new Scanner(System.in);\n//Create an object of the Bag class refer to this object as myBag\n Bag myBag = new Bag();\n//declare a variable called option of type int\n int option;\n//Open a do/while loop\n do {\n//Prompt the user to pick one of the following options:\n//Press 1 to change the name of the bag\n//Press 2 to add an item to the bag\n//Press 3 to change the maximum weight of the bag\n//Press 4 to view all information about the bag\n//Press 5 to end the program\n System.out.println(\"Pick an option. \" +\n \"\\nPress 1 to change the name of the bag. \" +\n \"\\nPress 2 to add an item to the bag. \" +\n \"\\nPress 3 to change the maximum weight of the bag. \" +\n \"\\nPress 4 to view all information about the bag. \" +\n \"\\nPress 5 to end the program.\");\n//Save the user’s input into the option variable\n option = keyboard.nextInt();\n keyboard.nextLine();\n//if the user picks option 1, prompt the user for the name of the bag\n//then save the name of the bag in a variable called newName\n//change the name of the bag to newName\n if (option == 1) {\n System.out.println(\"What should the name of the bag be?\");\n String newName = keyboard.nextLine();\n myBag.setName(newName);\n//else if the user picks option 2, prompt the user for the weight\n//of the item and then save the weight of the item in a variable\n//called newWeight\n//add the new item to the bag\n }else if (option == 2) {\n System.out.println(\"What is the weight of the item?\");\n double newWeight = keyboard.nextDouble();\n myBag.addItem(newWeight);\n//else if the user picks option 3, prompt the user for the new maximum\n//weight of the bag and save the new maximum weight in a variable\n//called newMaximumWeight\n//change the maximum weight of the bag to newMaximumWeight\n }else if (option == 3) {\n System.out.println(\"What should the new maximum weight of the bag be?\");\n double newMaximumWeight = keyboard.nextDouble();\n myBag.setMaximumWeight(newMaximumWeight);\n//else if the user picks option 4, display to the screen the name of\n//the bag, the current weight of the bag, and the maximum weight\n//of the bag\n }else if (option == 4) {\n System.out.println(\"The name of your bag is: \" + myBag.getName() + \"\\nThe current weight is: \" + myBag.getCurrentWeight() + \"\\nThe maximum weight is: \" + myBag.getMaximumWeight());\n//else if the user picks option 5, display Goodbye.\n }else if (option == 5) {\n//else if the user picks any other option, display Error!\n }else {\n System.out.println(\"Error!\");\n }\n//close the do/while loop and make it so that it continues to run as\n//long as the user does not pick option 5\n } while (option !=5 );\n }", "public void addBeanBags(\r\n int num,\r\n String manufacturer,\r\n String name,\r\n String id,\r\n short year,\r\n byte month,\r\n String information)\r\n throws IllegalNumberOfBeanBagsAddedException, BeanBagMismatchException, IllegalIDException,\r\n InvalidMonthException {\n Check.validID(id);\r\n BeanBag testBag = new BeanBag(name, id, manufacturer, information, year, month);\r\n Check.matchingIDs(testBag, stockList);\r\n // If the \"month\" byte variable is greater than 12 or less than or equal to 0.\r\n if (month <= 0 || month > 12) {\r\n // Throw exception \"InvalidMonthException\", as the month is not correctly formatted.\r\n throw new InvalidMonthException(\r\n month + \" is an invalid month. Please enter a valid month 1-12\");\r\n }\r\n // Ensures number of BeanBags passed to function (\"num\") is valid (Greater than or equal to 1).\r\n if (num >= 1) {\r\n // Repeat the following code \"num\" times.\r\n for (int i = 1; i <= num; i++) {\r\n // Define a new \"BeanBag\" object with the following parameters.\r\n BeanBag tempBag = new BeanBag(name, id, manufacturer, information, year, month);\r\n // Add the new beanBag \"tempBag\" object to the \"stockList\".\r\n stockList.add(tempBag);\r\n }\r\n // If number of BeanBags passed to function (\"num\") is NOT greater than or equal to 1.\r\n } else {\r\n // Throw exception \"IllegalNumberOfBeanBagsAddedException\", as number passed to the function\r\n // is wrong.\r\n throw new IllegalNumberOfBeanBagsAddedException(\r\n \"Number of bags must be a whole integer and greater then 0.\");\r\n }\r\n }", "public void addBeanBags(\r\n int num, String manufacturer, String name, String id, short year, byte month)\r\n throws IllegalNumberOfBeanBagsAddedException, BeanBagMismatchException, IllegalIDException,\r\n InvalidMonthException {\n Check.validID(id);\r\n BeanBag testBag = new BeanBag(name, id, manufacturer, year, month);\r\n Check.matchingIDs(testBag, stockList);\r\n // If the \"month\" byte variable is greater than 12 or less than or equal to 0.\r\n if (month <= 0 || month > 12) {\r\n // Throw exception \"InvalidMonthException\", as the month is not correctly formatted.\r\n throw new InvalidMonthException(\r\n month + \" is an invalid month. Please enter a valid month 1-12\");\r\n }\r\n // Ensures number of BeanBags passed to function (\"num\") is valid (Greater than or equal to 1).\r\n if (num >= 1) {\r\n // Repeat the following code \"num\" times.\r\n for (int i = 0; i < num; i++) {\r\n // Define a new \"BeanBag\" object with the following parameters.\r\n BeanBag tempBag = new BeanBag(name, id, manufacturer, year, month);\r\n // Add the new beanBag \"tempBag\" object to the \"stockList\".\r\n stockList.add(tempBag);\r\n }\r\n // If number of BeanBags passed to function (\"num\") is NOT greater than or equal to 1.\r\n } else {\r\n // Throw exception \"IllegalNumberOfBeanBagsAddedException\", as number passed to the function\r\n // is wrong.\r\n throw new IllegalNumberOfBeanBagsAddedException(\r\n \"Number of bags must be\" + \" must be a whole integer and greater then 0.\");\r\n }\r\n }", "public static DataBag toBag(Object o) throws ExecException {\n if (o == null) {\n return null;\n }\n\n if (o instanceof DataBag) {\n try {\n return (DataBag)o;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Bag.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n } else {\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a DataBag\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n }", "void add(ByteString element);", "public bucket[] getData() {\n\t\treturn (bucket.clone());\n\t}", "public final void setBagCount(int bagCount) {\n if(bagCount < 1) {\n throw new IllegalArgumentException(\n \"bag count must be greater than or equal to one\");\n }\n this.bagCount = bagCount;\n }", "public CardStack()\n {\n cards = new Vector<Card>();\n }", "private Pair[] bribeCalculateBag(final int maxCards,\n final HashMap<String, Integer> association) {\n final int minMoney = 5;\n final int maxBagSize = 3;\n if (getInventory().getMoney() < minMoney || numberOfIllegals(association) == 0) {\n return calculateBag(maxCards, association);\n }\n Pair[] result;\n if (numberOfIllegals(association) <= 2 || getInventory().getMoney() < minMoney * 2) {\n getInventory().getBagToGive().setBribe(minMoney);\n getInventory().setMoney(getInventory().getMoney() - minMoney);\n int duplicate = findIllegal(association);\n removeOneAsset(findIllegal(association));\n if (duplicate == findIllegal(association)) {\n result = new Pair[1];\n result[0] = new Pair<>(findIllegal(association), 2);\n getInventory().setNumberOfDeclared(2);\n } else {\n if (findIllegal(association) == -1) {\n result = new Pair[1];\n result[0] = new Pair<>(duplicate, 1);\n getInventory().setNumberOfDeclared(1);\n } else {\n result = new Pair[2];\n result[0] = new Pair<>(duplicate, 1);\n result[1] = new Pair<>(findIllegal(association), 1);\n getInventory().setNumberOfDeclared(2);\n }\n }\n removeOneAsset(findIllegal(association));\n getInventory().setDeclaredAssets(0);\n return result;\n } else {\n getInventory().getBagToGive().setBribe(minMoney * 2);\n getInventory().setMoney(getInventory().getMoney() - (minMoney * 2));\n int contor = maxCards - 1;\n final int contorStart = contor;\n int[] resultAux = new int[maxBagSize];\n getInventory().setDeclaredAssets(0);\n while (contor > 0 && findIllegal(association) != -1) {\n resultAux[findIllegal(association) % maxBagSize]++;\n removeOneAsset(findIllegal(association));\n contor--;\n }\n getInventory().setNumberOfDeclared(contorStart - contor);\n getInventory().setDeclaredAssets(0);\n contor = 0;\n for (int it : resultAux) {\n if (it != 0) {\n contor++;\n }\n }\n result = new Pair[contor];\n if (contor == maxBagSize) {\n result = new Pair[maxBagSize];\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n result[1] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n result[2] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n } else {\n if (contor == 1) {\n result = new Pair[1];\n if (resultAux[0] > 0) {\n result[0] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n }\n if (resultAux[1] > 0) {\n result[0] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n }\n if (resultAux[2] > 0) {\n result[0] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n } else {\n result = new Pair[2];\n int i = 0;\n if (resultAux[0] > 0) {\n result[i] = new Pair<>(association.get(\"Barrel\"), resultAux[0]);\n i++;\n }\n if (resultAux[1] > 0) {\n result[i] = new Pair<>(association.get(\"Silk\"), resultAux[1]);\n i++;\n }\n if (resultAux[2] > 0) {\n result[i] = new Pair<>(association.get(\"Pepper\"), resultAux[2]);\n }\n }\n }\n return result;\n }\n\n }", "public SmartBin() {\n items = new ItemType[7];\n curWeight = 0;\n curArrayIndex = 0;\n binNumber = \"SM\" + generateBinNumber();\n }", "public void addSubject(String value) {\n/* 321 */ addStringToBag(\"subject\", value);\n/* */ }", "public BallContainer() {\n\t\tthis.contents = new LinkedList<Ball>();\n\t}", "public GameBag(List<PieceTile> bag, int x, int y) {\r\n\t\tthis.bag = bag;\r\n\t\tboard = new Board(x, y);\r\n\t\tinitialise();\r\n\t\tupdateBoard();\r\n\t}", "void storeAll(Collection<Ambulance> ambulances);", "@Override\n public Iterator<E> iterator() {\n return new HashBagIterator<>(this, map.entrySet().iterator());\n }", "@Override\r\n public boolean put(KeyType key, int isbn, String author, boolean checkedIn, String genre,\r\n String description) {\r\n\r\n\r\n \r\n int index = Math.abs(key.hashCode()) % this.capacity; //hashes the key to a usable index\r\n \r\n //adds a KeyValue object to a linked list creating a linked list at the specific index if \r\n //needed\r\n \r\n \r\n if (this.array[index] == null) {\r\n this.array[index] = new LinkedList<Book>(); // creates a linked list at the index\r\n this.array[index].add(new Book((String) key, isbn, author, checkedIn, genre, description)); // adds\r\n // the\r\n // KeyValue\r\n // object\r\n // to\r\n // the\r\n // list\r\n this.size++;\r\n\r\n grow(this.array);\r\n return true;\r\n }\r\n\r\n this.array[index].add(new Book((String) key,isbn, author, checkedIn, genre, description));\r\n this.size++;\r\n\r\n grow(this.array);\r\n return false;\r\n \r\n\r\n }", "public int capacity() { return store.length; }", "BElementStructure createBElementStructure();", "public Dictionary(){\n front = null;\n numItems = 0;\n }", "private Itemset[] getItemsets() {\n\t\t\treturn frequentItemsets.keySet().toArray(new Itemset[frequentItemsets.size()]);\n\t\t}", "public KWArrayList(){\n capacity = INITIAL_CAPACITY;\n theData = (E[]) new Object[capacity];\n }", "public Cons(String first, BagOfWordsList restOfBag) {\n this.first = first;\n this.restOfBag = restOfBag;\n }", "private void addToBag1(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag1.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}", "public BVHashtable()\n {\n super();\n }", "public int getBaggage() {\n\t\treturn baggage;\n\t}", "public ProductModel getBag(String setName) {\n\t\treturn null;\r\n\t}", "public Storage(int capacity) {\n this.foods = new Food[capacity];\n buffer = new StringBuffer();\n }", "public static void VerifyBagBuilt()\r\n\t{\r\n\t\t\t\r\n\t\tSelect BagTypeDescription=new Select(Browser.instance.findElement(BagTypeDescriptionDropdown));\r\n\t\t//BagTypeDescription.selectByVisibleText(\"CERT\");\r\n\t\tBagTypeDescription.selectByIndex(2);\r\n\t\tBrowser.instance.findElement(BagsTab).click();\r\n\t\t\r\n\t\tCountBagBuilt();\r\n\t\t\r\n\t\r\n\t\tBrowser.instance.findElement(BagTypeDetailsTab).click();\r\n\t\t\r\n\t\t\r\n\t\t}", "private void writeColumnsFromBag(ByteBuffer key, DataBag bag) throws IOException\n {\n List<Mutation> mutationList = new ArrayList<Mutation>();\n for (Tuple pair : bag)\n {\n Mutation mutation = new Mutation();\n if (DataType.findType(pair.get(1)) == DataType.BAG) // supercolumn\n {\n SuperColumn sc = new SuperColumn();\n sc.setName(objToBB(pair.get(0)));\n List<org.apache.cassandra.thrift.Column> columns = new ArrayList<org.apache.cassandra.thrift.Column>();\n for (Tuple subcol : (DataBag) pair.get(1))\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(subcol.get(0)));\n column.setValue(objToBB(subcol.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n columns.add(column);\n }\n if (columns.isEmpty())\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.super_column = objToBB(pair.get(0));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"SuperColumn deletion attempted with empty bag, but deletes are disabled, set \" +\n PIG_ALLOW_DELETES + \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n sc.columns = columns;\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.super_column = sc;\n }\n }\n else\n mutation = mutationFromTuple(pair);\n mutationList.add(mutation);\n // for wide rows, we need to limit the amount of mutations we write at once\n if (mutationList.size() >= 10) // arbitrary, CFOF will re-batch this up, and BOF won't care\n {\n writeMutations(key, mutationList);\n mutationList.clear();\n }\n }\n // write the last batch\n if (mutationList.size() > 0)\n writeMutations(key, mutationList);\n }", "public Dictionary () {\n\t\tsuper();\n\t\t//words = new ArrayList < String > () ;\n\t}", "public Bag getGreedyBag() {\r\n bag = super.getBag();\r\n List<Integer> auxiliarHand = new LinkedList<Integer>(hand);\r\n\r\n for (int i = 0; i < bag.getCardsIds().size(); i++) {\r\n if (auxiliarHand.contains(bag.getCardsIds().get(i))) {\r\n auxiliarHand.remove(bag.getCardsIds().get(i));\r\n }\r\n }\r\n\r\n if (this.roundNumber % 2 == 0) {\r\n highestProfitIllegalCard = 0;\r\n if (bag.getCards().size() < MAX_CARDS_IN_BAG) {\r\n for (Integer cardId : auxiliarHand) {\r\n if (cardId > MAX_LEGAL_INDEX\r\n && goodsFactory.getGoodsById(cardId).getProfit()\r\n > goodsFactory.getGoodsById(highestProfitIllegalCard).getProfit()) {\r\n highestProfitIllegalCard = cardId;\r\n }\r\n }\r\n if (highestProfitIllegalCard != 0\r\n && (coins - goodsFactory\r\n .getGoodsById(highestProfitIllegalCard)\r\n .getPenalty()) > 0) {\r\n bag.addCard(goodsFactory.getGoodsById(highestProfitIllegalCard));\r\n }\r\n }\r\n }\r\n return bag;\r\n }" ]
[ "0.73135436", "0.7212167", "0.7143476", "0.69556075", "0.68672615", "0.68500865", "0.67194617", "0.6544114", "0.6522063", "0.6429989", "0.63295895", "0.62869084", "0.6207267", "0.6066918", "0.6025961", "0.58847225", "0.5883849", "0.5870369", "0.5864535", "0.5848945", "0.5815567", "0.57678866", "0.57413393", "0.57344824", "0.5719463", "0.56943023", "0.5687746", "0.5686771", "0.56671494", "0.5665971", "0.5660079", "0.56222963", "0.55736953", "0.55711937", "0.55114174", "0.5469232", "0.54606324", "0.54437715", "0.543838", "0.54308796", "0.536633", "0.5332645", "0.5313575", "0.52876496", "0.5268306", "0.5255903", "0.5236576", "0.52294904", "0.52219164", "0.52166307", "0.52020663", "0.5189233", "0.5188468", "0.5178304", "0.516746", "0.51652545", "0.5157204", "0.5143132", "0.512229", "0.5110818", "0.5109143", "0.5097088", "0.508586", "0.50730616", "0.5061964", "0.50554687", "0.50544345", "0.50293255", "0.5021961", "0.50162244", "0.50053155", "0.50027037", "0.49859473", "0.49690306", "0.49538732", "0.4938083", "0.49243098", "0.49240863", "0.492406", "0.49202412", "0.4917234", "0.4894774", "0.48944885", "0.48855853", "0.48786837", "0.4872787", "0.48702514", "0.485712", "0.48510402", "0.48437202", "0.4831654", "0.48188332", "0.48065192", "0.48056516", "0.4801589", "0.47920662", "0.47918934", "0.47914812", "0.47912335", "0.47878563", "0.47785693" ]
0.0
-1
TODO : Add javadocs
public interface Cache<K,E> { public E getCacheEntry(K id); public boolean addCacheEntry(K id, E entry); public void removeCacheEntry(K id); public Stream<E> getAllEntries(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void getExras() {\n\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 tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\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\n 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\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private void getStatus() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n protected void init() {\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\tpublic void init() {}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tprotected void initialize() {\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\r\n\tpublic void init() {\n\r\n\t}", "private void init() {\n\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\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\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\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void create () {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "public final void mo51373a() {\n }", "public contrustor(){\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\n public void initialize() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }" ]
[ "0.61670774", "0.61651695", "0.6143641", "0.61146367", "0.60526574", "0.5929358", "0.58574325", "0.5855199", "0.585465", "0.5831625", "0.58231723", "0.5822457", "0.5822457", "0.5822457", "0.5822457", "0.5822457", "0.5822457", "0.57947206", "0.5793535", "0.5793535", "0.57778555", "0.57757825", "0.57725805", "0.5753415", "0.573422", "0.5731737", "0.5729409", "0.5723045", "0.57057893", "0.57057893", "0.5701693", "0.5701693", "0.5701693", "0.5701693", "0.5701693", "0.56998277", "0.5678868", "0.5678868", "0.567746", "0.5676205", "0.5674741", "0.5672085", "0.5672085", "0.56710875", "0.5664599", "0.56592816", "0.56592816", "0.56592816", "0.5649849", "0.5648204", "0.5641558", "0.5623248", "0.5623248", "0.5623248", "0.56165963", "0.5610048", "0.5608191", "0.56047297", "0.56033915", "0.56033915", "0.5596257", "0.55930406", "0.5592958", "0.5588336", "0.55807453", "0.55755395", "0.55732244", "0.5572408", "0.5572408", "0.55690753", "0.55690753", "0.55690753", "0.55672383", "0.55602765", "0.55602765", "0.55602765", "0.55537885", "0.5546434", "0.5532419", "0.552583", "0.5522644", "0.5519842", "0.5519644", "0.54972523", "0.5497159", "0.5488247", "0.54860854", "0.5485982", "0.54852086", "0.5480789", "0.5469481", "0.54663885", "0.5457374", "0.54549164", "0.5445901", "0.5445824", "0.54418105", "0.54418105", "0.54418105", "0.54418105", "0.54418105" ]
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); response.setContentType("text/html;charset=UTF-8"); HttpSession session = request.getSession(); String nextJSP = ""; String action; int serviceId; try { /* TODO output your page here. You may use following sample code. */ action = request.getParameter(CONFIG.PARAM_ACTION); if (CONFIG.ACTION_HATAXI.equals(action)) { String lang = "en"; if (request.getSession().getAttribute(CONFIG.lang).equals("")) { } else { lang = "ar"; } serviceId = Integer.parseInt(request.getParameter(CONFIG.PARAM_SERVICE_ID)); session.setAttribute(CONFIG.PARAM_SERVICE_ID, serviceId); nextJSP = CONFIG.HATAXI_PAGE; } else if (CONFIG.ACTION_HATAXI_CONFIRM.equals(action)) { String mobile = request.getParameter("DonatorPhone"); String amount = request.getParameter("donationValue"); String token = session.getAttribute("Token").toString(); HataxiClient hataxiClient = new HataxiClient(); HataxiInquiryResponse resp = hataxiClient.hataxiInquiry(mobile, amount, "en", token, request.getRemoteAddr()); session.setAttribute("validationResp", resp); session.setAttribute("mobile", mobile); nextJSP = CONFIG.HATAXI_CONFIRMATION; } else { String lang = "en"; if (request.getSession().getAttribute(CONFIG.lang).equals("")) { } else { lang = "ar"; } String mobile = request.getParameter("DonatorPhone"); String amount = request.getParameter("txnValue"); HataxiPaymentRequest go = new HataxiPaymentRequest(); go.setMobileNumber(mobile); go.setAmount(Double.parseDouble(amount)); // go.setToken(request.getSession().getAttribute("Token").toString()); String token = session.getAttribute("Token").toString(); HataxiClient hataxiClient = new HataxiClient(); HataxiPaymentResponse resp = hataxiClient.hataxiPayment(go, "en", token, request.getRemoteAddr()); if(resp.getTransactionStatus().contains("SUCCEEDED")){ session.setAttribute("payResponse", resp); nextJSP = CONFIG.HATAXI_PAYMENT; }else{ session.setAttribute("ErrorMessage", resp.getTransactionStatus()); nextJSP = CONFIG.PAGE_ERRPR; } } RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/" + nextJSP); dispatcher.forward(request, response); } catch (Exception e) { session.setAttribute("ErrorMessage", e.getMessage()); nextJSP = CONFIG.PAGE_ERRPR; RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/" + nextJSP); dispatcher.forward(request, response); } finally { out.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365" ]
0.0
-1
Creates a condition that is fulfilled when the specified card's "in play data" is not null.
public ForRemainderOfGameDataEqualsCondition(PhysicalCard card, int cardId, boolean value) { _permCardId = card.getPermanentCardId(); _cardId = cardId; _value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPlayCardRequest();", "@Test\n public void testCardCanPlay_TRUE_VALUE() {\n System.out.println(\"cardCanPlay TRUE VALUE\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "@Test\n public void testCardCanPlay_FALSE_VALUE() {\n System.out.println(\"cardCanPlay FALSE VALUE\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.THREE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(false, result);\n }", "@Override\n\tpublic void cardInPlay() {\n\t\tIPlayer playedOn = this.game.getOtherPlayer();\n\t\tif(!playedOn.getFaction().equals(Faction.Cultist)){\n\t\t\tplayedOn.setFaction(Faction.UNAFFILIATED);\n\t\t}\n\t\tthis.setDiscard();\n\t}", "Condition createCondition();", "private boolean canPlay(UnoCard topCard, UnoCard newCard) {\n\n\t\t// Color or value matches\n\t\tif (topCard.getColor().equals(newCard.getColor())\n\t\t\t\t|| topCard.getValue().equals(newCard.getValue()))\n\t\t\treturn true;\n\t\t// if chosen wild card color matches\n\t\telse if (topCard instanceof WildCard)\n\t\t\treturn ((WildCard) topCard).getWildColor().equals(newCard.getColor());\n\n\t\t// suppose the new card is a wild card\n\t\telse if (newCard instanceof WildCard)\n\t\t\treturn true;\n\n\t\t// else\n\t\treturn false;\n\t}", "public boolean ctx_on(RTContainer n){\n\t\tif(n.getFulfillmentConditions().size()>0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean validCardPlay(UnoCard card) {\r\n return card.getColor() == validColor || card.getValue() == validValue;\r\n }", "abstract boolean allowedToAdd(Card card);", "private boolean isValidPlay(ICard cardToPlay) {\n return cardToPlay.isValidOn(getTopCard());\n }", "boolean isConditionFullfilled(DataObject object, HttpServletRequest req) throws ASGRuntimeException;", "boolean canBeAdded(ICard toBeAddedCard);", "LogicCondition createLogicCondition();", "private boolean accordingToRules(Card card, Card.Face face, Card.Suit suit){\n return card.getFace() == face || card.getSuit() == suit || card.getFace() == Card.Face.EIGHT;\n }", "public boolean takeCard(Card card)\r\n {\r\n if (card != null && numCards < MAX_CARDS)\r\n {\r\n myCards[numCards++] = new Card(card.getValue(), card.getSuit());\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n public void testCardCanPlay_FALSE() {\n System.out.println(\"cardCanPlay FALSE COLOUR\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(false, result);\n }", "boolean hasCondition();", "protected abstract boolean isCardActivatable(Card card);", "@Test\n public void testCardCanPlay_TRUE() {\n System.out.println(\"cardCanPlay TRUE COLOUR\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "@Override\n public void enterCondition(FSMParser.ConditionContext ctx) {\n if (ctx.var() != null && ((Var) findComp(ctx.var().NAME().getText())).isInput() &&\n ((Var) findComp(ctx.var().NAME().getText())).getBitSize() < 2) {\n Var inputflag = (Var) findComp(ctx.var().NAME().getText());\n FSMParser.Next_stateContext context = (FSMParser.Next_stateContext) ctx.getParent();\n int nextState = Integer.parseInt(\n context.STATENUMBER().getText().substring(6, context.STATENUMBER().getText().length()));\n\n //checking to see if true or false\n if (Integer.parseInt(ctx.expression().integer().opp.getText()) == 1) {\n this.conditions.get(0).put(inputflag, nextState);\n if (!this.conditionsOrder.contains(inputflag))\n this.conditionsOrder.add(inputflag);\n } else if (Integer.parseInt(ctx.expression().integer().opp.getText()) == 0) {\n this.conditions.get(1).put(inputflag, nextState);\n if (!this.conditionsOrder.contains(inputflag))\n this.conditionsOrder.add(inputflag);\n }\n return;\n\n }\n //finding the 2 components that are compaired\n VerilogComp compare1;\n VerilogComp compare2;\n if (ctx.register() != null) {\n compare1 = findComp(ctx.register().NAME().getText());\n\n } else {\n compare1 = findComp(ctx.var().NAME().getText());\n }\n\n if (ctx.expression().var() != null) {\n compare2 = findComp(ctx.expression().var().NAME().getText());\n } else if (ctx.expression().integer() != null) {\n int temp = Integer.parseInt(ctx.expression().integer().getText());\n FixedNumber tempfixed = new FixedNumber(temp, compare1.getBitSize());\n compare2 = tempfixed;\n this.comps.add(tempfixed);\n\n } else {\n compare2 = findComp(ctx.expression().register().NAME().getText());\n }\n\n // if the opp type is not equals, append the equals ctx number, as we do not want to make\n // another flag if the equals flag exists\n int ctx_opp = (ctx.opp.getType()==19)?16:ctx.opp.getType();\n String text = compare1.getName().substring(0, 1) + compare2.getName().substring(0, 1) + ctx_opp;\n FSMParser.Next_stateContext context = (FSMParser.Next_stateContext) ctx.getParent();\n int nextState = Integer.parseInt(\n context.STATENUMBER().getText().substring(6, context.STATENUMBER().getText().length()));\n\n //if there is no flag for this condition, make a variable and give it to conditionsTrue map\n if (findComp(\"flag_\" + text) == null) {\n\n\n Var output = new Var(\"flag_\" + text,\n 1, false, true, false);\n if (!(this.compInputs.containsKey(compare1.getName() + \"|\" + compare2.getName()))) {\n this.compInputs.put(compare1.getName() + \"|\" + compare2.getName(), new Var[3]);\n }\n\n Var[] flags = this.compInputs.get(compare1.getName() + \"|\" + compare2.getName());\n\n\n // finding the type of condition based on token Num\n //equals and not equals\n if (ctx.opp.getType() == 16 || ctx.opp.getType() == 19) {\n flags[1] = output;\n if (ctx.opp.getType() == 16) {\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n } else {\n this.conditions.get(1).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n }\n //greatethan\n } else if (ctx.opp.getType() == 17) {\n flags[2] = output;\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n\n //less than\n } else if (ctx.opp.getType() == 18) {\n flags[0] = output;\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n }\n this.comps.add(output);\n\n\n //if equals flag exists but creating a not equals flag\n } else if (!this.conditions.get(0).containsKey(findComp(\"flag_\" + text)) && ctx.opp.getType() == 17) {\n this.conditions.get(1).put((Var) findComp(\"flag_\" + text), nextState);\n this.conditionsOrder.add((Var) findComp(\"flag_\" + text));\n } else {\n Var output = (Var) findComp(\"flag_\" + text);\n if (ctx.opp.getType() == 19) {\n this.conditions.get(1).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n } else if (ctx.opp.getType() == 16 || ctx.opp.getType() == 17\n || ctx.opp.getType() == 18) {\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n }\n }\n\n }", "public boolean canPlace(Card o, String c)\r\n {\r\n if (this.color == c)\r\n return true;\r\n else if (this.value == o.value)\r\n return true;\r\n else if (this.color == \"none\") // Wild cards\r\n return true;\r\n return false;\r\n }", "public boolean belongsToSuit(Card card){\r\n return (suit == card.suit);\r\n }", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "public void addCard(Card card, GamePlayer GP){\n for(int i=0; i<4; i++){\n if(cardsPlayed[i] == null){\n cardsPlayed[i]=card;\n if(i == 0){\n suit = card.getSuit();\n }\n break;\n }\n }\n }", "public boolean CheckForUnwinnableCondition(){\n int humanSize = GetSizeOfHumanHand();\n int computerSize = GetSizeOfComputerHand();\n\n for(int i = 0; i < humanSize; i++) {\n //Human can play a card\n String card = handHuman.get(i);\n\n String firstLetter = Character.toString(card.charAt(0));\n String topFirstLetter = Character.toString(topCard.charAt(0));\n\n if (topCard.contains(\"8\")) {\n //Can play any card ontop to determine suite\n return true;\n }\n\n if (card.contains(\"8\")) {\n //valid because 8s are wild cards, human can place it\n return true;\n }\n\n //the cards match in suite, doesn't matter what it is\n else if (firstLetter.equals(topFirstLetter)) {\n return true;\n }\n\n else {\n if (topFirstLetter.equals(\"c\")) {\n String temp = topCard.substring(5, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n\n } else if (topFirstLetter.equals(\"h\")) {\n String temp = topCard.substring(6, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n\n } else if (topFirstLetter.equals(\"d\")) {\n String temp = topCard.substring(8, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n\n } else if (topFirstLetter.equals(\"s\")) {\n String temp = topCard.substring(6, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n }\n }\n }\n\n for(int i = 0; i < computerSize; i++){\n //Human can play a card\n String card = handComputer.get(i);\n\n String firstLetter = Character.toString(card.charAt(0));\n String topFirstLetter = Character.toString(topCard.charAt(0));\n\n if (topCard.contains(\"8\")) {\n //Can play any card ontop to determine suite\n return true;\n }\n\n if (card.contains(\"8\")) {\n //valid because 8s are wild cards, human can place it\n return true;\n }\n\n //the cards match in suite, doesn't matter what it is\n else if (firstLetter.equals(topFirstLetter)) {\n return true;\n }\n\n else {\n if (topFirstLetter.equals(\"c\")) {\n String temp = topCard.substring(5, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n\n } else if (topFirstLetter.equals(\"h\")) {\n String temp = topCard.substring(6, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n\n } else if (topFirstLetter.equals(\"d\")) {\n String temp = topCard.substring(8, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n\n } else if (topFirstLetter.equals(\"s\")) {\n String temp = topCard.substring(6, topCard.length());\n\n if (card.contains(temp)) {\n return true;\n }\n }\n }\n }\n\n //Human and computer can't play a card\n return false;\n }", "public boolean conditionFulfilled();", "private boolean isCardValid(Card data) {\n // Check card if it valid to save isValid == true\n boolean isValid = (StringUtils.isEmpty(data.getName()) == false &&\n StringUtils.isEmpty(data.getAddress()) == false &&\n StringUtils.isEmpty(data.getPosition()) == false &&\n StringUtils.isEmpty(data.getGender()) == false);\n\n return isValid;\n }", "@Override\n public boolean checkRequirement(PlayerContext playerContext) {\n int sumOfRightColourAndLevelCard = 0;\n for (DevelopmentCard developmentCard : playerContext.getAllDevelopmentCards()){\n if (developmentCard.getColour() == cardColour && developmentCard.getLevel() == cardLevel)\n sumOfRightColourAndLevelCard ++;\n }\n return sumOfRightColourAndLevelCard >= numberOfCards;\n }", "public boolean playCard(Cards card, Players player) {\n boolean higher = false;\n int compare = 0;\n if (playedCards.size() == 0 || this.playAgain(player)) { //to check if it is a new game or this is a new round\n if (card instanceof TrumpCards) { //to check if the first played card is a supertrump card\n setCategory(((TrumpCards) card).cardEffect());\n }\n higher = true;\n } else {\n if (card instanceof NormCards) { //to check if the played card is a normal card\n if (getLastCard() instanceof NormCards) { //to check whether the last played card is a normal card or a supertrump card\n if (category.equals(\"H\")) {\n Float now = new Float(((NormCards) card).getHardness());\n Float last = new Float(((NormCards) getLastCard()).getHardness());\n compare = now.compareTo(last);\n } else if (category.equals(\"S\")) {\n Float now = new Float(((NormCards) card).getSpecGravity());\n Float last = new Float(((NormCards) getLastCard()).getSpecGravity());\n compare = now.compareTo(last);\n } else if (category.equals(\"C\")) {\n Float now = new Float(((NormCards) card).getCleavageValue());\n Float last = new Float(((NormCards) getLastCard()).getCleavageValue());\n compare = now.compareTo(last);\n } else if (category.equals(\"CA\")) {\n Float now = new Float(((NormCards) card).getCrustalAbunVal());\n Float last = new Float(((NormCards) getLastCard()).getCrustalAbunVal());\n compare = now.compareTo(last);\n } else if (category.equals(\"EV\")) {\n Float now = new Float(((NormCards) card).getEcoValueValue());\n Float last = new Float(((NormCards) getLastCard()).getEcoValueValue());\n compare = now.compareTo(last);\n\n }\n if (compare > 0) {\n higher = true;\n } else {\n System.out.println(\"The selected card does not has higher value!\");\n }\n } else { //or else, the last played card is a supertrump card\n higher = true;\n }\n } else { //or else, the played is a supertrump card\n setCategory(((TrumpCards) card).cardEffect());\n higher = true;\n }\n }\n return higher;\n }", "boolean isSatisfiable(ConditionContext context);", "FilterCondition createFilterCondition(int clueNum);", "public boolean addToTable(Card cardInPlay) {\n\t\tArrayList<Card> cardsInPlay = new ArrayList<Card>();\n\t\tcardsInPlay.add(cardInPlay);\n\t\treturn addToTable(cardsInPlay);\n\t}", "@Test\r\n public void testHasAtLeastTwoPlayableCards() {\n Player player2 = new Player(\"Three Playable Cards Test\", true);\r\n Hand threePlayableCardsHand = strategyHand;\r\n player2.setHand(threePlayableCardsHand.getAllCards());\r\n\r\n // Make it harder to find playable cards:\r\n player2.getHand().discard(new Card(Card.COLORLESS, Card.WILD, cvm));\r\n player2.getHand().discard(new Card(Card.COLORLESS, Card.WILD_DRAW_FOUR, cvm));\r\n\r\n Card currentPlayedCard_1 = new Card(Card.YELLOW, Card.ONE, cvm);\r\n assertTrue(player2.hasAtLeastTwoPlayableCards(currentPlayedCard_1, Card.BLUE));\r\n\r\n Card currentPlayedCard_2 = new Card(Card.BLUE, Card.SEVEN, cvm);\r\n assertFalse(player2.hasAtLeastTwoPlayableCards(currentPlayedCard_2, Card.BLUE));\r\n }", "@Override\n\tpublic boolean matchCondition(Observation obs, DialogueState dialState) {\n\t\treturn matchesObservation(obs);\n\t}", "public boolean canAdd(Card c)\r\n {\r\n int val;\r\n int v;\r\n if(c.getSuit() != suit)\r\n return false;\r\n \r\n v = c.getValue();\r\n if(pile.isEmpty() && v == 12)\r\n return true;\r\n \r\n if(!pile.isEmpty())\r\n {\r\n card = pile.peek();\r\n val = card.getValue();\r\n if (val == 12)\r\n val = -1;\r\n if(v == (val+1))\r\n return true;\r\n }\r\n return false;\r\n }", "boolean hasCardType();", "@Test\n public void testCardCanPlay_WILD() {\n System.out.println(\"cardCanPlay WILD\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.WILD, UnoCardValue.ONE);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.THREE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "public boolean rulesForAddingCard(Card card)\n\t{\n\t\treturn true;\n\t}", "boolean contains(Card c);", "private boolean canAcceptCard(Card card) {\n return cardSet.canAcceptCard(card);\n }", "public void testCanPlayOn() {\n \n DrawCard redDraw2 = new DrawCard(Card.COLOUR_RED, 2);\n \n // create another 4 normal cards\n \n Card card1 = new Card(Card.COLOUR_BLUE, 5);\n Card card2 = new Card(Card.COLOUR_BLUE,2);\n \n //card 1 and card 2 should yield false on the method\n assertFalse(redDraw2.canPlayOn(card1));\n assertFalse(redDraw2.canPlayOn(card2));\n \n Card card3 = new Card(Card.COLOUR_RED, 5);\n Card card4 = new Card(Card.COLOUR_RED,2);\n \n // card 3 and card 4 should gives true\n \n assertTrue(redDraw2.canPlayOn(card3));\n assertTrue(redDraw2.canPlayOn(card4));\n \n }", "io.grpc.user.task.PriceCondition getCondition();", "boolean hasPlaySingleCardResponse();", "protected boolean hasFaceDownCard(int playerNo, int cardIndex) {\n return carddowncount[playerNo] >= (3 - cardIndex);\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "@Override\n public boolean stillValid(Player playerIn) {\n return player == playerIn && !stack.isEmpty() && player.getItemBySlot(slotType) == stack;\n }", "public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}", "public boolean isValid(LivingEntity casterIn, IMagicEffect spellIn)\r\n\t\t{\r\n\t\t\tif(casterIn == null) return true;\r\n\t\t\tswitch(this)\r\n\t\t\t{\r\n\t\t\t\tcase FOCUS:\r\n\t\t\t\t\tif(casterIn instanceof PlayerEntity && ((PlayerEntity)casterIn).isCreative()) return true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean focusFound = false;\r\n\t\t\t\t\tfor(Hand hand : Hand.values())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItemStack heldItem = casterIn.getHeldItem(hand);\r\n\t\t\t\t\t\tif(spellIn.itemMatchesFocus(heldItem))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfocusFound = true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(!focusFound && casterIn instanceof PlayerEntity)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tPlayerEntity player = (PlayerEntity)casterIn;\r\n\t\t\t\t\t\tfor(int slot=0; slot<9; slot++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tItemStack heldItem = player.inventory.getStackInSlot(slot);\r\n\t\t\t\t\t\t\tif(spellIn.itemMatchesFocus(heldItem))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfocusFound = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn focusFound;\r\n\t\t\t\tcase MATERIAL:\r\n\t\t\t\t\tif(casterIn instanceof PlayerEntity && ((PlayerEntity)casterIn).isCreative()) ;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tPlayerEntity player = casterIn instanceof PlayerEntity ? (PlayerEntity)casterIn : null;\r\n\t\t\t\t\t\tfor(ItemStack material : spellIn.getMaterialComponents())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint count = material.getCount();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Check player inventory\r\n\t\t\t\t\t\t\tif(player != null)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfor(int slot=0; slot<player.inventory.getSizeInventory(); slot++)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tItemStack heldItem = player.inventory.getStackInSlot(slot);\r\n\t\t\t\t\t\t\t\t\tif(heldItem.isEmpty()) continue;\r\n\t\t\t\t\t\t\t\t\tif(isMatchingItem(heldItem, material)) count -= Math.min(count, heldItem.getCount());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// Check held items\r\n\t\t\t\t\t\t\t\tfor(Hand hand : Hand.values())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tItemStack heldItem = casterIn.getHeldItem(hand);\r\n\t\t\t\t\t\t\t\t\tif(heldItem.isEmpty()) continue;\r\n\t\t\t\t\t\t\t\t\tif(isMatchingItem(heldItem, material)) count -= Math.min(count, heldItem.getCount());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Check armour slots\r\n\t\t\t\t\t\t\t\tfor(EquipmentSlotType hand : EquipmentSlotType.values())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tItemStack heldItem = casterIn.getItemStackFromSlot(hand);\r\n\t\t\t\t\t\t\t\t\tif(heldItem.isEmpty()) continue;\r\n\t\t\t\t\t\t\t\t\tif(isMatchingItem(heldItem, material)) count -= Math.min(count, heldItem.getCount());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(count > 0) return false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\tcase SOMATIC:\r\n\t\t\t\t\treturn !VOPotions.isParalysed(casterIn);\r\n\t\t\t\tcase VERBAL:\r\n\t\t\t\t\treturn !VOPotions.isSilenced(casterIn);\r\n\t\t\t\tdefault: return true;\r\n\t\t\t}\r\n\t\t}", "public Card PlayCard() {\n\t Card ret = null;\n\t Card card;\n\t if (mCardCount > 0) {\n\t\t // To work out what card to play, see what cards can be played\n\t\t \tCard[] playableCards;\n\t\t \tplayableCards = mRules.GetPlayableCards();\n\t\t \tCard[] selectedCards;\n\t\t \tselectedCards = new Card[8];\n\t\t \tint iNumSelectableCards = 0;\n\t\t \tfor (int i = 0; i < 8; i++)\n\t\t \t\tselectedCards[i] = null;\n\t \tfor (int i = 0; i < mCardCount; i++){\n\t \t\tcard = mCard[i];\n\t \t\tswitch (card.GetSuit()){\n\t \t\tcase Card.HEARTS:\n\t \t\t\t\n\t \t\t\t// Card is a heart, can it be played?\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t// and must be played first\n\t \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n\t \n\t \t\t\t\treturn card;\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()-1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\tcase Card.DIAMONDS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.CLUBS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.SPADES:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\tbreak;\n\n\t \t\t\t\t \t\t\t\n\t \t\t}\n\t\n\t \t}\t\n\t \t\n\t \t// Now go through the selectable cards and see which is best to be played\n\t \tif (iNumSelectableCards == 0)\n\t \t\treturn ret;\n\t \t\n\t \tint iPos;\n\t \tcard = null;\n\t \tif (iNumSelectableCards == 1){\n\t\t\t \tfor (int i = 0; i < 8; i++)\n\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t \t\t\tcard = selectedCards[i];\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\t\t \t\n\t \t}\n\t \telse {\n\t\t\t String sDifficulty = mRules.mView.GetSettings().getString(\"Difficulty\", \"0\");// 0 = hard, 1 = easy\n\t\t\t int iDifficulty = Integer.parseInt(sDifficulty);\n\t\t\t if (iDifficulty == EASY){\n\t\t\t \t// Get a random card from the playable ones\n\t\t\t\t\t Random generator = new Random();\n\t\t\t\t\t int randomIndex = generator.nextInt( iNumSelectableCards );\n\t\t\t\t\t int iCount = 0;\n\t\t\t\t\t \tfor (int i = 0; i < 8; i++){\n\t\t\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t\t\t \t\t\tif (iCount == randomIndex){\n\t\t\t\t\t \t\t\t\tcard = selectedCards[i];\n\t\t\t\t\t \t\t\t\tbreak;\n\t\t\t\t\t \t\t\t}\n\t\t\t\t\t \t\t\telse iCount++;\n\t\t\t\t\t \t\t}\t\n\t\t\t\t\t \t}\n\t\t\t }\n\t\t\t else {\n\t\t\t \tiPos = GetBestCard(selectedCards);\n\t\t\t \tcard = selectedCards[iPos];\n\t\t\t }\n\t \t}\n\t \t\n\t \tswitch (card.GetSuit()){\n \t\tcase Card.HEARTS:\t \t\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\t// and must be played first\n \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n \n \t\t\t\treturn card;\n \t\t\t}\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n \t\t\t\t\tplayableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\tcase Card.DIAMONDS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(8,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(6,Card.DIAMONDS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(card.GetValue()-1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(card.GetValue()+1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\t\t\n \t\tcase Card.CLUBS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(8,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.CLUBS6] = new Card(6,Card.CLUBS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n \t\t\t\t\tplayableCards[Rules.CLUBS6] = new Card(card.GetValue()-1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n \t\t\t\t\tLog.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.CLUBS);\n \t\t\t\t\tplayableCards[Rules.CLUBS8] = new Card(card.GetValue()+1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\tbreak; \n \t\tcase Card.SPADES:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(8,Card.SPADES);\n\t \t\t\t\tplayableCards[Rules.SPADES6] = new Card(6,Card.SPADES);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES6] = new Card(card.GetValue()-1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES8] = new Card(card.GetValue()+1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\tbreak;\n \t\t\t\n\t \t}\n\t \n\t }\n\t return ret;\n }", "void decideContinuity(Card curr_card) {\n if (curr_card.getTRIPS().size() != 0) { // if trips is not empty, then can get the last item and decide if continuous\n int last_index = curr_card.getTRIPS().size() - 1;\n WholeTrip last_whole_trip = (curr_card.getTRIPS().get(last_index));\n Trip last_trip = last_whole_trip.getWHOLE_TRIP().get(last_whole_trip.getWHOLE_TRIP().size() - 1); // get the last trip\n // evaluate if continuous\n this.isContinuous = START_TIME.timeInterval(last_trip.endTime) <= 120 &&\n last_trip.endStation.equals(START_STATION);\n }\n }", "public boolean playCard(Card card){\n boolean b = effectHandler.playCard( card , null);\n return b;\n }", "public boolean match(CreditLimit data){\n Operation op;\n op = new Operation();\n boolean result = false;\n if (this.card_type.equalsIgnoreCase(data.card_type)){\n\n // Checking if an operator is contains in the rule to be matched\n if(op.containsExpression(this.num_credit_card)){\n System.out.println(\">>> Contains expression: \"+ this.num_credit_card + \" \"+ this.toString());\n if (this.num_credit_card.contains(\"<=\")){\n int num_credit_card = Integer.parseInt(data.num_credit_card.replace(\"<=\", \"\"));\n if ( num_credit_card <= op.getOperand()){\n System.out.println(\"input \" + num_credit_card + \" is <= \" + op.getOperand());\n return true;\n }\n }\n\n if (this.num_credit_card.contains(\">\")){\n int num_credit_card = Integer.parseInt(data.num_credit_card);\n if ( num_credit_card > op.getOperand()){\n System.out.println(\"input \" + num_credit_card + \" is > \" + op.getOperand());\n return true;\n }\n }\n\n// switch(op.getOperator()){\n// case 1:\n// System.out.println(\"match >\");\n// break;\n// case 5:\n// System.out.println(\"match <\");\n// break;\n// case 6:\n// System.out.println(\"match >\");\n// break;\n// }\n } else {\n if(this.num_credit_card.equalsIgnoreCase(data.num_credit_card)){\n if(this.home_owner.equalsIgnoreCase(\"x\")){\n result= true;\n }\n } else {\n result = false;\n }\n }\n\n } else {\n result = false;\n }\n\n return result;\n }", "@Override UpodCondition getConditionTest(UpodProgram pgm) {\n return null;\n }", "private boolean canPut(Player player) {\n boolean haveValidCart = false;\n boolean can = false;\n for (Card temp: player.getCards()) {\n if(temp.isValidCard(currentCard) || temp instanceof WildCard) {\n haveValidCart = true;\n can = true;\n break;\n }\n }\n if (!haveValidCart) {\n player.addCard(cards.get(0));\n cards.remove(0);\n if (player.getCards().get(player.getCards().size()-1).isValidCard(currentCard)) {\n show();\n System.out.println(player.getName() + \"! You were given a card because you didn't have any valid choice.\");\n can = true;\n }\n else {\n show();\n System.out.println(player.getName() + \"! You were given a card but you don't have any valid choice yet.\");\n }\n }\n return can;\n }", "@Test\n public void CardRequirement2() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(1);\n\n LeaderCard l3 = new LeaderCard(4,\n new CardRequirements(Map.of(Color.YELLOW, new ReqValue(1, 2))),\n new Production(Resource.SHIELD));\n ArrayList<LeaderCard> cards = new ArrayList<>();\n cards.add(l1);\n cards.add(l3);\n p.associateLeaderCards(cards);\n DevelopmentCard card1 = new DevelopmentCard(1, Color.GREEN, 0, null, null);\n DevelopmentCard card2 = new DevelopmentCard(2, Color.YELLOW, 0, null, null);\n p.getDevelopmentSlot().addCard(card1, 1);\n p.getDevelopmentSlot().addCard(card2, 1);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l3.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(2, c.messages.size());\n }", "public boolean canUseCard(Card card) {\r\n\t\tif (card.cardColor.contains(CardColor.GREEN)\r\n\t\t\t\t|| card.cardColor.contains(CardColor.GREY)) {\r\n\t\t\treturn false;\r\n\t\t} else if (this.blackTurns > 0) {\r\n\t\t\treturn true;\r\n\t\t} else if (card.cardColor.contains(CardColor.PURPLE)\r\n\t\t\t\t&& this.purpleTurns > 0) {\r\n\t\t\treturn true;\r\n\t\t} else if (card.cardColor.contains(CardColor.RED) && this.redTurns > 0) {\r\n\t\t\treturn true;\r\n\t\t} else if (card.cardColor.contains(CardColor.BLUE)\r\n\t\t\t\t&& this.blueTurns > 0) {\r\n\t\t\treturn true;\r\n\t\t} else if (card.cardColor.contains(CardColor.BROWN)\r\n\t\t\t\t&& this.brownTurns > 0) {\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "cn.infinivision.dataforce.busybee.pb.meta.ExprOrBuilder getConditionOrBuilder();", "public boolean canOfferInsurance() {\n\t\treturn this.hand.getCards().get(0) == Card.ACE;\n\t}", "private void checkPlayerCondition()\n\t{\n\t\tif (playerExists() && PlayerAccess.getPlayer().isInExit())\n\t\t{\n\t\t\twon = true;\n\t\t}\n\t\tif (playerIsDead())\n\t\t{\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t\tif (playerHasLost())\n\t\t{\n\t\t\tlost = true;\n\t\t}\n\t\tif (runOutOfTime())\n\t\t{\n\t\t\tPlayerAccess.getPlayer().die();\n\t\t}\n\t}", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "public int playEventCard(Player owner, InfectionCard c) {\n\t\tInfectionDiscardPile dp = gameManager.getGame().getInfectionDiscardPile();\n\t\tif (dp.containsCard(c)){\n\t\t\tdp.removeCard(c);\n\n\t\t\treturn gameManager.discardPlayerCard(owner, this);\n\t\t}\n\t\telse {\n\t\t\treturn 1;\n\t\t}\n\t}", "boolean hasFairplay();", "@Test\n public void CardRequirement1() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(1);\n DevelopmentCard card1 = new DevelopmentCard(1, Color.YELLOW, 0, null, null);\n DevelopmentCard card2 = new DevelopmentCard(2, Color.GREEN, 0, null, null);\n p.getDevelopmentSlot().addCard(card1, 1);\n p.getDevelopmentSlot().addCard(card2, 1);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l2.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(2, c.messages.size());\n\n }", "public boolean hasCard(Cards card) {\n \t\treturn (cards[card.ordinal()] > 0);\n \t}", "public boolean canUseCard() {\n \t\tif (usedCard)\n \t\t\treturn false;\n \n \t\tfor (int i = 0; i < cards.length; i++) {\n \t\t\tif (cards[i] > 0)\n \t\t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}", "public boolean addQuestion(EcardServiceCondition condition) {\n//\t\tString questionInfo = CodeUtil.decodeBase64(getCondition(condition)\n//\t\t\t\t.getContent());\n\t\t\n\t\tString values[] = ConnectionMessage.getValue(getCondition(condition).getMessage(), \"u_id\",\n\t\t\t\t\"u_ip\", \"g_id\", \"q_title\", \"q_content\", \"q_time\", \"q_value\",\n\t\t\t\t\"province_id\", \"q_stats\");\n\t\tQuestion question = new Question();\n\t\tquestion.getUser().setUid(StringValueUtils.getInt(values[0]));\n\t\tquestion.setQuestion_ip(values[1]);\n\t\tquestion.getLawCategory().setCatId(StringValueUtils.getInt(values[2]));\n\t\tquestion.setTitle(values[3]);\n\t\tquestion.setContent(StringUtils.replace(values[4], \"\\\\\\\\\", \"\\\\\"));\n\t\ttry {\n\t\t\tquestion.setCreatetime(DateUtil.parseDate(values[5]));\n\t\t} catch (ParseException e) {\n\t\t\tquestion.setCreatetime(new Date());\n\t\t}\n\t\tquestion.setScore(StringValueUtils.getInt(values[6]));\n\t\tquestion.getProvince().setAreaId(StringValueUtils.getInt(values[7]));\n\t\tquestion.setVisible(values[8]);\n\t\tif(questionServices.addQuestion(question)>0)return true;\n\t\telse \n\t\t\treturn false;\n\t}", "private void checkBuyCard(PropertyCard card) {\n\t\tboolean almostComplete = checkCollection(this, card);\n\t\tif(almostComplete) {\n\t\t\tboolean boughtCard = buyCard(card);\n\t\t\tif(!boughtCard) {\n\t\t\t\tboolean madeChanges = checkPayment(card.getPrice());\n\t\t\t\tif(madeChanges) {\n\t\t\t\t\tbuyCard(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboolean opponentAlmostComplete = false;\n\t\t\tfor(Player p: getPlayers()) {\n\t\t\t\tif(checkCollection(p,card)) {\n\t\t\t\t\topponentAlmostComplete = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(opponentAlmostComplete) {\n\t\t\t\tbuyCard(card);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(getMoney()-card.getPrice()>=100) {\n\t\t\t\t\tbuyCard(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "boolean CheckAndAddCardInBuild(Card_Model cardToBeAdded, Card_Model cardInBuild, int currentPlayer, Vector<Card_Model> playerHand) {\n\n boolean isCardInBuild = false;\n Vector<Card_Model> tempBuild = buildOfCards;\n int aceAs1 = 0;\n int aceAs14 = 0;\n Card_Model cardAdded;\n\n // Cycling through the cards in the build and see if the card the user selected is actually in the build\n for(int i = 0; i < buildOfCards.size(); i++) {\n if(buildOfCards.get(i).GetCard().equals(cardInBuild.GetCard())) {\n isCardInBuild = true;\n }\n }\n\n // If the card the user wants to add to a build exists and they are not the owner...\n if(isCardInBuild && owner != currentPlayer) {\n\n // Push the card the player wants to add to the build onto a temporary copy of the build to\n // be added if the numbers correctly add up to a card in their hand\n tempBuild.add(cardToBeAdded);\n cardAdded = cardToBeAdded;\n\n // Iterate through the build with the card added and see what number it adds up to\n for (int i = 0; i < tempBuild.size(); i++) {\n if (tempBuild.get(i).GetNumber() != 'A') {\n aceAs1 += playerModel.CardNumber(tempBuild.get(i).GetNumber());\n aceAs14 += playerModel.CardNumber(tempBuild.get(i).GetNumber());\n } else {\n aceAs1++;\n aceAs14 += 14;\n }\n }\n\n // Then iterate through the players hand and check and see with the card they want to add being added,\n // Does it equal one of the cards in their hand\n for (int i = 0; i < playerHand.size(); i++) {\n\n if(cardToBeAdded.GetCard().equals(playerHand.get(i).GetCard())) {\n continue;\n }\n\n // If it does equal, update the build with the added card and return true\n if (playerModel.CardNumber(playerHand.get(i).GetNumber()) == aceAs1 ||\n playerModel.CardNumber(playerHand.get(i).GetNumber()) == aceAs14 ||\n playerHand.get(i).GetNumber() == 'A' && aceAs1 == 14) {\n buildOfCards = tempBuild;\n owner = currentPlayer;\n\n if (playerHand.get(i).GetNumber() != 'A') {\n cardValueOfBuild = playerModel.CardNumber(playerHand.get(i).GetNumber());\n } else {\n cardValueOfBuild = 14;\n }\n\n return true;\n }\n }\n\n // If we get out of the for loop then that means that it never added up to a card in the player's hand\n tempBuild.remove(tempBuild.lastElement());\n return false;\n }\n\n // You can not add to the existing build\n else {\n return false;\n }\n }", "boolean hasAlreadCheckCard();", "public boolean containsCard(Card c) {\n\t\tfor (Card card : cards) {\n\t\t\tif (c.suit == card.suit && c.rank == card.suit)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean equals(Card c) {\n if (this.getValue() == c.getValue() && this.getSuit() == c.getSuit())\n return true;\n return false;\n }", "boolean hasAlreadShowCard();", "public static Condition createCondition(Patient patient, Encounter encounter, String conditionTypeCode,\n String conditionTypeDisplay, String date){\n // Create a condition object\n Condition condition = new Condition();\n\n // Set Identifier of the condition object\n condition.addIdentifier()\n .setSystem(\"http://www.kh-uzl.de/fhir/condition\")\n .setValue(UUID.randomUUID().toString());\n\n // Set clinical status of the condition\n condition.setClinicalStatus(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(\"active\")\n .setSystem(\"http://terminology.hl7.org/CodeSystem/condition-clinical\")\n .setDisplay(\"Active\")));\n\n // Set verification status of the condition\n condition.setVerificationStatus(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(\"confirmed\")\n .setSystem(\"http://terminology.hl7.org/CodeSystem/condition-ver-status\")\n .setDisplay(\"Confirmed\")));\n\n // Set Identification of the condition, problem or diagnosis\n condition.setCode(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(conditionTypeCode)\n .setSystem(\"http://snomed.info/sct\")\n .setDisplay(conditionTypeDisplay)));\n\n // Set reference to a patient, that the condition belongs to\n condition.setSubject(new Reference()\n .setIdentifier(patient.getIdentifierFirstRep())\n .setReference(patient.fhirType() + \"/\" + patient.getId()));\n\n // Set reference to an encounter, the condition was part of\n condition.setEncounter(new Reference()\n .setIdentifier(encounter.getIdentifierFirstRep())\n .setReference(encounter.fhirType() + \"/\" + encounter.getId()));\n\n // Set date when the condition was first recorded\n condition.setRecordedDateElement(new DateTimeType(date));\n\n return condition;\n }", "public boolean meetsRequirement(String sId, String sName, CCode sColor, Type sType, int sLevel, int sCost, Trigger sTrigger, int sPower, int sSoul, String sTrait, String sAbility) {\n \n \t\tboolean isMet = true;\n \n \t\tif (!id.isEmpty()) {\n \n \t\t\tString[] parts = sId.split(\" \");\n \n \t\t\tfor (int i = 0; i < sameID.length; i++) {\n \t\t\t\tisMet = true;\n \t\t\t\tfor (int j = 0; j < parts.length; j++) {\n \t\t\t\t\tisMet = isMet && sameID[i].toLowerCase().contains(parts[j].toLowerCase());\n \t\t\t\t\t/*\n \t\t\t\t\t * if (sameID[i].toLowerCase()\n \t\t\t\t\t * .contains(parts[j].toLowerCase()))\n \t\t\t\t\t * System.out.println(sameID[i] + \"???\" + parts[j]);\n \t\t\t\t\t */\n \t\t\t\t}\n \t\t\t\tif (isMet) {\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \n \t\t\t}\n \t\t\tisMet = true;\n \t\t\tfor (int j = 0; j < parts.length; j++) {\n \t\t\t\tisMet = isMet && id.toLowerCase().contains(parts[j].toLowerCase());\n \t\t\t\t/*\n \t\t\t\t * if (id.toLowerCase().contains(parts[j].toLowerCase()))\n \t\t\t\t * System.out.println(id + \"::CONTAINS::\" + parts[j]);\n \t\t\t\t */\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * if (isMet) { for (int i = 0; i < sameID.length; i++) {\n \t\t\t * System.out.print(\"[(\" + i + \")\" + sameID[i] + \"]\"); }\n \t\t\t * System.out.println(); }\n \t\t\t */\n \t\t}\n \n \t\tif (!sName.isEmpty()) {\n \t\t\tisMet = isMet && (cardName.toLowerCase().contains(sName.toLowerCase()) || cardName_e.toLowerCase().contains(sName.toLowerCase()));\n \t\t}\n \n \t\tif (sColor != null && sColor != CCode.ALL) {\n \t\t\tisMet = isMet && (sColor == c);\n \t\t}\n \n \t\tif (sType != null && sType != CardAssociation.Type.ALL) {\n \t\t\tisMet = isMet && (sType == t);\n \t\t}\n \n \t\tif (sLevel > -1) {\n \t\t\tisMet = isMet && (sLevel == level);\n \t\t}\n \n \t\tif (sCost > -1) {\n \t\t\tisMet = isMet && (sCost == cost);\n \t\t}\n \n \t\tif (sTrigger != null && sTrigger != Trigger.ALL) {\n \t\t\tisMet = isMet && (sTrigger == trigger);\n \t\t}\n \n \t\tif (sPower > -1) {\n \t\t\tisMet = isMet && (sPower == power);\n \t\t}\n \n \t\tif (sSoul > -1) {\n \t\t\tisMet = isMet && (sSoul == soul);\n \t\t}\n \n \t\tif (!sTrait.isEmpty()) {\n \t\t\tisMet = isMet && (trait1.toLowerCase().contains(sTrait) || trait2.toLowerCase().contains(sTrait) || trait1_e.toLowerCase().contains(sTrait) || trait2_e.toLowerCase().contains(sTrait));\n \t\t}\n \n \t\tif (!sAbility.isEmpty()) {\n \n \t\t\tString[] parts = sAbility.split(\" \");\n \n \t\t\tfor (int i = 0; i < parts.length; i++) {\n \t\t\t\tisMet = isMet && (getEffects().toLowerCase().contains(parts[i].toLowerCase()) || getEffects_e().toLowerCase().contains(parts[i].toLowerCase()));\n \t\t\t}\n \t\t}\n \n \t\treturn isMet;\n \t}", "Conditional createConditional();", "public boolean equals(Card c)\n {\n if (rank == c.rank)\n return true;\n else\n return false;\n }", "public void isPurchased(Player player) {\n\t}", "@Override\n public boolean anotherPlayIsPossible()\n {\n \t\n List<Integer> test = cardIndexes();\n return containsSum13(test) || containsK(test);\n \n }", "@Override\n\tpublic Condition convertToCondition() {\n\t\tRelation r = (type == EffectType.DISCARD)? Relation.UNEQUAL : Relation.EQUAL;\n\t\treturn new TemplateCondition(labelTemplate, valueTemplate, r);\n\t}", "private static boolean isCardPresent(final UsbResponse slotStatus){\n\t\treturn slotStatus != null && slotStatus.getIccStatus() != UsbResponse.ICC_STATUS_NOT_PRESENT ? true : false;\n\t}", "boolean haveLow(char suit){\n for (int i=0; i<6; i++)\n if ((hand.get(i).suit == suit) && (hand.get(i).rank < (10 - pitchTable.getNumPlayers())))\n return true;\n return false;\n }", "@Override\n public boolean match(Card card) {\n if (card.getColor().equals(\"BLACK\"))\n return true;\n\n return (card.getColor().equals(this.getColor())\n || card.getValue().equals(this.getValue()));\n }", "@Override\n\tpublic boolean ifCard(int cid, String passed) {\n\t\treturn cb.ifCard(cid, passed);\n\t}", "@Test\n public void testAddCard() {\n d_gameData.getD_playerList().get(1).addCard(GameCard.BLOCKADE);\n assertEquals(true, d_gameData.getD_playerList().get(1).getD_cards().contains(GameCard.BLOCKADE));\n }", "public boolean isApplicable(DevelopmentCard card) {\n\t\treturn (this.familyMember.getActionValue()\n\t\t\t\t+ this.getPlayer().getBonuses().getActivationVariation(card.getCardType())\n\t\t\t\t+ paidServants >= card.getActivationCost());\n\t}", "public boolean takeCard(Card card) {\n if (this.numCards >= MAX_CARDS)\n return false;\n else {\n this.myCards[numCards] = new Card(card);\n this.numCards++;\n return true;\n }\n }", "public Card playerPlayCard(Integer choice){\n if(!(playerHand.isEmpty())){\n return playerHand.get(choice);\n } else {\n return null;\n }\n }", "com.google.protobuf.ByteString getConditionBytes();", "boolean haveGame(char suit){\n int suitNum = 0; // number of cards that follow suit\n for (int i=0; i<6; i++)\n if (hand.get(i).suit == suit)\n suitNum++;\n return (suitNum > 3);\n }", "public Card playCard(Card card, Deck faceDown, Deck faceUp, Card.Face face, Card.Suit suit) {\n if (card == faceDown.peekTopCard()) {\n drawCard(faceDown);\n return card;\n }\n else if (accordingToRules(card, face, suit)) {\n this.putDownCard(faceUp, card);\n return card;\n }\n else {\n return null;\n }\n }", "public boolean canCapture(Card otherCard) {\n return this.getRank().equals(Rank.JACK) || this.compareRank(otherCard);\n }", "public boolean buildNextStage(Player player, Card card){\n //TODO: build the next stage of the Wonder\n return false;\n }", "@Override\n public Card playCard() {\n List<Card> rank1 = new ArrayList<>();\n List<Card> rank2 = new ArrayList<>();\n List<Card> rank3 = new ArrayList<>();\n List<Card> rank4 = new ArrayList<>();\n for (Card card : cardsInHand) {\n if (card.getRank().equals(Card.Rank.EIGHT)) {\n rank1.add(card);\n break;\n } else if (card.getSuit().equals(idealSuit)\n && card.getRank().equals(idealRank)\n && (topCard.getSuit().equals(card.getSuit())\n || topCard.getRank().equals(card.getRank()))) {\n rank2.add(card);\n } else if ((card.getSuit().equals(idealSuit) || card.getRank().equals(idealRank))\n && (topCard.getSuit().equals(card.getSuit())\n || topCard.getRank().equals(card.getRank()))) {\n rank3.add(card);\n } else if (topCard.getSuit().equals(card.getSuit())\n || topCard.getRank().equals(card.getRank())) {\n rank4.add(card);\n }\n }\n List<List<Card>> playPossibilities = new ArrayList<>(Arrays.asList(rank1, rank2, rank3, rank4));\n for (List<Card> list : playPossibilities) {\n if (list.size() > 0) {\n cardsInHand.remove(list.get(0));\n return list.get(0);\n }\n }\n // This method will never return null if shouldDrawCard() is called beforehand.\n return null;\n }", "public boolean computerCardCheck(Card card)\n {\n int diff = Card.valueOfCard(computerCard) - Card.valueOfCard(card);\n // If player wins\n if( diff == 1 || diff == -1)\n {\n return true;\n }\n return false;\n }", "public void addWinning1(Card card)\n {\n player1Hand.enqueue(card);\n }", "boolean CanCaptureBuildOfCards(Card_Model cardToBeCaptured, Card_Model cardInBuild, Vector<Card_Model> playerHand) {\n\n boolean isCardInBuild = false;\n int captureCardNum = playerModel.CardNumber(cardToBeCaptured.GetNumber());\n int captureCardAce = 14;\n\n // First checking to see if the build the user wants to capture exists by looking for the card they provided\n for(int i = 0; i < buildOfCards.size(); i++) {\n if(buildOfCards.get(i).GetCard().equals(cardInBuild.GetCard())) {\n isCardInBuild = true;\n }\n }\n\n // If the card the user typed in is in the build and the card the user\n // wants to capture with is not an ace, then we need to make sure the card they are\n // capturing with is the same value as the total build\n if(isCardInBuild && cardToBeCaptured.GetNumber() != 'A') {\n if(playerModel.CardNumber(cardToBeCaptured.GetNumber()) == cardValueOfBuild) {\n return true;\n }\n }\n // If the card is in the build and the card is an ace, then we treat the capturing\n // card as 14 and see if it matches the total build value\n else if(isCardInBuild) {\n if(captureCardAce == cardValueOfBuild) {\n return true;\n }\n }\n\n return false;\n }", "public static boolean isCdmaCardCompetionForData(Context context) {\n return isCdmaCardCompetion(context);\n }", "public Object getCondition();" ]
[ "0.5323214", "0.51457906", "0.51306576", "0.5107567", "0.505602", "0.5018188", "0.49991626", "0.49924776", "0.4969695", "0.49636966", "0.4951113", "0.4928032", "0.49276632", "0.49153304", "0.49097142", "0.48396027", "0.48203912", "0.48096338", "0.48094743", "0.48058766", "0.47949234", "0.47911033", "0.47870368", "0.47836056", "0.4781848", "0.47756457", "0.47602782", "0.47466537", "0.47356403", "0.4727289", "0.47159815", "0.47018972", "0.46973065", "0.4693152", "0.46889374", "0.46853316", "0.46728382", "0.46615472", "0.4634544", "0.46227676", "0.46089572", "0.4604958", "0.46045455", "0.45921534", "0.45906857", "0.4543751", "0.45410195", "0.45320484", "0.45254076", "0.4488036", "0.44772997", "0.44768912", "0.44767627", "0.44613987", "0.4431196", "0.44107407", "0.44085652", "0.43953016", "0.43903106", "0.43880624", "0.43804428", "0.43797222", "0.43789473", "0.437263", "0.43693525", "0.43635896", "0.43626127", "0.43546146", "0.43546146", "0.43536645", "0.4343793", "0.43405992", "0.43381703", "0.433593", "0.43357417", "0.43345144", "0.4327575", "0.43268538", "0.43226266", "0.4319901", "0.431294", "0.430819", "0.4308079", "0.43038303", "0.43021938", "0.4298071", "0.42897123", "0.4288955", "0.428571", "0.4282829", "0.42796317", "0.42754027", "0.42693844", "0.4267063", "0.426484", "0.42645144", "0.42637083", "0.4260843", "0.42581388", "0.42576522" ]
0.53646356
0
/ Click Listeners, handle click based on objects attached to UI. Click listener for all toggle events
@Override public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { if (preference == mSubMenuVoicemailSettings) { return true; } else if (preference == mButtonDTMF) { return true; } else if (preference == mButtonTTY) { return true; } else if (preference == mButtonAutoRetry) { android.provider.Settings.System.putInt(mPhone.getContext().getContentResolver(), android.provider.Settings.System.CALL_AUTO_RETRY, mButtonAutoRetry.isChecked() ? 1 : 0); return true; } else if (preference == mButtonHAC) { int hac = mButtonHAC.isChecked() ? 1 : 0; // Update HAC value in Settings database Settings.System.putInt(mPhone.getContext().getContentResolver(), Settings.System.HEARING_AID, hac); // Update HAC Value in AudioManager mAudioManager.setParameter(HAC_KEY, hac != 0 ? HAC_VAL_ON : HAC_VAL_OFF); return true; } else if (preference == mVoicemailSettings) { if (preference.getIntent() != null) { this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID); } else { updateVoiceNumberField(); } return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void click() {\n\t\tif(toggles) {\n\t\t\tvalue = (value == 0) ? 1 : 0;\t// flip toggle value\n\t\t}\n\t\tupdateStore();\n\t\tif(delegate != null) delegate.uiButtonClicked(this);\t// deprecated\n\t}", "private void initSwitchEvents(){\n s1.setOnClickListener(v ->\n eventoSuperficie()\n );\n s2.setOnClickListener(v ->\n eventoSemiSumergido()\n );\n s3.setOnClickListener(v ->\n eventoSumergido()\n );\n // Hace click en el estado actual\n switch (PosicionBarrasReactor.getPosicionActual()){\n case SUMERGIDO:\n s3.toggle();\n break;\n case SEMI_SUMERGIDO:\n s2.toggle();\n break;\n case SUPERFICIE:\n s1.toggle();\n break;\n }\n // -\n }", "public void handle(TogglesEvent event)\n\tthrows Exception;", "void toggled(ToggledEvent event);", "public void setupToggleButtons(){\n\t\ttoggle_textContacts.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n\t\t public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t if (isChecked) {\n\t\t // The toggle is enabled\n\t\t\t if(prefsHandler.getSettings().getIsFirstTextContacts())\n\t\t\t {\n\t\t\t \tshowTextContactsTutorialDialog();\n\t\t\t }\n\t\t\t \n\t\t \tLinearLayout.LayoutParams layout_desc = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\t textContactsSmallFrame.setLayoutParams(layout_desc);\n\t\t } else {\n\t\t \t// resize the frame to just show the top button\n\t\t \tLinearLayout.LayoutParams layout_desc = new LinearLayout.LayoutParams(0, 0);\n\t\t textContactsSmallFrame.setLayoutParams(layout_desc);\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\ttoggle_NFRadio.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n\t\t public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t if (!isChecked) {\n\t\t // The toggle is disabled\n\t\t\t if(prefsHandler.getSettings().getIsFirstMusic())\n\t\t\t {\n\t\t\t \tshowMusicTutorialDialog();\n\t\t\t }\n\t\t \t// resize the frame to just show the top button\n\t\t \tLinearLayout.LayoutParams layout_desc = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\t NFRadioSmallFrame.setLayoutParams(layout_desc);\n\t\t } else {\n\t\t \t// the toggle is enabled\n\t\t\t if(prefsHandler.getSettings().getIsFirstNewsFeed())\n\t\t\t {\n\t\t\t \tshowNewsTutorialDialog();\n\t\t\t }\n\t\t\t \n\t\t \tLinearLayout.LayoutParams layout_desc = new LinearLayout.LayoutParams(0, 0);\n\t\t NFRadioSmallFrame.setLayoutParams(layout_desc);\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\ttoggle_ShakeToWake.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n\t\t public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t \tif(isChecked&&prefsHandler.getSettings().getIsFirstShakeToWake())\n\t\t {\n\t\t \t\tshowShakeTutorialDialog();\n\t\t }\n\t\t }\n\t\t});\n\t}", "private void setToggleEvent(GridLayout mainGrid) {\n for (int i = 0; i < mainGrid.getChildCount(); i++) {\n //You can see , all child item is CardView , so we just cast object to CardView\n final CardView cardView = (CardView) mainGrid.getChildAt(i);\n cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (cardView.getCardBackgroundColor().getDefaultColor() == -1) {\n //Change background color\n cardView.setCardBackgroundColor(Color.parseColor(\"#FF6F00\"));\n Toast.makeText(BuyChoose.this, \"State : True\", Toast.LENGTH_SHORT).show();\n\n } else {\n //Change background color\n cardView.setCardBackgroundColor(Color.parseColor(\"#FFFFFF\"));\n Toast.makeText(BuyChoose.this, \"State : False\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }", "@Override\r\n\tpublic void clickObject() {\n\r\n\t}", "@Override\n protected void hookListeners(View rootView) {\n rootView.setOnClickListener(v -> {\n DepictedItem item = getContent();\n item.setSelected(!item.isSelected());\n checkedView.setChecked(item.isSelected());\n if (listener != null) {\n listener.depictsClicked(item);\n }\n });\n checkedView.setOnClickListener(v -> {\n DepictedItem item = getContent();\n item.setSelected(!item.isSelected());\n checkedView.setChecked(item.isSelected());\n if (listener != null) {\n listener.depictsClicked(item);\n }\n });\n }", "public /* synthetic */ void lambda$handleClick$0() {\n boolean z = ((QSTile.BooleanState) this.mState).value;\n this.mHost.openPanels();\n this.mController.setLocationEnabled(!z);\n }", "public void onClick(View v) {\n switch ((String) v.getTag()) {\n case \"price\":\n if (refinePriceToggle.isShown()) {\n slideUp(getActivity(), refinePriceToggle);\n refinePriceToggle.setVisibility(View.GONE);\n } else {\n refinePriceToggle.setVisibility(View.VISIBLE);\n slideDown(getActivity(), refinePriceToggle);\n\n slideUp(getActivity(), refineBedroomToggle);\n slideUp(getActivity(), refineBathroomToggle);\n slideUp(getActivity(), refinePropertyToggle);\n // Hider Other Toggles\n refineBedroomToggle.setVisibility(View.GONE);\n refineBathroomToggle.setVisibility(View.GONE);\n refinePropertyToggle.setVisibility(View.GONE);\n }\n break;\n case \"bed\":\n if (refineBedroomToggle.isShown()) {\n slideUp(getActivity(), refineBedroomToggle);\n refineBedroomToggle.setVisibility(View.GONE);\n } else {\n refineBedroomToggle.setVisibility(View.VISIBLE);\n slideDown(getActivity(), refineBedroomToggle);\n slideUp(getActivity(), refinePriceToggle);\n slideUp(getActivity(), refineBathroomToggle);\n slideUp(getActivity(), refinePropertyToggle);\n // Hider Other Toggles\n refinePriceToggle.setVisibility(View.GONE);\n refineBathroomToggle.setVisibility(View.GONE);\n refinePropertyToggle.setVisibility(View.GONE);\n }\n break;\n case \"bath\":\n if (refineBathroomToggle.isShown()) {\n slideUp(getActivity(), refineBathroomToggle);\n refineBathroomToggle.setVisibility(View.GONE);\n } else {\n refineBathroomToggle.setVisibility(View.VISIBLE);\n slideDown(getActivity(), refineBathroomToggle);\n slideUp(getActivity(), refineBedroomToggle);\n slideUp(getActivity(), refinePriceToggle);\n slideUp(getActivity(), refinePropertyToggle);\n // Hider Other Toggles\n refineBedroomToggle.setVisibility(View.GONE);\n refinePriceToggle.setVisibility(View.GONE);\n refinePropertyToggle.setVisibility(View.GONE);\n }\n break;\n case \"type\":\n if (refinePropertyToggle.isShown()) {\n slideUp(getActivity(), refinePropertyToggle);\n refinePropertyToggle.setVisibility(View.GONE);\n } else {\n refinePropertyToggle.setVisibility(View.VISIBLE);\n slideDown(getActivity(), refinePropertyToggle);\n slideUp(getActivity(), refineBedroomToggle);\n slideUp(getActivity(), refineBathroomToggle);\n slideUp(getActivity(), refinePriceToggle);\n // Hider Other Toggles\n refineBedroomToggle.setVisibility(View.GONE);\n refineBathroomToggle.setVisibility(View.GONE);\n refinePriceToggle.setVisibility(View.GONE);\n }\n break;\n }\n }", "private void OnClick(){\n onWidgetClickListener.onClick(getViewId());\n }", "public void click(){\n\t\t\n\tfor(MouseListener m: listeners){\n\t\t\t\n\t\t\tm.mouseClicked();\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tLog.e(TAG, \"toggle onClick enter \");\n\t\t\t\tupdateSurface();\n\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n clicked = true;\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "void clickSomewhereElse();", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "protected void initEvent() {\n\t\tbase_ib.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tmainActivity.getSlidingMenu().toggle();\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tprotected void setOnClickForButtons() {\n\t\tthis.buttons[0].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getActivity(), MainScreenActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tMainFunctions.selectedOption = 1;\n\t\t\t\tdestroyServices();\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t/* message box - onclick event */\n\t\tthis.buttons[1].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdestroyServices();\n\t\t\t\tMainFunctions.selectedOption = 2;\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* one tick sound */\n\t\tfor (int i = 0; i < this.totalButtons; i++){\n\t\t\tfinal String desc = buttons[i].getTag().toString();\n\t\t\tbuttons[i].setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\tif (hasFocus) {\n\t\t\t\t\t\tLog.i(TAG, \"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tlogFunctions.logTextFile(\"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tspeakButton(desc, 1.0f, 1.0f);\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}", "@FXML public void handleToggleButtons() {\n\t\t\n\t\t// binarySplitButton\n\t\tif (binarySplitButton.isSelected()) {\n\t\t\tbinarySplitButton.setText(\"True\");\n\t\t} else {\n\t\t\tbinarySplitButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// collapseTreeButton\n\t\tif (collapseTreeButton.isSelected()) {\n\t\t\tcollapseTreeButton.setText(\"True\");\n\t\t} else {\n\t\t\tcollapseTreeButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// debugButton\n\t\tif (debugButton.isSelected()) {\n\t\t\tdebugButton.setText(\"True\");\n\t\t} else {\n\t\t\tdebugButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotCheckCapabilitiesButton\n\t\tif (doNotCheckCapabilitiesButton.isSelected()) {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotMakeSplitPAVButton\n\t\tif (doNotMakeSplitPAVButton.isSelected()) {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// reduceErrorPruningButton\n\t\tif (reduceErrorPruningButton.isSelected()) {\n\t\t\treduceErrorPruningButton.setText(\"True\");\n\t\t} else {\n\t\t\treduceErrorPruningButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// saveInstanceDataButton\n\t\tif (saveInstanceDataButton.isSelected()) {\n\t\t\tsaveInstanceDataButton.setText(\"True\");\n\t\t} else {\n\t\t\tsaveInstanceDataButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// subTreeRaisingButton\n\t\tif (subTreeRaisingButton.isSelected()) {\n\t\t\tsubTreeRaisingButton.setText(\"True\");\n\t\t} else {\n\t\t\tsubTreeRaisingButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// unprunedButton\n\t\tif (unprunedButton.isSelected()) {\n\t\t\tunprunedButton.setText(\"True\");\n\t\t} else {\n\t\t\tunprunedButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useLaplaceButton\n\t\tif (useLaplaceButton.isSelected()) {\n\t\t\tuseLaplaceButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseLaplaceButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useMDLcorrectionButton\n\t\tif (useMDLcorrectionButton.isSelected()) {\n\t\t\tuseMDLcorrectionButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseMDLcorrectionButton.setText(\"False\");\n\t\t}\n\t\t\n\t}", "protected void doScreenClick() {\r\n\t\tbtnColonyInfo.visible = btnButtons.down;\r\n\t\tbtnPlanet.visible = btnButtons.down;\r\n\t\tbtnStarmap.visible = btnButtons.down;\r\n\t\tbtnBridge.visible = btnButtons.down;\r\n\t\trepaint();\r\n\t}", "protected void onClick() {\n for(Runnable action : onClick) action.run();\n }", "@Override\n public void onClick(View view)\n {\n if (!team.OnClicked(pView))\n teamClickState.val = 0;\n\n // Register this as only active item\n statusBar.registerOnClicked(this);\n clickedListener.val = this;\n\n activity.runOnUiThread(new Runnable()\n {\n @Override\n public void run()\n {\n switch (teamClickState.val) {\n case 0:\n clearViews();\n state0(); // HeatMap\n teamClickState.val = 1;\n break;\n case 1:\n clearViews();\n state1(); // Passes by player\n teamClickState.val = 2;\n break;\n case 2:\n clearViews();\n state2(); // Passes to player\n teamClickState.val = 3;\n break;\n case 3:\n reset();\n break;\n }\n }\n });\n }", "@Override\n public boolean onClick(View view) {\n updateToggle(view, !mChecked);\n// updateText(view); // automatically\n return true;\n }", "protected void setupAnnotationToggling() {\r\n\t\tgetWWD().addSelectListener(new SelectListener() {\r\n\t\t\tpublic void selected(SelectEvent event) {\r\n\t\t\t\tif (event.getEventAction().equals(SelectEvent.LEFT_CLICK)) {\r\n\t\t\t\t\tif (event.hasObjects()) {\r\n\t\t\t\t\t\tObject obj = event.getTopObject();\r\n\t\t\t\t\t\tif (obj instanceof ToggleAnnotation) {\r\n\t\t\t\t\t\t\tToggleAnnotation annotation = (ToggleAnnotation) obj;\r\n\t\t\t\t\t\t\tannotation.toggleText();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void setSingleEvent(GridLayout mainGrid) {\n for (int i = 0; i < mainGrid.getChildCount(); i++) {\n //You can see , all child item is CardView , so we just cast object to CardView\n CardView cardView = (CardView) mainGrid.getChildAt(i);\n final int finalI = i;\n cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (finalI == 0) {\n Intent intent = new Intent(MainActivity.this, SoundActivity.class);\n startActivity(intent);\n }\n else if (finalI == 1) {\n Intent intent = new Intent(MainActivity.this, LedActivity.class);\n startActivity(intent);\n }\n else if (finalI == 2) {\n Intent intent = new Intent(MainActivity.this, MagneticActivity.class);\n startActivity(intent);\n }\n else if (finalI == 3) {\n Intent intent = new Intent(MainActivity.this, LightActivity.class);\n startActivity(intent);\n }\n }\n });\n }\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tma.toggle(arg2);\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t}", "public void clickDemandSideManagement();", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public interface ClickEventListener {\n public void click();\n\n}", "@SuppressLint(\"CheckResult\")\n private void initializeClickEvents() {\n //create the onlick event for the add picture button\n Disposable pictureClick = RxView.clicks(mAddPictureBtn)\n .subscribe(new Consumer<Unit>() {\n @Override\n public void accept(Unit unit) {\n if (mImages.size() < MAX_NUM_IMAGES) {\n displayPictureMethodDialog();\n } else {\n Toast.makeText(AddListingView.this, R.string.maximum_images, Toast.LENGTH_LONG).show();\n }\n }\n });\n mCompositeDisposable.add(pictureClick);\n\n\n //create the on click event for the save button\n final Disposable save = RxView.clicks(mSaveButton)\n .subscribe(new Consumer<Unit>() {\n @Override\n public void accept(Unit unit) {\n saveData();\n }\n });\n mCompositeDisposable.add(save);\n\n\n //create onclick for the property status image\n Disposable statusChange = RxView.clicks(mSaleStatusImage)\n .subscribe(new Consumer<Unit>() {\n @Override\n public void accept(Unit unit) {\n switch (mSaleStatusImage.getTag().toString()) {\n case FOR_SALE_TAG:\n updateListingSoldStatus(true);\n break;\n case SOLD_TAG:\n updateListingSoldStatus(false);\n }\n }\n });\n mCompositeDisposable.add(statusChange);\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t}", "private void eventActions() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.addClickHandler(new GradeandSubjectFilter());\n\t\tlblStandards.addClickHandler(new StandardsFilter());\n\t\tlblGradesSubj.getElement().setAttribute(\"style\", \"background: #e5e5e5;\");\n\t\tstandardsPanel.setVisible(false);\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void Toggle() {\n\t \n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t}", "public boolean handles(Class<? extends TogglesEvent> eventClass);", "@Override\n\tpublic void mouseClicked (MouseEvent e) {\n\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttoggle = 1;\r\n\t\t\t\ttoggle(toggle);\r\n\t\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\r\n\t}", "public void detectClick(MouseEvent e){\n\t\tif(e.getSource() instanceof Pane) {\n\t\t\tNode source=(Node) e.getSource();\n\t\t\tNode sourceTarget=(Node) e.getTarget();\n\n\t\t\tString id = source.getId().toString();\n\t\t\tCouplePerso coord = cIHM.coords(e);\n\t\t\tCouplePerso coordParent = cIHM.coordsParent(e);\n\n\t\t\t//J'identifie le click de sourie\n\t\t\tif(e.getButton() == MouseButton.PRIMARY) {\n\n\t\t\t\t//J'identifie si nous cliquons dans l'inventaire\n\t\t\t\tif(id.equals(\"inventory\")||id.equals(\"inventory1\")||id.equals(\"inventory2\")) {\n\n\t\t\t\t\t//Ceci sont les coordonnées dans l'inventaire de la ou on clique, dependant si on clique sur un image ou une case vide\n\t\t\t\t\tInteger position = cIHM.coordsToPosition(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsToPosition(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"je recupere l'item \");\n\t\t\t\t\t\t\t//System.out.println(positionParent);\n\n\t\t\t\t\t\t\tstackTemp = model.putInInv(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\n\t\t\t\t\t\t//Si j'ai un item dans la main, et la case clique n'est pas vide, alors j'echange les deux items de place\t\t\t\t\t\t\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"jechange deux items de place \");\n\t\t\t\t\t\t\t//System.out.println(positionParent);\n\n\t\t\t\t\t\t\tstackTemp = model.putInInv(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Si la case clique est vide, alors je pose l'item dans cette case de l'inventaire\n\t\t\t\t\t\telse {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"je pose l'item \");\n\t\t\t\t\t\t\t//System.out.println(position);\n\t\t\t\t\t\t\tstackTemp = model.putInInv(position, stackTemp);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique sur la table de craft\n\t\t\t\tif(id.equals(\"table\")) {\n\n\t\t\t\t\tInteger position = cIHM.coordsInTable(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsInTable(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(positionParent, stackTemp);\n\t\t\t\t\t\t\t//System.out.println(\"je recupere l'item\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//Si j'ai un item dans la main, et que la case clique est vide, alors je pose l'item dans cette case du table de craft\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(positionParent, stackTemp);\n\t\t\t\t\t\t\t//System.out.println(\"jechange deux items de place\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Sinon j'echange les deux items de place\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(position, stackTemp);\n\t\t\t\t\t\t\t//System.out.println(\"je pose l'item\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tresultat = model.resultatCraft.getMatrix()[0];\n\t\t\t\t\t//System.out.println(model.resultatCraft.getMatrix()[0]);\n\t\t\t\t\t/*for(int i=0;i<9;i++) {\n\t\t\t\t\t\tSystem.out.println(model.tableDeCraft.getStackAt(i));\n\t\t\t\t\t}*/\n\t\t\t\t\tif(resultat != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthis.cIHM.afficheResult(resultat.getItem().getImLink());\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\t//Je regarde si on clique dans l'inventaire creatif\n\t\t\t\tif(id.equals(\"inventory_crea\")) {\n\t\t\t\t\t//Et si on clique sur un image\n\t\t\t\t\tif (sourceTarget instanceof ImageView) {\n\t\t\t\t\t\tImageView iv = (ImageView) sourceTarget;\n\t\t\t\t\t\tString[] lienT = iv.getId().split(\"[\\\\.]\");\n\t\t\t\t\t\tString[] lienT2 = lienT[0].split(\"img_\");\n\t\t\t\t\t\tString lien = lienT2[1];\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t//Si on a pas d'item en main, ca nous mettra un l'item en main\n\t\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Sinon l'item dans notre main est remplacer\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique dans la case du table de uncraft\n\t\t\t\tif(id.equals(\"case\")) {\n\t\t\t\t\t//System.out.println(sourceTarget.getId());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(source.getParent().getId().equals(\"anchorResult1\")) {\n\t\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\t\tstackTemp = model.putInUncraftSlot(stackTemp);\n\t\t\t\t\t\t\t\tArrayList<String> listeUncraft = new ArrayList<String>();\n\t\t\t\t\t\t\t\tfor(int i=0;i<9;i++) {\n\t\t\t\t\t\t\t\t\tif(model.tableDeCraft.getStackAt(i) == null) {\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(null);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tString lienIm = model.tableDeCraft.getStackAt(i).getItem().getImLink();\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(lienIm);\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\tcIHM.affichageUncraft(listeUncraft);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tstackTemp = model.putInUncraftSlot(stackTemp);\n\t\t\t\t\t\t\t\tArrayList<String> listeUncraft = new ArrayList<String>();\n\t\t\t\t\t\t\t\tfor(int i=0;i<9;i++) {\n\t\t\t\t\t\t\t\t\tif(model.tableDeCraft.getStackAt(i) == null) {\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(null);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tString lienIm = model.tableDeCraft.getStackAt(i).getItem().getImLink();\n\t\t\t\t\t\t\t\t\t\tlisteUncraft.add(lienIm);\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/*for(int i=0;i<9;i++) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(model.tableDeCraft.getStackAt(i));\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\tcIHM.affichageUncraft(listeUncraft);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1){\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//J'identifie le click de sourie\n\t\t\tif(e.getButton() == MouseButton.SECONDARY) {\n\n\t\t\t\t//J'identifie si nous cliquons dans l'inventaire\n\t\t\t\tif(id.equals(\"inventory\")||id.equals(\"inventory1\")||id.equals(\"inventory2\")) {\n\n\t\t\t\t\t//Ceci sont les coordonnées dans l'inventaire de la ou on clique, dependant si on clique sur un image ou une case vide\n\t\t\t\t\tInteger position = cIHM.coordsToPosition(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsToPosition(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstackTemp = model.putInInv(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\n\t\t\t\t\t\t//Si j'ai un item dans la main, je pose cette item dans la case clique meme s'il y a deja un item\t\t\t\t\t\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmodel.inventaireSurvie.set(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmodel.inventaireSurvie.set(position, stackTemp);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique sur la table de craft\n\t\t\t\tif(id.equals(\"table\")) {\n\n\t\t\t\t\tInteger position = cIHM.coordsInTable(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsInTable(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\t\t\t\t\tif(!itemEnMain) {\n\n\t\t\t\t\t\t//Si j'ai pas d'item dans la main, et que je clique sur une case ou se trouve un item, je la recupere\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tstackTemp = model.putInTableSlot(positionParent, stackTemp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//Si j'ai un item dans la main, je pose cette item dans la case clique meme s'il y a deja un item\n\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\tmodel.tableDeCraft.add(stackTemp, positionParent);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmodel.tableDeCraft.add(stackTemp, position);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmodel.Craft();\n\t\t\t\t\tresultat = model.resultatCraft.getMatrix()[0];\t\t\t\t\t\n\t\t\t\t\tif(resultat != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthis.cIHM.afficheResult(resultat.getItem().getImLink());\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\t//Je regarde si on clique dans l'inventaire creatif\n\t\t\t\tif(id.equals(\"inventory_crea\")) {\n\t\t\t\t\t//Et si on clique sur un image\n\t\t\t\t\tif (sourceTarget instanceof ImageView) {\n\t\t\t\t\t\tImageView iv = (ImageView) sourceTarget;\n\t\t\t\t\t\tString[] lienT = iv.getId().split(\"[\\\\.]\");\n\t\t\t\t\t\tString[] lienT2 = lienT[0].split(\"img_\");\n\t\t\t\t\t\tString lien = lienT2[1];\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t//Si on a pas d'item en main, ca nous mettra un l'item en main\n\t\t\t\t\t\tif(!itemEnMain) {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Sinon l'item dans notre main est remplacer\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tstackTemp = new Stack(model.fullItemList.research(lien, true).racine(),1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Je regarde si on clique dans la case du table de uncraft\n\t\t\t\tif(id.equals(\"case\")) {\n\t\t\t\t\t//System.out.println(\"TEST\");\n\t\t\t\t\t//System.out.println(sourceTarget.getId());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(source.getParent().getId().equals(\"anchorResult1\")) {\n\t\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\t\tmodel.resultatCraft.add(stackTemp, 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmodel.resultatCraft.add(stackTemp, 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmodel.Uncraft();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1){\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(e.getButton() == MouseButton.MIDDLE) {\n\n\t\t\t\t//J'identifie si nous cliquons dans l'inventaire\n\t\t\t\tif(id.equals(\"inventory\")||id.equals(\"inventory1\")||id.equals(\"inventory2\")) {\n\n\t\t\t\t\t//Ceci sont les coordonnées dans l'inventaire de la ou on clique, dependant si on clique sur un image ou une case vide\n\t\t\t\t\tInteger position = cIHM.coordsToPosition(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsToPosition(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//J'efface l'item dans la case clique\n\t\t\t\t\tif(sourceTarget instanceof ImageView) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tmodel.inventaireSurvie.set(positionParent, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique sur la table de craft\n\t\t\t\tif(id.equals(\"table\")) {\n\n\t\t\t\t\tInteger position = cIHM.coordsInTable(coord.x, coord.y)-1;\n\t\t\t\t\tInteger positionParent = cIHM.coordsInTable(coordParent.x, coordParent.y)-1;\n\n\t\t\t\t\t//Je regarde si j'ai deja un item dans la main oui ou non\n\n\n\t\t\t\t\t//Je supprime l'item a la case clique\n\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\tmodel.tableDeCraft.add(null, positionParent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmodel.Craft();\n\t\t\t\tresultat = model.resultatCraft.getMatrix()[0];\n\t\t\t\tif(resultat != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.cIHM.afficheResult(resultat.getItem().getImLink());\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Je regarde si on clique dans la case du table de uncraft\n\t\t\t\tif(id.equals(\"case\")) {\n\t\t\t\t\t//System.out.println(\"TEST\");\n\t\t\t\t\t//System.out.println(sourceTarget.getId());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(source.getParent().getId().equals(\"anchorResult1\")) {\n\t\t\t\t\t\t\tif(sourceTarget instanceof ImageView) {\n\t\t\t\t\t\t\t\tmodel.resultatCraft.add(null,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\tcatch(Exception e1){\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\n\t\tmodel.Craft();\n\t\tmodel.resultatCraft.add(null, 0);\n\t\tif(stackTemp == null) {\n\t\t\titemEnMain = false;\n\t\t}\n\t\telse {\n\t\t\titemEnMain= true;\n\t\t}\n\t}", "@Override\n\t\tpublic void onClick(Widget sender) {\n\t\t\t\n\t\t}", "public interface IOnOffClick {\n public void onOffClick(View view, int pos, boolean isOn);\n}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {}" ]
[ "0.6421955", "0.6366721", "0.62898886", "0.62213314", "0.61808765", "0.60722697", "0.60448873", "0.59940815", "0.5936274", "0.5931425", "0.5907471", "0.58671254", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.5862117", "0.58547246", "0.584472", "0.58442366", "0.58442366", "0.58380514", "0.5817713", "0.5816489", "0.581531", "0.5806271", "0.5794711", "0.57866025", "0.57866025", "0.57866025", "0.5785421", "0.57784647", "0.5777503", "0.57744956", "0.57562363", "0.5756182", "0.5753342", "0.57495207", "0.5748999", "0.5744413", "0.5742196", "0.5725337", "0.5721982", "0.57095546", "0.57067335", "0.57067335", "0.57067335", "0.5705695", "0.5701529", "0.56965387", "0.5694945", "0.56869715", "0.56869715", "0.56869715", "0.56869715", "0.56869715", "0.56869715", "0.5680831", "0.56793475", "0.56769484", "0.56758684", "0.567332", "0.56655157", "0.56655157", "0.56655157", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.56618714", "0.5659969", "0.5659305", "0.5659305", "0.5659305", "0.5659305", "0.5659305", "0.5659305", "0.5659305", "0.5659305", "0.5658204", "0.56544197", "0.56544197", "0.56529444", "0.5651583", "0.56463575", "0.5645792" ]
0.0
-1
Implemented to support onPreferenceChangeListener to look for preference changes.
public boolean onPreferenceChange(Preference preference, Object objValue) { if (preference == mButtonDTMF) { int index = mButtonDTMF.findIndexOfValue((String) objValue); Settings.System.putInt(mPhone.getContext().getContentResolver(), Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index); } else if (preference == mButtonTTY) { handleTTYChange(preference, objValue); } else if (preference == mVoicemailProviders) { updateVMPreferenceWidgets((String)objValue); // If the user switches to a voice mail provider and we have a // number stored for it we will automatically change the phone's // voice mail number to the stored one. // Otherwise we will bring up provider's config UI. final String providerVMNumber = loadNumberForVoiceMailProvider( (String)objValue); if (providerVMNumber == null) { // Force the user into a configuration of the chosen provider simulatePreferenceClick(mVoicemailSettings); } else { saveVoiceMailNumber(providerVMNumber); } } // always let the preference setting proceed. return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean onPreferenceChange(Preference preference, Object newValue) {\n \t\t\treturn false;\r\n \t\t}", "@Override\n public void onSettingChanged(ListPreference pref) {\n }", "@Override\r\n\tpublic boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\tmcallback.onReturnFromPreFragment(3);\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n setPreferenceSummary(preference, value);\n Log.i(LOG_TAG, \"onPreferenceChange: \" + value.toString());\n return true;\n }", "@Override\n \tpublic void onSharedPreferenceChanged(SharedPreferences prefs, String key) {\n \t\tcheckDefaults();\n \t}", "public interface PreferenceListener {\n public void bindPreferenceSummaryToValue(Preference preference);\n}", "public void onSettingChanged(ListPreference pref) {\n\t\tLog.v(\"yang\", \"+++ onSettingChanged: \" + pref.getKey() + \" +++ \");\n\t\tif (notSame(pref, CameraSettings.KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL,\n\t\t\t\tmActivity.getString(R.string.pref_video_time_lapse_frame_interval_default))) {\n\t\t\tListPreference hfrPref = mPreferenceGroup.findPreference(CameraSettings.KEY_VIDEO_HIGH_FRAME_RATE);\n\t\t\tif (hfrPref != null && !\"off\".equals(hfrPref.getValue())) {\n\t\t\t\tRotateTextToast.makeText(mActivity, R.string.error_app_unsupported_hfr_selection,Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\tsetPreference(CameraSettings.KEY_VIDEO_HIGH_FRAME_RATE, \"off\");\n\t\t}\n\t\tif (notSame(pref, CameraSettings.KEY_VIDEO_HIGH_FRAME_RATE, \"off\")) {\n\t\t\tString defaultValue = mActivity.getString(R.string.pref_video_time_lapse_frame_interval_default);\n\t\t\tListPreference lapsePref = mPreferenceGroup.findPreference(CameraSettings.KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL);\n\t\t\tif (lapsePref != null && !defaultValue.equals(lapsePref.getValue())) {\n\t\t\t\tRotateTextToast.makeText(mActivity, R.string.error_app_unsupported_hfr_selection,Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\tsetPreference(CameraSettings.KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL, defaultValue);\n\t\t}\n\t\tif (notSame(pref, CameraSettings.KEY_RECORD_LOCATION, \"off\")) {\n\t\t\tmActivity.requestLocationPermission();\n\t\t}\n\t\tsuper.onSettingChanged(pref);\t// call VideoModule's CameraPreference.OnPreferenceChangedListener\n\t\tLog.v(\"yang\", \"--- onSettingChanged: \" + pref.getKey() + \" --- \" );\n\t}", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n String difficultySummary = \"Current difficulty: \" + newValue;\n difficultyLevelPref.setSummary(difficultySummary);\n // Since we are handling the pref, we must save it\n SharedPreferences.Editor ed = sharedPrefs.edit();\n ed.putString(\"difficulty_level\", newValue.toString());\n ed.apply();\n setDifficultyLevel(newValue.toString());\n return true;\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n if(updateAddress(newValue.toString()) == true) {\n Log.d(TAG, \"Updated preference.\");\n EditTextPreference editedUrl = (EditTextPreference) findPreference(\"url\");\n editedUrl.setSummary(newValue.toString());\n return true;\n }\n else\n return false;\n }", "void bindPreferenceClickListener(Preference preference);", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n // The code in this method takes care of updating the displayed preference summary after it has been changed\n String stringValue = value.toString();\n if (preference instanceof ListPreference) {\n ListPreference listPreference = (ListPreference) preference;\n int prefIndex = listPreference.findIndexOfValue(stringValue);\n if (prefIndex >= 0) {\n CharSequence[] labels = listPreference.getEntries();\n preference.setSummary(labels[prefIndex]);\n }\n } else {\n preference.setSummary(stringValue);\n }\n return true;\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n // The code in this method takes care of updating the displayed preference summary after it has been changed\n String stringValue = value.toString();\n //preference.setSummary(stringValue);\n if (preference instanceof ListPreference) {\n ListPreference listPreference = (ListPreference) preference;\n int prefIndex = listPreference.findIndexOfValue(stringValue);\n if (prefIndex >= 0) {\n CharSequence[] labels = listPreference.getEntries();\n preference.setSummary(labels[prefIndex]);\n }\n }\n else {\n preference.setSummary(stringValue);\n }\n return true;\n }", "private void registerPrefsListener() {\n if (userSharedPreferences == null) {\n userSharedPreferences = Util.getUserSharedPreferences();\n }\n userPreferenceChangeListener = new SharedPreferences.OnSharedPreferenceChangeListener() {\n @Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n switch (key) {\n case HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS:\n int steps = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS, 0);\n txtViewStepsCountToday.setText(String.valueOf(steps));\n break;\n case HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY:\n int milestones = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0);\n txtViewMilestonesCountToday.setText(String.valueOf(milestones));\n case HPIApp.Prefs.SHARED_KEY_RUN_SERVICE:\n boolean runService = sharedPreferences.getBoolean(HPIApp.Prefs.SHARED_KEY_RUN_SERVICE, false);\n if (runService) {\n HPIApp.getAppContext().startService(new Intent(HPIApp.getAppContext(), StepService.class));\n } else {\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n }\n default:\n break;\n }\n }\n };\n\n userSharedPreferences.registerOnSharedPreferenceChangeListener(userPreferenceChangeListener);\n }", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "@Override\n protected void onResume() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.registerOnSharedPreferenceChangeListener(this);\n super.onResume();\n }", "private void initPreferencesListener()\n {\n Activator.getDefault().getPreferenceStore().addPropertyChangeListener( new IPropertyChangeListener()\n {\n /* (non-Javadoc)\n * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)\n */\n public void propertyChange( PropertyChangeEvent event )\n {\n if ( authorizedPrefs.contains( event.getProperty() ) )\n {\n if ( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING == event.getProperty() )\n {\n view.reloadViewer();\n }\n else\n {\n view.refresh();\n }\n }\n }\n } );\n }", "@Override\n public void onResume() {\n super.onResume();\n\n getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(this);\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if(key.equals(DEFAULT_QUERY_PATH)){\n sortOrderOfResults = sharedPreferences.getString(key, AppUtilities.QUERY_PATH_POPULAR);\n } else if(key.equals(getString(R.string.pref_genre_key))){\n preferredMovieGenre = sharedPreferences.getString(key,\n getString(R.string.pref_genre_any_value));\n } else if(key.equals(getString(R.string.pref_earliest_year_key))){\n preferredStartYear = sharedPreferences.getString(key,\n getString(R.string.pref_earliest_year_default));\n } else if(key.equals(getString(R.string.pref_latest_year_key))){\n preferredEndYear = sharedPreferences.getString(key,\n getString(R.string.pref_latest_year_default));\n } else if(key.equals(getString(R.string.pref_save_on_exit_key))){\n persistPreferences = sharedPreferences.getBoolean(key,\n getResources().getBoolean(R.bool.pref_save_on_exit_default));}\n\n // update boolean value\n checkForDefaultSharedPreferences();\n\n // call for reload\n // Note: reload is potentially necessary after any change, except for the preference\n // that controls change on exit\n if(!key.equals(getString(R.string.pref_save_on_exit_key))){\n performNewQuery();\n }\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(this);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(preference.getContext());\n String preferenceString = preferences.getString(preference.getKey(), \"\");\n onPreferenceChange(preference, preferenceString);\n }", "@Override\n\t@SuppressWarnings(\"deprecation\")\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tgetPreferenceScreen().getSharedPreferences()\n\t\t\t\t.registerOnSharedPreferenceChangeListener(this);\n\n\t}", "public synchronized void onSharedPreferenceChanged(SharedPreferences sharedPrefs, String key){\n\t\tif(key.equals(\"vibrate_feedback\")){\n\t\t\tLog.d(TAG_APPLICATION,\"Vibrate setting changed\");\n\t\t\tisVibrateFeedbackOn = sharedPrefs.getBoolean(key,false);\n\t\t\tLog.d(TAG_APPLICATION, \"vibrate value changed to \"+isVibrateFeedbackOn);\n\t\t}\n\t\tif(key.equals(\"alert_feedback\")){\n\t\t\tLog.d(TAG_APPLICATION,\"Alert setting changed\");\n\t\t\tisSoundFeedbackOn = sharedPrefs.getBoolean(key, false);\n\t\t\tLog.d(TAG_APPLICATION, \"Alert setting changed to \"+isSoundFeedbackOn);\n\t\t}\n\t\tif(key.equals(\"set_threshold\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_threshold\", \"3.0\").equals(\"\"))){\n\t\t\t\tthresholdSetting = Float.parseFloat(sharedPrefs.getString(\"set_threshold\", \"3.0\")); // getting changed threshold setting from shared preference\n\t\t\t\tLog.d(TAG_APPLICATION, \"threshold Setting changed to \"+thresholdSetting);\n\t\t\t} else\n\t\t\t\tthresholdSetting = 3.0f;\n\t\t}\n\t\tif(key.equals(\"set_height\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_height\", \"1.83\").equals(\"\"))){\n\t\t\t\tpersonsHeight = Float.parseFloat(sharedPrefs.getString(\"set_height\", \"1.83\"));\n\t\t\t\t//Segment.initialCross[0][2] = 100*personsHeight*3/(8*GRID_ROWS*2); // getting changed height setting from shared preference\n\t\t\t\t//Segment.initialCross[2][2] = -100*personsHeight*3/(8*GRID_ROWS*2);\n\t\t\t\t//Log.d(TAG_APPLICATION, \"acc segment distance changed to \"+accSegmentDistance+\" Persons height: \"+personsHeight+\"$\"+ 100*personsHeight*3/(8*GRID_ROWS*2)+\"$segments coords: \"+Segment.initialCross[0][2]+\" \"+Segment.initialCross[1][2]+\" \"+Segment.initialCross[2][2]+\" \"+Segment.initialCross[3][2]);\n\t\t\t} else{\n\t\t\t\t//Segment.initialCross[0][2] = (float)100*1.83f*3/(8*GRID_ROWS*2); // getting changed height setting from shared preference\n\t\t\t // Segment.initialCross[2][2] = (float)-100*1.83f*3/(8*GRID_ROWS*2)key.;\n\t\t\t}\n\t\t}\n\t\tif(key.equals(\"set_statistics_interval\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_statistics_interval\", \"1.0\").equals(\"\"))){\n\t\t\t\tstatisticsIntervalSetting=Float.parseFloat(sharedPrefs.getString(\"set_statistics_interval\", \"1.0\"));\n\t\t\t\tLog.d(\"statistics updated\",\"\"+statisticsIntervalSetting);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstatisticsIntervalSetting=1.0f;\n\t\t\t\tLog.d(\"statistics updated\",\"\"+statisticsIntervalSetting);\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\tif(key.equals(\"select_algorithm\")){\n\t\t\talgorithm = sharedPrefs.getString(\"select_algorithm\", \"distances\");\n\t\t\tLog.d(TAG_APPLICATION, \"algorithm select setting changed to \"+algorithm );\n\t\t}\n\t\tif(key.equals(\"log_enable\")){\n\t\t\tisLoggingFeatureEnabled=sharedPrefs.getBoolean(key,false);\n\t\t\tLog.d(TAG_APPLICATION, \"log enable setting changed to \"+ isLoggingFeatureEnabled);\n\t\t\t\n\t\t}\n\t\tif(key.equals(\"set_angle1\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_angle1\", \"0.0\").equals(\"\"))){\n\t\t\t\tZ_ANGLE1 = Float.parseFloat(sharedPrefs.getString(\"set_angle1\", \"0.0\")); // getting changed threshold setting from shared preference\n\t\t\t\tLog.d(TAG_APPLICATION, \"angle1 changed to \"+Z_ANGLE1);\n\t\t\t} else{\n\t\t\t\tZ_ANGLE1 = 0.0f;\n\t\t }\n\t\t\tfor(int i=0;i<GRID_ROWS;i++){\n\t\t\t\tcurrentStateSegments[i][0].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE1));\n\t\t\t\trefferenceStateSegments[i][0].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE1));\n\t\t\t\trefferenceStateSegmentsInitial[i][0].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE1));\n\t\t\t\t\n\t\t\t\tcurrentStateSegments[i][6].setSegmentZRotation((float)Math.toRadians(Z_ANGLE1));\n\t\t\t\trefferenceStateSegments[i][6].setSegmentZRotation((float)Math.toRadians(Z_ANGLE1));\n\t\t\t\trefferenceStateSegmentsInitial[i][6].setSegmentZRotation((float)Math.toRadians(Z_ANGLE1));\n\t\t\t}\n\t\t}\n\t\tif(key.equals(\"set_angle2\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_angle2\", \"0.0\").equals(\"\"))){\n\t\t\t\tZ_ANGLE2 = Float.parseFloat(sharedPrefs.getString(\"set_angle2\", \"0.0\")); // getting changed threshold setting from shared preference\n\t\t\t\tLog.d(TAG_APPLICATION, \"angle2 changed to \"+Z_ANGLE2);\n\t\t\t} else{\n\t\t\t\tZ_ANGLE2 = 0.0f;\n\t\t }\n\t\t\t\n\t\t\tfor(int i=0;i<GRID_ROWS;i++){\n\t\t\t\tcurrentStateSegments[i][1].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE2));\n\t\t\t\trefferenceStateSegments[i][1].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE2));\n\t\t\t\trefferenceStateSegmentsInitial[i][1].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE2));\n\t\t\t\t\n\t\t\t\tcurrentStateSegments[i][5].setSegmentZRotation((float)Math.toRadians(Z_ANGLE2));\n\t\t\t\trefferenceStateSegments[i][5].setSegmentZRotation((float)Math.toRadians(Z_ANGLE2));\n\t\t\t\trefferenceStateSegmentsInitial[i][5].setSegmentZRotation((float)Math.toRadians(Z_ANGLE2));\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif(key.equals(\"set_angle3\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_angle3\", \"0.0\").equals(\"\"))){\n\t\t\t\tZ_ANGLE3 = Float.parseFloat(sharedPrefs.getString(\"set_angle3\", \"0.0\")); // getting changed threshold setting from shared preference\n\t\t\t\tLog.d(TAG_APPLICATION, \"angle3 changed to \"+Z_ANGLE3);\n\t\t\t} else{\n\t\t\t\tZ_ANGLE3 = 0.0f;\n\t\t }\n\t\t\t\n\t\t\tfor(int i=0;i<GRID_ROWS;i++){\n\t\t\t\tcurrentStateSegments[i][2].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE3));\n\t\t\t\trefferenceStateSegments[i][2].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE3));\n\t\t\t\trefferenceStateSegmentsInitial[i][2].setSegmentZRotation(-(float)Math.toRadians(Z_ANGLE3));\n\t\t\t\t\n\t\t\t\tcurrentStateSegments[i][4].setSegmentZRotation((float)Math.toRadians(Z_ANGLE3));\n\t\t\t\trefferenceStateSegments[i][4].setSegmentZRotation((float)Math.toRadians(Z_ANGLE3));\n\t\t\t\trefferenceStateSegmentsInitial[i][4].setSegmentZRotation((float)Math.toRadians(Z_ANGLE3));\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(key.equals(\"set_reference_row\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_reference_row\", \"1\").equals(\"\"))){\n\t\t\t\treferenceRow = Integer.parseInt(sharedPrefs.getString(\"set_reference_row\", \"1\")); // getting changed threshold setting from shared preference\n\t\t\t\tcurrentStateSegments[referenceRow][referenceCol].center[0]=0;\n\t\t\t\tcurrentStateSegments[referenceRow][referenceCol].center[1]=0;\n\t\t\t\tcurrentStateSegments[referenceRow][referenceCol].center[2]=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\trefferenceStateSegments[referenceRow][referenceCol].center[0]=0;\n\t\t\t\trefferenceStateSegments[referenceRow][referenceCol].center[1]=0;\n\t\t\t\trefferenceStateSegments[referenceRow][referenceCol].center[2]=0;\n\t\t\t\t\n\t\t\t\trefferenceStateSegmentsInitial[referenceRow][referenceCol].center[0]=0;\n\t\t\t\trefferenceStateSegmentsInitial[referenceRow][referenceCol].center[1]=0;\n\t\t\t\trefferenceStateSegmentsInitial[referenceRow][referenceCol].center[2]=0;\n\t\t\t\t\n\t\t\t\tSegment.setSegmentCenters(refferenceStateSegments, (short)getReferenceRow(), (short)getReferenceCol());\n\t\t\t\tSegment.setSegmentCenters(refferenceStateSegmentsInitial, (short)getReferenceRow(), (short)getReferenceCol());\n\t\t\t\tsaveDefaultPosture(SmartWearApplication.DEFAULT_POSTURE_FILE, refferenceStateSegments);\n\t\t\t\t\n\t\t\t\tLog.d(TAG_APPLICATION, \"reference row changed to \"+referenceRow);\n\t\t\t} else{\n\t\t\t\treferenceRow = 1;\n\t\t }\n\t\t}\n\t\t\n\t\tif(key.equals(\"set_reference_col\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_reference_col\", \"3\").equals(\"\"))){\n\t\t\t\treferenceCol = Integer.parseInt(sharedPrefs.getString(\"set_reference_col\", \"3\")); // getting changed threshold setting from shared preference\n\t\t\t\tLog.d(TAG_APPLICATION, \"reference col changed to \"+referenceCol);\n\t\t\t\t\n\t\t\t\tcurrentStateSegments[referenceRow][referenceCol].center[0]=0;\n\t\t\t\tcurrentStateSegments[referenceRow][referenceCol].center[1]=0;\n\t\t\t\tcurrentStateSegments[referenceRow][referenceCol].center[2]=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\trefferenceStateSegments[referenceRow][referenceCol].center[0]=0;\n\t\t\t\trefferenceStateSegments[referenceRow][referenceCol].center[1]=0;\n\t\t\t\trefferenceStateSegments[referenceRow][referenceCol].center[2]=0;\n\t\t\t\t\n\t\t\t\trefferenceStateSegmentsInitial[referenceRow][referenceCol].center[0]=0;\n\t\t\t\trefferenceStateSegmentsInitial[referenceRow][referenceCol].center[1]=0;\n\t\t\t\trefferenceStateSegmentsInitial[referenceRow][referenceCol].center[2]=0;\n\t\t\t\t\n\t\t\t\tSegment.setSegmentCenters(refferenceStateSegments, (short)getReferenceRow(), (short)getReferenceCol());\n\t\t\t\tSegment.setSegmentCenters(refferenceStateSegmentsInitial, (short)getReferenceRow(), (short)getReferenceCol());\n\t\t\t\tsaveDefaultPosture(SmartWearApplication.DEFAULT_POSTURE_FILE, refferenceStateSegments);\n\t\t\t} else{\n\t\t\t\treferenceCol = 3;\n\t\t }\n\t\t}\n\t\tif(key.equals(\"set_colormap_sensitivity\")){\n\t\t\tif(!(sharedPrefs.getString(\"set_colormap_sensitivity\", \"1\").equals(\"\"))){\n\t\t\t\tcolormapSensitivity = Float.parseFloat(sharedPrefs.getString(\"set_colormap_sensitivity\", \"1\")); // getting changed threshold setting from shared preference\n\t\t\t\tLog.d(TAG_APPLICATION, \"colormap sensitivity changed to \"+colormapSensitivity);\n\t\t\t} else{\n\t\t\t\tcolormapSensitivity = 1;\n\t\t }\n\t\t}\n\t}", "public boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\tif(preference.getKey().equals(\"autoattach_value\")){\n\t\t\tMessage m = mHandler.obtainMessage(engconstents.ENG_AT_SETAUTOATTACH, 0, 0, 0);\n\t\t\tmHandler.sendMessage(m);\n\t\t\thasPara = true;\n\t\t\treturn true;\n\t\t}else\n\t\treturn false;\n\t}", "@Override // ListSubMenu.Listener IMPL\t\t&& TimeIntervalPopup.Listener IMPL \n // Hit when an item in the second-level popup gets selected\n public void onListPrefChanged(ListPreference pref) {\n onSettingChanged(pref);\n //closeView();\n }", "@Override\r\n\tpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,\r\n\t\t\tString key) {\n\t\tupdatePrefSummary(findPreference(key));\r\n\r\n\t}", "public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\r\n if (AccountSettings.this.mSomethingIsBeingProcessed) {\r\n return;\r\n }\r\n if (onSharedPreferenceChanged_busy || !MyPreferences.isInitialized()) {\r\n return;\r\n }\r\n onSharedPreferenceChanged_busy = true;\r\n\r\n try {\r\n String value = \"(not set)\";\r\n if (sharedPreferences.contains(key)) {\r\n try {\r\n value = sharedPreferences.getString(key, \"\");\r\n } catch (ClassCastException e) {\r\n try {\r\n value = Boolean.toString(sharedPreferences.getBoolean(key, false));\r\n } catch (ClassCastException e2) {\r\n value = \"??\";\r\n }\r\n }\r\n }\r\n MyLog.d(TAG, \"onSharedPreferenceChanged: \" + key + \"='\" + value + \"'\");\r\n\r\n // Here and below:\r\n // Check if there are changes to avoid \"ripples\": don't set new value if no changes\r\n \r\n if (key.equals(MyAccount.Builder.KEY_ORIGIN_NAME)) {\r\n if (state.getMyAccount().getOriginName().compareToIgnoreCase(mOriginName.getValue()) != 0) {\r\n // If we have changed the System, we should recreate the Account\r\n state.builder = MyAccount.Builder.valueOf(mOriginName.getValue() + \"/\" + state.getMyAccount().getUsername());\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_OAUTH)) {\r\n if (state.getMyAccount().isOAuth() != mOAuth.isChecked()) {\r\n state.builder.setOAuth(mOAuth.isChecked());\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_USERNAME_NEW)) {\r\n String usernameNew = mEditTextUsername.getText();\r\n if (usernameNew.compareTo(state.getMyAccount().getUsername()) != 0) {\r\n boolean oauth = state.getMyAccount().isOAuth();\r\n String originName = state.getMyAccount().getOriginName();\r\n // TODO: maybe this is not enough...\r\n state.builder = MyAccount.Builder.valueOf(originName + \"/\" + usernameNew);\r\n state.builder.setOAuth(oauth);\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(ConnectionBasicAuth.KEY_PASSWORD)) {\r\n if (state.getMyAccount().getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n state.builder.setPassword(mEditTextPassword.getText());\r\n showUserPreferences();\r\n }\r\n }\r\n } finally {\r\n onSharedPreferenceChanged_busy = false;\r\n }\r\n }", "@Override\n\t\t\tpublic boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\t\t\t\n\t\t\t\tprefName.setSummary((CharSequence) newValue);\n\t\t\t\treturn true;\n\t\t\t}", "public void onActive() {\n super.onActive();\n this.f5335l.registerOnSharedPreferenceChangeListener(this);\n }", "@Override\n public boolean onPreferenceChange(final Preference preference, final Object newValue) {\n if(preference == mPrefMinistry && mPrefMinistry != null) {\n // we need to manually set the preference before updating summary to allow summary to be updated based on correct state\n mPrefMinistry.setValue(newValue != null ? newValue.toString() : null);\n\n // update summary as necessary\n updateMinistryPrefSummary();\n\n // we already updated the value, no need to update it again\n return false;\n }\n\n // this should probably never happen, but if it does we want to let the Preference update normally\n return true;\n }", "protected void onSharedPreferenceChangedExtended(SharedPreferences prefs,\n String key) {\n // no additional preferences, maybe the shopping list (in the future)\n }", "@Override\n public void onSharedPreferenceChanged(\n SharedPreferences sharedPreferences, String key) {\n preferencesChanged = true; // user changed app setting\n\n if (key.equals(USER_NAME)) {\n //update user name\n user.setName(sharedPreferences.getString(USER_NAME, \"\"));\n //update user name to firebase database\n databaseHandler.updateUserData(user.getUserId(), user.getUserName(),\n MessageEnum.UPDATE_USER_NAME);\n\n } else if (key.equals(LOCATION)) {\n //update user location\n user.setLocation(sharedPreferences.getString(LOCATION, \"\"));\n databaseHandler.updateUserData(user.getUserId(), user.getUserLocation(),\n MessageEnum.UPDATE_USER_LOCATION);\n }\n }", "@Override\r\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\r\n if (somethingIsBeingProcessed) {\r\n return;\r\n }\r\n if (onSharedPreferenceChanged_busy || !MyPreferences.isInitialized()) {\r\n return;\r\n }\r\n onSharedPreferenceChanged_busy = true;\r\n \r\n try {\r\n String value = \"(not set)\";\r\n if (sharedPreferences.contains(key)) {\r\n try {\r\n value = sharedPreferences.getString(key, \"\");\r\n } catch (ClassCastException e) {\r\n try {\r\n value = Boolean.toString(sharedPreferences.getBoolean(key, false));\r\n } catch (ClassCastException e2) {\r\n value = \"??\";\r\n }\r\n }\r\n }\r\n MyLog.d(TAG, \"onSharedPreferenceChanged: \" + key + \"='\" + value + \"'\");\r\n \r\n // Here and below:\r\n // Check if there are changes to avoid \"ripples\": don't set new\r\n // value if no changes\r\n \r\n if (key.equals(MyAccount.Builder.KEY_ORIGIN_NAME)) {\r\n if (state.getAccount().getOriginName().compareToIgnoreCase(mOriginName.getValue()) != 0) {\r\n // If we have changed the System, we should recreate the\r\n // Account\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(state.getAccount().isOAuth()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_OAUTH)) {\r\n if (state.getAccount().isOAuth() != mOAuth.isChecked()) {\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(mOAuth.isChecked()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_USERNAME_NEW)) {\r\n String usernameNew = mEditTextUsername.getText();\r\n if (usernameNew.compareTo(state.getAccount().getUsername()) != 0) {\r\n boolean isOAuth = state.getAccount().isOAuth();\r\n String originName = state.getAccount().getOriginName();\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(originName, usernameNew).toString(),\r\n TriState.fromBoolean(isOAuth));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(Connection.KEY_PASSWORD)) {\r\n if (state.getAccount().getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n state.builder.setPassword(mEditTextPassword.getText());\r\n showUserPreferences();\r\n }\r\n }\r\n } finally {\r\n onSharedPreferenceChanged_busy = false;\r\n }\r\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,\n\t\t\tString key) {\n\t\t// 갱신 시간 간격\n\t\tif (key.equals(IBRConstants.KEY_PREF_REFRESH_INTERVAL)) {\n\t\t\tPreference refreshInterval = findPreference(key);\n\t\t\tint position = Integer.parseInt(sharedPreferences\n\t\t\t\t\t.getString(key, \"\"));\n\t\t\t// Set summary to be the user-description for the selected value\n\t\t\trefreshInterval.setSummary(mRefreshIntervals[position]);\n\n setLocationFinderRefreshInterval(position);\n\n\t\t} else if (key.equals(IBRConstants.KEY_PREF_FACEBOOK_PROFILE)) {\n Preference refreshInterval = findPreference(key);\n boolean isChecked =sharedPreferences\n .getBoolean(key, true);\n\n sendFacebookProfilePolicyToServer(isChecked);\n\n }\n\t\t// else if (key.equals(PBNConstants.KEY_PREF_ZOOM_LEVEL)) {\n\t\t// eventLabel = \"keep_draft\";\n\t\t// boolean value = sharedPreferences.getBoolean(key, false);\n\t\t// eventValue = (value) ? 1 : 0;\n\t\t//\n\t\t// }\n\t}", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(this);\n // We also read the current value of the preference stored in the SharedPreferences on the device,\n // and display that in the preference summary (so that the user can see the current value of the preference):\n SharedPreferences preferences =\n PreferenceManager.getDefaultSharedPreferences(preference.getContext());\n String preferenceString = preferences.getString(preference.getKey(), \"\");\n onPreferenceChange(preference, preferenceString);\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n String difficultySummary = \"Username: \" + newValue;\n usernamePref.setSummary(difficultySummary);\n // Since we are handling the pref, we must save it\n SharedPreferences.Editor ed = sharedPrefs.edit();\n name = newValue.toString();\n ed.putString(\"user_id\", newValue.toString());\n ed.apply();\n return true;\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(getString(R.string.pref_show_distance_key))) {\n boolean isChecked = sharedPreferences.getBoolean(getString(R.string.pref_show_distance_key),\n Boolean.parseBoolean(getString(R.string.pref_show_distance_default)));\n storeOnlyShowLocationDataInDatabase(isChecked);\n }\n }", "@Override\r\n \tpublic void onSharedPreferenceChanged(SharedPreferences sp, String key) {\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Pref \" + key + \"changed... reading new value...\");\r\n \t\t}\r\n \t\tif (key.equals(res.getString(R.string.pref_data_file_key))) {\r\n \t\t\t// get new value\r\n \t\t\tString newPath = sp.getString(\r\n \t\t\t\t\tres.getString(R.string.pref_data_file_key), null);\r\n \t\t\tif (localLOGV) {\r\n \t\t\t\tLog.i(TAG, \"New value \" + String.valueOf(newPath));\r\n \t\t\t}\r\n \t\t\t// change value\r\n \t\t\tsetDataFileChanged(newPath);\r\n \t\t} else if (key.equals(res.getString(R.string.pref_data_file_gzip))) {\r\n \t\t\t// get new value\r\n \t\t\tgzipFile = sp.getBoolean(\r\n \t\t\t\t\tres.getString(R.string.pref_data_file_gzip), false);\r\n \t\t\tif (localLOGV) {\r\n \t\t\t\tLog.i(TAG, \"New value \" + String.valueOf(gzipFile));\r\n \t\t\t}\r\n \t\t\t// Set to reload file\r\n \t\t\treloadFile = true;\r\n \t\t} \r\n \t}", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger listener with preference's current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "@Override\n protected void onPause() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.unregisterOnSharedPreferenceChangeListener(this);\n super.onPause();\n }", "@Override\n protected void onPause() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.unregisterOnSharedPreferenceChangeListener(this);\n super.onPause();\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n Preference preference = findPreference(key);\n if (preference instanceof ListPreference) { // if the preference is a ListPreference\n ListPreference listPreference = (ListPreference) preference; // cast it to a ListPreference\n int prefIndex = listPreference.findIndexOfValue(sharedPreferences.getString(key, \"\")); // The index of the key that changed\n // now update the changed value's summary\n preference.setSummary(prefIndex >= 0\n ? listPreference.getEntries()[prefIndex]\n : null);\n } else { // Not a ListPreference, update the summary directly\n preference.setSummary(sharedPreferences.getString(key, \"\"));\n }\n }", "public void onLaunchPreferenceActivitySelected(Context context);", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(KEY_PREF_RUN_ON_START)) {\n CheckBoxPreference runOnStartPref = (CheckBoxPreference) findPreference(key);\n if(runOnStartPref.isChecked()) {\n requestPermission(getActivity(), PermissionsMapping.REBOOT_NOTIF);\n }\n } else if(key.equals(KEY_PREF_KEEP_SCREEN_ON)){\n CheckBoxPreference pref = (CheckBoxPreference) findPreference(key);\n if(pref.isChecked()) {\n getActivity().findViewById(R.id.main_layout).setKeepScreenOn(true);\n } else {\n getActivity().getParent().findViewById(R.id.main_layout).setKeepScreenOn(false);\n }\n }\n }", "@Override\n public void onPause() {\n super.onPause();\n getPreferenceManager().getSharedPreferences().\n unregisterOnSharedPreferenceChangeListener(this);\n }", "@Override\r\n\t\t\t\tpublic boolean onPreferenceChange(Preference preference,\r\n\t\t\t\t\t\tObject value) {\n\t\t\t\t\tif(!\"pref_key_allow_typedefine_commond\".equals(preference.getKey())){\r\n\t\t\t\t\t\tString valueStr=(String) value;\r\n\t\t\t\t\t\tPattern pattern=Pattern.compile(regEx);\r\n\t\t\t\t\t\tMatcher m=pattern.matcher(valueStr);\r\n\t\t\t\t\t\tif(m.matches()){\r\n\t\t\t\t\t\t\tpreference.setSummary(valueStr);\r\n\t\t\t\t\t\t\tToast.makeText(getActivity(), \"设置成功!\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tToast.makeText(getActivity(), \"格式不正确,请重新输入\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}", "public boolean onPreferenceChange(android.preference.Preference r8, java.lang.Object r9) {\n /*\n r7 = this;\n r2 = 0;\n r3 = 1;\n r4 = com.whatsapp.DialogToastActivity.f;\n r0 = android.os.Build.MODEL;\n r1 = z;\n r5 = 5;\n r1 = r1[r5];\n r0 = r0.contains(r1);\n if (r0 != 0) goto L_0x001d;\n L_0x0011:\n r0 = android.os.Build.MODEL;\n r1 = z;\n r1 = r1[r2];\n r0 = r0.contains(r1);\n if (r0 == 0) goto L_0x0032;\n L_0x001d:\n r0 = r9.toString();\n r1 = z;\n r5 = 4;\n r1 = r1[r5];\n r0 = r0.equals(r1);\n if (r0 != 0) goto L_0x0032;\n L_0x002c:\n r0 = r7.a;\n r1 = 7;\n r0.showDialog(r1);\n L_0x0032:\n r0 = r8;\n r0 = (android.preference.ListPreference) r0;\n r1 = r9;\n r1 = (java.lang.String) r1;\n r1 = r0.findIndexOfValue(r1);\n r0 = r0.getEntries();\n r0 = r0[r1];\n r0 = r0.toString();\n r8.setSummary(r0);\n r1 = r8.getKey();\n r0 = -1;\n r5 = r1.hashCode();\n switch(r5) {\n case -1806012668: goto L_0x0059;\n case -1040361276: goto L_0x0067;\n default: goto L_0x0055;\n };\n L_0x0055:\n switch(r0) {\n case 0: goto L_0x0074;\n case 1: goto L_0x0089;\n default: goto L_0x0058;\n };\n L_0x0058:\n return r3;\n L_0x0059:\n r5 = z;\n r6 = 2;\n r5 = r5[r6];\n r5 = r1.equals(r5);\n if (r5 == 0) goto L_0x0055;\n L_0x0064:\n if (r4 == 0) goto L_0x009b;\n L_0x0066:\n r0 = r2;\n L_0x0067:\n r2 = z;\n r5 = 6;\n r2 = r2[r5];\n r1 = r1.equals(r2);\n if (r1 == 0) goto L_0x0055;\n L_0x0072:\n r0 = r3;\n goto L_0x0055;\n L_0x0074:\n r0 = r8.getContext();\n r1 = com.whatsapp.a3b.a(r0);\n r0 = z;\n r2 = 3;\n r2 = r0[r2];\n r0 = r9;\n r0 = (java.lang.String) r0;\n r1.e(r2, r0);\n if (r4 == 0) goto L_0x0058;\n L_0x0089:\n r0 = r8.getContext();\n r0 = com.whatsapp.a3b.a(r0);\n r1 = z;\n r1 = r1[r3];\n r9 = (java.lang.String) r9;\n r0.e(r1, r9);\n goto L_0x0058;\n L_0x009b:\n r0 = r2;\n goto L_0x0055;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.awk.onPreferenceChange(android.preference.Preference, java.lang.Object):boolean\");\n }", "private void checkPreferences() {\n final Editor editor = AppUtils.getInstance().pPrefs.edit();\n boolean changed = false;\n if (AppUtils.getInstance().pPrefs.getString(Api.PREF_MODE, \"\").length() == 0) {\n editor.putString(Api.PREF_MODE, Api.MODE_WHITELIST);\n changed = true;\n }\n if (changed)\n editor.commit();\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(this);\n // Trigger the listener immediately with the preference's current value.\n onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n System.out.println(key);\n Preference selectedPref = this.findPreference(key);\n CheckBoxPreference gainPref = ((CheckBoxPreference)this.findPreference(\"checkboxPref_gain\"));\n CheckBoxPreference losePref = ((CheckBoxPreference)this.findPreference(\"checkboxPref_lose\"));\n CheckBoxPreference maintainPref = ((CheckBoxPreference)this.findPreference(\"checkboxPref_maintain\"));\n /*if(key.equals(\"checkboxPref_gain\")){\n //gainPref.setChecked(true);\n losePref.setChecked(false);\n maintainPref.setChecked(false);\n }else if(key.equals(\"checkboxPref_lose\")){\n // losePref.setChecked(true);\n maintainPref.setChecked(false);\n gainPref.setChecked(false);\n } else if(key.equals(\"checkboxPref_maintain\"))\n {\n //maintainPref.setChecked(true);\n losePref.setChecked(false);\n gainPref.setChecked(false);\n }\n*/\n }", "void bindPreferenceSummaryToValue(Preference preference);", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(getString(R.string.pref_driver_key))) {\n setDriver(sharedPreferences);\n } else if (key.equals(getString(R.string.pref_track_key))) {\n setTrack(sharedPreferences);\n }\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference, PreferenceManager.getDefaultSharedPreferences(preference.getContext()).getString(preference.getKey(), \"\"));\n }", "protected void onPref(String name, String value){}", "public void handlePreferences() {\n displayPrefs ();\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(this);\n\n // Trigger the listener immediately with the preference's\n // current value.\n onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference\n .setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager.getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "@Override\n protected void onPause() {\n getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);\n \n super.onPause();\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n updateView(key);\n }", "@Override\n public boolean onPreferenceTreeClick(Preference preference) {\n\n String key = preference.getKey();\n\n if (key != null && key.equals(getString(R.string.settings_activity_elo_values))) {\n Intent startEloValuesActivity = new Intent(getActivity(), EloValuesActivity.class);\n startActivity(startEloValuesActivity);\n return true;\n\n }\n\n return super.onPreferenceTreeClick(preference);\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\r\n // Set the listener to watch for value changes.\r\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\r\n\r\n // Trigger the listener immediately with the preference's\r\n // current value.\r\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\r\n PreferenceManager\r\n .getDefaultSharedPreferences(preference.getContext())\r\n .getString(preference.getKey(), \"\")\r\n );\r\n }", "@Override\n\tpublic void onPause() {\n\n\t\t// Save the current setting for updates\n\t\tmEditor.putBoolean(LocationUtils.KEY_UPDATES_REQUESTED, mUpdatesRequested);\n\t\tmEditor.commit();\n\n\t\tsuper.onPause();\n\t}", "private static void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "void beforeUpdate(PreferenceBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeUpdate(pObject);\n }", "private void getPrefStatus() {\n Log.i(TAG, \"getPrefStatus()\");\n mPref = getSharedPreferences(PREF_NAME, Context.MODE_WORLD_READABLE\n | Context.MODE_WORLD_WRITEABLE);\n mHasGotPref = true;\n for (int i = SPEED_DIAL_MIN; i < SPEED_DIAL_MAX + 1; ++i) {\n mPrefNumState[i] = mPref.getString(String.valueOf(i), \"\");\n mPrefMarkState[i] = mPref.getInt(String.valueOf(offset(i)), -1);\n }\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager.getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "@Override\n\tpublic boolean onPreferenceClick(Preference arg0) {\n\t\tfireBCastSubScreen();\n\t\treturn true;\n\n\t}", "private void bindPreferenceSummaryToValue(Preference preference) {\n\t\tpreference.setOnPreferenceChangeListener(this);\n\t\tonPreferenceChange(preference, PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(preference.getContext())\n\t\t\t\t.getString(preference.getKey(), \"\"));\n\t}", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "@Override\n\t@SuppressWarnings(\"deprecation\")\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tgetPreferenceScreen().getSharedPreferences()\n\t\t\t\t.unregisterOnSharedPreferenceChangeListener(this);\n\t}", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "public void registerListener(PreferenceListener listener) {\n this.listener = listener;\n }", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }", "protected void changePreferences(CheckBox preference, CheckBox[] preferenceButtons) {\n SharedPreferences preferences = getApplicationContext().getSharedPreferences(\"Preferences\", Context.MODE_PRIVATE);\n Editor prefEdit = preferences.edit();\n if (preference.isChecked()) {\n prefEdit.putBoolean(String.valueOf(preference.getId()), true).apply();\n } else {\n prefEdit.putBoolean(String.valueOf(preference.getId()), false).apply();\n }\n\n for (CheckBox preferenceButton : preferenceButtons) {\n if (preferences.getBoolean(String.valueOf(preferenceButton.getId()), false))\n return;\n }\n prefEdit.putBoolean(String.valueOf(preferenceButtons[1].getId()), true).apply();\n checkBoxIfInPreference(preferenceButtons[1]);\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n final Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);\n // This will setup the Home and Search affordance\n intent.putExtra(\":settings:show_fragment_as_subsetting\", true);\n mPrefActivity.startActivity(intent);\n return true;\n }", "public static void logPreferenceState() {\n RecordHistogram.recordEnumeratedHistogram(\"Search.ContextualSearchPreferenceState\",\n getPreferenceValue(), ContextualSearchPreference.NUM_ENTRIES);\n }", "@Override\n protected void onProximityServiceConnected() {\n if (mPreferenceScreen != null) {\n populatePreferences(getService().getProbeFuncs());\n }\n }", "public interface SettingsListener {\n void changed();\n}", "protected abstract IPreferenceStore getPreferenceStore();", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // SetSlot the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n\n if (key.equals(getString(R.string.pref_location_key))) {\n\n String val = sharedPreferences.getString(getString(R.string.pref_location_key),\n getString(R.string.pref_location_lagos_value));\n if (val.equals(getString(R.string.pref_location_lagos_value))) {\n GITHUB_REQUEST_URL = getString(R.string.lagos_github_url);\n } else if (val.equals(getString(R.string.pref_location_calabar_value))) {\n GITHUB_REQUEST_URL = getString(R.string.calabar_github_url);\n } else if (val.equals(getString(R.string.pref_location_portharcourt_value))) {\n GITHUB_REQUEST_URL = getString(R.string.portharcourt_github_url);\n } else if (val.equals(getString(R.string.pref_location_abuja_value))) {\n GITHUB_REQUEST_URL = getString(R.string.abuja_github_url);\n } else {\n GITHUB_REQUEST_URL = getString(R.string.uyo_github_url);\n }\n\n\n if (isConnected) {\n loadingIndicator.setVisibility(View.VISIBLE);\n\n // Initialize the loader. Pass in the int ID constant defined above and pass in null for\n // the bundle. Pass in this activity for the LoaderCallbacks parameter (which is valid\n // because this activity implements the LoaderCallbacks interface).\n loaderManager.restartLoader(DEVELOPER_LOADER_ID, null, this);\n\n\n } else {\n loadingIndicator.setVisibility(View.GONE);\n mEmptyStateTextView.setText(R.string.no_internet_connection);\n }\n }\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n switch (key) {\n\n case MZ_SHOW:\n showMZ(sharedPreferences.getBoolean(MZ_SHOW, true));\n break;\n\n case PREF_MZ_DELETE_FLAG:\n if (sharedPreferences.getBoolean(PREF_MZ_DELETE_FLAG, false)){\n removeMZ();\n }\n sharedPreferences.edit().putBoolean(PREF_MZ_DELETE_FLAG, false).apply();\n break;\n\n case GPS_ACTIVATED:\n gps();\n break;\n\n }\n\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String s) {\n if (s.equals(Utils.KEY_REQUESTING_LOCATION_UPDATES)) {\n setButtonsState(sharedPreferences.getBoolean(Utils.KEY_REQUESTING_LOCATION_UPDATES,\n false));\n }\n }", "@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n if (preference == mSubMenuVoicemailSettings) {\n return true;\n } else if (preference == mButtonDTMF) {\n return true;\n } else if (preference == mButtonTTY) {\n return true;\n } else if (preference == mButtonAutoRetry) {\n android.provider.Settings.System.putInt(mPhone.getContext().getContentResolver(),\n android.provider.Settings.System.CALL_AUTO_RETRY,\n mButtonAutoRetry.isChecked() ? 1 : 0);\n return true;\n } else if (preference == mButtonHAC) {\n int hac = mButtonHAC.isChecked() ? 1 : 0;\n // Update HAC value in Settings database\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.HEARING_AID, hac);\n \n // Update HAC Value in AudioManager\n mAudioManager.setParameter(HAC_KEY, hac != 0 ? HAC_VAL_ON : HAC_VAL_OFF);\n return true;\n } else if (preference == mVoicemailSettings) {\n if (preference.getIntent() != null) {\n this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);\n } else {\n updateVoiceNumberField();\n }\n return true;\n }\n return false;\n }", "@Override\n public boolean onPreferenceTreeClick(Preference preference) {\n \n boolean result = true; \n LOG(\"onPreferenceTreeClick() chageState = \" + chageState);\n chageState = true;\n\n return result;\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (key.equals(KEY_SWITCH_PREFERENCE)) {\n boolean bool = sharedPreferences.getBoolean(key, true);\n if (bool == Boolean.FALSE) {\n NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n manager.cancelAll();\n }\n }\n }", "@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n return false;\n }", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n Preference pref = findPreference(\"email\");\n \n EditTextPreference editTextPreference=(EditTextPreference)findPreference(\"email\"); \n \n if(!check(editTextPreference.getText())){\n \t \n \t editTextPreference.setText(\"\");\n \t AlertDialog alertDialog = new AlertDialog.Builder(AppPreferences.this).create();\n \talertDialog.setTitle(\"Erreur...\");\n \talertDialog.setMessage(\"Email non valide\");\n \talertDialog.show();\n }\n \n \n\n }", "public void onInactive() {\n super.onInactive();\n this.f5335l.unregisterOnSharedPreferenceChangeListener(this);\n }", "protected void onResume () {\n super.onResume();\n this.verifyPreferences ();\n }", "@Override\n public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n setPreferencesFromResource(R.xml.preferences, rootKey);\n\n Preference themePreference = findPreference(\"dark_theme\");\n if(themePreference != null) {\n themePreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n mainActivity.toggleTheme((boolean) newValue);\n return true;\n }\n });\n }\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tsdPref.registerOnSharedPreferenceChangeListener(this);\r\n\t\tIntentFilter iFilter = new IntentFilter(BROADCAST_ACTION);\r\n\t\tregisterReceiver(br, iFilter);\r\n\t}", "@Override\n\tprotected void onPause() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onPause();\n\n\t\tsavePreferences();\n\t}", "public void addPropertyChangeListener (PropertyChangeListener l)\n { pcs.addPropertyChangeListener (l); }", "@Override\r\n\t\tpublic boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,\r\n\t\t\t\tPreference preference) {\n\t\t\tif(\"pref_key_allow_typedefine_commond\".equals(preference.getKey()))\r\n\t\t\t\tinitPreferenceCategory(preference.getKey());\r\n\t\t\tpreference.setOnPreferenceChangeListener(new OnPreferenceChangeListener(){\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic boolean onPreferenceChange(Preference preference,\r\n\t\t\t\t\t\tObject value) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\t\tLog.i(Tag, \"onPreferenceChange\");\r\n\t\t\t\t\tif(!\"pref_key_allow_typedefine_commond\".equals(preference.getKey())){\r\n\t\t\t\t\t\tString valueStr=(String) value;\r\n\t\t\t\t\t\tPattern pattern=Pattern.compile(regEx);\r\n\t\t\t\t\t\tMatcher m=pattern.matcher(valueStr);\r\n\t\t\t\t\t\tif(m.matches()){\r\n\t\t\t\t\t\t\tpreference.setSummary(valueStr);\r\n\t\t\t\t\t\t\tToast.makeText(getActivity(), \"设置成功!\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tToast.makeText(getActivity(), \"格式不正确,请重新输入\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\treturn super.onPreferenceTreeClick(preferenceScreen, preference);\r\n\t\t}", "public void addListener(PropertyChangeListener listener, String propertyType);", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(null);\n setContentView(R.layout.activity_setting);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n //set up pref listener\n if (fragment == null) {\n fragment = new SettingFragment();\n getFragmentManager()\n .beginTransaction()\n .replace(android.R.id.content, fragment)\n .commit();\n getFragmentManager().executePendingTransactions();\n }\n sharedP = PreferenceManager\n .getDefaultSharedPreferences(SettingActivity.this);\n final boolean pref_use_map = sharedP.getBoolean(\"pref_use_map\", false);\n final int pref_upload = Integer.parseInt(sharedP.getString(\"pref_upload_mode\", \"0\"));\n final boolean pref_in_team = sharedP.getBoolean(\"pref_in_team\", false);\n hideIfNotInTeam(pref_in_team);\n hideIfUsingMap(pref_use_map);\n hideIfManual(pref_upload);\n if (sharedPreferenceChangeListener == null) {\n sharedPreferenceChangeListener = new SharedPreferences.OnSharedPreferenceChangeListener() {\n @Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n switch (key.toLowerCase()) {\n case \"pref_in_team\":\n hideIfNotInTeam(sharedPreferences.getBoolean(key, false));\n break;\n case \"pref_use_map\":\n hideIfUsingMap(sharedPreferences.getBoolean(key, false));\n break;\n case \"pref_battery\":\n final String pref_battery = sharedPreferences.getString(key, \"\");\n ServiceController.allowBattery = Integer.parseInt(pref_battery);\n if ((ServiceController.allowBattery != 0)\n && ((ServiceController.resourceManager == null)\n || (!ServiceController.resourceManager.isAlive()))) {\n Log.e(\"SETT\", \"restart resource manger bat=\" + ServiceController.allowBattery);\n ServiceController.resourceManager = new ResourceManager(SettingActivity.this);\n ServiceController.resourceManager.start();\n }\n break;\n case \"pref_kill_ap_no_gps\":\n final String pref_kill_ap_no_gps = sharedPreferences.getString(key, \"\");\n ServiceController.allowNoLocation = Integer.parseInt(pref_kill_ap_no_gps);\n if ((ServiceController.allowNoLocation != 0)\n && ((ServiceController.resourceManager == null)\n || (!ServiceController.resourceManager.isAlive()))) {\n Log.e(\"SETT\", \"restart resource manger=\" + ServiceController.allowNoLocation);\n ServiceController.resourceManager = new ResourceManager(SettingActivity.this);\n ServiceController.resourceManager.start();\n }\n break;\n case \"pref_upload_mode\":\n final int pref_upload = Integer.parseInt(sharedPreferences.getString(key, \"\"));\n hideIfManual(pref_upload);\n break;\n case \"pref_upload_entry\":\n ServiceController.numberOfApToUpload =\n Integer.parseInt(\n sharedPreferences.getString(key, \"5000\"));\n break;\n case \"pref_show_counter\":\n ServiceController.showCounterWrapper\n .setShouldShow(sharedPreferences.getBoolean(key, false));\n break;\n case \"pref_team\":\n ServiceController.teamId = sharedPreferences.getString(key, \"\");\n if (!Utils.checkBssid(ServiceController.teamId)) {\n showAlert(getString(R.string.wrong_id_format));\n }\n break;\n case \"pref_team_tag\":\n ServiceController.tag = sharedPreferences.getString(key, \"\");\n break;\n case \"pref_public_data\":\n if (sharedPreferences.getBoolean(key, true)) {\n ServiceController.mode |= 1;\n } else {\n ServiceController.mode &= 2;\n }\n break;\n case \"pref_publish_map\":\n if (sharedPreferences.getBoolean(key, false)) {\n ServiceController.mode |= 2;\n } else {\n ServiceController.mode &= 1;\n }\n break;\n default:\n break;\n }\n }\n };\n }\n }", "@Override\n public void onPropertiesChanged(DeviceConfig.Properties properties) {\n if (mOnDeviceConfigChange != null) {\n mOnDeviceConfigChange.onDefaultRefreshRateChanged();\n updateState(mListPreference);\n }\n }" ]
[ "0.8014766", "0.7696477", "0.7230977", "0.7176661", "0.7039559", "0.70011073", "0.69715273", "0.69557655", "0.68506575", "0.673825", "0.66384137", "0.658081", "0.6575921", "0.65484023", "0.65484023", "0.6539577", "0.649838", "0.64425844", "0.6379829", "0.63794917", "0.6377546", "0.637651", "0.6364808", "0.6361137", "0.6352758", "0.63520193", "0.6335315", "0.63342565", "0.6318072", "0.6309298", "0.63089585", "0.63057", "0.6298089", "0.62904716", "0.62826204", "0.62626994", "0.62590384", "0.6257817", "0.6257817", "0.62519693", "0.6201872", "0.6199018", "0.6195465", "0.6167446", "0.6162655", "0.6146238", "0.61453533", "0.61427104", "0.61208606", "0.6120024", "0.60933536", "0.6086883", "0.60864115", "0.6064625", "0.60593545", "0.6039613", "0.603875", "0.6021196", "0.6019308", "0.60086393", "0.60011464", "0.5991411", "0.5981973", "0.59818876", "0.5968794", "0.5966644", "0.5966181", "0.5961613", "0.5961282", "0.5961282", "0.5961282", "0.5936489", "0.5933993", "0.5928722", "0.59146905", "0.5906091", "0.590317", "0.5902662", "0.589312", "0.5884379", "0.58753115", "0.5845071", "0.58415496", "0.5831791", "0.5819441", "0.58018804", "0.578355", "0.577102", "0.5767896", "0.57534313", "0.57521737", "0.57377326", "0.5732754", "0.5696628", "0.5678901", "0.56711555", "0.5666709", "0.5656792", "0.5645033", "0.56428427" ]
0.6616023
11
Preference click listener invoked on OnDialogClosed for EditPhoneNumberPreference.
public void onDialogClosed(EditPhoneNumberPreference preference, int buttonClicked) { if (DBG) log("onPreferenceClick: request preference click on dialog close."); if (preference instanceof EditPhoneNumberPreference) { EditPhoneNumberPreference epn = preference; if (epn == mSubMenuVoicemailSettings) { handleVMBtnClickRequest(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bindPreferenceClickListener(Preference preference);", "@Override\n public boolean onPreferenceClick(Preference preference) {\n Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI);\n startActivityForResult(contactPickerIntent,\n CONTACT_PICKER_RESULT);\n return true;\n }", "@Override\r\n\tpublic boolean onPreferenceClick(Preference preference) {\n\t\tif(preference==facebooklog)\t\r\n\t\t{\r\n\t\t\tif(facebooklog.isChecked())\r\n\t\t\t{\r\n\t\t\t\t AlertDialog.Builder dg = new Builder(getActivity());\r\n \t\t\t\t dg.setMessage(\"Are you sure to log out FaceBook?\");\r\n \t\t\t\t dg.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\r\n \t\t\t\t\t @Override\r\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n \t\t\t\t\t\tfacebooklog.setChecked(false);\r\n \t\t\t\t\t\tmcallback.onReturnFromPreFragment(1);\r\n \t\t\t\t\t}\r\n \t\t\t\t })\r\n \t\t\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\r\n \t\t\t\t \t@Override\r\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n \t\t\t\t\t\t// TODO Auto-generated method stub\r\n \t\t\t\t\t}\r\n \t\t\t\t })\r\n \t\t\t\t .show();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{ mcallback.onReturnFromPreFragment(2);\r\n\t\t\t\tfacebooklog.setChecked(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } else if (preference == mButtonTTY) {\n handleTTYChange(preference, objValue);\n } else if (preference == mVoicemailProviders) {\n updateVMPreferenceWidgets((String)objValue);\n \n // If the user switches to a voice mail provider and we have a\n // number stored for it we will automatically change the phone's\n // voice mail number to the stored one.\n // Otherwise we will bring up provider's config UI.\n \n final String providerVMNumber = loadNumberForVoiceMailProvider(\n (String)objValue);\n \n if (providerVMNumber == null) {\n // Force the user into a configuration of the chosen provider\n simulatePreferenceClick(mVoicemailSettings);\n } else {\n saveVoiceMailNumber(providerVMNumber);\n }\n }\n // always let the preference setting proceed.\n return true;\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Re-enter phone number\", Toast.LENGTH_SHORT).show();\n }", "public boolean onPreferenceClick(Preference preference) {\n ReminderDBHandler reminder_db = new ReminderDBHandler(getActivity());\n reminder_db.removeAll();\n reminder_db.close();\n\n // show snackBar\n Snackbar.make(getView(), \"All reminders removed\", Snackbar.LENGTH_SHORT)\n .show();\n return true;\n }", "@Override\n public void onClick(View view) {\n preferencesUtil.setPreferenceBooleanValue(\"dismiss\" ,true);\n //[E] fix bug 7691 by licong for safeLock\n customDialog.dismiss();\n }", "@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n if (preference == mSubMenuVoicemailSettings) {\n return true;\n } else if (preference == mButtonDTMF) {\n return true;\n } else if (preference == mButtonTTY) {\n return true;\n } else if (preference == mButtonAutoRetry) {\n android.provider.Settings.System.putInt(mPhone.getContext().getContentResolver(),\n android.provider.Settings.System.CALL_AUTO_RETRY,\n mButtonAutoRetry.isChecked() ? 1 : 0);\n return true;\n } else if (preference == mButtonHAC) {\n int hac = mButtonHAC.isChecked() ? 1 : 0;\n // Update HAC value in Settings database\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.HEARING_AID, hac);\n \n // Update HAC Value in AudioManager\n mAudioManager.setParameter(HAC_KEY, hac != 0 ? HAC_VAL_ON : HAC_VAL_OFF);\n return true;\n } else if (preference == mVoicemailSettings) {\n if (preference.getIntent() != null) {\n this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);\n } else {\n updateVoiceNumberField();\n }\n return true;\n }\n return false;\n }", "@Override\n protected void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n mPhone = PhoneFactory.getDefaultPhone();\n \n addPreferencesFromResource(R.xml.call_feature_setting);\n \n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n \n // get buttons\n PreferenceScreen prefSet = getPreferenceScreen();\n mSubMenuVoicemailSettings = (EditPhoneNumberPreference)findPreference(BUTTON_VOICEMAIL_KEY);\n if (mSubMenuVoicemailSettings != null) {\n mSubMenuVoicemailSettings.setParentActivity(this, VOICEMAIL_PREF_ID, this);\n mSubMenuVoicemailSettings.setDialogOnClosedListener(this);\n mSubMenuVoicemailSettings.setDialogTitle(R.string.voicemail_settings_number_label);\n }\n \n mButtonDTMF = (ListPreference) findPreference(BUTTON_DTMF_KEY);\n mButtonAutoRetry = (CheckBoxPreference) findPreference(BUTTON_RETRY_KEY);\n mButtonHAC = (CheckBoxPreference) findPreference(BUTTON_HAC_KEY);\n mButtonTTY = (ListPreference) findPreference(BUTTON_TTY_KEY);\n mVoicemailProviders = (ListPreference) findPreference(BUTTON_VOICEMAIL_PROVIDER_KEY);\n if (mVoicemailProviders != null) {\n mVoicemailProviders.setOnPreferenceChangeListener(this);\n mVoicemailSettings = (PreferenceScreen)findPreference(BUTTON_VOICEMAIL_SETTING_KEY);\n \n initVoiceMailProviders();\n }\n if (getResources().getBoolean(R.bool.dtmf_type_enabled)) {\n mButtonDTMF.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonDTMF);\n mButtonDTMF = null;\n }\n \n if (getResources().getBoolean(R.bool.auto_retry_enabled)) {\n mButtonAutoRetry.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonAutoRetry);\n mButtonAutoRetry = null;\n }\n \n if (getResources().getBoolean(R.bool.hac_enabled)) {\n mButtonHAC.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonHAC);\n mButtonHAC = null;\n }\n \n if (getResources().getBoolean(R.bool.tty_enabled)) {\n mButtonTTY.setOnPreferenceChangeListener(this);\n ttyHandler = new TTYHandler();\n } else {\n prefSet.removePreference(mButtonTTY);\n mButtonTTY = null;\n }\n \n if (!getResources().getBoolean(R.bool.world_phone)) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_CDMA_OPTIONS));\n prefSet.removePreference(prefSet.findPreference(BUTTON_GSM_UMTS_OPTIONS));\n \n if (mPhone.getPhoneName().equals(\"CDMA\")) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_FDN_KEY));\n addPreferencesFromResource(R.xml.cdma_call_options);\n } else {\n addPreferencesFromResource(R.xml.gsm_umts_call_options);\n }\n }\n \n // create intent to bring up contact list\n mContactListIntent = new Intent(Intent.ACTION_GET_CONTENT);\n mContactListIntent.setType(android.provider.Contacts.Phones.CONTENT_ITEM_TYPE);\n \n // check the intent that started this activity and pop up the voicemail\n // dialog if we've been asked to.\n // If we have at least one non default VM provider registered then bring up\n // the selection for the VM provider, otherwise bring up a VM number dialog.\n // We only bring up the dialog the first time we are called (not after orientation change)\n if (icicle == null) {\n if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL) &&\n mVoicemailProviders != null) {\n if (mVMProvidersData.size() > 1) {\n simulatePreferenceClick(mVoicemailProviders);\n } else {\n mSubMenuVoicemailSettings.showPhoneNumberDialog();\n }\n }\n }\n updateVoiceNumberField();\n }", "public boolean onPreferenceClick(Preference preference) {\n \t \n \t Dialog dialog = onCreateDialogSingleChoice();\n \t dialog.show();\n \t \n \t \n\t\t\t\t\t\treturn true;\n \n }", "@Override \n\t\t\t \tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t \t\tmListener.onSettingsPositiveClick(SettingsDialogFragment.this);\n\t\t\t \t}", "public void onLaunchPreferenceActivitySelected(Context context);", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n viewModel.checkPhoneNumberExisted(userPhoneNumber);\n observePhoneNumberExisted();\n }", "@Override\n public void onClick(View v) {\n pListener.onDialogPositiveClick(ChangePasswordFragment.this);\n\n // Don't dismiss\n // Listener will dismiss when data is validated\n }", "@Override // ListSubMenu.Listener IMPL\t\t&& TimeIntervalPopup.Listener IMPL \n // Hit when an item in the second-level popup gets selected\n public void onListPrefChanged(ListPreference pref) {\n onSettingChanged(pref);\n //closeView();\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n if(updateAddress(newValue.toString()) == true) {\n Log.d(TAG, \"Updated preference.\");\n EditTextPreference editedUrl = (EditTextPreference) findPreference(\"url\");\n editedUrl.setSummary(newValue.toString());\n return true;\n }\n else\n return false;\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(R.string.settings_transfer_title);\n\n final EditText input = new EditText(getContext());\n input.setFilters(new InputFilter[]{ new InputFilter.LengthFilter(5)});\n\n input.setInputType(InputType.TYPE_CLASS_NUMBER);\n builder.setView(input);\n\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Future<Boolean> permitFuture = service.submit(new WebAPI.PermitTransferTask(input.getText().toString()));\n\n try {\n Boolean permit = permitFuture.get();\n\n if (permit != null && permit) {\n // Successfully transferred, delete data\n deleteAllData(getContext());\n }\n\n } catch (InterruptedException | ExecutionException e) {\n Log.e(getClass().getName(), e.getMessage(), e);\n }\n }\n });\n builder.setNegativeButton(\"Cancel\", null);\n builder.create().show();\n\n return true;\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n if (clickTimes >= SHOW_HIDDEN_CLICK_COUNT) {\n Intent intent = new Intent(getActivity(), HiddenActivity.class);\n startActivity(intent);\n clickTimes = 1;\n return false;\n }\n clickTimes++;\n return false;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n NicknameDialogListener listener = (NicknameDialogListener) getActivity();\n listener.onFinishEditDialog(input.getText().toString());\n dialog.dismiss();\n }", "@Override\r\n\tpublic void finish() {\n\t\tsetResult(mPreferenceChanged?Activity.RESULT_OK:Activity.RESULT_CANCELED);\r\n\t\t\r\n\t\tsuper.finish();\r\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tpin=nilaipin.getText().toString();\n\t\t\t\t\tsetpin=true;\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\tstatus.setVisibility(View.VISIBLE);\n\t\t\t \tbtnsetpin.setVisibility(View.INVISIBLE);\n\t\t\t \tbtnupdate.setVisibility(View.VISIBLE);\n\t\t\t\t}", "@Override\n protected void onDialogClosed(boolean positiveResult) {\n if (positiveResult) {\n mNumberPickerHour.clearFocus();\n mNumberPickerMinutes.clearFocus();\n mHour= mNumberPickerHour.getValue();\n mMinutes= mNumberPickerMinutes.getValue();\n mAM=mMeridian.getValue()==0;\n mTime=String.format(Locale.ENGLISH,\"%02d\",mHour) + \":\"\n + String.format(Locale.ENGLISH,\"%02d\",mMinutes)+\" \"+(mAM?\"AM\":\"PM\");\n persistString(mTime);\n callChangeListener(mTime);\n }else{\n mHour=getHour(mTime);\n mMinutes=getMinutes(mTime);\n mAM= getMeridian(mTime);\n }\n\n if(flagBind==0)//From Binding\n flagBind=-1;\n else //From onSavedInstance\n flagBind=0;\n }", "@Override\r\n\tpublic boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\tmcallback.onReturnFromPreFragment(3);\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean onPreferenceClick(Preference arg0) {\n\t\tfireBCastSubScreen();\n\t\treturn true;\n\n\t}", "public void onClick(DialogInterface dialog, int id) {\n deletePhone();\n }", "@Override\n\tpublic void onClick(View view) {\n\t\tswitch (view.getId()) {\n\n\t\tcase R.id.password_check:\n\t\t\tint selection = pswEdit.getSelectionStart();\n\t\t\tif (mpswDisplay.isChecked()) {\n\t\t\t\tpswEdit.setTransformationMethod(HideReturnsTransformationMethod.getInstance());\n\t\t\t} else {\n\t\t\t\tpswEdit.setTransformationMethod(PasswordTransformationMethod.getInstance());\n\t\t\t}\n\t\t\tpswEdit.setSelection(selection);\n\t\t\tbreak;\n\t\tcase R.id.dlg_btn_connect:\n\t\t\tif (customDialogListener != null)\n\t\t\t\tcustomDialogListener.back(pswEdit.getText().toString());\n\t\t\tdismiss();\n\t\t\tbreak;\n\t\tcase R.id.dlg_btn_dismiss:\n\t\t\tdismiss();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public boolean onPreferenceClick(Preference preference) {\n final Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);\n // This will setup the Home and Search affordance\n intent.putExtra(\":settings:show_fragment_as_subsetting\", true);\n mPrefActivity.startActivity(intent);\n return true;\n }", "public boolean onPreferenceClick(Preference preference) {\n ReminderDBHandler reminder_db = new ReminderDBHandler(getActivity());\n reminder_db.removeAll(\"d\");\n List<Reminder_item> holiday_2015 = Constants.get_holidays();\n List<Reminder_item> sample_reminder = Constants.get_sample_reminder();\n for(int i = 0; i < holiday_2015.size(); i++){\n reminder_db.addReminder(holiday_2015.get(i));\n }\n for(int i = 0; i < sample_reminder.size(); i++){\n reminder_db.addReminder(sample_reminder.get(i));\n }\n\n // show snackBar\n Snackbar.make(getView(), \"Sample reminders added\", Snackbar.LENGTH_SHORT)\n .show();\n return true;\n }", "@Override\n public void onClick(View v) {\n if (mListener == null || mRemovalDialogue.isShown()) return;\n if (TextUtils.isEmpty(mPhoneNumberString)) {\n // Copy \"superclass\" implementation\n mListener.onContactSelected(getLookupUri(), MoreContactUtils\n .getTargetRectFromView(\n mContext, PhoneFavoriteTileView.this));\n } else {\n // When you tap a frequently-called contact, you want to\n // call them at the number that you usually talk to them\n // at (i.e. the one displayed in the UI), regardless of\n // whether that's their default number.\n mListener.onCallNumberDirectly(mPhoneNumberString);\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\tInputMethodManager imm = (InputMethodManager)getSystemService(\n\t\t\t\t\t\t\t\t\t\t\t \t\tContext.INPUT_METHOD_SERVICE); \n\t\t\t\t\t\t\t imm.hideSoftInputFromWindow(((EditText) findViewById(R.id.get_phone_editText))\n\t\t\t\t\t\t\t \t\t \t\t.getWindowToken(),0);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setPassword(\"\");\n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setUserKey(\"\");\n\t\t\t\t\t\t\t Intent intent = new Intent(AccountForgetPSWActivity.this, AccountSettingActivity.class);\n\t\t\t\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t}", "public boolean onPreferenceClick(Preference preference) {\n final Dialog d = new Dialog(getActivity());\n //d.setTitle(R.string.import_dialog_title);\n d.setContentView(R.layout.dialog_guide);\n d.setTitle(\"Import guide\");\n Button dialog_guide_ok_btn = (Button) d.findViewById(R.id.dialog_guide_ok_btn);\n dialog_guide_ok_btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n d.dismiss();\n }\n });\n d.show();\n\n return true;\n }", "public void onClick(DialogInterface dialog, int id) {\n remove(smsNumber.getText().toString());\n }", "@Override\n public void onSettingChanged(ListPreference pref) {\n }", "public interface PreferenceListener {\n public void bindPreferenceSummaryToValue(Preference preference);\n}", "@Override\n public void onClick(View v) {\n noteDialog.dismiss();\n }", "@Override\n\tpublic void onPreferenceClick(long simid) {\n\t\t\n\t\tBundle extras = new Bundle();\n\t\textras.putLong(GeminiUtils.EXTRA_SIMID, simid);\n\t\tstartFragment(this, SimInfoEditor.class.getCanonicalName(), -1, extras, R.string.gemini_sim_info_title);\n\t\tXlog.i(TAG, \"startFragment \"+ SimInfoEditor.class.getCanonicalName());\n\t}", "@Override \n\t\t \t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t \t\tmListener.onSettingsNegativeClick(SettingsDialogFragment.this);\n\t\t \t\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri\n .parse(\"tel://\"\n + number));\n startActivity(intent);\n alert.dismiss();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n dialog.dismiss();\n callPhone(nums[position]);\n }", "public void onClick(DialogInterface dialog, int which) {\n SharedPreferences sp = getDefaultSharedPreferences(getApplicationContext());\n\n // save the preferences that must be kept\n boolean firstUse = sp.getBoolean(getString(R.string.KEY_FIRST_USE), false);\n int askForRate = sp.getInt(getString(R.string.KEY_ASK_FOR_RATE), getResources().getInteger(R.integer.askForRate_max_value));\n\n SharedPreferences.Editor editor = sp.edit();\n editor.clear();\n editor.putBoolean(getString(R.string.KEY_FIRST_USE), firstUse);\n editor.putInt(getString(R.string.KEY_ASK_FOR_RATE), askForRate);\n editor.apply();\n PreferenceManager.setDefaultValues(getApplicationContext(), R.xml.preferences, true);\n\n // Delete the old fragment and replace with a new one. This will update the summaries\n // (I couldn't find a smarter way to do that...)\n getFragmentManager().beginTransaction()\n .replace(android.R.id.content, new SettingsFragment(), fragment_tag)\n .commit();\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which)\n {\n Log.d(FRAG_TAG, \"button clicked\");\n if(number == null || \"\".equals(number))\n {\n number = (input.getText()).toString();\n }\n Log.d(FRAG_TAG, \"phone number: \"+number);\n //not a well-formatted number\n if(!PhoneNumberUtils.isWellFormedSmsAddress(number))\n {\n Log.d(FRAG_TAG, \"phone number is not well formed\");\n //return;\n }\n\n //preform key generation\n (Key.getStorer(getActivity())).generateKeyPair(\n PhoneNumberUtils.stripSeparators(number));\n\n Log.d(FRAG_TAG, \"generating key\");\n\n //all done\n dismiss();\n }", "void bindPreferenceSummaryToValue(Preference preference);", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\t\t\t\t\teditor.putInt(\n\t\t\t\t\t\t\t\t\t\tMobileGuard.SHOW_LOCATION_WHICHSTYLE,\n\t\t\t\t\t\t\t\t\t\twhich);\n\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "void onPickPhoneNumberAction(HashMap<String,String> pairs);", "@FXML // This method is configure from fxml file\n private void onCancelButtonClick() {\n this.selectableItem.removeListener(changeListener); // remove the listener when window is closed\n assert this.window != null;\n // close the dialog\n this.window.close();\n }", "public void deinitPreference() {\n mContext.unregisterReceiver(mIntentReceiver);\n }", "@Override\n public void onPositive(MaterialDialog materialDialog) {\n sharedPrefs.edit()\n .remove(pref.key)\n .putString(pref.key, \"\" + values[numberPicker.getValue()])\n .apply();\n pref.pref.setSummary(values[numberPicker.getValue()]);\n materialDialog.dismiss();\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(this);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(preference.getContext());\n String preferenceString = preferences.getString(preference.getKey(), \"\");\n onPreferenceChange(preference, preferenceString);\n }", "@Override\r\n \t\t\tpublic void closeDialog() {\n \t\t\t\tunbind();\r\n \t\t\t\tsuper.closeDialog();\r\n \t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogPositiveClick(YesNoDialog.this, callback_id);\n }", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n Toast.makeText(this,\"Kneel before the great Chandan!\",Toast.LENGTH_LONG);\n //Handle the click\n switch (position)\n {\n case 0:\n final Dialog dialog = new Dialog(Setting.this);\n dialog.setContentView(R.layout.dialog_set_preferences);\n final RadioButton setDefault,setCustom;\n final EditText editText;\n Button button;\n setDefault = (RadioButton)dialog.findViewById(R.id.radioButtonVoiceMessageDefualt);\n setCustom = (RadioButton)dialog.findViewById(R.id.radioButtonVoiceMessageCustom);\n editText = (EditText)dialog.findViewById(R.id.editTextVoiceMessage);\n button = (Button)dialog.findViewById(R.id.buttonSetVoiceMessage);\n setCustom.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton compoundButton, boolean b) {\n if(setCustom.isChecked())\n editText.setVisibility(View.VISIBLE);\n else\n editText.setVisibility(View.INVISIBLE);\n }\n });\n setDefault.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton compoundButton, boolean b) {\n if(setDefault.isChecked())\n editText.setVisibility(View.INVISIBLE);\n else\n\n editText.setVisibility(View.VISIBLE);\n }\n });\n\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n editor = sharedPreferences.edit();\n if(setDefault.isChecked()) {\n\n editor.putString(\"VoiceMessage\",defaultVoiceMessage);\n editor.apply();\n }\n else\n {\n if (editText.getText().toString() != null) {\n editor.putString(\"VoiceMessage\",editText.getText().toString());\n editor.apply();\n } else {\n Toast.makeText(Setting.this,\"Please enter a valid message\",Toast.LENGTH_SHORT).show();\n }\n }\n Toast.makeText(Setting.this,\"Message set\",Toast.LENGTH_SHORT).show();\n voiceMessage = sharedPreferences.getString(\"VoiceMessage\",defaultVoiceMessage);\n description[0]= \"Current : \" + voiceMessage;\n MyAdapter myAdapter=new MyAdapter(Setting.this,titleArray,description,imageArray);\n\n listView=getListView();\n listView.setAdapter(myAdapter);\n dialog.dismiss();\n }\n });\n if(sharedPreferences.getString(\"VoiceMessage\",defaultVoiceMessage) != defaultVoiceMessage)\n {\n setCustom.setChecked(true);\n editText.setVisibility(View.VISIBLE);\n editText.setText(sharedPreferences.getString(\"VoiceMessage\",defaultVoiceMessage));\n }\n dialog.show();\n break;\n }\n super.onListItemClick(l, v, position, id);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onAddPress(editContent.getEditableText().toString());\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n /* I'm using SharedPreferences as a simple way to store key value sets\n */\n SharedPreferences sharedPref = getActivity().getSharedPreferences(\"mesprefs\", Context.MODE_PRIVATE);\n final SharedPreferences.Editor editor = sharedPref.edit();\n\n\n // Set the dialog title\n builder.setTitle(\"My Preferences\")\n // Specify the list array, the items to be selected by default (null for none),\n // and the listener through which to receive callbacks when items are selected\n .setMultiChoiceItems(R.array.prefs_array, null,\n new DialogInterface.OnMultiChoiceClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which,\n boolean isChecked) {\n if (isChecked) {\n // If the user checked the item, add it to the selected items\n mSelectedItems.add(which);\n } else if (mSelectedItems.contains(which)) {\n // Else, if the item is already in the array, remove it\n mSelectedItems.remove(Integer.valueOf(which));\n }\n }\n })\n // Set the action buttons\n .setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the mSelectedItems results somewhere\n // or return them to the component that opened the dialo\n Iterator ite = mSelectedItems.listIterator();\n while(ite.hasNext()) {\n\n int pref_int = ((Integer )(ite.next())).intValue();\n switch (pref_int){\n case 0 :\n editor.putString(getString(R.string.pref_1), getString(R.string.pref_1));\n Log.i(\"info\", \"Preference 1\");\n break;\n case 1 :\n editor.putString(getString(R.string.pref_2), getString(R.string.pref_2));\n Log.i(\"info\", \"Preference 2\");\n break;\n case 2 :\n editor.putString(getString(R.string.pref_3), getString(R.string.pref_3));\n Log.i(\"info\", \"Preference 3\");\n break;\n\n }\n }\n editor.commit();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n\n\n\n return builder.create();\n\n }", "@Override\n protected void onDialogClosed(boolean positiveResult) {\n if (positiveResult) {\n persistInt(mNewValue);\n }\n }", "public boolean onPreferenceClick(Preference preference) {\n String url = \"https://github.com/ilayaraja97/ManageAccounts\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n return true;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent;\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n //Yes button clicked\n intent = new Intent(CallIntent.ACCEPT_CALL);\n intent.putExtra(\"callId\", mCallId);\n LocalBroadcastManager.getInstance(getBaseContext()).sendBroadcast(\n intent);\n break;\n \n case DialogInterface.BUTTON_NEGATIVE:\n //No button clicked\n intent = new Intent(CallIntent.REJECT_CALL);\n intent.putExtra(\"callId\", mCallId);\n LocalBroadcastManager.getInstance(getBaseContext()).sendBroadcast(\n intent);\n break;\n }\n mAlertDialog.hide();\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_no.setText(editText.getText().toString().trim());\n } else {\n pump_no.setText(\"\");\n }\n }", "public boolean onPreferenceChange(Preference preference, Object newValue) {\n \t\t\treturn false;\r\n \t\t}", "@Override\n public void onClick(View v) {\n String note = edit_note.getText().toString().trim();\n noteDialog.dismiss();\n setNote(note);\n }", "@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n return false;\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference, PreferenceManager.getDefaultSharedPreferences(preference.getContext()).getString(preference.getKey(), \"\"));\n }", "public void onClick(View v) {\n\n\t\t\t\ttelMgr.listen(phoneListener, mPhoneCallListener.LISTEN_NONE);\n\t\t\t\tshowDialog(0);\n\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tintiEntry();\n\t\t\t\t\t\t\t\t\tentrystatus = 0;\n\t\t\t\t\t\t\t\t\trefreshFragment();\n\t\t\t\t\t\t\t\t\tadjustWight();\n\t\t\t\t\t\t\t\t\tiGetFirstFocus();\n\t\t\t\t\t\t\t\t}", "@Override\n protected void onPause() {\n getPreferenceScreen().getSharedPreferences().unregisterOnSharedPreferenceChangeListener(this);\n \n super.onPause();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n ChangePasswordFragment.this.getDialog().cancel();\n }", "@Override\n public void onClick(View view) {\n String phoneNumber = supplierPhoneEditText.getText().toString().trim();\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n startActivity(intent);\n }", "public void onPressNumber(View view) {\r\n CallHelper.callNumber(this, event.contactNumber);\r\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(this);\n // We also read the current value of the preference stored in the SharedPreferences on the device,\n // and display that in the preference summary (so that the user can see the current value of the preference):\n SharedPreferences preferences =\n PreferenceManager.getDefaultSharedPreferences(preference.getContext());\n String preferenceString = preferences.getString(preference.getKey(), \"\");\n onPreferenceChange(preference, preferenceString);\n }", "@Override\n \t public void onClick(View arg0) {\n \t \tpwindo.dismiss();\n \t }", "@Override\n public void onClick(View view) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n collectValuesForSettings();\n updateSettings();\n dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n Intent gpsOptionsIntent = new Intent(\n android.provider.Settings.ACTION_SETTINGS);\n startActivityForResult(gpsOptionsIntent, 0);\n }", "@Override\n public void onClick(View v) {\n String phoneNumber=PhoneNumberEdit.getText().toString();\n\n //if you don't write anything on pone number\n if (PhoneNumberEdit.getText().toString().isEmpty())\n {\n //setting error\n PhoneNumberEdit.setError(\"Phone number is EMPTY \");\n PhoneNumberEdit.requestFocus();\n\n }\n //if the phone number length didn't match with indian std\n else if (PhoneNumberEdit.getText().toString().length()!=10)\n {\n //setting the error\n PhoneNumberEdit.setError(\"The number you entered didn't have 10 digit \");\n PhoneNumberEdit.requestFocus();\n }\n else\n {\n\n //if those two are ok then this happen\n //phone authentication in authentication firebase\n PhoneAuthOptions options=PhoneAuthOptions.newBuilder(mAuth)\n //giving the phone number to send otp\n .setPhoneNumber(\"+91\"+phoneNumber)\n //setting the timer\n .setTimeout(60L, TimeUnit.SECONDS)\n //setting activity\n .setActivity(MainActivity.this)\n //callback function to know we get the response\n .setCallbacks(mCallBacks)\n //build it\n .build();\n\n //passing the object of phone auth options\n PhoneAuthProvider.verifyPhoneNumber(options);\n\n }\n\n }", "void dialogClosed(PDialog dialog);", "public void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t\tupdateGprsSettings();\n\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.call_phone_1:\n if (cellNums != null) {\n showNumDialog(cellNums);\n } else {\n callPhone(personInfoCellphone.getText().toString().trim());\n }\n break;\n case R.id.call_phone_2:\n if (telNums != null) {\n showNumDialog(telNums);\n } else {\n /*callPhone(personInfoTelphone.getText().toString().trim());*/\n }\n break;\n case R.id.btn_resumeinfo_note:\n showNoteDialog();\n break;\n }\n\n }", "public boolean onPreferenceClick(Preference preference) {\n CoursesDBHandler courses_db = new CoursesDBHandler(getActivity());\n courses_db.removeAll();\n courses_db.close();\n\n // show snackBar\n Snackbar.make(getView(), \"All courses removed\", Snackbar.LENGTH_SHORT)\n .show();\n return true;\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n Preference pref = findPreference(\"email\");\n \n EditTextPreference editTextPreference=(EditTextPreference)findPreference(\"email\"); \n \n if(!check(editTextPreference.getText())){\n \t \n \t editTextPreference.setText(\"\");\n \t AlertDialog alertDialog = new AlertDialog.Builder(AppPreferences.this).create();\n \talertDialog.setTitle(\"Erreur...\");\n \talertDialog.setMessage(\"Email non valide\");\n \talertDialog.show();\n }\n \n \n\n }", "public interface SettingsDialogListener { \n\t\tpublic void onSettingsPositiveClick(DialogFragment dialog); \n\t\tpublic void onSettingsNegativeClick(DialogFragment dialog); \n\t}", "@Override\n public void onClick(View view) {\n pw.dismiss(); // dismiss the window\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tintiEntry();\n\t\t\t\t\t\trefreshFragment();\n\t\t\t\t\t\tiGetFirstFocus();\n\t\t\t\t\t}", "@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\tSharedPreferences.Editor edit = mPreferences.edit();\n \t\t\t\t\tint i;\n \t\t\t\t\tfor (i = 0; i < mMainPage.getTopicBtns().size(); i++) {\n \t\t\t\t\t\tif (mMainPage.getTopicBtns().get(i).isSelected()) break;\n \t\t\t\t\t}\n \t\t\t\t\tedit.putInt(CONFIG_TOPICCHOICE, i);\n \t\t\t\t\tedit.commit();\n \t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n \t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.USER_ID, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.FIRST_NAME, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.LAST_NAME, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.MOBILE, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.EMAIL, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.CITY, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.STATE, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.COUNTRY, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.PINCODE, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.DATEOFBIRTH, AllKeys.DNF);\n CommonMethods.setPreference(DashBoardActivity.this, AllKeys.ADDRESS, AllKeys.DNF);\n Intent intent = new Intent(DashBoardActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n overridePendingTransition(R.anim.activity_open_translate, R.anim.activity_close_scale);\n Toast.makeText(DashBoardActivity.this, \"See you again!\", Toast.LENGTH_SHORT).show();\n }", "@Override public void onClick(DialogInterface dialog, int which) {\n AppUtils.launchAppDetailsSettings();\n }", "@Override\n public void onBtnClick() {\n dialog.dismiss();\n }", "@Override \n\t public void onClick(DialogInterface dialog, int which) {\n\t \tIntent intent = new Intent(MyActivity.this,ConAddressChange.class);\n\t \t\n\t \tstartActivity(intent);\n\t \t\n\t }", "public interface SettingFragmentCallback {\n void onDialogDismiss();\n }", "public void onClick(DialogInterface dialog, int id) {\n int value = numberPicker.getValue();\n listener.onScoreSelected(Integer.toString(value));\n\n }", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger listener with preference's current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\tIntent phoneIntent = new Intent(Intent.ACTION_CALL);\r\n phoneIntent.setData(Uri.parse(\"tel:\"+phoneNumber));\r\n startActivity(Intent.createChooser(phoneIntent, \"Calling number...\"));\r\n \t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(context, Preferences.class));\n }", "private void simulatePreferenceClick(Preference preference) {\n // Go through settings until we find our setting\n // and then simulate a click on it to bring up the dialog\n final ListAdapter adapter = getPreferenceScreen().getRootAdapter();\n for (int idx = 0; idx < adapter.getCount(); idx++) {\n if (adapter.getItem(idx) == preference) {\n getPreferenceScreen().onItemClick(this.getListView(),\n null, idx, adapter.getItemId(idx));\n break;\n }\n }\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(this);\n // Trigger the listener immediately with the preference's current value.\n onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n if (!this.mWasDismissed && this.mSingleUse && this.mPrefsManager != null) {\n this.mPrefsManager.resetShowcase();\n }\n notifyOnDismissed();\n }", "public void onClick(DialogInterface dialog, int id) {\n edit_btn_val.clearComposingText();\n edit_btn_val.setText(userInput.getText());\n preferencesEditor.putString(sw_no,edit_btn_val.getText().toString());\n preferencesEditor.commit();\n\n }", "@Override\n public boolean onPreferenceTreeClick(Preference preference) {\n\n String key = preference.getKey();\n\n if (key != null && key.equals(getString(R.string.settings_activity_elo_values))) {\n Intent startEloValuesActivity = new Intent(getActivity(), EloValuesActivity.class);\n startActivity(startEloValuesActivity);\n return true;\n\n }\n\n return super.onPreferenceTreeClick(preference);\n }", "public boolean onPreferenceClick(Preference preference) {\n\t\tif (!_expanded) {\n\t\t\tgetPreferenceScreen().addPreference(_advancedSettingsCategory);\n\t\t\t_expanded = true;\n\t\t\t_advancedSettingsPreference.expand(true);\n\t\t} else {\n\t\t\tgetPreferenceScreen().removePreference(_advancedSettingsCategory);\n\t\t\t_expanded = false;\n\t\t\t_advancedSettingsPreference.expand(false);\n\t\t}\n\n\t\treturn false;\n\t}", "public interface OnPhoneNumberMultiPickerActionListener {\n\n /**\n * Returns the selected phone number to the requester.\n */\n void onPickPhoneNumberAction(HashMap<String,String> pairs);\n void onCancel();\n\n}", "private void bindPreferenceSummaryToValue(Preference preference) {\n\t\tpreference.setOnPreferenceChangeListener(this);\n\t\tonPreferenceChange(preference, PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(preference.getContext())\n\t\t\t\t.getString(preference.getKey(), \"\"));\n\t}", "@Override\n public void onClick(View v) {\n if (v == btnSure) {\n if (onAddressCListener != null) {\n onAddressCListener.onClick(strProvince, strCity,strArea,provinceId,cityId);\n }\n } else if (v == btnCancel) {\n\n } else if (v == lyChangeAddressChild) {\n return;\n } else {\n// dismiss();\n }\n dismiss();\n }" ]
[ "0.68420815", "0.62663674", "0.5913299", "0.58991313", "0.58692235", "0.58493704", "0.57817656", "0.57734436", "0.57422954", "0.5656526", "0.56368047", "0.56294835", "0.56130433", "0.56019574", "0.55708176", "0.55689234", "0.5562892", "0.5556023", "0.5546305", "0.5523693", "0.5513048", "0.55073917", "0.54870313", "0.5472609", "0.5471988", "0.54232717", "0.5422608", "0.5413988", "0.54136217", "0.5406977", "0.53915626", "0.538155", "0.53770113", "0.5358841", "0.535771", "0.53544277", "0.5350673", "0.53499097", "0.5345542", "0.53365266", "0.5327493", "0.53159153", "0.530828", "0.52856237", "0.5281126", "0.5278362", "0.52574265", "0.52511686", "0.5247215", "0.5210044", "0.5201578", "0.5195841", "0.5194518", "0.5191363", "0.51848394", "0.51681113", "0.51433647", "0.51386297", "0.513763", "0.5134277", "0.5134198", "0.51321495", "0.5128291", "0.5127334", "0.51240754", "0.5101499", "0.510134", "0.5100638", "0.5088737", "0.5083541", "0.50822467", "0.50753146", "0.5073103", "0.5072931", "0.50692314", "0.5068074", "0.50676143", "0.50640464", "0.50637394", "0.5063617", "0.5051397", "0.5049746", "0.5049049", "0.5040115", "0.50391644", "0.50320995", "0.503027", "0.5030116", "0.50283504", "0.5026516", "0.5014345", "0.5013581", "0.50105", "0.50079876", "0.5003525", "0.49954385", "0.4994858", "0.49928403", "0.49913895", "0.49910885" ]
0.8071792
0
Implemented for EditPhoneNumberPreference.GetDefaultNumberListener. This method set the default values for the various EditPhoneNumberPreference dialogs.
public String onGetDefaultNumber(EditPhoneNumberPreference preference) { if (preference == mSubMenuVoicemailSettings) { // update the voicemail number field, which takes care of the // mSubMenuVoicemailSettings itself, so we should return null. if (DBG) log("updating default for voicemail dialog"); updateVoiceNumberField(); return null; } String vmDisplay = mPhone.getVoiceMailNumber(); if (TextUtils.isEmpty(vmDisplay)) { // if there is no voicemail number, we just return null to // indicate no contribution. return null; } // Return the voicemail number prepended with "VM: " if (DBG) log("updating default for call forwarding dialogs"); return getString(R.string.voicemail_abbreviated) + " " + vmDisplay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDefaultNumber(Integer defaultNumber) {\n this.defaultNumber = defaultNumber;\n }", "@Override\n\tprotected void performDefaults() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\tspiLength.setSelection(preferenceStore.getDefaultInt(DEFAULT_PASSWORD_LENGTH));\n\t\tbtnUseLowercase.setSelection(preferenceStore.getDefaultBoolean(USE_LOWERCASE_LETTERS));\n\t\tbtnUserUppercase.setSelection(preferenceStore.getDefaultBoolean(USE_UPPERCASE_LETTERS));\n\t\tbtnUseDigits.setSelection(preferenceStore.getDefaultBoolean(USE_DIGITS));\n\t\tbtnUseSymbols.setSelection(preferenceStore.getDefaultBoolean(USE_SYMBOLS));\n\t\tbtnUseEaseToRead.setSelection(preferenceStore.getDefaultBoolean(USE_EASY_TO_READ));\n\t\tbtnUseHexOnly.setSelection(preferenceStore.getDefaultBoolean(USE_HEX_ONLY));\n\n\t}", "void setDefaultPreference(String preferenceName, String value) throws OntimizeJEERuntimeException;", "private void loadDefaultValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n e.getKey().setText(Pref.getDefault(this, e.getValue()));\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\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 int getDefault(){\n return number;\n }", "@Override\n protected void onSetInitialValue(boolean restorePersistedValue, Object defaultValue) {\n super.onSetInitialValue(restorePersistedValue, defaultValue);\n if(restorePersistedValue){\n Calendar calendar = Calendar.getInstance();\n long savedTime = getPersistedLong(calendar.getTimeInMillis());\n calendar.setTimeInMillis(savedTime);\n\n setTimePicker(calendar);\n }else {\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis((long) defaultValue);\n\n int [] fields = setTimePicker(calendar);\n //persists only if the value is not from sharedPreference.\n setTime(fields[0], fields[1]);\n }\n }", "private void updateDefaultValue(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\t\t\n\t\t((QuestionDef)propertiesObj).setDefaultValue(txtDefaultValue.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}", "public final void restoreValueDefault(){\n wChanged = false;\n //T xValueDefault = getValueDefault();\n try {\n wValue = this.getValueDefault(); //xValueDefault;\n wValueOriginal = wValue;\n setMessage(null);\n\t\t} catch (Exception xE) {\n\t\t\twLogger.error(xE);\n\t\t}\n }", "@Override\r\n\tprotected KDTextField getNumberCtrl() {\n\t\treturn null;\r\n\t}", "private void setDefaultValues() {\r\n this.nodeDegreeSpinner.setValue(display_node_degree_default);\r\n this.displayEdgesSpinner.setValue(display_edges_default);\r\n this.scaleSpinner.setValue(scale_default);\r\n this.minweightSpinner.setValue(minweight_edges_default);\r\n this.iterationsSpinner.setValue(iterations_default);\r\n this.vote_value.setValue(vote_value_default);\r\n this.mut_value.setValue(mut_value_default);\r\n this.keep_value.setValue(keepclass_value_default);\r\n\r\n this.only_sub.setSelected(display_sub_default);\r\n this.top.setSelected(true);\r\n this.continuous.setSelected(true);\r\n this.dec.setSelected(true);\r\n this.vote_value.setEnabled(false);\r\n this.is_alg_started = false;\r\n }", "private void initialiseNumberPickers() {\n\n ViewGroup pickerElements = (ViewGroup) findViewById(R.id.pickerLayout);\n for (int j = 0; j < pickerElements.getChildCount(); j++) {\n View grandchild = pickerElements.getChildAt(j);\n if (grandchild instanceof NumberPicker) {\n\n ((NumberPicker) grandchild).setMaxValue(9);\n ((NumberPicker) grandchild).setMinValue(0);\n if (grandchild.getId() == R.id.tenSecondPicker) {\n ((NumberPicker) grandchild).setMaxValue(5);\n }\n }\n }\n }", "private void setDefaultValueIfMissing() {\n if (!getType().isNumber() || !hasValidation()) {\n return;\n }\n if (!hasDefaultValue()) {\n if (validation.hasMinimum()) {\n setDefaultValue(validation.getMinimum());\n } else {\n if (validation.hasMaximum()) {\n setDefaultValue(validation.getMaximum());\n }\n }\n }\n }", "protected void setToDefault(){\n\n\t}", "private void setValoresDefault()\n\t{\n\t\t// seta valores default dos campos\n\t\tlmResumo.clear();\n\n\t\tlmResumo.addElement(\"10000000\");\n\t\tlmResumo.addElement(\"20000000\");\n\t\tlmResumo.addElement(\"30000000\");\n\t\tlmResumo.addElement(\"40000000\");\n\t\tlmResumo.addElement(\"50000000\");\n\n\t\tjTFQTdRegistroBD.setText(null);\n\n\t\tjCBSmall.setSelected(true);\n\t\tjCBLarge.setSelected(true);\n\t\tjCBExtra.setSelected(true);\n\n\t\tjTFSlaps.setText(\"5\");\n\n\t\tatualizarGraficos(new TreeMap<Long, List<ResultadoVO>>());\n\n\t}", "public Integer getDefaultNumber() {\n return defaultNumber;\n }", "private void initHandlers() {\n setOnAction(new EventHandler<ActionEvent>() {\n\n @Override\n public void handle(ActionEvent arg0) {\n System.out.println(\"-5\");\n parseAndFormatInput();\n }\n });\n\n focusedProperty().addListener(new ChangeListener<Boolean>() {\n\n @Override\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n if (!newValue.booleanValue()) {\n System.out.println(\"1\");\n parseAndFormatInput();\n }\n }\n });\n\n // Set text in field if BigDecimal property is changed from outside.\n numberProperty().addListener(new ChangeListener<BigDecimal>() {\n\n @Override\n public void changed(ObservableValue<? extends BigDecimal> obserable, BigDecimal oldValue, BigDecimal newValue) {\n if (newValue.toBigInteger().signum() < 0) {\n newValue = new BigDecimal(1);\n }\n setText(nf.format(newValue));\n }\n });\n\n textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n try {\n int newValue = Integer.parseInt(t1);\n if (newValue < NumberSpinner.MIN) newValue = NumberSpinner.MIN;\n if (newValue > NumberSpinner.MAX+1) newValue = NumberSpinner.MAX+1;\n setText(newValue+\"\");\n } catch (NumberFormatException e) {\n setText(s);\n }\n }\n });\n }", "PreferenceDefaultValueAttribute getDefaultValue();", "private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"[email protected]\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}", "void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}", "public void setPhoneNumber() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Phone Number : \"+phoneNumber);}", "public NumberInputDialog(String entryType, int initial, int min, int max) {\n\t\tthis(\"Enter Number\", buildDefaultPrompt(entryType, min, max), initial, min, max, false);\n\t}", "private void updateVoiceNumberField() {\n if (mSubMenuVoicemailSettings == null) {\n return;\n }\n \n mOldVmNumber = mPhone.getVoiceMailNumber();\n if (mOldVmNumber == null) {\n mOldVmNumber = \"\";\n }\n mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber);\n final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber :\n getString(R.string.voicemail_number_not_set);\n mSubMenuVoicemailSettings.setSummary(summary);\n }", "@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\n}", "public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _placeholder_DefaultValue_xjal();\n/* 68: */ }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new boxChange());\n }", "public void initDefaultValues() {\n }", "private void processPropDefaultValues() {\n getMethodsWithAnnotation(component, PropDefault.class).forEach(method -> {\n PropDefault propValidator = method.getAnnotation(PropDefault.class);\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String propertyName = propValidator.value();\n optionsBuilder.addStatement(\"options.addJavaPropDefaultValue(p.$L, $S)\",\n exposedMethodName,\n propertyName);\n });\n }", "private void checkAndUpdateUserPrefNumber() {\n if (TextUtils.isEmpty(mUserMobilePhone) && !mUserMobilePhone.equals(mNumberEditText.getText().toString())) {\n mSharedPreferences\n .edit()\n .putString(PREF_USER_MOBILE_PHONE, mNumberEditText.getText().toString())\n .apply();\n }\n }", "public void setToDefault();", "public void setDefaultNumberFormat(NumberFormat format)\n {\n valueRenderer.defaultNumberFormat = format;\n }", "public Builder setPhoneNumber(\n com.google.protobuf.StringValue.Builder builderForValue) {\n if (phoneNumberBuilder_ == null) {\n phoneNumber_ = builderForValue.build();\n onChanged();\n } else {\n phoneNumberBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "protected void initPreference(){\n DataUtils.savePreference(Const.REPORT, \"\");\n DataUtils.savePreference(Const.TRY_MATCH_PERSON,\"\");\n }", "@NonNull\n public PhoneBuilder setDefaultNumber(@NonNull String iso, @NonNull String number) {\n Preconditions.checkUnset(getParams(),\n \"Cannot overwrite previously set phone number\",\n ExtraConstants.PHONE,\n ExtraConstants.COUNTRY_ISO,\n ExtraConstants.NATIONAL_NUMBER);\n if (!PhoneNumberUtils.isValidIso(iso)) {\n throw new IllegalStateException(\"Invalid country iso: \" + iso);\n }\n\n getParams().putString(ExtraConstants.COUNTRY_ISO, iso);\n getParams().putString(ExtraConstants.NATIONAL_NUMBER, number);\n\n return this;\n }", "static public void setDefaultInt (int newMissingInt) {\n defaultInt = newMissingInt;\n }", "@Override\n protected void onSetInitialValue(boolean restorePersistedValue,\n Object defaultValue) {\n setLocationString(restorePersistedValue ?\n getPersistedString(loc_string) : (String) defaultValue);\n }", "private void setDefaultScores() {\n\t\tif (readPreference(GlobalModel.BESTSCORE_EASY) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_EASY);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_MEDIUM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_MEDIUM);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_HARD) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_HARD);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_CUSTOM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_CUSTOM);\n\t\t}\n\t}", "private void setFormattedDigits(String data, String normalizedNumber) {\n String dialString = PhoneNumberUtils.extractNetworkPortion(data);\n dialString =\n PhoneNumberUtils.formatNumber(dialString, normalizedNumber, mCurrentCountryIso);\n if (!TextUtils.isEmpty(dialString)) {\n Editable digits = mDigits.getText();\n digits.replace(0, digits.length(), dialString);\n // for some reason this isn't getting called in the digits.replace call above..\n // but in any case, this will make sure the background drawable looks right\n afterTextChanged(digits);\n }\n }", "public void setDefaultProxySwitchMaxNumPorts(java.lang.Integer defaultProxySwitchMaxNumPorts) {\r\n this.defaultProxySwitchMaxNumPorts = defaultProxySwitchMaxNumPorts;\r\n }", "public double getDefault(){\n return number;\n }", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "public void setNumber(String newValue);", "public void setDefaultPortConfig(com.vmware.converter.DVPortSetting defaultPortConfig) {\r\n this.defaultPortConfig = defaultPortConfig;\r\n }", "private void initPhoneWithPrefix() {\n if (!TextUtils.isEmpty(mCurrentPhonePrefix)) {\n mPhoneNumberInput.setText(mCurrentPhonePrefix);\n mPhoneNumberInput.setSelection(mPhoneNumberInput.getText().length());\n }\n }", "public void getDefaultData() {\n mCurrencyShortForm = mPreferenceManager.getConverterCurrencyShortForm().toUpperCase();\n mOrganizationId = mPreferenceManager.getConverterOrganizationId();\n mAction = mPreferenceManager.getConverterAction();\n mStartValue = mPreferenceManager.getConverterValue();\n mDirection = mPreferenceManager.getConverterDirection();\n mRootParameter = mPreferenceManager.getConverterRoot();\n switch (mRootParameter) {\n case ConstantsManager.CONVERTER_OPEN_FROM_TEMPLATES:\n mContext = ((ConverterActivity) getActivity()).getContext();\n mBaseActivity = (ConverterActivity) getActivity();\n mFloatingActionButton.setImageResource(R.drawable.ic_done);\n break;\n case ConstantsManager.CONVERTER_OPEN_FROM_CURRENCY:\n case ConstantsManager.CONVERTER_OPEN_FROM_ORGANIZATION:\n mContext = ((ConverterActivity) getActivity()).getContext();\n mBaseActivity = (ConverterActivity) getActivity();\n break;\n default:\n mContext = ((MainActivity) getActivity()).getContext();\n mBaseActivity = (MainActivity) getActivity();\n break;\n }\n getMainListForActions();\n }", "public void resetToDefault() {\n if (_option != null) {\n setValue(_option.getDefault());\n notifyChangeListeners();\n }\n }", "public void setDefault(int floorNum) {\n\t\t\n\t\tDEFAULT = floorNum;\n\t\tcurrFloor = DEFAULT;\n\t}", "public NumberInputDialog(String title, String prompt, Integer initialValue) {\n\t\tthis(title, prompt, initialValue, 0, Integer.MAX_VALUE, false);\n\t}", "@Override\n protected void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n mPhone = PhoneFactory.getDefaultPhone();\n \n addPreferencesFromResource(R.xml.call_feature_setting);\n \n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n \n // get buttons\n PreferenceScreen prefSet = getPreferenceScreen();\n mSubMenuVoicemailSettings = (EditPhoneNumberPreference)findPreference(BUTTON_VOICEMAIL_KEY);\n if (mSubMenuVoicemailSettings != null) {\n mSubMenuVoicemailSettings.setParentActivity(this, VOICEMAIL_PREF_ID, this);\n mSubMenuVoicemailSettings.setDialogOnClosedListener(this);\n mSubMenuVoicemailSettings.setDialogTitle(R.string.voicemail_settings_number_label);\n }\n \n mButtonDTMF = (ListPreference) findPreference(BUTTON_DTMF_KEY);\n mButtonAutoRetry = (CheckBoxPreference) findPreference(BUTTON_RETRY_KEY);\n mButtonHAC = (CheckBoxPreference) findPreference(BUTTON_HAC_KEY);\n mButtonTTY = (ListPreference) findPreference(BUTTON_TTY_KEY);\n mVoicemailProviders = (ListPreference) findPreference(BUTTON_VOICEMAIL_PROVIDER_KEY);\n if (mVoicemailProviders != null) {\n mVoicemailProviders.setOnPreferenceChangeListener(this);\n mVoicemailSettings = (PreferenceScreen)findPreference(BUTTON_VOICEMAIL_SETTING_KEY);\n \n initVoiceMailProviders();\n }\n if (getResources().getBoolean(R.bool.dtmf_type_enabled)) {\n mButtonDTMF.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonDTMF);\n mButtonDTMF = null;\n }\n \n if (getResources().getBoolean(R.bool.auto_retry_enabled)) {\n mButtonAutoRetry.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonAutoRetry);\n mButtonAutoRetry = null;\n }\n \n if (getResources().getBoolean(R.bool.hac_enabled)) {\n mButtonHAC.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonHAC);\n mButtonHAC = null;\n }\n \n if (getResources().getBoolean(R.bool.tty_enabled)) {\n mButtonTTY.setOnPreferenceChangeListener(this);\n ttyHandler = new TTYHandler();\n } else {\n prefSet.removePreference(mButtonTTY);\n mButtonTTY = null;\n }\n \n if (!getResources().getBoolean(R.bool.world_phone)) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_CDMA_OPTIONS));\n prefSet.removePreference(prefSet.findPreference(BUTTON_GSM_UMTS_OPTIONS));\n \n if (mPhone.getPhoneName().equals(\"CDMA\")) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_FDN_KEY));\n addPreferencesFromResource(R.xml.cdma_call_options);\n } else {\n addPreferencesFromResource(R.xml.gsm_umts_call_options);\n }\n }\n \n // create intent to bring up contact list\n mContactListIntent = new Intent(Intent.ACTION_GET_CONTENT);\n mContactListIntent.setType(android.provider.Contacts.Phones.CONTENT_ITEM_TYPE);\n \n // check the intent that started this activity and pop up the voicemail\n // dialog if we've been asked to.\n // If we have at least one non default VM provider registered then bring up\n // the selection for the VM provider, otherwise bring up a VM number dialog.\n // We only bring up the dialog the first time we are called (not after orientation change)\n if (icicle == null) {\n if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL) &&\n mVoicemailProviders != null) {\n if (mVMProvidersData.size() > 1) {\n simulatePreferenceClick(mVoicemailProviders);\n } else {\n mSubMenuVoicemailSettings.showPhoneNumberDialog();\n }\n }\n }\n updateVoiceNumberField();\n }", "public void setNumber(int number)\n {\n Number = number;\n }", "public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}", "public void setInputNumberListener(InputNumberListener inputNumberListener){\r\n\t\tthis.inputNumberListener = inputNumberListener;\r\n\t}", "private void restoreNumberPicker(String[] numbers) {\n ((NumberPicker) findViewById(R.id.tenMinutePicker)).setValue(Integer.parseInt(numbers[0]));\n ((NumberPicker) findViewById(R.id.oneMinutePicker)).setValue(Integer.parseInt(numbers[1]));\n ((NumberPicker) findViewById(R.id.tenSecondPicker)).setValue(Integer.parseInt(numbers[2]));\n ((NumberPicker) findViewById(R.id.oneSecondPicker)).setValue(Integer.parseInt(numbers[3]));\n ((NumberPicker) findViewById(R.id.tenthMillisecondPicker)).setValue(Integer.parseInt(numbers[4]));\n ((NumberPicker) findViewById(R.id.hundredthMillisecondPicker)).setValue(Integer.parseInt(numbers[5]));\n ((NumberPicker) findViewById(R.id.thousandsMillisecondPicker)).setValue(Integer.parseInt(numbers[6]));\n }", "private void setDefaultValues() {\n nameInput.setText(\"\");\n frontTrackInput.setText(String.valueOf(RaceCar.getDefaultTrack()));\n cornerWeightFLInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_FL()));\n cornerWeightRLInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_RL()));\n rearTrackInput.setText(String.valueOf(RaceCar.getDefaultTrack()));\n cornerWeightRRInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_RR()));\n cornerWeightFRInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_FR()));\n cogInput.setText(String.valueOf(RaceCar.getDefaultCogheight()));\n frontRollDistInput.setText(String.valueOf(RaceCar.getDefaultFrontrolldist()));\n wheelBaseInput.setText(String.valueOf(RaceCar.getDefaultWheelbase()));\n }", "@VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)\n public void bindPreferenceExtra(RadioButtonPreference pref,\n String key, CandidateInfo info, String defaultKey, String systemDefaultKey) {\n }", "public NumberFormat getDefaultNumberFormat()\n {\n return valueRenderer.defaultNumberFormat;\n }", "private void notifyInitialValue() {\r\n if (this.bindingSource != null) {\r\n updateTarget(this.bindingSource.getInitialValue());\r\n }\r\n else {\r\n updateTarget(null);\r\n }\r\n }", "public static void initDefaults(IPreferenceStore store) {\n \t\t\n \t\tif (fgInitialized)\n \t\t\treturn;\n \t\t\t\n \t\tfgInitialized= true;\n \t\t\n \t\tFont font= JFaceResources.getTextFont();\n \t\tif (font != null) {\n \t\t\tFontData[] data= font.getFontData();\n \t\t\tif (data != null && data.length > 0)\n \t\t\t\tPreferenceConverter.setDefault(store, JFaceResources.TEXT_FONT, data[0]);\n \t\t}\n \t\t\n \t\tDisplay display= Display.getDefault();\n \t\tColor color= display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);\n \t\tPreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND, color.getRGB());\n \t\tstore.setDefault(AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT, true);\n \t\t\n \t\tcolor= display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);\n \t\tPreferenceConverter.setDefault(store, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, color.getRGB());\n \t\tstore.setDefault(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, true);\n \t}", "public void setGivenNumbers(int numbers) {\r\n\t\tthis.givenNumbers= numbers;\r\n\t}", "public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } else if (preference == mButtonTTY) {\n handleTTYChange(preference, objValue);\n } else if (preference == mVoicemailProviders) {\n updateVMPreferenceWidgets((String)objValue);\n \n // If the user switches to a voice mail provider and we have a\n // number stored for it we will automatically change the phone's\n // voice mail number to the stored one.\n // Otherwise we will bring up provider's config UI.\n \n final String providerVMNumber = loadNumberForVoiceMailProvider(\n (String)objValue);\n \n if (providerVMNumber == null) {\n // Force the user into a configuration of the chosen provider\n simulatePreferenceClick(mVoicemailSettings);\n } else {\n saveVoiceMailNumber(providerVMNumber);\n }\n }\n // always let the preference setting proceed.\n return true;\n }", "protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}", "void onPickPhoneNumberAction(HashMap<String,String> pairs);", "public void setPhoneNumber(int phoneNumber) {\n\t\tthis.phoneNumber = phoneNumber;\n\t}", "private void init(){\n mPhoneNumber = \"\";\n mSelectedCountry = Utils.getDefaultCountry(this);\n mPresenter = new PhoneSignInSignUpPresenter();\n mPresenter.attachView(this);\n }", "@Override\n\tpublic void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n\t\t\n\t}", "public void setPhoneNumber(java.lang.CharSequence value) {\n this.phone_number = value;\n }", "private void init() {\n ip = SPUtils.get(this, Constant.SP_SERVICE_IP, \"\").toString();\n port = SPUtils.get(this, Constant.SP_SERVICE_PORT, \"\").toString();\n\n if (TextUtils.isEmpty(ip) || TextUtils.isEmpty(port)){\n editPort.setText(getResources().getString(R.string.default_port));\n editIp.setText(getResources().getString(R.string.default_ip));\n }else{\n editIp.setText(ip);\n editPort.setText(port);\n }\n }", "public NumberPicker(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {\n super(context, attrs, defStyleAttr, defStyleRes);\n this.mSelectorOffset = 0;\n this.mSelectorTextSize = 0.0f;\n this.mNormalTextSize = 0.0f;\n this.mSelectorTextColor = 0;\n this.mGradientHeight = 0;\n this.mSmallTextColor = 0;\n this.mNormalTextColor = 0;\n this.mIsDarkHwTheme = false;\n this.mFireList = new ArrayList();\n this.isVibrateImplemented = SystemProperties.getBoolean(\"ro.config.touch_vibrate\", false);\n this.FLING_FOWARD = 0;\n this.FLING_BACKWARD = 1;\n this.FLING_STOP = 2;\n this.mFlingDirection = this.FLING_STOP;\n this.mIsLongPress = false;\n this.mSoundPool = null;\n this.mSoundId = 0;\n this.mSoundLoadFinished = false;\n this.mVibratorEx = new VibratorEx();\n this.mIsSupportVibrator = false;\n initClass();\n this.mIsSupportVibrator = this.mVibratorEx.isSupportHwVibrator(\"haptic.control.time_scroll\");\n Log.d(TAG, \"Support HwVibrator type HW_VIBRATOR_TPYE_CONTROL_TIME_SCROLL: \" + this.mIsSupportVibrator);\n View.OnClickListener onClickListener = new View.OnClickListener() {\n public void onClick(View v) {\n ReflectUtil.callMethod(this, \"hideSoftInput\", null, null, NumberPicker.this.mGNumberPickerClass);\n EditText inputText = (EditText) ReflectUtil.getObject(this, \"mInputText\", NumberPicker.this.mGNumberPickerClass);\n if (inputText != null) {\n inputText.clearFocus();\n Class<?>[] changeValueByOneArgsClass = {Boolean.TYPE};\n if (v.getId() == 16908995) {\n 0[0] = true;\n } else {\n 0[0] = false;\n }\n ReflectUtil.callMethod(this, \"changeValueByOne\", changeValueByOneArgsClass, null, NumberPicker.this.mGNumberPickerClass);\n NumberPicker.this.setLongPressState(false);\n }\n }\n };\n View.OnLongClickListener onLongClickListener = new View.OnLongClickListener() {\n public boolean onLongClick(View v) {\n NumberPicker.this.setLongPressState(true);\n ReflectUtil.callMethod(this, \"hideSoftInput\", null, null, NumberPicker.this.mGNumberPickerClass);\n EditText inputText = (EditText) ReflectUtil.getObject(this, \"mInputText\", NumberPicker.this.mGNumberPickerClass);\n if (inputText != null) {\n inputText.clearFocus();\n Class<?>[] postChangeCurrentByOneFromLongPressArgsClass = {Boolean.TYPE, Long.TYPE};\n if (v.getId() == 16908995) {\n 0[0] = true;\n } else {\n 0[0] = false;\n }\n 0[1] = 0;\n ReflectUtil.callMethod(this, \"postChangeCurrentByOneFromLongPress\", postChangeCurrentByOneFromLongPressArgsClass, null, NumberPicker.this.mGNumberPickerClass);\n }\n return true;\n }\n };\n boolean hasSelectorWheel = ((Boolean) ReflectUtil.getObject(this, \"mHasSelectorWheel\", this.mGNumberPickerClass)).booleanValue();\n ImageButton incrementButton = (ImageButton) ReflectUtil.getObject(this, \"mIncrementButton\", this.mGNumberPickerClass);\n ImageButton decrementButton = (ImageButton) ReflectUtil.getObject(this, \"mDecrementButton\", this.mGNumberPickerClass);\n if (!(incrementButton == null || decrementButton == null || hasSelectorWheel)) {\n incrementButton.setOnClickListener(onClickListener);\n incrementButton.setOnLongClickListener(onLongClickListener);\n decrementButton.setOnClickListener(onClickListener);\n decrementButton.setOnLongClickListener(onLongClickListener);\n }\n initialNumberPicker(context, attrs);\n getSelectorWheelPaint().setColor(this.mNormalTextColor);\n Context context2 = context;\n this.mContext_Vibrate = context2;\n this.mSelectorWheelItemCount = 5;\n setSelectMiddleItemIdex(this.mSelectorWheelItemCount / 2);\n setSelectorIndices(new int[this.mSelectorWheelItemCount]);\n this.mDefaultTypeface = Typeface.create(null, 0);\n this.mHwChineseMediumTypeface = Typeface.create(HW_CHINESE_MEDIUM_TYPEFACE, 0);\n Resources res = context2.getResources();\n this.mEdgeOffset = res.getDimensionPixelSize(34472050);\n this.mEdgeOffsetTop = res.getDimensionPixelSize(34472477);\n this.mInternalOffsetAbove = res.getDimensionPixelSize(34472479);\n this.mInternalOffsetBelow = res.getDimensionPixelSize(34472480);\n getInputText().setTypeface(this.mHwChineseMediumTypeface);\n getInputText().setTextColor(this.mSelectorTextColor);\n try {\n mClassLoader = new DexClassLoader(apkPath, dexOutputDir, null, ClassLoader.getSystemClassLoader());\n } catch (IllegalArgumentException e) {\n Log.w(TAG, \"fail get mClassLoader\");\n }\n }", "private void initDefaults() {\n _nodeFadeSourceColor = _defNodeFadeSourceColor;\n _nodeFadeDestinationColor = _defNodeFadeDestinationColor;\n\n _nodeStrokeSourceColor = _defNodeStrokeSourceColor;\n _nodeStrokeDestinationColor = _defNodeStrokeDestinationColor;\n\n _nodeStrokeSourceWidth = _defNodeStrokeSourceWidth;\n _nodeStrokeDestinationWidth = _defNodeStrokeDestinationWidth;\n\n _supportEdgeFadeSourceColor = _defSupportEdgeFadeSourceColor;\n _supportEdgeFadeDestinationColor = _defSupportEdgeFadeDestinationColor;\n\n _refuteEdgeFadeSourceColor = _defRefuteEdgeFadeSourceColor;\n _refuteEdgeFadeDestinationColor = _defRefuteEdgeFadeDestinationColor;\n\n _edgeStrokeSourceWidth = _defEdgeStrokeSourceWidth;\n _edgeStrokeDestinationWidth = _defEdgeStrokeDestinationWidth;\n\n _curvedLines = _defCurvedLines;\n\n _manualBackgroundColor = _defManualBackgroundColor;\n\n _realTimeSliderResponse = _defRealTimeSliderResponse;\n }", "public void setNumber(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public interface OnPhoneNumberMultiPickerActionListener {\n\n /**\n * Returns the selected phone number to the requester.\n */\n void onPickPhoneNumberAction(HashMap<String,String> pairs);\n void onCancel();\n\n}", "public GeopodIntegerTextField ()\r\n\t{\r\n\t\tsuper ();\r\n\t\tsuper.addFocusListener (this);\r\n\t\tsetDefaultValidRange ();\r\n\t}", "public void setDefaultFromAddress(String theDefaultFromAddress) {\n\t\tValidate.notBlank(theDefaultFromAddress, \"theDefaultFromAddress must not be null or blank\");\n\t\tmyDefaultFromAddress = theDefaultFromAddress;\n\t}", "public void setNumero(int numero) { this.numero = numero; }", "public void updatePhoneNumber(String newPhoneNum)\r\n {\r\n phoneNum = newPhoneNum;\r\n }", "public void setNumber(int number) {\n this.number = number;\n }", "public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }", "public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }", "public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }", "public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }", "@Override\n public void setVoiceMailNumber(String alphaTag, String voiceNumber,\n Message onComplete) {\n }", "public void setNumber(int number)\n {\n this.number = number;\n }", "public void set(TelephoneNumberImpl telephoneNumber) throws JAXRException, JSONException {\r\n\r\n\t\tif (telephoneNumber == null) {\r\n\t\t\tsetDefaultNumber();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t/*\r\n\t\t\t * Country code\r\n\t\t\t */\r\n\t\t\tString countryCode = telephoneNumber.getCountryCode();\r\n\t\t\tcountryCode = (countryCode == null) ? \"\" : countryCode;\r\n\r\n\t\t\tput(JaxrConstants.RIM_COUNTRY_CODE, countryCode);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Area code\r\n\t\t\t */\r\n\t\t\tString areaCode = telephoneNumber.getAreaCode();\r\n\t\t\tareaCode = (areaCode == null) ? \"\" : areaCode;\r\n\r\n\t\t\tput(JaxrConstants.RIM_AREA_CODE, areaCode);\r\n\t\r\n\t\t\t/*\r\n\t\t\t * Phone number\r\n\t\t\t */\r\n\t\t\tString phoneNumber = telephoneNumber.getNumber();\r\n\t\t\tphoneNumber = (phoneNumber == null) ? \"\" : phoneNumber;\r\n\r\n\t\t\tput(JaxrConstants.RIM_PHONE_NUMBER, phoneNumber);\r\n\t\r\n\t\t\tString extension = telephoneNumber.getExtension();\r\n\t\t\textension = (extension == null) ? \"\" : extension;\r\n\r\n\t\t\tput(JaxrConstants.RIM_PHONE_EXTENSION, extension);\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "void setInputVerification() {\r\n\t\tlistenerForOnlyDigitsInput(tfphone);\r\n\t\tlistenerForOnlyDigitsInput(tfIDNumber);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard1);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard2);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard3);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard4);\r\n\t}", "protected void installDefaults() {\n\t\tsuper.installDefaults();\n\t\tpadding = UIManager.getInsets(\"ComboBox.padding\");\n\t}", "public Builder clearNumber() {\n bitField0_ = (bitField0_ & ~0x00000001);\n number_ = getDefaultInstance().getNumber();\n onChanged();\n return this;\n }", "public void SetImportedNumbet(String pNumber) {\r\n if (editTextCounter == txtAddFnFBl.getId()) {\r\n txtAddFnFBl.setText(pNumber);\r\n btnAddFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtAddSFnFBl.getId()) {\r\n txtAddSFnFBl.setText(pNumber);\r\n btnAddSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtDeleteFnfBl.getId()) {\r\n txtDeleteFnfBl.setText(pNumber);\r\n btnDeleteFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfOldBl.getId()) {\r\n txtChangeFnfOldBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfNewBl.getId()) {\r\n txtChangeFnfNewBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfOldBl.getId()) {\r\n txtChangeSFnfOldBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfNewBl.getId()) {\r\n txtChangeSFnfNewBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n }\r\n }", "protected void performDefaults() {\r\n\t}", "public void defNumber(String fieldname, String numberFormat) {\r\n calls.put(fieldname, new DecimalFormat(numberFormat));\r\n }", "@Override\n public void initData(Bundle savedInstanceState) {\n phone = SPUtils.getString(Constant.PHONE, null, context);\n edPhone.setText(phone);\n }", "public void initDefaultValues(PathologyReportReviewParameter t)\r\n\t{\n\r\n\t}", "@Override\n public String getphoneNumber() {\n return ((EditText)findViewById(R.id.phoneNumberUserPage)).getText().toString().trim();\n }", "public void setTelephoneNumber(String newNumber)\r\n\t{\r\n\t\ttelephoneNumber = newNumber;\r\n\t}", "public void setNumberType(NumericFieldType numberType) {\n\t\tthis.numberType = numberType;\n\t\trequestRepaint();\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}" ]
[ "0.62678844", "0.5636994", "0.5563568", "0.55039716", "0.5390341", "0.53392494", "0.53235203", "0.5313871", "0.5259591", "0.5218312", "0.5181447", "0.5161738", "0.51610863", "0.51327163", "0.51323587", "0.51109123", "0.5094433", "0.5089156", "0.508609", "0.5068896", "0.50622386", "0.5046468", "0.504133", "0.50410175", "0.5027929", "0.4984253", "0.49836558", "0.49761385", "0.49506614", "0.4942836", "0.4941315", "0.49261874", "0.49209076", "0.49134728", "0.48978072", "0.48955846", "0.48934174", "0.4880431", "0.4876643", "0.48639318", "0.48416674", "0.48297188", "0.48228443", "0.4809398", "0.48050758", "0.47976902", "0.47970915", "0.4794031", "0.4788904", "0.47879785", "0.47841886", "0.47827438", "0.47789398", "0.47769722", "0.475999", "0.47506848", "0.47457975", "0.474368", "0.4739666", "0.47385892", "0.4736677", "0.47358724", "0.47308257", "0.4728701", "0.4720834", "0.47141248", "0.47134653", "0.47105274", "0.47081012", "0.46900412", "0.46877313", "0.46747974", "0.4670793", "0.46652564", "0.46644893", "0.4659051", "0.46585804", "0.4654936", "0.46477842", "0.46286654", "0.46268338", "0.46251708", "0.4623207", "0.46212128", "0.4618879", "0.4615442", "0.46134093", "0.46098575", "0.46035546", "0.45986444", "0.45981178", "0.45972762", "0.45900497", "0.45856842", "0.4580765", "0.4569169", "0.4568821", "0.4568353", "0.4568353", "0.4568353" ]
0.6432216
0
override the startsubactivity call to make changes in state consistent.
@Override public void startActivityForResult(Intent intent, int requestCode) { if (requestCode == -1) { // this is an intent requested from the preference framework. super.startActivityForResult(intent, requestCode); return; } if (DBG) log("startSubActivity: starting requested subactivity"); super.startActivityForResult(intent, requestCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void startActivity(final Activity activity) {\r\n\t// FIXME: temp hack for Slide curtains\r\n\tif (activity.getName().equals(\"Curtains\")) {\r\n\t\ttry {\r\n\t\t\tString response = Request.Post(\"https://\" + slideHost + \"/rpc/Slide.SetPos\").bodyString(\"{\\\"pos\\\": 1}\", ContentType.APPLICATION_JSON).execute().returnContent().asString();\r\n\t\t\tSystem.out.println(\"Slide response: \" + response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n if (this.isActive(activity)) {\r\n throw new IllegalStateException(\"Activity already active\");\r\n }\r\n if (this.activeActivity != null) {\r\n // Another activity is currently active, so stop that one first.\r\n // TODO: Don't turn off / turn on overlapping devices, but only change channels where needed.\r\n this.stopActivity(this.activeActivity);\r\n }\r\n final PyhActivity oldValue = this.createPyhActivity(activity);\r\n this.activeActivity = activity;\r\n if (activity.getModules().getPhilipsHue() != null) {\r\n this.taskExecutor.execute(() -> this.activateHueModule(activity.getModules().getPhilipsHue()));\r\n }\r\n if (activity.getModules().getInfraRed() != null) {\r\n this.taskExecutor.execute(() -> this.activateIrModule(activity.getModules().getInfraRed()));\r\n }\r\n final PyhActivity newValue = this.createPyhActivity(activity);\r\n this.eventPublisher.publishEvent(new ActivityChangedEvent(oldValue, newValue));\r\n }", "protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}", "public static void enterSubLevel() {\n\t\tif (!running) return;\n\t\t\n\t\tstate = state.getSubState();\n\t}", "@Override\n public void onActivityStarted(@NonNull final Activity activity) {\n sActivity.set(activity);\n\n if (isAccessToLocationAllowed() && mStartStopCounter.incrementAndGet() == 1)\n\n addTask(ActivityLifecycle.STARTED, new Runnable() {\n @Override\n public void run() {\n final LocationClient locationClient = getLocationClient();\n if (locationClient != null && mStartStopCounter.get() == 1) {\n\n CoreLogger.log(\"LocationClient.onStart()\");\n locationClient.onStart(activity);\n }\n }\n });\n }", "@Override\n public synchronized void start() {\n\n lifecycleState = LifecycleState.START;\n }", "@Override\n public synchronized void start()\n {\n if (run)\n return;\n run = true;\n super.start();\n }", "private void start()\n {\n _taskThread.start();\n _state = ActivityState.RUNNING;\n }", "public void startSportsActivity() {\n mRTS.getAndroidLocationListener().requestGps(true, TAG);\n\n if (mStatus != ActivityUtil.SPORTS_ACTIVITY_STATUS_NO_ACTIVITY) {\n return;\n // Doesn't make sense to start something that is already\n // started\n }\n\n setupRIBFiles();\n mRTS.reInitializeForNewSports(mType, true);\n mStartTime = mRTS.getReconTimeManager().getUTCTimems();\n mTotalNumberOfRides++;\n mStatus = ActivityUtil.SPORTS_ACTIVITY_STATUS_ONGOING;\n stamp();\n showStatusOnStatusBar();\n mRTS.getReconEventHandler()\n .writeSportsActivityEvent(ReconEventHandler\n .SPORTS_ACTIVITY_START_EVENT,\n mType);\n notifyAndSaveTempStates();\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\r\n\tpublic synchronized void start() {\n\t\tsuper.start();\r\n\t}", "protected abstract void startMonitoring(fr.inria.phoenix.diasuite.framework.datatype.dailyactivityname.DailyActivityName activity) throws Exception;", "public abstract void started();", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tStateAddress.currentActivity = this;\n\t}", "public void doStart() {\n if (this.mActive == null) {\n a();\n } else {\n com.alipay.mobile.common.task.Log.v(TAG, \"StandardPipeline.start(a task is running, so don't call scheduleNext())\");\n }\n }", "@Override()\n protected void onCreate(final Bundle state)\n {\n logEnter(LOG_TAG, \"onCreate\", state);\n\n super.onCreate(state);\n\n final Intent i = getIntent();\n final Bundle extras = i.getExtras();\n restoreState(extras);\n }", "@Override\n protected CallStatusCode placeCallInternal(Intent intent) {\n if (DBG) log(\"placeCallInternal()... intent = \" + intent);\n int sub = intent.getIntExtra(SUBSCRIPTION_KEY, mApp.getVoiceSubscription());\n\n PhoneUtils.setActiveSubscription(sub);\n return super.placeCallInternal(intent);\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "private void superStartActivity(Intent intent, Bundle options) {\n super.startActivity(intent, options);\n }", "@Override\n public boolean activityStarting(Intent intent, String pkg) throws RemoteException {\n Log.i(TAG, String.format(\"Starting %s in package %s\", intent, pkg));\n currentPackage = pkg;\n currentIntent = intent;\n return true;\n }", "@Override\n\tprotected void onResume() {\n\n\t\tsuper.onResume();\n\t\tApplicationStatus.activityResumed();\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 start() {\n\t\tSystem.out.println(\"parent method\");\n\t}", "public void start(){\n\t\tsuper.start();\n\t}", "private void notifyTaskStarted(int action) {\n Intent intent = new Intent(LocalAction.ACTION_BACKUP_SERVICE_STARTED);\n intent.putExtra(ACTION, action);\n intent.putExtra(CALLER_ID, mCallerId);\n mBroadcastManager.sendBroadcast(intent);\n // update the notification if required\n if (mNotificationBuilder != null) {\n mNotificationBuilder.setContentTitle(getNotificationContentTitle(action, false));\n startForeground(NotificationContract.NOTIFICATION_ID_BACKUP_PROGRESS, mNotificationBuilder.build());\n }\n }", "public synchronized void start() {\n\t\tstartSuspended();\r\n\t\tsetRunnable(true);\r\n\t}", "protected void startStats(){\n Intent activityChangeIntent = new Intent(MainActivity.this, StatisticManagerActivity.class);\n startActivity(activityChangeIntent);\n }", "private void setTopActivity(final Activity activity) {\n if (mActivityList.contains(activity)) {\n if (!mActivityList.getFirst().equals(activity)) {\n mActivityList.remove(activity);\n mActivityList.addFirst(activity);\n }\n } else {\n mActivityList.addFirst(activity);\n }\n }", "@Override\n public void start() throws Exception {\n running = true;\n executionThread = new Thread(this, \"subMan\");\n executionThread.start();\n System.out.println(\"SUBSCRIPTION MANAGER THREAD STARTED!\");\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\t// Can happen when:\n\t\t// 1) Started by another app via \"startActivity(TiActivity)\".\n\t\t// 2) If app was force-quit by the OS due to low memory, then on app relaunch the OS will restore last shown\n\t\t// activities backwards, starting with last displayed top-most child activity instead of root activity.\n\t\t// Last known parent activity won't be restored/recreated until after finishing the child activity.\n\t\t// So, in this case, we want to keep finishing child activities until we're back to the root activity.\n\t\t// ---------------------------------------------------------------------------------------------------------\n\t\tif (TiRootActivity.isScriptRunning() == false) {\n\t\t\tLog.i(TAG, \"Launching with '\" + getClass().getName() + \"' is not allowed. Closing activity.\");\n\t\t\tthis.isInvalidLaunch = true;\n\t\t\tactivityOnCreate(savedInstanceState);\n\t\t\tfinish();\n\t\t\toverridePendingTransition(android.R.anim.fade_in, 0);\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\t// Fetch the root activity.\n\t\tTiRootActivity rootActivity = getTiApp().getRootActivity();\n\t\tif (rootActivity != null) {\n\t\t\t// Start listening for onNewIntent() calls on the root activity.\n\t\t\t// This will copy the root activity's intent to this activity whenever it changes.\n\t\t\t// Note: This is legacy behavior that Titanium app developers currently depend on.\n\t\t\tthis.rootNewIntentListener = new TiRootActivity.OnNewIntentListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onNewIntent(TiRootActivity activity, Intent intent)\n\t\t\t\t{\n\t\t\t\t\t// This copies intent, updates proxy's \"intent\" property, and fires \"newintent\" event.\n\t\t\t\t\tTiActivity.this.onNewIntent(intent);\n\t\t\t\t}\n\t\t\t};\n\t\t\trootActivity.addOnNewIntentListener(this.rootNewIntentListener);\n\n\t\t\t// Copy the root activity's intent.\n\t\t\tonNewIntent(rootActivity.getIntent());\n\t\t}\n\t}", "private void start(Outgoing incoming){\n log.info(\"{} start with incoming data: {}\", sb.id, incoming);\n\n peerSources = incoming.sources; // deepCopy\n peerId = incoming.id;\n\n if(!streamOptions.isReadable()){\n shakeHands(new Update[0]);\n return;\n }\n\n if( AsyncScuttlebutt.class.isAssignableFrom(sb.getClass())){\n AsyncScuttlebutt asyncSb = (AsyncScuttlebutt) sb;\n asyncSb.reentrantLock(() -> { // 读取history,和监听sb上的update必须是原子性的,否则可能漏消息\n Update[] history = sb.history(peerSources);\n shakeHands(history);\n });\n }else{\n Update[] history = sb.history(peerSources);\n shakeHands(history);\n }\n\n }", "@Override\n public synchronized void start() {\n super.start(); //To change body of generated methods, choose Tools | Templates.\n }", "public final void start(){\n cpt = 0;\n inProgress = true;\n init();\n UpdateableManager.addToUpdate(this);\n }", "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\r\n\t\tif(!startAsync )\r\n\t\t{\r\n\t\t\tstartAsync = true;\r\n\t\t\tnew GetCategoryNameByCatId(StaticVariables.subCategoryId,parentId).execute();\r\n\t\t}\r\n\t}", "protected void noActiveActivity() {\n\t\tLog.i(STARTUP, \"no active activity\");\n\t\tcancelNotification();\n\t\tcreateNotification();\n\t\tstartMainService();\t\t\n\t}", "@Override\n\tprotected void startInternal() throws LifecycleException {\n\t\t\n\t}", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n\t}", "public static void start(GameActivity a) {\n\t\tact = a;\n\t\tgame.start();\n\t}", "@Override\n public void notifyUpdate(ActivityData data) {\n if (data.getActivityType() != getData().getActivityType()) {\n activityStarted = data.getTimestamp();\n }\n super.notifyUpdate(data);\n }", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "private InCallState startOrFinishUi(InCallState newState) {\n Log.d(this, \"startOrFinishUi: \" + mInCallState + \" -> \" + newState);\n\n // TODO: Consider a proper state machine implementation\n\n // If the state isn't changing we have already done any starting/stopping of activities in\n // a previous pass...so lets cut out early\n if (newState == mInCallState) {\n return newState;\n }\n\n // A new Incoming call means that the user needs to be notified of the the call (since\n // it wasn't them who initiated it). We do this through full screen notifications and\n // happens indirectly through {@link StatusBarNotifier}.\n //\n // The process for incoming calls is as follows:\n //\n // 1) CallList - Announces existence of new INCOMING call\n // 2) InCallPresenter - Gets announcement and calculates that the new InCallState\n // - should be set to INCOMING.\n // 3) InCallPresenter - This method is called to see if we need to start or finish\n // the app given the new state.\n // 4) StatusBarNotifier - Listens to InCallState changes. InCallPresenter calls\n // StatusBarNotifier explicitly to issue a FullScreen Notification\n // that will either start the InCallActivity or show the user a\n // top-level notification dialog if the user is in an immersive app.\n // That notification can also start the InCallActivity.\n // 5) InCallActivity - Main activity starts up and at the end of its onCreate will\n // call InCallPresenter::setActivity() to let the presenter\n // know that start-up is complete.\n //\n // [ AND NOW YOU'RE IN THE CALL. voila! ]\n //\n // Our app is started using a fullScreen notification. We need to do this whenever\n // we get an incoming call. Depending on the current context of the device, either a\n // incoming call HUN or the actual InCallActivity will be shown.\n final boolean startIncomingCallSequence = (InCallState.INCOMING == newState);\n\n // A dialog to show on top of the InCallUI to select a PhoneAccount\n final boolean showAccountPicker = (InCallState.WAITING_FOR_ACCOUNT == newState);\n\n // A new outgoing call indicates that the user just now dialed a number and when that\n // happens we need to display the screen immediately or show an account picker dialog if\n // no default is set. However, if the main InCallUI is already visible, we do not want to\n // re-initiate the start-up animation, so we do not need to do anything here.\n //\n // It is also possible to go into an intermediate state where the call has been initiated\n // but Telecomm has not yet returned with the details of the call (handle, gateway, etc.).\n // This pending outgoing state can also launch the call screen.\n //\n // This is different from the incoming call sequence because we do not need to shock the\n // user with a top-level notification. Just show the call UI normally.\n final boolean mainUiNotVisible = !isShowingInCallUi() || !getCallCardFragmentVisible();\n boolean showCallUi = InCallState.OUTGOING == newState && mainUiNotVisible;\n\n // Direct transition from PENDING_OUTGOING -> INCALL means that there was an error in the\n // outgoing call process, so the UI should be brought up to show an error dialog.\n showCallUi |= (InCallState.PENDING_OUTGOING == mInCallState\n && InCallState.INCALL == newState && !isActivityStarted());\n\n // Another exception - InCallActivity is in charge of disconnecting a call with no\n // valid accounts set. Bring the UI up if this is true for the current pending outgoing\n // call so that:\n // 1) The call can be disconnected correctly\n // 2) The UI comes up and correctly displays the error dialog.\n // TODO: Remove these special case conditions by making InCallPresenter a true state\n // machine. Telecom should also be the component responsible for disconnecting a call\n // with no valid accounts.\n showCallUi |= InCallState.PENDING_OUTGOING == newState && mainUiNotVisible\n && isCallWithNoValidAccounts(mCallList.getPendingOutgoingCall());\n\n // The only time that we have an instance of mInCallActivity and it isn't started is\n // when it is being destroyed. In that case, lets avoid bringing up another instance of\n // the activity. When it is finally destroyed, we double check if we should bring it back\n // up so we aren't going to lose anything by avoiding a second startup here.\n boolean activityIsFinishing = mInCallActivity != null && !isActivityStarted();\n if (activityIsFinishing) {\n Log.i(this, \"Undo the state change: \" + newState + \" -> \" + mInCallState);\n return mInCallState;\n }\n\n if (showCallUi || showAccountPicker) {\n Log.i(this, \"Start in call UI\");\n showInCall(false /* showDialpad */, !showAccountPicker /* newOutgoingCall */);\n } else if (startIncomingCallSequence) {\n Log.i(this, \"Start Full Screen in call UI\");\n\n // We're about the bring up the in-call UI for an incoming call. If we still have\n // dialogs up, we need to clear them out before showing incoming screen.\n if (isActivityStarted()) {\n mInCallActivity.dismissPendingDialogs();\n }\n if (!startUi(newState)) {\n // startUI refused to start the UI. This indicates that it needed to restart the\n // activity. When it finally restarts, it will call us back, so we do not actually\n // change the state yet (we return mInCallState instead of newState).\n return mInCallState;\n }\n } else if (newState == InCallState.NO_CALLS) {\n // The new state is the no calls state. Tear everything down.\n attemptFinishActivity();\n attemptCleanup();\n }\n\n return newState;\n }", "public void onResume(){\n Intent thissa = new Intent(SuperNotCalled.this,SuperNotCalled.class); \n startActivity(thissa);\n }", "@Override\n public void needReloain(Activity activity) {\n }", "@Override\n protected void beforeExecute(final Thread thread, final Runnable run) {\n mActiveTasks.add(run);\n super.beforeExecute(thread, run);\n }", "@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}", "private static void setStatus(CharSequence subTitle, Activity activity) {\n\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "@Override\n public void onActivityResumed(@NonNull final Activity activity) {\n sActivity.set(activity);\n\n if (isAccessToLocationAllowed() && mPauseResumeCounter.incrementAndGet() == 1)\n\n addTask(ActivityLifecycle.RESUMED, new Runnable() {\n @Override\n public void run() {\n final LocationClient locationClient = getLocationClient();\n if (locationClient != null && mPauseResumeCounter.get() == 1) {\n\n CoreLogger.log(\"LocationClient.onResume()\");\n locationClient.onResume(activity);\n }\n }\n });\n }", "public void activateSubStep(VerifierStatus status) {\n if (status.isStarting()) {\n return;\n }\n if (mIsAnimating) {\n mStatusQueue.add(status);\n } else {\n animateItem(status);\n }\n }", "@Override\n public void start() {\n checkValue();\n super.start();\n }", "private void startChangeTipActivity()\n {\n\t\tIntent settingsIntent = new Intent();\n\t\tsettingsIntent.setClass(this, ChangeTipActivity.class);\n\t\tstartActivity(settingsIntent);\t\t\n\t}", "protected abstract ActivityComponent setupComponent();", "protected synchronized void started(ITrace trace) {\n\t\t//\n\t}", "private void startChildActivity(Intent intent) {\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tString id = intent.getComponent().getClassName();\n\t\tWindow window = getLocalActivityManager().startActivity(id, intent);\n\t\tsetContentView(window.getDecorView());\n\t}", "public void activate() {\r\n\t\tif (state != MachineState.DOWN)\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Only a machine in state DOWN can be activated.\");\r\n\t\tassert curJob == null;\r\n\r\n\t\tstate = MachineState.IDLE;\r\n\t\tprocFinished = -1.0d;\r\n\t\tprocStarted = -1.0d;\r\n\r\n\t\tworkStation.activated(this);\r\n\r\n\t\tdownReason = null;\r\n\t}", "@Override\n public void setLatestActivity(IActivity activity) {\n }", "public S(Activity activity){\n\t\tthis.activity = activity;\n\t\t\n\t}", "@Override\n public void onResume(Activity activity) {\n }", "public void startExecuting()\n {\n super.startExecuting();\n }", "public void setActivity(BaseActivity act)\n {\n this.activity = act;\n\n if (act == null) {\n //dismiss the dialog if there is no\n //activity associated with this task\n dismissProgressDialog();\n }\n else\n {\n //activity is being attached to the background thread.\n //Check if the task is already completed\n if (taskCompleted && getStatus().equals(AsyncTask.Status.FINISHED)\n && updateOnActivityAttach) {\n \tif (!isCancelled()) {\n\t //yes, notify about completion of task\n\t notifyTaskCompletion(null);\n \t}\n \telse {\n \t\tnotifyTaskCancelled(null);\n \t}\n }\n else\n {\n //no, display the progress dialog indicating the\n //background task is still running.\n showProgressDialog();\n }\n }\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tmNtApi.start();\r\n\t}", "@Override\n\t\tprotected void onResume() {\n\t\t\tsuper.onResume();\n\t\t}", "protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}", "public void setStarted(boolean started){\n \tthis.started = started;\n }", "public void startExecuting()\n {\n super.startExecuting();\n this.breakingTime = 0;\n }", "private void startCall() {\n // If firebase isn't auth don't call\n if (mUser == null) return;\n setupLocalVideo();\n joinChannel();\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tStatService.onResume(context);\n\t}", "@Override\r\n\tpublic void startTurn() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"studying\");\n\t}", "private void setupActivityState()\n {\n SyncDataService.startActionFetchAll(getApplicationContext());\n\n hideFAB();\n this.tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n public void onTabReselected(TabLayout.Tab paramTab) {\n }\n\n public void onTabSelected(TabLayout.Tab paramTab) {\n viewPager.setCurrentItem(paramTab.getPosition());\n switch (paramTab.getPosition()) {\n default:\n return;\n case 0:\n hideFAB();\n return;\n case 1:\n setFloatingActionButtonForClients();\n return;\n case 2:\n setFloatingActionButtonForProducts();\n return;\n }\n\n }\n\n public void onTabUnselected(TabLayout.Tab paramTab) {\n }\n });\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n//\t\tStatService.onPause(mContext);\n\t}", "@Override\n\tprotected void onResume() {\n\t\t\tif(SPHelper.getDetailMsg(SettingActivity.this, \"ischecked\", \"\").equals(\"\")){\n\t\t\t\tIntent intent = new Intent(SettingActivity.this, AppActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t\tsuper.onResume();\n\t}", "@Override\r\n\tpublic void subTask(String name) {\n\t}", "@Override\n\tprotected void onResume() {\n\t\tSystem.out.println(\"---onResume---\");\n\t\tsuper.onResume();\n\t}", "public abstract void performRestartActivity(IBinder token, boolean start);", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "@Override\n public void start() {\n //start eye tracking if it is not running already\n startEyeTracking();\n\n super.start();\n\n //start light sensor\n mLightIntensityManager.startLightMonitoring();\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tparentActivity=activity;\n\t}", "public void startTask() {\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "protected abstract boolean start();", "public void onResume() {\n super.onResume();\n MiStatInterface.recordPageStart((Activity) this, \"SetMyOtherInfoActivity\");\n }" ]
[ "0.61899185", "0.61181015", "0.6115353", "0.60360414", "0.58732605", "0.57392657", "0.56488615", "0.5573125", "0.5547847", "0.5547847", "0.5517698", "0.5515907", "0.54873914", "0.5441301", "0.5440674", "0.5436522", "0.54330593", "0.5419652", "0.5391675", "0.53822166", "0.5375855", "0.5353876", "0.5332974", "0.53113323", "0.53062594", "0.52923584", "0.52911544", "0.5288122", "0.5271165", "0.5265163", "0.52419657", "0.52327573", "0.5226399", "0.5226253", "0.5206681", "0.52004504", "0.5182954", "0.5182374", "0.5181379", "0.5178569", "0.51756877", "0.51616347", "0.51576394", "0.5156056", "0.5152673", "0.5149725", "0.5148557", "0.51453674", "0.5132667", "0.51224446", "0.51170504", "0.5111332", "0.51083577", "0.5100742", "0.50948995", "0.50908345", "0.50907296", "0.50897795", "0.50799286", "0.50789464", "0.5074845", "0.5060551", "0.5053146", "0.5052541", "0.50509274", "0.503921", "0.5033997", "0.5025555", "0.5021762", "0.50206655", "0.50196874", "0.50196874", "0.50180805", "0.50180805", "0.50139415", "0.50092185", "0.5008295", "0.5003942", "0.50036573", "0.5000574", "0.50000167", "0.49989632", "0.49967408", "0.49967408", "0.49967408", "0.49967408", "0.49967408", "0.49967408", "0.49967408", "0.49967408", "0.49967408", "0.49967408", "0.49937314", "0.49931625", "0.4992413", "0.4992233", "0.49899378", "0.49899378", "0.49797806", "0.4978022" ]
0.65571046
0
asynchronous result call after contacts are selected or after we return from a call to the VM settings provider.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // there are cases where the contact picker may end up sending us more than one // request. We want to ignore the request if we're not in the correct state. if (requestCode == VOICEMAIL_PROVIDER_CFG_ID) { if (resultCode != RESULT_OK) { if (DBG) log("onActivityResult: vm provider cfg result not OK."); return; } if (data == null) { if (DBG) log("onActivityResult: vm provider cfg result has no data"); return; } String vmNum = data.getStringExtra(VM_NUMBER_EXTRA); if (vmNum == null) { if (DBG) log("onActivityResult: vm provider cfg result has no vmnum"); return; } saveVoiceMailNumber(vmNum); return; } if (resultCode != RESULT_OK) { if (DBG) log("onActivityResult: contact picker result not OK."); return; } Cursor cursor = getContentResolver().query(data.getData(), NUM_PROJECTION, null, null, null); if ((cursor == null) || (!cursor.moveToFirst())) { if (DBG) log("onActivityResult: bad contact data, no results found."); return; } switch (requestCode) { case VOICEMAIL_PREF_ID: mSubMenuVoicemailSettings.onPickActivityResult(cursor.getString(0)); break; default: // TODO: may need exception here. } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onFinish() {\n EventBus.getDefault().post(new SyncContactsFinishedEvent());\n //to prevent initial sync contacts when the app is launched for first time\n SharedPreferencesManager.setContactSynced(true);\n stopSelf();\n }", "@Override\n public void onSuccess(Void aVoid) {\n mFirebaseRemoteConfig.activateFetched();\n\n // Update the EditText length limit with\n // the newly retrieved values from Remote Config.\n applyRetrievedLengthLimit();\n }", "public void selectContact() {\r\n Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);\r\n startActivityForResult(intent, PICK_CONTACT);\r\n }", "private void reloadAdapter() {\n new ContactAsync().execute();\n }", "private void callWebServiceData() {\r\n\r\n\t\tif(Utility.FragmentContactDataFetchedOnce){\r\n\t\t\tgetDataFromSharedPrefernce();\r\n\t\t} else {\r\n\t\t\t//Utility.startDialog(activity);\r\n\t\t\tnew GetDataAsynRegistration().execute();\r\n\t\t}\r\n\t}", "private void proceedAfterPermission() {\n Toast.makeText(getBaseContext(), \"We got the contacts Permission\", Toast.LENGTH_LONG).show();\n\n }", "@Override\n protected void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case REQUEST_GOOGLE_PLAY_SERVICES:\n if (resultCode != RESULT_OK) {\n Toast.makeText(getApplicationContext(), R.string.str_gplay_svcs_install, Toast.LENGTH_LONG).show();\n finish();\n } else {\n getResultsFromApi(this);\n }\n break;\n case REQUEST_ACCOUNT_PICKER:\n if (resultCode == RESULT_OK && data != null &&\n data.getExtras() != null) {\n String accountName =\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\n if (accountName != null) {\n SharedPreferences settings =\n getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_ACCOUNT_NAME, accountName);\n editor.apply();\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi(this);\n }\n }\n break;\n case REQUEST_AUTHORIZATION:\n if (resultCode == RESULT_OK) {\n getResultsFromApi(this);\n }\n break;\n }\n }", "@Override\n\tpublic void result(ContactResult arg0) {\n\t\t\n\t}", "@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\n private void chooseAccount() {\n if (EasyPermissions.hasPermissions(\n this, Manifest.permission.GET_ACCOUNTS)) {\n String accountName = getPreferences(Context.MODE_PRIVATE)\n .getString(PREF_ACCOUNT_NAME, null);\n if (accountName != null) {\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi();\n } else {\n // Start a dialog from which the user can choose an account\n startActivityForResult(\n mCredential.newChooseAccountIntent(),\n REQUEST_ACCOUNT_PICKER);\n }\n } else {\n // Request the GET_ACCOUNTS permission via a user dialog\n EasyPermissions.requestPermissions(\n this,\n \"This app needs to access your Google account (via Contacts).\",\n REQUEST_PERMISSION_GET_ACCOUNTS,\n Manifest.permission.GET_ACCOUNTS);\n }\n }", "public void onSuccess(List<ContactDTO> result)\n {\n int size = result.size();\n if (endIndex >= 0)\n {\n if (endIndex < startIndex)\n {\n size = 0;\n }\n else\n {\n size = endIndex - startIndex + 1;\n }\n }\n // Create list for return - it is just requested records\n ListGridRecord[] list = new ListGridRecord[size];\n if (size > 0)\n {\n for (int i = 0; i < result.size(); i++)\n {\n if (i >= startIndex && i <= endIndex)\n {\n ListGridRecord record = new ListGridRecord();\n copyValues(result.get(i), record);\n list[i - startIndex] = record;\n }\n }\n }\n response.setStatus(RPCResponse.STATUS_SUCCESS);\n response.setData(list);\n // IMPORTANT: for paging to work we have to specify size of full\n // result set\n response.setTotalRows(result.size());\n processResponse(requestId, response);\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n Log.d(\"TAG\", \"onSuccess: settingsCheck\");\n getCurrentLocation();\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (requestCode == 1001) {\n\t\t\t// Make sure the request was successful\n\t\t\tif (resultCode == Activity.RESULT_OK) {\n\t\t\t\t// The user picked a contact.\n\t\t\t\t// The Intent's data Uri identifies which contact was selected.\n\n\n\n\t\t\t\tneedsRefresh=true;\n\n\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onFinish() {\n if(mListener != null && ContactUtils.checkAlphaOTAChannel(mContext)){\n mListener.checkDataContact(mDataIdContact, mIdContactSuggest, mNameContact, mPhoneContact);\n }\n }", "@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\r\n private void chooseAccount() {\r\n if (EasyPermissions.hasPermissions(\r\n getActivity(), Manifest.permission.GET_ACCOUNTS)) {\r\n String accountName = getActivity().getPreferences(Context.MODE_PRIVATE)\r\n .getString(PREF_ACCOUNT_NAME, null);\r\n\r\n if (accountName != null) {\r\n mCredential.setSelectedAccountName(accountName);\r\n Log.i(accountName,\"accountName:\");\r\n getResultsFromApi();\r\n } else {\r\n // Start a dialog from which the user can choose an account\r\n startActivityForResult(\r\n mCredential.newChooseAccountIntent(),\r\n REQUEST_ACCOUNT_PICKER);\r\n }\r\n } else {\r\n // Request the GET_ACCOUNTS permission via a user dialog\r\n EasyPermissions.requestPermissions(\r\n this,\r\n \"This app needs to access your Google account (via Contacts).\",\r\n REQUEST_PERMISSION_GET_ACCOUNTS,\r\n Manifest.permission.GET_ACCOUNTS);\r\n }\r\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n ((UnifiedAppApplication) getApplication()).mFusedLocationClient = LocationServices\n .getFusedLocationProviderClient(ProjectListActivity.this);\n ((UnifiedAppApplication) getApplication()).initializeLocation();\n ((UnifiedAppApplication) getApplication()).startLocationUpdates();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n settingsManager.onActivityResult(requestCode, resultCode);\n }", "public void handleSelectedItem(int position) {\r\n\r\n\r\n if (!(position >= 0 && position < searchResults.size()))\r\n return;\r\n\r\n SearchResult selected = searchResults.get(position);\r\n\r\n //If the selected contact is a global result then insert to the headbox contact.\r\n if (selected.getSearchType() == SearchResult.SearchType.GLOBAL) {\r\n insertGlobalContact(selected);\r\n }\r\n\r\n if (searchMode == SearchViewMode.MERGE) {\r\n\r\n handleMergeSelectedItem(position);\r\n\r\n } else if (searchMode == SearchViewMode.REMERGE) {\r\n\r\n handleRemergeSelectedItem(position);\r\n\r\n }\r\n\r\n }", "@Override\n public void onSuccess(SettingsModel settingsModel) {\n view.onSuccess(settingsModel);\n }", "@Override\n protected void onPostExecute(ArrayList<WorkoutDetails> result) {\n contactsOutput = result;\n this.progressDialog.dismiss();\n }", "@Override\n protected void onPostExecute(Boolean result) {\n setValue();\n }", "@Override\n protected void onPostExecute(Boolean result) {\n setValue();\n }", "@Override\n protected void onPostExecute(Boolean result) {\n setValue();\n }", "private void handleSearchContactsOnPost(String result) {\n boolean listA = false;\n\n try {\n JSONObject resultsJSON = new JSONObject(result);\n boolean success = resultsJSON.getBoolean(\"success\");\n\n if (success) {\n if (resultsJSON.has(getString(R.string.keys_json_connections_a))) {\n try {\n JSONArray jReqs = resultsJSON.getJSONArray(getString(R.string.keys_json_connections_a));\n for (int i = 0; i < jReqs.length(); i++) {\n JSONObject obj = jReqs.getJSONObject(i);\n String username = obj.get(getString(R.string.keys_json_username))\n .toString();\n if (username.equals(mDeleteConnectionUsername)) {\n listA = true;\n break;\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n } else {\n Log.wtf(\"Get Contacts in handleContactsOnPost\", \"Back end screw up\");\n }\n } catch (JSONException e) {\n Log.e(\"JSON PARSE ERROR\", e.getMessage());\n }\n\n Uri uri = new Uri.Builder()\n .scheme(\"https\")\n .appendPath(getString(R.string.ep_base_url))\n .appendPath(getString(R.string.ep_decline_contact_request))\n .build();\n\n JSONObject msg = new JSONObject();\n if (listA) {\n try {\n msg.put(\"usernameA\", mDeleteConnectionUsername);\n msg.put(\"usernameB\", mUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n } else {\n try {\n msg.put(\"usernameA\", mUsername);\n msg.put(\"usernameB\", mDeleteConnectionUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n }\n\n new tcss450.uw.edu.messengerapp.utils.SendPostAsyncTask.Builder(uri.toString(), msg)\n .onPreExecute(this::handleSearchRequestOnPre)\n .onPostExecute(this::handleSearchContactDeletedOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n\n }", "@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\n private void chooseAccount() {\n if (EasyPermissions.hasPermissions(\n this, Manifest.permission.GET_ACCOUNTS)) {\n String accountName = getPreferences(Context.MODE_PRIVATE)\n .getString(PREF_ACCOUNT_NAME, null);\n if (accountName != null) {\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi(this);\n } else {\n // Start a dialog from which the user can choose an account\n startActivityForResult(\n mCredential.newChooseAccountIntent(),\n REQUEST_ACCOUNT_PICKER);\n }\n } else {\n // Request the GET_ACCOUNTS permission via a user dialog\n EasyPermissions.requestPermissions(this, getString(R.string.str_needs_account),\n REQUEST_PERMISSION_GET_ACCOUNTS, Manifest.permission.GET_ACCOUNTS);\n }\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t\tif (requestCode == CONTACT_PICKER_RESULT) {\n\t\t\t\n\t\t\tif (resultCode == Activity.RESULT_OK) {\n\t \t \n\t Cursor cursor = null;\n\n\t try {\n\t Uri result = data.getData();\n\t \n\t String contact_name = \"\";\n\t String contact_num = \"\";\n\t \n\t //Get Name\n\t cursor = getActivity().getContentResolver().query(result, null, null, null, null);\n\t if (cursor.moveToFirst()) {\n\t \n\t \t// this is the contact name picked by the user\n\t \tcontact_name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\t \t\n\t \t/* THE FOLLOWING CODE QUERIES AGAIN WITH THE ID TO GET THE PHONE NUMBER\n\t \t */\n\t \t\n\t \tString contactId = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n\t \t\n\t \tCursor c1 = getActivity().getContentResolver().query(Data.CONTENT_URI,\n\t \t\t new String[] {Data._ID, Phone.NUMBER, Phone.TYPE, Phone.LABEL},\n\t \t\t Data.CONTACT_ID + \"=?\" + \" AND \"\n\t \t\t + Data.MIMETYPE + \"='\" + Phone.CONTENT_ITEM_TYPE + \"'\",\n\t \t\t new String[] {String.valueOf(contactId)}, null);\n\t \t\tc1.moveToFirst();\n\t \t\n\t \tcontact_num = c1.getString(1);\n\t \t\n\t \tToast.makeText(\n getActivity(),\n \"You've picked: \"+contact_name+\"\\nas your response.\\nPress next button to continue\",\n Toast.LENGTH_SHORT).show();\n\t \t\n\t \t//hash the contact number as response\n\t \tcontact_num = Encoder.hashPhoneNumber(contact_num);\n\t \t\n\t \t//setting the response for that survey question\n\t \t\t\t\teventbean.setTieResponse(contact_num);\n\t \t\n\t\t\t\t\t\tresponse_tv.setText(contact_name);\n\t\t\t\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// notify the activity to enable going next\n\t\t\t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"X\",\"0\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t \t} \n\t }catch (Exception e) {Log.w(\"debugtag\", \"Warning: contact picker error\");}\n\t \n\t\t\t\t}else{Log.w(\"debugtag\", \"Warning: activity result not ok\");}\n\t\t\t}\n\t\t\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode==1) //the code means we came back from settings\n {\n //I can can these methods like this, because they are static\n String name = SettingsFragment.getName(this);\n String message = \"Name set to \"+name;\n Toast toast = Toast.makeText(this,message,Toast.LENGTH_LONG);\n toast.show();\n updateSettings(name);\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "public static boolean getMultiplePickResult(Context context, Intent data, ArrayList<Uri> selected_contact_uris) {\n\n Boolean isResultIncluded = data.getBooleanExtra(Resultable.SELECTTION_RESULT_INCLUDED, false);\n if (!isResultIncluded) { //get uri via the multiple picker session id\n Log.v(TAG, \"get uri via the multiple picker session id\");\n final long sessionId = data.getLongExtra(Resultable.SELECTION_RESULT_SESSION_ID, -1);\n if (sessionId == -1) {\n Log.e(TAG, \"error in the sessionId: \" + sessionId);\n return false;\n } else {\n final String[] LOOKUP_URI_PROJECTION = new String[] {\n \"data\"\n };\n Uri sessionUri = ContentUris.withAppendedId(Uri.withAppendedPath(\n Uri.parse(\"content://com.motorola.contacts.list.ContactMultiplePickerResult/results\"),\"session_id\"),\n sessionId);\n\n final Cursor cursor = context.getContentResolver().query(sessionUri, LOOKUP_URI_PROJECTION, null, null, null);\n try{\n if (cursor == null || !cursor.moveToFirst()) {\n Log.e(TAG, \"error in reading the multiplepicker uri: \" + sessionUri);\n }\n\n //IKTABLETMAIN-518 original code will skip the 1st item directly\n for(;!cursor.isAfterLast(); cursor.moveToNext()) {\n Uri lookup_uri = Uri.parse(cursor.getString(0));\n selected_contact_uris.add(lookup_uri);\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n }\n } else { //retrieve the lookups from the result directly\n Log.v(TAG, \"get uri from multiple picker directly\");\n ArrayList<Uri> uris = data.getParcelableArrayListExtra(Resultable.SELECTED_CONTACTS);\n if (uris != null) {\n selected_contact_uris.addAll(uris);\n }\n }\n\n Log.v(TAG, \"the return count = \" + selected_contact_uris.size());\n return true;\n }", "@Override\n\t public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t if (resultCode == RESULT_OK) {\n\t switch (requestCode) {\n\t case CONTACT_PICKER_RESULT:\n\t // handle contact results\n\t \t \t\n\t \tEmergencyContactInfo emergencyContactInfo = persistEmergencyContactInfo(data);\n\t \tmContactsSection.displayData(emergencyContactInfo);\n\t \t\n\t \t\n\t \tbreak;\n\t }\n\t } else {\n\t // gracefully handle failure\n\t Log.w(\"Ara\", \"Warning: activity result not ok\");\n\t }\n\t }", "public void importContactsFromPhone(View btnSelectContact) {\n startActivityForResult(new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI), REQUEST_CODE_PICK_CONTACTS);\n }", "@Override\n protected void onPostExecute(Boolean result) {\n\n callServices();\n }", "@Override\n public void deliverResult(ContactData result) {\n if (mDestroyed) {\n return;\n }\n\n mContact = result;\n if (result != null) {\n if (mObserver == null) {\n mObserver = new ForceLoadContentObserver();\n }\n getContext().getContentResolver().registerContentObserver(mLookupUri, true, mObserver);\n super.deliverResult(result);\n }\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\r\n @NonNull int[] grantResults) {\r\n if (requestCode == REQUEST_READ_CONTACTS) {\r\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n populateAutoComplete();\r\n }\r\n }\r\n }", "@Override\n public void onResults(List<LocationClass> results) {\n searchView.swapSuggestions(results);\n\n //let the users know that the background\n //process has completed\n }", "private void showContacts() {\n // Check the SDK version and whether the permission is already granted or not.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, PERMISSIONS_REQUEST_READ_CONTACTS);\n //After this point you wait for callback in onRequestPermissionsResult(int, String[], int[]) overriden method\n } else {\n\n // Android version is lesser than 6.0 or the permission is already granted.\n List contacts = getContactNames();\n final ContactAdapter cAdapter = new ContactAdapter(this, contacts);\n contactList.setAdapter(cAdapter);\n contactList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n Intent i = new Intent(getApplicationContext(), ChatActivity.class);\n\n //Få tak i navnet på kontakten man har valgt, og send den videre til chatActivity\n String contactName = cAdapter.getItem(position).getName();\n if(!(DomainSingleton.getSingleton(ContactActivity.this).getAllConversationNames().contains(contactName))) {\n i.putExtra(CONTACT_NAME, contactName);\n startActivity(i);\n }\n else\n {\n int conversationId = DomainSingleton.getSingleton(ContactActivity.this).getConversationIdByContactName(contactName);\n i.putExtra(CONVERSATION_ID, conversationId);\n i.putExtra(CONTACT_NAME, contactName);\n startActivity(i);\n }\n\n }\n });\n\n\n }\n }", "public void showContacts(View view) {\n startActivityForResult(new Intent(this, ContactPickerActivity.class), 1302);\n }", "@Override\n protected void onPostExecute(String s) {\n /*\n contactlist = read_contact_list();\n\n if (sort)\n {\n contactlist = sort_list(contactlist);\n }\n ListView listview = rootview.findViewById(R.id.list);\n PersonListAdapter adapter = new PersonListAdapter(contextRef, R.layout.scrollinglist, contactlist);\n listview.setAdapter(adapter);\n */\n //just need to access the db here on call io command\n if (imported)\n {\n ArrayList<Contact> importlist = new ArrayList<Contact>();\n importlist = read_contact_list();\n\n for (Contact c: importlist)\n {\n MainActivity.dbhelper.addContact(c);\n }\n\n }\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n }", "@Override\n\t\t\tpublic void taskSuccessful(String result) {\n\t\t\t\tmCommunities = Community.getCommunitiesInfo(result);\n\t\t\t\tString[] choices = new String[mCommunities.length + 2];\n\t\t\t\tchoices[0] = \"Choose a Community\";\n\t\t\t\t\n\t\t\t\tboolean community_defined = getIntent().hasExtra(\"community_id\");\n\t\t\t\tint community_id = getIntent().getIntExtra(\"community_id\", 0);\n\t\t\t\tint selection = 0;\n\t\t\t\t\n\t\t\t\tfor (int count = 0; count < mCommunities.length; count++) {\n\t\t\t\t\tchoices[count + 1] = mCommunities[count].getName();\n\t\t\t\t\tif (community_defined && mCommunities[count].getId() == community_id){\n\t\t\t\t\t\tselection = count + 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tchoices[mCommunities.length + 1] = \"New Community\";\n\n\t\t\t\tfinal SpinnerAdapter spinnerCommunityInitialAdapter = new SpinnerAdapter(\n\t\t\t\t\t\tAddPhotosActivity.this, R.layout.spinner, choices);\n\t\t\t\tspinnerCommunity.setAdapter(spinnerCommunityInitialAdapter);\n\t\t\t\tspinnerCommunity.setSelection(selection);\n\t\t\t\t\n\t\t\t\tspinnerCommunity\n\t\t\t\t\t\t.setOnItemSelectedListener(new OnItemSelectedListener() {\n\n\t\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\t\tView view, int pos, long id) {\n\t\t\t\t\t\t\t\tif (pos == mCommunities.length + 1) {\n\t\t\t\t\t\t\t\t\taddCommunity();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcommunityChosen = pos > 0;\n\t\t\t\t\t\t\t\t\tif (communityChosen) {\n\t\t\t\t\t\t\t\t\t\tif (communityId != mCommunities[pos - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t.getId()) {\n\t\t\t\t\t\t\t\t\t\t\tcommunityId = mCommunities[pos - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getId();\n\t\t\t\t\t\t\t\t\t\t\tmomentChosen = false;\n\t\t\t\t\t\t\t\t\t\t\tspinnerMoment.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\tnew HttpGetTask(getMomentsHandler)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.execute(NetworkManager.hostName\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"/api/communities/\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ communityId);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t}", "public void contactComboBoxSelected() {\n ObservableList<Appointment> contactAppointments = FXCollections.observableArrayList();\n contactAppointments.clear();\n\n Contact selectedContact = contactComboBox.getValue();\n if (selectedContact != null) {\n int selectedContactId = selectedContact.getId();\n contactAppointments = DBReport.getContactAppointments(selectedContactId);\n contactScheduleTableView.setItems(contactAppointments);\n }\n }", "@Override\n public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) {\n SyncUtilities.sendContactsSync(mContext, \"3465\", \"+254720893982\");\n Log.i(\"inPerformSync\", \"Synching\");\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tWindow.alert(\"Thank you for selecting\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}", "@Override\n\tprotected void onPostExecute(Void result) \n\t{\n\t\tif(geocodeActivity.getClass().toString().contains(\"MainActivity\"))\n\t\t\t((MainActivity)geocodeActivity).getAddress_CreateMail(strReturnedAddress);\n\t\telse if(geocodeActivity.getClass().toString().contains(\"MsgListActivity\"))\n\t\t\t((MsgListActivity)geocodeActivity).getAddress_CreateMail(strReturnedAddress);\n\t\t\n\t\tstatusDialog.dismiss();\n\t\t\n\t\tsuper.onPostExecute(result);\n\n\t}", "private void populateAutoComplete() {\n if (!mayRequestContacts()) {\n return;\n }\n\n getLoaderManager().initLoader(0, null, this);\n }", "@SuppressLint(\"MissingPermission\")\n @Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n\n Toast.makeText(getBaseContext(), \"All Location Settings are satisfied herer The client can initialize\", Toast.LENGTH_SHORT).show();\n }", "private void handleSearchPendingOnPost(String result) {\n SearchContactsFragment frag = (SearchContactsFragment) getSupportFragmentManager()\n .findFragmentByTag(getString(R.string.keys_fragment_searchConnections));\n\n try {\n JSONObject resultsJSON = new JSONObject(result);\n boolean success = resultsJSON.getBoolean(\"success\");\n String username = resultsJSON.getString(\"usernameB\");\n\n if (success) {\n frag.handlePendingOnPost(success, username);\n } else {\n Toast.makeText(this, \"Your action for contact request was not valid\",\n Toast.LENGTH_SHORT).show();\n }\n\n } catch (JSONException e) {\n frag.setError(\"Something strange happened\");\n frag.handleOnError(e.toString());\n }\n }", "public SIMContactSelectionActivity() {\n\t\tmIntentResolver = new ContactsIntentResolver(this);\n\t}", "public void askContactsPermission(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ) {\n\n ArrayList<String> permissionList=new ArrayList<String>();\n if(checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.READ_CONTACTS);\n\n }\n if(checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.READ_EXTERNAL_STORAGE);\n }\n if(checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n }\n if(checkSelfPermission(Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.CALL_PHONE);\n }\n\n if(permissionList.size()>0) {\n ActivityCompat.requestPermissions(this, permissionList.toArray(new String[permissionList.size()]), 100);\n }\n\n //After this point you wait for callback in onRequestPermissionsResult(int, String[], int[]) overriden method\n }\n }", "@Override\r\n\tpublic void resultsUpdated() {\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t\tif(mModel.getResults().size() == 1){\r\n\t\t\tmModel.selectPerson(mModel.getResults().get(0));\r\n\t\t\tmController.getProfilePicture(mModel.getResults().get(0).sciper);\r\n\t\t\tmDialog = new PersonDetailsDialog(this, mModel.getSelectedPerson());\r\n\t\t\tmDialog.show();\r\n\t\t}else\r\n\t\t\tstartActivity(new Intent(getApplicationContext(), DirectoryResultListView.class));\r\n\t\t\r\n\t}", "@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e1) { \r\n // Ignore this error \r\n }\r\n boolean succeeded = false;\r\n if (jso != null) {\r\n try {\r\n int what = jso.getInt(\"what\");\r\n String message = jso.getString(\"message\");\r\n \r\n switch (what) {\r\n case MSG_ACCOUNT_VALID:\r\n Toast.makeText(AccountSettingsActivity.this, R.string.authentication_successful,\r\n Toast.LENGTH_SHORT).show();\r\n succeeded = true;\r\n break;\r\n case MSG_ACCOUNT_INVALID:\r\n case MSG_CREDENTIALS_OF_OTHER_USER:\r\n showDialog(what);\r\n break;\r\n case MSG_CONNECTION_EXCEPTION:\r\n Toast.makeText(AccountSettingsActivity.this, R.string.error_connection_error + \" \" + message, Toast.LENGTH_LONG).show();\r\n break;\r\n \r\n }\r\n showUserPreferences();\r\n } catch (JSONException e) {\r\n // Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n if (!skip) {\r\n StateOfAccountChangeProcess state = AccountSettingsActivity.this.state;\r\n // Note: MyAccount was already saved inside MyAccount.verifyCredentials\r\n // Now we only have to deal with the state\r\n \r\n state.actionSucceeded = succeeded;\r\n if (succeeded) {\r\n state.actionCompleted = true;\r\n if (state.getAccountAction().compareTo(Intent.ACTION_INSERT) == 0) {\r\n state.setAccountAction(Intent.ACTION_EDIT);\r\n showUserPreferences();\r\n // TODO: Decide on this...\r\n // closeAndGoBack();\r\n }\r\n }\r\n somethingIsBeingProcessed = false;\r\n }\r\n showUserPreferences();\r\n }", "@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e) { \r\n // Ignore this error \r\n }\r\n if (jso != null) {\r\n try {\r\n boolean succeeded = jso.getBoolean(\"succeeded\");\r\n String message = jso.getString(\"message\");\r\n \r\n if (succeeded) {\r\n String accountName = state.getAccount().getAccountName();\r\n MyAccount.initialize(MyPreferences.getContext());\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(accountName, TriState.TRUE);\r\n showUserPreferences();\r\n new OAuthAcquireRequestTokenTask().execute();\r\n // and return back to default screen\r\n overrideBackButton = true;\r\n } else {\r\n Toast.makeText(AccountSettingsActivity.this, message, Toast.LENGTH_LONG).show();\r\n \r\n state.builder.setCredentialsVerificationStatus(CredentialsVerificationStatus.FAILED);\r\n showUserPreferences();\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n protected void onPostExecute(final List<settingdto> lstsettingdtos) {\n Log.e(TAG, \"onPostExecute\");\n\n runOnUiThread(new Runnable() {\n public void run() {\n /**\n * Updating data into ui\n * */\n \n\t\t\t\t\ttxtautocompletesetting = findViewById(R.id.txtautocompletesetting);\n\t\t\t\t\ttxtautocompletesetting.setVisibility(View.VISIBLE);\n\t\t\t\t\ttxtautocompletesetting.setThreshold(1);\n\t\t\t\t\t\n\t\t\t\t\t_settingsautocompleteadapter = new settingsautocompleteadapter(getApplicationContext(), R.layout.settings_list_layout, R.id.txtautocompletesetting, lstsettingdtos);\n\t\t\t\t\t\n\t\t\t\t\ttxtautocompletesetting.setAdapter(_settingsautocompleteadapter);\n\t\t\t\t\t\n\t\t\t\t\ttxtautocompletesetting.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) { \n\t\t\t\t\t\t\t//this is the way to find selected object/item\n\t\t\t\t\t\t\t_selectedautocompletedto = (settingdto) adapterView.getItemAtPosition(pos);\n\t\t\t\t\t\t\trefreshlistfromdbonfilter(_selectedautocompletedto.getsetting_name());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t \n\t\t\t\t txtautocompletesetting.addTextChangedListener(new TextWatcher() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t\t\trefreshlistfromdbonfilter(s.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count, int after) { \n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void afterTextChanged(Editable s) {\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n \n }\n });\n\n //simpleWaitDialog.dismiss();\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == READ_CONTACTS_REQUEST_CODE) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n populateAutoComplete();\n }\n }\n }", "@Override\n\tpublic void onUserOrganizationTreeSearch(boolean isOk, List<AirContact> contacts)\n\t{\n\n\t}", "private void handleContactsOnPost(String result) {\n boolean listA = false;\n\n try {\n JSONObject resultsJSON = new JSONObject(result);\n boolean success = resultsJSON.getBoolean(\"success\");\n\n if (success) {\n if (resultsJSON.has(getString(R.string.keys_json_connections_a))) {\n try {\n JSONArray jReqs = resultsJSON.getJSONArray(getString(R.string.keys_json_connections_a));\n for (int i = 0; i < jReqs.length(); i++) {\n JSONObject obj = jReqs.getJSONObject(i);\n String username = obj.get(getString(R.string.keys_json_username))\n .toString();\n if (username.equals(mDeleteConnectionUsername)) {\n listA = true;\n break;\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n } else {\n Log.wtf(\"Get Contacts in handleContactsOnPost\", \"Back end screw up\");\n }\n } catch (JSONException e) {\n Log.e(\"JSON PARSE ERROR\", e.getMessage());\n }\n\n Uri uri = new Uri.Builder()\n .scheme(\"https\")\n .appendPath(getString(R.string.ep_base_url))\n .appendPath(getString(R.string.ep_decline_contact_request))\n .build();\n\n JSONObject msg = new JSONObject();\n if (listA) {\n try {\n msg.put(\"usernameA\", mDeleteConnectionUsername);\n msg.put(\"usernameB\", mUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n } else {\n try {\n msg.put(\"usernameA\", mUsername);\n msg.put(\"usernameB\", mDeleteConnectionUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n }\n\n new tcss450.uw.edu.messengerapp.utils.SendPostAsyncTask.Builder(uri.toString(), msg)\n .onPreExecute(this::handleRequestOnPre)\n .onPostExecute(this::handleContactDeletedOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n\n }", "@Override\n public void onSuccess(final Account account) {\n String accountKitId = account.getId();\n Log.println(Log.ASSERT, \"AccountKit\", \"ID: \" + accountKitId);\n\n boolean SMSLoginMode = false;\n\n // Get phone number\n PhoneNumber phoneNumber = account.getPhoneNumber();\n\n if (phoneNumber != null) {\n phoneNumberString = phoneNumber.toString();\n phone.setText(phoneNumberString.toString());\n Log.println(Log.ASSERT, \"AccountKit\", \"Phone: \" + phoneNumberString);\n SMSLoginMode = true;\n SharedPreferences settings = getSharedPreferences(\"prefs\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"PHN\", phoneNumberString);\n editor.apply();\n }\n\n\n\n }", "@Override\n protected void onPostExecute(String address) {\n Settings.getSettings().setPickUpLocation(address);\n HomeScreenActivity.setGpsFinished(true);\n }", "@Override\r\n\t\t\tpublic void onSuccess(Object success) {\n\t\t\t\tList<Address> addresses = (List<Address>)success;\r\n\t\t\t\tview.setAddresss(addresses);\r\n\t\t\t\tview.setAdapter();\r\n\t\t\t}", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n getCurrentLocation();\n }", "public void onSuccess(Object result) {\n\t\t\trefgview.getNavPanel().getSearchPanelView().displayNameSearchResult(result);\n\t\t}", "@Override\n protected void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case REQUEST_GOOGLE_PLAY_SERVICES:\n if (resultCode != RESULT_OK) {\n mOutputText.setText(\n \"This app requires Google Play Services. Please install \" +\n \"Google Play Services on your device and relaunch this app.\");\n } else {\n getResultsFromApi();\n }\n break;\n case REQUEST_ACCOUNT_PICKER:\n if (resultCode == RESULT_OK && data != null &&\n data.getExtras() != null) {\n String accountName =\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\n if (accountName != null) {\n\n\n userId = accountName;\n //save User Email Id\n SharedPreferences mPrefs = getSharedPreferences(\"label\", 0);SharedPreferences.Editor mEditor = mPrefs.edit();mEditor.putString(\"UserId\", userId).apply();\n\n SharedPreferences settings =\n getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_ACCOUNT_NAME, accountName);\n editor.apply();\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi();\n }\n }\n break;\n case REQUEST_AUTHORIZATION:\n if (resultCode == RESULT_OK) {\n getResultsFromApi();\n }\n break;\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_SELECT_CONTACT && resultCode == RESULT_OK) {\n Uri contactUri = data.getData();\n String[] projection = new String[]{ContactsContract.CommonDataKinds.Nickname.DISPLAY_NAME};\n Cursor cursor = getContentResolver().query(contactUri, projection,\n null, null, null);\n // If the cursor returned is valid, get the phone number\n if (cursor != null && cursor.moveToFirst()) {\n int nameIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME);\n String name = cursor.getString(nameIndex);\n Toast.makeText(this, \"Result Ok Name:\"+name, Toast.LENGTH_SHORT).show();\n Bundle args = new Bundle();\n args.putInt(\"code\", TEAM);\n args.putString(\"contact_name\", name);\n ButtonsFragment buttonsFragment = new ButtonsFragment();\n buttonsFragment.setArguments(args);\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, buttonsFragment);\n fragmentTransaction.commit();\n }\n } else\n Toast.makeText(this, \"Problem while fetching contact.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n Log.i(TAG, \"All location settings are satisfied.\");\n requestDangerousPermission();\n }", "private void loadContact() {\n groupSpinnerItems.clear();\n for (GroupSummary groupSummary: new Contacts(getActivity()).getGroupSummary()) {\n GroupSpinnerEntry item = new GroupSpinnerEntry();\n item.groupId = groupSummary.getId();\n item.title = groupSummary.getTitle();\n groupSpinnerItems.add(item);\n }\n\n getLoaderManager().initLoader(0, null, new LoaderManager.LoaderCallbacks<Contact>() {\n @Override\n public Loader<Contact> onCreateLoader(int id, Bundle args) {\n return new ContactLoader(getActivity(), mContactLookupUri);\n }\n\n @Override\n public void onLoadFinished(Loader<Contact> loader, Contact data) {\n List<DataItem> dataItems = contact.getData();\n dataItems.clear();\n dataItems.addAll(data.getData());\n// contact.setData(data.getData());\n contact.setId(data.getId());\n contact.setRawContactId(data.getRawContactId());\n contact.setName(data.getName());\n originName = data.getName();\n contact.setPhotoUri(data.getPhotoUri());\n ((ContactEditorAdapter)adapter).refreshData();\n }\n\n @Override\n public void onLoaderReset(Loader<Contact> loader) {\n\n }\n });\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n Intent intent = new Intent();\n intent.putParcelableArrayListExtra(\"selectMembers\", (ArrayList<? extends Parcelable>) hasCommonMembers);\n setResult(RESULT_OK, intent);\n finish();\n hasCommonMembers.clear();\n }\n }", "@Override\r\n public void onActivityResult(\r\n int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n switch (requestCode) {\r\n case REQUEST_GOOGLE_PLAY_SERVICES:\r\n if (resultCode != RESULT_OK) {\r\n Log.i(TAG,\"This app requires Google Play Services. Please install \" +\r\n \"Google Play Services on your device and relaunch this app.\");\r\n Toast.makeText(getActivity(),\r\n \"This app requires Google Play Services. Please install \" +\r\n \"Google Play Services on your device and relaunch this app.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n getResultsFromApi();\r\n }\r\n break;\r\n case REQUEST_ACCOUNT_PICKER:\r\n if (resultCode == RESULT_OK && data != null &&\r\n data.getExtras() != null) {\r\n String accountName =\r\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\r\n if (accountName != null) {\r\n SharedPreferences settings =\r\n getActivity().getPreferences(Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = settings.edit();\r\n editor.putString(PREF_ACCOUNT_NAME, accountName);\r\n editor.apply();\r\n mCredential.setSelectedAccountName(accountName);\r\n getResultsFromApi();\r\n }\r\n }\r\n break;\r\n case REQUEST_AUTHORIZATION:\r\n if (resultCode == RESULT_OK) {\r\n getResultsFromApi();\r\n }\r\n break;\r\n }\r\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\r\n if (ButtonClickedChecked == 111) {\r\n if (requestCode == REQUEST_CODE_READ_CONTACT) {\r\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n selectContact();\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Contact not processed\", Toast.LENGTH_SHORT).show();\r\n }\r\n } else {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n }\r\n } else if (ButtonClickedChecked == 222) {\r\n if (requestCode == REQUEST_CODE_SEND_SMS) {\r\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n sendSms(phoneNumberForSms, msgBodyForSms);\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Contact not processed\", Toast.LENGTH_SHORT).show();\r\n }\r\n } else {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n }\r\n }else if (ButtonClickedChecked == 333){\r\n if (requestCode == REQUEST_CODE_CALL){\r\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED){\r\n makeCall(phoneNumber);\r\n }else {\r\n Toast.makeText(getApplicationContext(), \"Call not processed\", Toast.LENGTH_SHORT).show();\r\n }\r\n }else {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n }\r\n }\r\n }", "@Override\n protected void onPostExecute(final List<settingdto> lstsettingdtos) {\n Log.e(TAG, \"onPostExecute\");\n\n runOnUiThread(new Runnable() {\n public void run() {\n /**\n * Updating data into ListView\n * */\n _settingslistadapter = new settingslistadapter(getApplicationContext(), lstsettingdtos);\n settingslistview = findViewById(R.id.lstsettings);\n settingslistview.setAdapter(_settingslistadapter);\n\n int _count = lstsettingdtos.size();\n getSupportActionBar().setTitle(utilz.getInstance(getApplicationContext()).formatspannablestring(\"settings [ \" + _count + \" ]\"));\n\n // on seleting row launch Edit Screen\n settingslistview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view,\n int position, long id) {\n\n utilz.getInstance(getApplicationContext()).globalloghandler(\"settingslistview.setOnItemClickListener\", TAG, 1, 1);\n\n settingdto _selectedsettingdto = (settingdto) adapterView.getItemAtPosition(position);\n\n // getting values from selected ListItem\n String settingid = ((TextView) view.findViewById(R.id.txtsettingid)).getText().toString();\n\n Bundle dataBundle = new Bundle();\n dataBundle.putString(\"settingid\", settingid);\n// dataBundle.putParcelable(\"selectedsettingdto\", _selectedsettingdto);\n\n // Starting new intent\n Intent intent = new Intent(getApplicationContext(),\n editsettingactivity.class);\n // sending settingid to next activity\n intent.putExtras(dataBundle);\n\n // starting new activity\n startActivity(intent);\n }\n\n });\n\n try {\n\t\t\t\t\t\t\n\t\t\t\t\t\tasyncupdaterecyclerviewonPostExecuterunOnUiThread(lstsettingdtos);\n \n } catch (Exception ex) {\n utilz.getInstance(getApplicationContext()).globalloghandler(ex.toString(), TAG, 1, 0);\n }\n\n\t\t\t\t\t\n\t\t\t\t\t\n }\n });\n\n /*txtautocompletesetting = findViewById(R.id.txtautocompletesetting);\n\t\t\ttxtautocompletesetting.setVisibility(View.GONE);\n txtautocompletesetting.setThreshold(1);\n _settingsautocompleteadapter = new settingsautocompleteadapter(getApplicationContext(), R.layout.settings_list_layout, R.id.txtautocompletesetting, lstsettingdtos);\n txtautocompletesetting.setAdapter(_settingsautocompleteadapter);\n txtautocompletesetting.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n//this is the way to find selected object/item\n _selectedsetting = (settingdto) adapterView.getItemAtPosition(pos);\n refreshlistfromdbonfilter(_selectedsetting.getsetting_name());\n }\n });*/\n\n //simpleWaitDialog.dismiss();\n\n }", "private void setApplicationConnectionResultCallback(\n\t\t\tResultCallback_c<Fling.ApplicationConnectionResult> callback) {\n\t\tsynchronized (mLock_xU) {\n\t\t\tif (mResultCallback != null) {\n\t\t\t\tmResultCallback\n\t\t\t\t\t\t.onResult(new ApplicationConnectionResultImpl(\n\t\t\t\t\t\t\t\tnew Status(FlingStatusCodes.CANCELED)));\n\t\t\t}\n\t\t\tmResultCallback = callback;\n\t\t}\n\t}", "public void onSuccess(List<Contact> a){\n\t\t\t\tshowContacts(a);\n\t\t\t}", "@Override\n public void onSuccess() {\n threadExchangeObject.value = true;\n }", "@Override\n\t\t\tpublic void taskSuccessful(String result) {\n\t\t\t\tLog.d(TAG, result);\n\t\t\t\tmCommunity = Community.getCommunityInfo(result);\n\t\t\t\tString[] choices = new String[mCommunity.getNumOfMoments() + 2];\n\t\t\t\tchoices[0] = \"Choose a Moment\";\n\t\t\t\t\n\t\t\t\tboolean moment_defined = getIntent().hasExtra(\"moment_id\");\n\t\t\t\tint moment_id = getIntent().getIntExtra(\"moment_id\", 0);\n\t\t\t\tint selection = 0;\n\t\t\t\t\n\t\t\t\tfor (int count = 0; count < mCommunity.getNumOfMoments(); count++) {\n\t\t\t\t\tchoices[count + 1] = mCommunity.getMoment(count).getName();\n\t\t\t\t\tif (moment_defined && mCommunity.getMoment(count).getId() == moment_id){\n\t\t\t\t\t\tselection = count + 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tchoices[mCommunity.getNumOfMoments() + 1] = \"New Moment\";\n\n\t\t\t\tfinal SpinnerAdapter spinnerMomentInitialAdapter = new SpinnerAdapter(\n\t\t\t\t\t\tAddPhotosActivity.this, R.layout.spinner, choices);\n\t\t\t\tspinnerMoment.setAdapter(spinnerMomentInitialAdapter);\n\t\t\t\tspinnerMoment.setSelection(selection);\n\t\t\t\t\n\t\t\t\tspinnerMoment\n\t\t\t\t\t\t.setOnItemSelectedListener(new OnItemSelectedListener() {\n\n\t\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\t\tView view, int pos, long id) {\n\t\t\t\t\t\t\t\tif (pos == mCommunity.getNumOfMoments() + 1) {\n\t\t\t\t\t\t\t\t\taddMoment();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmomentChosen = pos > 0;\n\t\t\t\t\t\t\t\t\tif (momentChosen) {\n\t\t\t\t\t\t\t\t\t\tmomentId = mCommunity.getMoment(pos - 1)\n\t\t\t\t\t\t\t\t\t\t\t\t.getId();\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\n\t\t\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t}", "@Override\n synchronized public void onTaskCompletionResult() {\n if (DataContainer.getInstance().pullValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, context) && DataContainer.getInstance().pullValueBoolean(DataKeys.GOOGLE_AAID_FETCHED, context)) {\n deviceInformationUtils.prepareInformations();\n deviceInformationUtils.debugData();\n long lastLaunch = pullValueLong(ITrackingConstants.CONF_LAST_LAUNCH_INTERNAL, context);\n trackLaunchHandler(lastLaunch);\n }\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n //showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading settings from datastore...\", \"\");\n //simpleWaitDialog.setCancelable(true);\n\n lstsettingdtos = new ArrayList<>();\n _settingslistadapter = new settingslistadapter(getApplicationContext(), lstsettingdtos);\n _settingslistadapter.notifyDataSetChanged();\n\n super.onPreExecute();\n }", "protected void onPostExecute(HashMap<String, JSONObject> results) {\r\n ma.doctorsReady(results);\r\n }", "@Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n autoCompleteAdapter = new ArrayAdapter<String>(mContext, android.R.layout.simple_dropdown_item_1line, deviceNames);\n\n autoComplete.setAdapter(autoCompleteAdapter);\n autoComplete.showDropDown();\n loadingResult.setVisibility(View.INVISIBLE);\n }", "void onCitySettingChanged(int resultCode);", "public void checkForLocationSettings() {\n try {\n LocationSettingsRequest settingsRequest = new LocationSettingsRequest.Builder()\n .addLocationRequest(mLocationRequest).build();\n SettingsClient settingsClient = LocationServices.getSettingsClient(context);\n\n Task<LocationSettingsResponse> task = settingsClient\n .checkLocationSettings(settingsRequest);\n task.addOnSuccessListener(context, new OnSuccessListener<LocationSettingsResponse>() {\n @Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n //Setting is success...\n PrintLog.d(TAG, \"LocationSettingsStatusCodes ..............: \" + locationSettingsResponse.getLocationSettingsStates());\n // All location settings are satisfied. The client can initialize location requests here\n getLastLocation();\n }\n }).addOnFailureListener(context, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n int statusCode = ((ApiException) e).getStatusCode();\n switch (statusCode) {\n case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:\n PrintLog.d(TAG, \"dialogue open settings ..............: \");\n try {\n ResolvableApiException rae = (ResolvableApiException) e;\n rae.startResolutionForResult(context, REQUEST_CHECK_SETTINGS);\n } catch (IntentSender.SendIntentException sie) {\n sie.printStackTrace();\n }\n break;\n case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:\n Toast.makeText(context, \"Setting change is not available.Try in another device.\", Toast.LENGTH_LONG).show();\n }\n\n }\n });\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n Log.d(TAG, \"[onActivityResult]mAddPosition:\" + mAddPosition);\n mIsWaitingActivityResult = false;\n if (REQUEST_CODE_PICK_CONTACT != requestCode || RESULT_OK != resultCode || data == null) {\n mAddPosition = -1;\n return;\n }\n String dataIndex = data.getData().getLastPathSegment(); \n String number = \"\";\n Cursor cursor = this.getContentResolver().query(Data.CONTENT_URI, new String[]{Data._ID, Data.DATA1}, \"Data._ID\"+\" = \"+dataIndex, null, null);\n if(cursor != null && cursor.getCount() > 0) {\n cursor.moveToFirst();\n number = cursor.getString(1);\n }else{\n if(cursor != null) cursor.close();\n mAddPosition = -1;\n return;\n }\n cursor.close();\n /*\n * Bug Fix by Mediatek Begin.\n * Original Android¡¯s code:\n * xxx\n * CR ID: ALPS00111767\n * Descriptions: ¡­\n */\n\t\t\n Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));\n Log.i(TAG, \"onActivityResult(), uri = \" + uri);\n Cursor simIdCursor = this.getContentResolver().query(uri, new String[]{PhoneLookup._ID, PhoneLookup.INDICATE_PHONE_SIM, }, null, null, null);\n int simId = -1;\n simIdCursor.moveToFirst();\n if (simIdCursor != null && simIdCursor.getCount() > 0) {\n if(!simIdCursor.isNull(1))\n simId = simIdCursor.getInt(1);\n }\n simIdCursor.close();\t\n// int simId = data.getIntExtra(\"simId\", -1);\n /*\n * Bug Fix by Mediatek End.\n */\n\n getPrefStatus();\n mHasGotPref = true;\n int tempKey = findKeyByNumber(number);\n Log.d(TAG, \"onActivityResult(), after findKeyByNumber(), tempKey=\" + tempKey);\n if (SpeedDialManageActivity.SPEED_DIAL_MIN > tempKey) {\n mPrefNumState[mAddPosition + 1] = number;\n mPrefMarkState[mAddPosition + 1] = simId;\n mHasNumberByKey = false;\n } else {\n mHasNumberByKey = true;\n }\n Log.i(TAG, \"onActivityResult: number = \" + number + \", simId = \" + simId);\n for (int i = 0; i < mPrefNumState.length; ++i) {\n Log.i(TAG, \"mPrefNumState[\" + i + \"] = \" + mPrefNumState[i] + \", mPrefMarkState[\" + i\n + \"]\" + mPrefMarkState[i]);\n }\n }", "@Override\r\n\tpublic void onPerformSync(Account account, Bundle extras, String authority,\r\n\t\t\tContentProviderClient provider, SyncResult syncResult) {\r\n\t\t \r\n\r\n\t}", "@Override\n\tpublic void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n\t @NonNull int[] grantResults)\n\t{\n\t\tif (requestCode == REQUEST_READ_CONTACTS)\n\t\t{\n\t\t\tif (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED)\n\t\t\t{\n\t\t\t\tpopulateAutoComplete();\n\t\t\t}\n\t\t}\n\t}", "private void getResultsFromApi() {\r\n if (!isGooglePlayServicesAvailable()) {\r\n acquireGooglePlayServices();\r\n } else if (mCredential.getSelectedAccountName() == null) {\r\n chooseAccount();\r\n } else if (!isDeviceOnline()) {\r\n Toast.makeText(getActivity(), \"No network connection available.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n new MakeRequestTask(mCredential).execute();\r\n }\r\n }", "@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e1) { \r\n // Ignore this error \r\n }\r\n if (jso != null) {\r\n try {\r\n boolean succeeded = jso.getBoolean(\"succeeded\");\r\n String message = jso.getString(\"message\");\r\n \r\n if (succeeded) {\r\n // Finish this activity in order to start properly \r\n // after redirection from Browser\r\n // Because of initializations in onCreate...\r\n AccountSettingsActivity.this.finish();\r\n } else {\r\n Toast.makeText(AccountSettingsActivity.this, message, Toast.LENGTH_LONG).show();\r\n \r\n state.builder.setCredentialsVerificationStatus(CredentialsVerificationStatus.FAILED);\r\n showUserPreferences();\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void updateVoiceList(JFXComboBox<String> voiceChoiceBox) {\n Task<ArrayList<String>> listVoices = new ListVoices();\n listVoices.setOnSucceeded(e -> {\n voiceChoiceBox.setItems(FXCollections.observableArrayList(listVoices.getValue()));\n voiceChoiceBox.getSelectionModel().select(0);\n });\n Thread thread = new Thread(listVoices);\n thread.start();\n }", "@Override\n protected void onPostExecute(Boolean result) {\n \tsuper.onPostExecute(result);\n \ttry {\n \t\tthis.dialog.dismiss();\n \t} catch(Exception ex){\n \t\tex.printStackTrace();\n \t}\n \tif(result){\n \t\tif(!isEdit){\n \t\t\t//CreateAccountTask task = new CreateAccountTask(this._activity, apiHost, clinicCode, displayName, username, password, smUsername, smPassword);\n \t\t\t//task.execute();\n \t\t\tCreateAccountTask task = new CreateAccountTask(this._activity, apiHost, dictators, username, password);\n \t\t\ttask.execute();\n \t\t}else{\n \t\t\teditingAccount = AndroidState.getInstance().getUserState().getCurrentAccount();\n \t\t\t\n \t\t\tEditAccountTask task = new EditAccountTask(activity, editingAccount, apiHost, clinicCode, \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplayName, username, password, smUsername, smPassword, isCurrent, isChanged);\n \t task.execute();\n \t\t}\n \t} else {\n \t\tif(!authFailFlag){\n\t \tIntent i = new Intent(activity, JobListActivity.class);\n\t \ti.putExtra(\"qchanged\", true);\n\t \tactivity.startActivity(i);\n\t \tactivity.finish();\n \t\t}\n \t}\n }", "public getContactsTask() {\n\t\t\tsuper(HomeActivity.this);\n\n\t\t}", "@Override\n\t\tprotected void onSuccess(final Context context) {\n\t\t\tfinal SharedPreferences settings = getSharedPreferences(Constants.PREFS_NAME, 0);\n\t\t\tfinal SharedPreferences.Editor editor = settings.edit();\n\t\t\teditor.putString(\"email\", email);\n\t\t\teditor.putString(\"password\", user.getPassword());\n\t\t\teditor.commit();\n\n\t\t\tlaunchMain();\n\t\t\tfinish();\n\t\t}", "@Override\n public void onSuccess(Void aVoid) {\n Log.d(\"TAG\", \"smsRetrieverCall SUCCESS\");\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n Toast.makeText(ATSLocationActivity.this, \"Location settings are satisfied\", Toast.LENGTH_SHORT).show();\n startLocationUpdates(locationRequest,locationCallback);\n }", "@Override\r\n\t\t\tpublic void onSuccess(Void result) {\n\t\t\t\tsynAlert.clear();\r\n\t\t\t\tauthenticationController.initializeFromExistingAccessTokenCookie(new AsyncCallback<UserProfile>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\tsynAlert.handleException(caught);\r\n\t\t\t\t\t\tview.showLogin();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(UserProfile result) {\r\n\t\t\t\t\t\t// Signed ToU. Check for temp username, passing record, and then forward\r\n\t\t\t\t\t\tuserAuthenticated();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onSuccess(List<ItemDTO> result) {\n\t\t\t\t\t\t\t\tmainView.getUserView().showMenuView(result); // Show updatet menu \n\t\t\t\t\t\t\t}", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n initLoaderForContactFetching();\n }\n }\n }" ]
[ "0.6374624", "0.61164016", "0.590102", "0.58835274", "0.57595277", "0.5733853", "0.57263404", "0.56436336", "0.5626307", "0.5621573", "0.56207675", "0.55863106", "0.5581115", "0.5578996", "0.55593735", "0.55237174", "0.5521722", "0.5504596", "0.5499597", "0.5496958", "0.5496958", "0.5496958", "0.5488938", "0.5487805", "0.5481117", "0.54810417", "0.5477214", "0.5475797", "0.54622376", "0.54565305", "0.54422057", "0.54404294", "0.54388326", "0.5434416", "0.5431728", "0.5426418", "0.5425858", "0.5425858", "0.5419474", "0.5410747", "0.54096204", "0.53845835", "0.5383731", "0.53811735", "0.53731257", "0.53567386", "0.5354296", "0.53541285", "0.5351057", "0.53468966", "0.5346485", "0.5340026", "0.5340026", "0.5340026", "0.5340026", "0.5340026", "0.5340026", "0.5340026", "0.5340026", "0.53281564", "0.5318227", "0.53059846", "0.5303413", "0.5302371", "0.528337", "0.5253013", "0.52520996", "0.52483517", "0.5245437", "0.5245372", "0.5243819", "0.5233466", "0.5231806", "0.52242833", "0.52088153", "0.52065915", "0.51998746", "0.5198162", "0.5196936", "0.5196642", "0.5185085", "0.5173823", "0.51736826", "0.5165096", "0.515824", "0.51554835", "0.5153607", "0.5151558", "0.5150688", "0.51501054", "0.5141346", "0.51397806", "0.5132238", "0.51201224", "0.51136047", "0.5109926", "0.51079816", "0.50993484", "0.5099092", "0.5097844" ]
0.6517454
0
empty vm number == clearing the vm number ?
private void saveVoiceMailNumber(String newVMNumber) { if (newVMNumber == null) { newVMNumber = ""; } //throw a warning if they are the same. if (newVMNumber.equals(mOldVmNumber)) { showVMDialog(MSG_VM_NOCHANGE); return; } maybeSaveNumberForVoicemailProvider(newVMNumber); // otherwise, set it. if (DBG) log("save voicemail #: " + newVMNumber); mPhone.setVoiceMailNumber( mPhone.getVoiceMailAlphaTag().toString(), newVMNumber, Message.obtain(mSetOptionComplete, EVENT_VOICEMAIL_CHANGED)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() \n {\n try \n {\n // your code here\n \tSystem.out.println(\"Resetting virtual machine '\"+vm.getName() +\"'. Please wait...\"); \n \tTask t=vm.resetVM_Task();\n \tif(t.waitForTask()== Task.SUCCESS)\n \t{\n\t \tSystem.out.println(\"Virtual machine reset.\");\n\t \tSystem.out.println(\"====================================\");\n \t}\n \telse\n \t\tSystem.out.println(\"Reset failed...\");\n } \n catch ( Exception e ) \n { \n \tSystem.out.println( e.toString() ) ; \n }\n }", "private static void clear() {\n\t\tvxl = new StringBuffer();\n\t}", "public void clear() {\n\t\tproc = \"\";\n\t}", "public void clear() {\n\t\tn1 = n0 = 0L;\n\t}", "private void clearChangeHeadpicRelay() {\n if (rspCase_ == 21) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "void clear() {\n this.mapped_vms.clear();\n this.mapped_anti_coloc_job_ids.clear();\n this.used_cpu = BigInteger.ZERO;\n this.used_mem = BigInteger.ZERO;\n }", "public Builder clearVmConfig() {\n if (vmConfigBuilder_ == null) {\n if (vmCase_ == 3) {\n vmCase_ = 0;\n vm_ = null;\n onChanged();\n }\n } else {\n if (vmCase_ == 3) {\n vmCase_ = 0;\n vm_ = null;\n }\n vmConfigBuilder_.clear();\n }\n return this;\n }", "private void clearViews()\n {\n prepareNumbers();\n }", "private void clearIp() {\n \n ip_ = 0;\n }", "private void clearIp() {\n \n ip_ = 0;\n }", "public void setAsEmpty(){\n\t\tnodeStatus = Status.empty;\n\t\tunitNum=-1;\n\t}", "public void reset() {\n itemCount = 0;\n stock = new VendItem[maxItems];\n totalMoney = 0;\n userMoney = 0;\n vmStatus = null;\n }", "@Override\n\tpublic void run(VirtualMachine vm) {\n\t\tint bytesToAllocCount=vm.popNumberFromStack(this.isExtended());\n\n\n\n\t\tfor(int i=0;i<bytesToAllocCount;i++)\n\t\t{\n\t\t\tvm.getHeap().add(new NumericByteCodeToken((byte)0));\n\t\t}\n\t}", "int getVmNum();", "protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}", "private void clearInIp() {\n \n inIp_ = 0;\n }", "private void clearInIp() {\n \n inIp_ = 0;\n }", "private void clearS1Ip() {\n \n s1Ip_ = 0;\n }", "public Integer ClearPublishNum(){\r\n\t\treturn 0;\r\n\t}", "public void zero();", "public void reset(){\n value = 0;\n }", "boolean isEmpty() {\n return mapped_vms.isEmpty();\n }", "public native void clear();", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar112() {\n var112 = null;\n fieldSetFlags()[113] = false;\n return this;\n }", "public Builder clearVmChecksum() {\n bitField0_ = (bitField0_ & ~0x00000004);\n vmChecksum_ = getDefaultInstance().getVmChecksum();\n onChanged();\n return this;\n }", "public void clear() \r\n\t{\r\n\t\ttotal = 0;\r\n\t\thistory = \"\";\r\n\t}", "public void clear(int gnum);", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "private synchronized void incVMCount() {\n if (!VMCounted) {\n statistics().incInt(VM_COUNT, 1);\n VMCounted = true;\n }\n }", "public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }", "public void clear(){\r\n currentSize = 0;\r\n }", "private void clearPort() {\n \n port_ = 0;\n }", "private void clearPort() {\n \n port_ = 0;\n }", "private void reset() {\n ms = s = m = h = 0;\n actualizar();\n }", "public void clear() {\n\t\tvector.clear();\n\t}", "private void clearSeenServerToB() {\n if (rspCase_ == 19) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "private void clearRoomId() {\n \n roomId_ = 0L;\n }", "public void setNumVMs(int numVMs) {\n this.numVMs = numVMs;\n }", "void clearAddress() {\n mAddress = HdmiCec.ADDR_UNREGISTERED;\n }", "public void clickClear1(View v) {\r\n\t\t\r\n\t\tipAdresse.setText(\"\");\r\n\t}", "@Override\n\tpublic void clear() {\n\t\tthis.vector.clear();\n\t}", "void unsetPoolNumber();", "void reset() {\r\n\t\tresult = 0;\r\n\t}", "public void emptyPot() {\r\n\t\ttotalPot = 0;\r\n\t}", "private void clearS2BRelay() {\n if (rspCase_ == 24) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void clear()\n {\n count=0;\n }", "private void clearObjId() {\n \n objId_ = 0;\n }", "private void clearObjId() {\n \n objId_ = 0;\n }", "private void clearObjId() {\n \n objId_ = 0;\n }", "private void clearObjId() {\n \n objId_ = 0;\n }", "private void clearObjId() {\n \n objId_ = 0;\n }", "private void clearObjId() {\n \n objId_ = 0;\n }", "private void clearInPort() {\n \n inPort_ = 0;\n }", "private void clearInPort() {\n \n inPort_ = 0;\n }", "public void reset () {}", "private void clearChangeHeadpicRsp() {\n if (rspCase_ == 17) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void clear() {\r\n\t\tfirstNumber.setLength(0);\r\n\t\tsecondNumber.setLength(0);\r\n\t\toperator = \"\";\r\n\t\tsign = false;\r\n\t}", "public static void reset() {\n\t\tnodes.clear();\n\t\tid = 0;\n\t}", "@Override\n\tpublic boolean reset() throws emException, TException {\n\t\tvm.reset();\n\t\treturn true;\n\t}", "void clear() {\n initialize(INITIAL_PIECES, BP);\n }", "public void vaciar() {\n\t\tprimero = ultimo = null;\n\t\ttotal = 0;\n\t}", "public void clear() {\n\t members = 0;\n\t dense[0] = -1;\n\t}", "public void clear() {\n count = 0;\n }", "private void psvm() {\n\t\tSystem.out.println(\"test\");\r\n\t}", "private void clearMemory() {\n\t\tRunningAppMgr.getInstance(this).killAll();\n\t\tsetMemory();\n\t}", "private void clearS1Rsp() {\n if (rspCase_ == 22) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void unsetZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ZYHTVO$0, 0);\n }\n }", "public void resetAll(View view){\n quantity = 1;\n displayQuantity(quantity);\n }", "private void reset() {\n }", "private void clear() {\n\t\tSystem.out.println(\"Calling clear\");\n\t}", "void smem_clear_result(IdentifierImpl state)\n {\n final SemanticMemoryStateInfo smem_info = smem_info(state);\n while(!smem_info.smem_wmes.isEmpty())\n {\n final Preference pref = smem_info.smem_wmes.remove(); // top()/pop()\n \n if(pref.isInTempMemory())\n {\n recMem.remove_preference_from_tm(pref);\n }\n }\n }", "private void clearId() {\n \n id_ = 0;\n }", "public void reset(View v) {\n scoreTeamB = 0;\n displayForTeamB(scoreTeamB);\n scoreTeamA = 0;\n displayForTeamA(scoreTeamA);\n questionNumber = 0;\n displayQuestionNumber(questionNumber);\n }", "public void makeEmpty( )\n {\n doClear( );\n }", "void Reset() {\n lq = 0;\n ls = 0;\n }", "private void clear(){\n\t\tcurr_pos=-1;\n\t\tnumber_value=0;\n\t\tstring_value=\"\";\n\t\tcurr_tok = token_value.PRINT;\n\t\tinput=\"\";\n\t}", "public static void reset() {\n\t\tvxlFragment = new StringBuffer();\n\t\tpreprocessorList = new LinkedList<ASTNode>();\n\t}", "public void countReset(View view){\n //get the textView and then set count to zero\n TextView showCountTextView = (TextView) findViewById(R.id.numberBox);\n showCountTextView.setText(\"0\");\n }", "@Override\n\tpublic void reset() {\n\t\tthis.result = 0;\n\t\tthis.operande = \"0\";\n\t\tthis.operateur = \"\";\n\t\tnotifyObserver(String.valueOf(this.result));\n\t}", "public void clearTaskListRecNums() { taskListRecNums.clear(); }", "private void resetMass() {\n\t\tsetOperation(\"\");\n\t}", "public void unsetFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMNUMBER$2, 0);\n }\n }", "public void clickClear2(View v) {\r\n\t\t\r\n\t\tport.setText(\"\");\r\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void clear() throws PropertyVetoException {\n setCommandReturned(\"\");\n setExitStateReturned(0);\n setExitStateMsg(\"\");\n \n importView.reset();\n exportView.reset();\n importView.InGroup_MA = IntAttr.valueOf(InGroupMax);\n exportView.OutCollegeGroup_MA = IntAttr.getDefaultValue();\n exportView.OutGroup_MA = IntAttr.getDefaultValue();\n }", "public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "@Override\n\tpublic void reset() throws SIMException\n\t{\n\t\tsuper.reset();\n\t\tArrays.fill(memory,(byte)0xff);\n\t}", "private static Vector emptyVector (int size)\n\t{\n\t\tVector v = new Vector ();\n\t\tfor (int i=0; i <= size; i++)\n\t\t{\n\t\t\tv.add (i, \"\");\n\t\t}\n\t\treturn v;\n\n\t}", "public void reset(){\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();" ]
[ "0.6443147", "0.6095936", "0.5988009", "0.5973977", "0.5949394", "0.59255403", "0.5869492", "0.57979125", "0.5789847", "0.5789847", "0.5776848", "0.576536", "0.57388973", "0.5731268", "0.572747", "0.5702631", "0.5702631", "0.5698457", "0.56928796", "0.5689316", "0.5661857", "0.5650951", "0.56507766", "0.5650028", "0.5641804", "0.5626647", "0.5607207", "0.5572379", "0.55706507", "0.55692995", "0.5553075", "0.5540791", "0.5540791", "0.55168796", "0.5516197", "0.5503916", "0.5492915", "0.5492101", "0.54877585", "0.5483287", "0.5465398", "0.54516655", "0.5446779", "0.5445697", "0.54444516", "0.54392177", "0.543084", "0.543084", "0.543084", "0.543084", "0.543084", "0.543084", "0.54301023", "0.54301023", "0.5428098", "0.54256034", "0.54205346", "0.54140264", "0.54102725", "0.5399968", "0.5396856", "0.5381381", "0.5378477", "0.5378093", "0.5373498", "0.53719103", "0.5371082", "0.53691417", "0.53635323", "0.53586465", "0.53508776", "0.53438914", "0.53425735", "0.5338466", "0.53384495", "0.533431", "0.5332996", "0.5326056", "0.53213614", "0.5316738", "0.5316468", "0.53155893", "0.5315357", "0.53148776", "0.53148776", "0.53148776", "0.53148776", "0.53143275", "0.531372", "0.53112286", "0.5310568", "0.5309942", "0.5305514", "0.5305514", "0.5305514", "0.5305514", "0.52984154", "0.52984154", "0.52984154", "0.52984154", "0.52984154" ]
0.0
-1
query to make sure we're looking at the same data as that in the network.
@Override public void handleMessage(Message msg) { switch (msg.what) { case EVENT_VOICEMAIL_CHANGED: handleSetVMMessage((AsyncResult) msg.obj); break; default: // TODO: should never reach this, may want to throw exception } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isRankConsistent() {\r\n for (int i = 0; i < size(); i++)\r\n if (i != rank(select(i))) return false;\r\n for (Key key : keys())\r\n if (key.compareTo(select(rank(key))) != 0) return false;\r\n return true;\r\n }", "private boolean isRankConsistent() {\n for (int i = 0; i < size(); i++)\n if (i != rank(select(i))) return false;\n for (K key : keys())\n if (key.compareTo(select(rank(key))) != 0) return false;\n return true;\n }", "@Test\n public void sharedFilterEnsuresUniqueResults() {\n Filter filter = new Filter(\"test-filter\");\n final Dataset dataset1 = new Dataset(\"TEST1\", \"sql\", filter);\n final Dataset dataset2 = new Dataset(\"TEST2\", \"sql2\", filter); // shared same filter\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"001\");\n entry1.add(\"aaa\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"002\");\n entry2.add(\"bbb\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"003\");\n entry3.add(\"ccc\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"004\");\n entry4.add(\"ddd\");\n\n List<List<String>> queryResults1 = new ArrayList<>();\n queryResults1.add(entry1);\n queryResults1.add(entry2);\n queryResults1.add(entry3);\n queryResults1.add(entry4);\n\n List<String> entry5 = new ArrayList<>();\n entry5.add(\"005\"); // different\n entry5.add(\"eee\");\n\n List<String> entry6 = new ArrayList<>();\n entry6.add(\"002\"); // same\n entry6.add(\"bbb\");\n\n List<String> entry7 = new ArrayList<>();\n entry7.add(\"007\"); // different\n entry7.add(\"fff\");\n\n List<String> entry8 = new ArrayList<>();\n entry8.add(\"004\"); // same\n entry8.add(\"ddd\");\n\n List<List<String>> queryResults2 = new ArrayList<>();\n queryResults2.add(entry5);\n queryResults2.add(entry6);\n queryResults2.add(entry7);\n queryResults2.add(entry8);\n\n // given\n dataset1.populateCache(queryResults1, 200L);\n dataset2.populateCache(queryResults2, 300L);\n\n // when\n final List<String> result1 = dataset1.getCachedResult();\n final List<String> result2 = dataset1.getCachedResult();\n final List<String> result3 = dataset1.getCachedResult();\n final List<String> result4 = dataset1.getCachedResult();\n final List<String> result5 = dataset2.getCachedResult();\n final List<String> result6 = dataset2.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1); // first datset is as-is\n assertEquals(\"Wrong result 2\", entry2, result2); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry3, result3); // first datset is as-is\n assertEquals(\"Wrong result 4\", entry4, result4); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry5, result5); // second datset, not filtered out\n assertEquals(\"Wrong result 3\", entry7, result6); // second dataset, entry6 is filtered out\n\n // and\n try {\n dataset1.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n try {\n // entry7 should be filtered out, resulting in no more data\n dataset2.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST2\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset1.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(200L), dataset1.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(5), dataset1.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.empty(), dataset1.getMetrics().getFilteredOut());\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset2.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(300L), dataset2.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(3), dataset2.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.of(2), dataset2.getMetrics().getFilteredOut());\n }", "private void assertNoStaleDataExistInNearCache(IMap<Integer, Integer> map) {\n Map<Integer, Integer> fromNearCache = getAllEntries(map);\n\n // 2. clear Near Cache\n ((NearCachedMapProxyImpl) map).getNearCache().clear();\n\n // 3. get all values when Near Cache is empty, these requests\n // will go directly to underlying IMap because Near Cache is empty\n Map<Integer, Integer> fromIMap = getAllEntries(map);\n\n for (int i = 0; i < ENTRY_COUNT; i++) {\n assertEquals(fromIMap.get(i), fromNearCache.get(i));\n }\n }", "public static boolean syncUp(ClientResponsePacket res_packet)throws IOException\n {\n Socket mem_conn = null;\n ClientResponsePacket data = null;\n MemNodeSyncHelper sync_nodes_list = res_packet.getMemNodeSyncHelper();\n ClientRequestPacket req_packet = new ClientRequestPacket();\n for(MemNodeSyncDetails node : sync_nodes_list.syncIps)\n {\n req_packet.setCommand(ProjectConstants.SYNC_MEM_NODE);\n req_packet.setStart_range(node.getStart_range());\n req_packet.setEnd_range(node.getEnd_range());\n req_packet.setStorage_type(node.getStorage_type());\n mem_conn = new Socket(node.getIp_Address(),ProjectConstants.MN_LISTEN_PORT);\n PacketTransfer.sendRequest(req_packet,mem_conn);\n data = PacketTransfer.recv_response(mem_conn);\n System.out.println(\"Loading DS with status : \" + data.getResponse_code() + \" and size : \" + data.getSync_data().size() +\n \" and range \" + node.getStart_range() + \":\" + node.getEnd_range() + \" and ip : \" + node.getIp_Address());\n if(data.getResponse_code() != ProjectConstants.SUCCESS)\n return false;\n loadSyncData(data.getSync_data(),node.getStorage_type());\n }\n return true;\n }", "void checkStationUIExists() {\n\n int recordCount = 9999;\n int duplicateCount = 0;\n\n String where = MrnStation.DATE_START + \"=\" +\n Tables.getDateFormat(station.getDateStart()) +\n \" and \" + MrnStation.LATITUDE +\n \" between \" + (station.getLatitude()-areaRangeVal) +\n \" and \" + (station.getLatitude()+areaRangeVal) +\n \" and \" + MrnStation.LONGITUDE +\n \" between \" + (station.getLongitude()-areaRangeVal) +\n \" and \" + (station.getLongitude()+areaRangeVal) ;\n if (dbg) System.out.println(\"<br>checkStationUIExists: where = \" + where);\n //outputDebug(\"checkStationUIExists: where = \" + where);\n\n MrnStation[] stns = new MrnStation().get(where);\n if (dbg) System.out.println(\"<br>checkStationUIExists: stns.length = \" + stns.length);\n //outputDebug(\"checkStationUIExists: number of stations found = \" + stns.length);\n\n String debugMessage = \"\\ncheckStationUIExists: duplicate UI check \\n \" +\n station.getDateStart(\"\").substring(0,10) +\n \", \" + ec.frm(station.getLatitude(),10,5) +\n \", \" + ec.frm(station.getLongitude(),10,5) +\n \", \" + station.getStnnam(\"\") +\n \" (\" + station.getStationId(\"\") + \")\";\n\n if (stns.length == 0) {\n outputDebug(debugMessage + \": duplicate UI not found\");\n } else {\n\n outputDebug(debugMessage);\n\n // check for duplicate station names (stnnam)\n while (recordCount > 0) {\n\n // count station names the same\n recordCount = 0;\n for (int i = 0; i < stns.length; i++) {\n if (stns[i].getStnnam(\"\").equals(station.getStnnam(\"\"))) {\n recordCount++;\n } // if (stns[i].getStnnam(\"\").equals(station.getStnnam(\"\")))\n } // for (int i = 0; i < stns.length; i++)\n\n if (dbg) System.out.println(\"<br>checkStationUIExists: recordCount = \" +\n recordCount + \", stnnam = \" + station.getStnnam(\"\"));\n\n debugMessage = \" \" + station.getStnnam(\"\") +\n \", recordCount (same stnnam) = \" + recordCount;\n\n if (recordCount > 0) {\n duplicateCount++;\n\n station.setStnnam(station.getStnnam(\"\") + duplicateCount);\n\n debugMessage += \" - new stnnam = \" +\n station.getStnnam(\"\");\n //outputDebug(debugMessage);\n if (dbg) System.out.println(\"checkStationUIExists: new stnnam = \" +\n station.getStnnam(\"\"));\n }// if (recordCount > 0)\n\n outputDebug(debugMessage);\n\n } // while (recordCount > 0)\n\n } // if (stns.length == 0)\n\n }", "void checkStationExists() {\n\n stationExists = false;\n dataExists = false;\n stationExistsCount = 0;\n thisSubdesCount = 0;\n// stationIgnore = false;\n\n for (int i = 0; i < MAX_STATIONS; i++) {\n stationExistsArray[i] = false;\n loadedDepthMin[i] = 9999;\n loadedDepthMax[i] = -9999;\n spldattimArray[i] = \"\";\n currentsRecordCountArray[i] = 0;\n watphyRecordCountArray[i] = 0;\n stationStatusDB[i] = \"\";\n subdesCount[i] = 0;\n for (int j = 0; j < MAX_SUBDES; j++) {\n subdesArray[i][j] = \"\";\n } // for (int j = 0; j < MAX_SUBDES; j++)\n\n } // for (int i = 0; i < MAX_STATIONS; i++)\n\n // true if station with same station Id (first select) or\n // station with same date_start & latitude & longitude &\n // <data>.spltim & <data>.subdes (second select)\n String where = MrnStation.STATION_ID + \"='\" + station.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>checkStationExists: station: where = \" +\n where);\n\n // Is there already a station record with the same station-id?\n MrnStation[] tStation2 = new MrnStation().get(where);\n if (dbg) System.out.println(\"<br>checkStationExists: tStation2.length = \" +\n tStation2.length);\n if (tStation2.length > 0) {\n //stationStatusLD = \"di\"; // == duplicate station-id\n outputDebug(\"checkStationExists: station Id found: \" +\n station.getStationId(\"\"));\n stationExists = true;\n stationExistsArray[0] = true;\n } else {\n //stationStatusLD = \"ds\"; // == duplicate station (lat/lon/date/time)\n outputDebug(\"checkStationExists: station Id not found: \" +\n station.getStationId(\"\"));\n } // if (tStation2.length > 0)\n\n // are there any other stations around the same day that fall within the\n // latitude range? (it could include the station found above)\n\n // get the previous and next day for the select, in case the\n // spldattim is just before or after midnight\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(station.getDateStart());\n calDate.add(java.util.Calendar.DATE, -1);\n String dateStartMin = formatter.format(calDate.getTime());\n\n calDate.setTime(station.getDateEnd());\n calDate.add(java.util.Calendar.DATE, +1);\n String dateEndMax = formatter.format(calDate.getTime());\n\n where =\n MrnStation.DATE_START + \">=\" +\n Tables.getDateFormat(dateStartMin) + \" and \" +\n MrnStation.DATE_END + \"<=\" +\n Tables.getDateFormat(dateEndMax) + \" and \" +\n MrnStation.LATITUDE + \" between \" +\n (station.getLatitude()-areaRangeVal) + \" and \" +\n (station.getLatitude()+areaRangeVal) + \" and \" +\n MrnStation.LONGITUDE + \" between \" +\n (station.getLongitude()-areaRangeVal) + \" and \" +\n (station.getLongitude()+areaRangeVal);\n if (dbg) System.out.println(\"<br><br>checkStationExists: station: \" +\n \"where = \" + where);\n\n // get the records\n MrnStation[] tStation3 = new MrnStation().get(\n \"*\", where, MrnStation.STATION_ID);\n if (dbg) System.out.println(\"<br><br>checkStationExists: \" +\n \"tStation3.length = \" + tStation3.length);\n\n // put both sets of stations found in one array for processing\n tStation = new MrnStation[tStation2.length + tStation3.length];\n if (dbg) System.out.println(\"<br><br>checkStationExists: \" +\n \"tStation.length = \" + tStation.length);\n int ii = 0;\n for (int i = 0; i < tStation2.length; i++) { // same station_id\n tStation[ii] = tStation2[i];\n ii++;\n } // for (int i = 0; i < tStation2.length; i++)\n for (int i = 0; i < tStation3.length; i++) { // satem lat/lon/date/time\n tStation[ii] = tStation3[i];\n ii++;\n } // for (int i = 0; i < tStation3.length; i++)\n\n // process the records\n stationUpdated = false;\n for (int i = 0; i < tStation.length; i++) {\n\n // same station id already done\n if ((i == 0) ||\n !tStation[i].getStationId().equals(station.getStationId())) {\n\n if (tStation[i].getStationId().equals(station.getStationId())) {\n stationStatusTmp = \"di\"; // == duplicate station-id\n } else {\n stationStatusTmp = \"ds\"; // == duplicate station (lat/lon/date/time)\n } // if (tStation[i].getStationId().equals(station.getStationId()))\n\n String dbgMess = \"checkStationExists: station found in area: \" +\n i + \" \" + station.getStationId(\"\") + \" \" +\n tStation[i].getStationId(\"\");\n\n getExistingStationDetails(tStation[i], i);\n\n if (stationExistsArray[i]) {\n stationExistsCount++;\n\n outputDebug(dbgMess + \": within time range\");\n\n// if (loadFlag) {\n// updateStationDetails(i);\n// } else {\n // d == Duplicate stationId/station only\n // s == Subdes: duplicate Station (lat/lon/date/time) && subdes\n stationStatusDB[i] = stationStatusTmp;\n if (subdesCount[i] == 0) {\n // d == Duplicate stationId/station only (lat/lon/date/time)\n stationStatusDB[i] += \"d\";\n if (\"did\".equals(stationStatusDB[i])) {\n didCount++;\n } else {\n dsdCount++;\n } // if (\"did\".equals(stationStatusDB))\n } else { // if (subdesCount == 0)\n // s == Subdes: duplicate Station (lat/lon/date/time) && subdes\n stationStatusDB[i] += \"s\";\n if (\"dis\".equals(stationStatusDB[i])) {\n disCount++;\n } else {\n dssCount++;\n } // if (\"dia\".equals(stationStatusDB))\n\n thisSubdesCount += subdesCount[i];\n\n } // if (subdesCount == 0)\n// } // if (loadFlag)\n } else {\n outputDebug(dbgMess + \": NOT within time range\");\n } // if (stationExistsArray[i]) {\n\n } // if (!tStation.getStationId().equals(station.getStationId())\n\n } // for (int i = 0; i < tStation.length; i++)\n\n if (dbg) System.out.println(\"checkStationExists: stationStatusTmo = \" + stationStatusTmp);\n\n // either stations with same station Id or within same\n // area & date-time range found\n if (stationExists) {\n duplicateStations = true;\n if (dataExists) {\n stationStatusLD = \"dup\";\n } else {\n stationStatusLD = \"new\";\n newStationCount++;\n } // if (dataExists)\n } else {\n stationStatusLD = \"new\";\n newStationCount++;\n } // if (stationExists)\n\n if (dbg) System.out.println(\"checkStationExists: stationStatusLD = \" + stationStatusLD);\n if (dbg) System.out.println(\"checkStationExists: stationStatusTmo = \" + stationStatusTmp);\n for (int i = 0; i < tStation.length; i++) {\n if (dbg) System.out.println(\"checkStationExists: stationStatusDB[i] = \" +\n i + \" \" + stationStatusDB[i]);\n } // for (int i = 0; i < tStation.length; i++)\n\n }", "protected void checkUpdate() {\n \t\t// only update from remote server every so often.\n \t\tif ( ( System.currentTimeMillis() - lastUpdated ) > refreshInterval ) return;\n \t\t\n \t\tClusterTask task = getSessionUpdateTask();\n \t\tObject o = CacheFactory.doSynchronousClusterTask( task, this.nodeId );\n \t\tthis.copy( (Session) o );\n \t\t\n \t\tlastUpdated = System.currentTimeMillis();\n \t}", "@Test\n public void singleFilterEnsuresUniqueResults() {\n final Dataset dataset = new Dataset(\"TEST1\", \"sql\", new Filter(\"test-filter\"));\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"abcd\");\n entry1.add(\"123\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"wxyz\");\n entry2.add(\"789\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"wxyz\"); // same key as entry2\n entry3.add(\"456\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"efgh\");\n entry4.add(\"001\");\n\n List<List<String>> queryResults = new ArrayList<>();\n queryResults.add(entry1);\n queryResults.add(entry2);\n queryResults.add(entry3);\n queryResults.add(entry4);\n\n // given\n dataset.populateCache(queryResults, 100L);\n\n // when\n List<String> result1 = dataset.getCachedResult();\n List<String> result2 = dataset.getCachedResult();\n List<String> result3 = dataset.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1);\n assertEquals(\"Wrong result 2\", entry2, result2);\n assertEquals(\"Wrong result 3\", entry4, result3); // ignores entry 3, returns entry 4\n\n // and\n try {\n dataset.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(100L), dataset.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(4), dataset.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.of(1), dataset.getMetrics().getFilteredOut());\n }", "public boolean isConsistent() throws Exception {\n Set<BucketMessage> unconfirmed = messageHandler.getUnconfirmedMessages(receivingPartyID);\n for (BucketMessage temp : unconfirmed) {\n Tuple2<byte[], BigInteger> result = contract.readMessage(sessionID, BigInteger.valueOf(sendingPartyID), BigInteger.valueOf(receivingPartyID),\n BigInteger.valueOf(temp.getMsgNum())).send();\n if (!result.component1().equals(temp.getMsg())) return false;\n if (!result.component2().equals(temp.getBlock()))\n messageHandler.storeMessage(result.component1(), temp.getMsgNum(), receivingPartyID, temp.getBlock()); //restore with the new block\n }\n\n return true;\n }", "@Test\n public void equals_SameBuyQuery_Test() {\n Assert.assertTrue(bq1.equals(bq0));\n }", "public boolean isStale()\n {\n return (_iMdChecksum != TypeSystem.getRefreshChecksum() && !isProxy());\n }", "@Test\n public void testEquals() {\n \t\n \t//create data set\n \tString strJava = \"java\";\n \tString strScala = \"scala\";\n \tString strPhp = \"php\";\n \t\n \tfinal LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n\n \tlastWriteWinSet1.add(time1, strJava);\n \tlastWriteWinSet1.add(time1, strScala);\n \tlastWriteWinSet1.add(time1, strPhp);\n\n \tlastWriteWinSet1.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n\n lastWriteWinSet2.add(time1, strJava);\n lastWriteWinSet2.add(time1, strScala);\n lastWriteWinSet2.add(time1, strPhp);\n\n lastWriteWinSet2.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet3 = lastWriteWinSet2;\n \t\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet3.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet1));\n assertTrue(!lastWriteWinSet1.equals(null));\n }", "@Test\n public void testGetAll() throws Exception {\n JumpCloneImplant existing;\n Map<Integer, Map<Integer, JumpCloneImplant>> listCheck = new HashMap<>();\n\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID, new HashMap<>());\n listCheck.get(jumpCloneID)\n .put(typeID, existing);\n\n existing = new JumpCloneImplant(jumpCloneID + 10, typeID + 10);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID + 10, new HashMap<>());\n listCheck.get(jumpCloneID + 10)\n .put(typeID + 10, existing);\n\n // Associated with different account\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(otherAccount, 7777L);\n CachedData.update(existing);\n\n // Not live at the given time\n existing = new JumpCloneImplant(jumpCloneID + 3, typeID + 3);\n existing.setup(testAccount, 9999L);\n CachedData.update(existing);\n\n // EOL before the given time\n existing = new JumpCloneImplant(jumpCloneID + 4, typeID + 4);\n existing.setup(testAccount, 7777L);\n existing.evolve(null, 7977L);\n CachedData.update(existing);\n\n List<JumpCloneImplant> result = CachedData.retrieveAll(8888L,\n (contid, at) -> JumpCloneImplant.accessQuery(testAccount,\n contid, 1000,\n false, at,\n AttributeSelector.any(),\n AttributeSelector.any()));\n Assert.assertEquals(listCheck.size(), result.size());\n for (JumpCloneImplant next : result) {\n int jumpCloneID = next.getJumpCloneID();\n int typeID = next.getTypeID();\n Assert.assertTrue(listCheck.containsKey(jumpCloneID));\n Assert.assertTrue(listCheck.get(jumpCloneID)\n .containsKey(typeID));\n Assert.assertEquals(listCheck.get(jumpCloneID)\n .get(typeID), next);\n }\n\n }", "@Test\n public void updateSeenByRadar() {\n radar.loop();\n radar.loop();\n radar.loop();\n assertTrue(radar.getObjectsSeenByRadar().stream().anyMatch(t -> t.getId().equals(\"tree_3\")));\n }", "@Override\n public void run() {\n Node serverValue = serverSyncTree.getServerValue(query.getSpec());\n if (serverValue != null) {\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(), IndexedNode.from(serverValue)));\n return;\n }\n serverSyncTree.setQueryActive(query.getSpec());\n final DataSnapshot persisted = serverSyncTree.persistenceServerCache(query);\n if (persisted.exists()) {\n // Prefer the locally persisted value if the server is not responsive.\n scheduleDelayed(() -> source.trySetResult(persisted), GET_TIMEOUT_MS);\n }\n connection\n .get(query.getPath().asList(), query.getSpec().getParams().getWireProtocolParams())\n .addOnCompleteListener(\n ((DefaultRunLoop) ctx.getRunLoop()).getExecutorService(),\n (@NonNull Task<Object> task) -> {\n if (source.getTask().isComplete()) {\n return;\n }\n if (!task.isSuccessful()) {\n if (persisted.exists()) {\n source.setResult(persisted);\n } else {\n source.setException(Objects.requireNonNull(task.getException()));\n }\n } else {\n /*\n * We need to replicate the behavior that occurs when running `once()`. In other words,\n * we need to create a new eventRegistration, register it with a view and then\n * overwrite the data at that location, and then remove the view.\n */\n Node serverNode = NodeUtilities.NodeFromJSON(task.getResult());\n QuerySpec spec = query.getSpec();\n // EventRegistrations require a listener to be attached, so a dummy\n // ValueEventListener was created.\n keepSynced(spec, /*keep=*/ true, /*skipDedup=*/ true);\n List<? extends Event> events;\n if (spec.loadsAllData()) {\n events = serverSyncTree.applyServerOverwrite(spec.getPath(), serverNode);\n } else {\n events =\n serverSyncTree.applyTaggedQueryOverwrite(\n spec.getPath(),\n serverNode,\n getServerSyncTree().tagForQuery(spec));\n }\n repo.postEvents(\n events); // to ensure that other listeners end up getting their cached\n // events.\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(),\n IndexedNode.from(serverNode, query.getSpec().getIndex())));\n keepSynced(spec, /*keep=*/ false, /*skipDedup=*/ true);\n }\n });\n }", "@Test\n public void noFilteringAllowsRepeatedResults() {\n final Dataset dataset = new Dataset(\"TEST1\", \"sql\");\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"abcd\");\n entry1.add(\"123\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"wxyz\");\n entry2.add(\"789\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"wxyz\"); // same key as entry2\n entry3.add(\"456\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"efgh\");\n entry4.add(\"001\");\n\n List<List<String>> queryResults = new ArrayList<>();\n queryResults.add(entry1);\n queryResults.add(entry2);\n queryResults.add(entry3);\n queryResults.add(entry4);\n\n // given\n dataset.populateCache(queryResults, 100L);\n\n // when\n final List<String> result1 = dataset.getCachedResult();\n final List<String> result2 = dataset.getCachedResult();\n final List<String> result3 = dataset.getCachedResult();\n final List<String> result4 = dataset.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1);\n assertEquals(\"Wrong result 2\", entry2, result2);\n assertEquals(\"Wrong result 3\", entry3, result3);\n assertEquals(\"Wrong result 4\", entry4, result4);\n\n // and\n try {\n dataset.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(100L), dataset.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(5), dataset.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.empty(), dataset.getMetrics().getFilteredOut());\n }", "@Override\n public boolean getDataSetRequiresLocalMirror( Corpus corp, Ice.Current __current )\n {\n CorpusI cs = checkValidityAndLookup( corp );\n // if you're changing this function, please also change localMirrorExists\n if (null!=cs && cs.isImmutableMirror)\n {\n return true;\n }\n return false;\n }", "boolean hasSameAs();", "public boolean evaluateDataClientHeavy() {\n // reset labels\n resetLabels();\n // get IDs of players\n // create one map with playerName and playerID\n // create one map with playerID and the count how often this player participates in this game\n List<Map<String, Object>> returnList;\n Map<String, Integer> mapNameToID = new HashMap<>();\n HashMap<Integer, Integer> mapIDToCount = new HashMap<>();\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n for (String playerName : playerNameList) {\n returnList = dbAccess.selectSQL(\"SELECT players.id FROM players WHERE players.name = '\" + playerName + \"';\");\n if (returnList == null || returnList.isEmpty()) {\n showAlertDBError();\n return false;\n } else {\n int playerID = (int) returnList.get(0).get(\"id\");\n if (!mapNameToID.containsKey(playerName)) {\n mapNameToID.put(playerName, playerID);\n }\n if (!mapIDToCount.containsKey(playerID)) {\n mapIDToCount.put(playerID, 1);\n } else {\n mapIDToCount.put(playerID, mapIDToCount.get(playerID) + 1);\n }\n }\n }\n\n // get all games and all participants from DB\n List<Map<String, Object>> dbGames = dbAccess.selectSQL(\"SELECT * FROM games;\");\n List<Map<String, Object>> dbParticipants = dbAccess.selectSQL(\"SELECT * FROM participants;\");\n if (dbGames == null || dbParticipants == null) {\n showAlertDBError();\n return false;\n }\n dbAccess.closeConn();\n\n // create winners map\n // holds gameID and ID of winning participant, if game has no winner participantID is -1\n HashMap<Integer, Integer> mapGameIDToWinnerID = new HashMap<>();\n\n // iterate all games\n for (Map<String, Object> rowGames : dbGames) {\n boolean dumpGame = false;\n int gameId = (int) rowGames.get(\"id\");\n String endTime = null;\n if (rowGames.get(\"end_time\") != null)\n endTime = rowGames.get(\"end_time\").toString();\n boolean isAIOnly = (boolean) rowGames.get(\"ai_only\");\n // get deepCopy of mapIDToCount\n Map<Integer, Integer> idToCountCopy = copyHashMapIntInt(mapIDToCount);\n // check if game was aborted preemptively\n if (endTime == null)\n continue;\n int winner = -1;\n\n //iterate all participants\n for (Map<String, Object> rowParticipants : dbParticipants) {\n // check if game.id matches participants.game\n if (gameId == (int) rowParticipants.get(\"game\")) {\n // get participants.id\n int playerID = (int) rowParticipants.get(\"player\");\n // check if participant is in the map of participants, if not skip to next game (break)\n if (idToCountCopy.containsKey(playerID)) {\n // check if the count in this map is higher than 0, if not skip to next game (break)\n if (idToCountCopy.get(playerID) > 0) {\n // lower value of count in map of participants for this participant\n idToCountCopy.put(playerID, idToCountCopy.get(playerID) - 1);\n // if this participant is winner - store it temporarily\n if (rowParticipants.get(\"winner\") != null) {\n winner = playerID;\n }\n } else {\n dumpGame = true;\n break;\n }\n } else {\n dumpGame = true;\n break;\n }\n }\n }\n // check if every value in idToCountCopy is 0\n // if yes -> save game and winner in winners map\n // if not -> dump game\n for (Map.Entry<Integer, Integer> entry : idToCountCopy.entrySet()) {\n if (entry.getValue() != 0) {\n dumpGame = true;\n }\n }\n if (dumpGame == false) {\n mapGameIDToWinnerID.put(gameId, winner);\n }\n }\n\n // check if any games with this constellation of players was played\n if (mapGameIDToWinnerID.isEmpty()) {\n resetPieChart();\n resetLabels();\n showAlertSelectionFail(\"Selection error\", \"No games with this constellation were found.\");\n return false;\n }\n\n // calculate average turns until winner is determined\n if (!dbAccess.openConn()) {\n showAlertDBError();\n return false;\n }\n Integer turnSum = 0;\n Integer gameCounter = 0;\n int averageTurns = 0;\n for (Map.Entry<Integer, Integer> entry : mapGameIDToWinnerID.entrySet()) {\n // check if game has winner\n if (entry.getValue() != -1) {\n // get number of turns for this game\n List<Map<String, Object>> resultList = dbAccess.selectSQL(\"SELECT MAX(turn) FROM moves WHERE game = \" + entry.getKey() + \";\");\n if (resultList == null || resultList.isEmpty()) {\n showAlertDBError();\n return false;\n } else {\n turnSum += (int) resultList.get(0).get(\"MAX(turn)\");\n gameCounter++;\n }\n }\n }\n\n // calculate average turns\n String strAverageTurns = \"\";\n if (gameCounter > 0) {\n averageTurns = Math.round(turnSum / gameCounter);\n }\n strAverageTurns = String.valueOf(averageTurns);\n dbAccess.closeConn();\n\n // now process mapGameIDToWinnerID to pieChart and labels\n Map<String, Integer> mapNameToWins = new HashMap<>();\n // iterate over GameID-WinnerID map and count wins for each player\n int endlessGames = 0;\n for (Map.Entry<Integer, Integer> entryWins : mapGameIDToWinnerID.entrySet()) {\n if (entryWins.getValue() == -1)\n endlessGames++;\n for (Map.Entry<String, Integer> entryName : mapNameToID.entrySet()) {\n if (entryName.getValue() == entryWins.getValue()) {\n if (!mapNameToWins.containsKey(entryName.getKey())) {\n mapNameToWins.put(entryName.getKey(), 1);\n } else {\n mapNameToWins.put(entryName.getKey(), mapNameToWins.get(entryName.getKey()) + 1);\n }\n }\n }\n }\n // add players without wins to the map\n for (Map.Entry<String, Integer> entry : mapNameToID.entrySet()) {\n if (!mapNameToWins.containsKey(entry.getKey()))\n mapNameToWins.put(entry.getKey(), 0);\n }\n\n // fill labels with numbers\n lblTotalGames.setText(String.valueOf(mapGameIDToWinnerID.size()));\n lblGamesWithoutWinner.setText(String.valueOf(endlessGames));\n if (averageTurns == 0) {\n lblAverageTurns.setText(\"Not available\");\n } else {\n lblAverageTurns.setText(strAverageTurns);\n }\n int labelCounter = 1;\n for (Map.Entry<String, Integer> entry : mapNameToWins.entrySet()) {\n vBoxDesc.getChildren().add(labelCounter, new Label(entry.getKey() + \":\"));\n vBoxNumbers.getChildren().add(labelCounter, new Label(String.valueOf(entry.getValue()) + \" wins\"));\n }\n\n // fill pieChart\n pieChartData = FXCollections.observableArrayList();\n for (Map.Entry<String, Integer> entry : mapNameToWins.entrySet()) {\n pieChartData.add(new PieChart.Data(entry.getKey(), entry.getValue()));\n }\n if (endlessGames > 0) {\n pieChartData.add(new PieChart.Data(\"No winner\", endlessGames));\n }\n chart.setData(pieChartData);\n chart.setTitle(\"Winners by percentage\");\n\n lblCaption.setTextFill(Color.web(\"#404040\", 1.0));\n lblCaption.setStyle(\"-fx-font: 24 arial;\");\n\n // set percentages\n for (PieChart.Data data : chart.getData()) {\n data.getNode().addEventHandler(MouseEvent.MOUSE_PRESSED,\n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent e) {\n lblCaption.setTranslateX(e.getSceneX());\n lblCaption.setTranslateY(e.getSceneY());\n double percentage = (data.getPieValue() * 100) / Integer.valueOf(mapGameIDToWinnerID.size()).doubleValue();\n String strPercentage = formatDec(percentage);\n lblCaption.setText(String.valueOf(strPercentage + \"%\"));\n }\n });\n }\n // add pieChart and caption\n if (!diagramBox.getChildren().contains(chart))\n diagramBox.getChildren().add(chart);\n if (!root.getChildren().contains(lblCaption))\n root.getChildren().add(lblCaption);\n return true;\n }", "protected boolean isCurEqualsToCacheCur() {\n return reqCurLocCacheData != null;\n }", "@Test\n public void addBlankNodesFromMultipleDatasets() throws Exception {\n try (final Dataset g1 = createDataset1();\n final Dataset g2 = createDataset2();\n final Dataset g3 = factory.createDataset()) {\n\n addAllQuads(g1, g3);\n addAllQuads(g2, g3);\n\n // Let's make a map to find all those blank nodes after insertion\n // (The Dataset implementation is not currently required to\n // keep supporting those BlankNodes with contains() - see\n // COMMONSRDF-15)\n\n final Map<String, BlankNodeOrIRI> whoIsWho = new ConcurrentHashMap<>();\n // ConcurrentHashMap as we will try parallel forEach below,\n // which should not give inconsistent results (it does with a\n // HashMap!)\n\n // look up BlankNodes by name\n final IRI name = factory.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n try (Stream<? extends Quad> stream = g3.stream(null, null, name, null)) {\n stream.parallel().forEach(t -> whoIsWho.put(t.getObject().ntriplesString(), t.getSubject()));\n }\n\n assertEquals(4, whoIsWho.size());\n // and contains 4 unique values\n assertEquals(4, new HashSet<>(whoIsWho.values()).size());\n\n final BlankNodeOrIRI b1Alice = whoIsWho.get(\"\\\"Alice\\\"\");\n assertNotNull(b1Alice);\n final BlankNodeOrIRI b2Bob = whoIsWho.get(\"\\\"Bob\\\"\");\n assertNotNull(b2Bob);\n final BlankNodeOrIRI b1Charlie = whoIsWho.get(\"\\\"Charlie\\\"\");\n assertNotNull(b1Charlie);\n final BlankNodeOrIRI b2Dave = whoIsWho.get(\"\\\"Dave\\\"\");\n assertNotNull(b2Dave);\n\n // All blank nodes should differ\n notEquals(b1Alice, b2Bob);\n notEquals(b1Alice, b1Charlie);\n notEquals(b1Alice, b2Dave);\n notEquals(b2Bob, b1Charlie);\n notEquals(b2Bob, b2Dave);\n notEquals(b1Charlie, b2Dave);\n\n // And we should be able to query with them again\n // as we got them back from g3\n final IRI hasChild = factory.createIRI(\"http://example.com/hasChild\");\n // FIXME: Check graph2 BlankNode in these ..?\n assertTrue(g3.contains(null, b1Alice, hasChild, b2Bob));\n assertTrue(g3.contains(null, b2Dave, hasChild, b1Charlie));\n // But not\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Alice));\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Charlie));\n assertFalse(g3.contains(null, b1Alice, hasChild, b2Dave));\n // nor\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n\n // and these don't have any children (as far as we know)\n assertFalse(g3.contains(null, b2Bob, hasChild, null));\n assertFalse(g3.contains(null, b1Charlie, hasChild, null));\n }\n }", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "protected boolean matchData() {\n for (int i = 0; i < itsNumPoints; i++) {\n if (itsValues[i] == null || itsValues[i].getData() == null) {\n return false;\n }\n }\n return true;\n }", "private boolean isQueryNew() throws PipelineNodeException {\n\t\tthis.getCanonicalFormForParameters();\n\n\t\t// get the Id of an evenual existing query identical to the one which is\n\t\t// submitted\n\t\ttry {\n\n\t\t\tthis.queryId = QueryDao.getInstance().getIdentifierExistingQuery(\n\t\t\t\t\tnotification);\n\t\t} catch (Exception e) {\n\t\t\tnew ErrorHandler(notification, queryId, e.getMessage(), this\n\t\t\t\t\t.getClass().getName());\n\t\t\tthrow new PipelineNodeException(e.getMessage());\n\t\t}\n\t\treturn (null == queryId);\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean isReady() {\n\t\tResultSetDTO dto = mongoManager.fetchAndUpdateAvailableToRead(previousCollectionName);\r\n\t\t\r\n\t\tlogger.info(\"ready to start a new transaction? : [\"+(dto.isNotEmpty()?\"Yes\":\"No\")+\"], fetch size : \"+dto.getBatchRowsSize());\r\n\t\tif(dto.isNotEmpty()){\r\n\t\t\t\r\n\t\t\tnextBatchRows = dto.getBatchRows();\r\n\t\t\tcollectionName = dto.getCollectionName();\r\n\t\t\tpreviousCollectionName = collectionName;\r\n//\t\t\tlong idletime = 1 * 1000;\r\n//\t\t\tlogger.info(\"sleeping(has data)... idle time:\"+idletime+\" ms\");\r\n//\t\t\tUtils.sleep(idletime);\r\n\t\t\tlogger.debug(\"received data, prepare to sleep for a while...\");\r\n\t\t\tUtil.sleepForawhile(3 * 1000);\r\n\t\t\treturn true;\r\n\t\t} else{ //sleep while there is no data found\r\n\t\t\tlogger.warn(\"no data found, sleeping...\");\r\n\t\t\tUtil.sleepForawhile(6 * 1000);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n//\t\treturn mongoManager.getAvailableToRead(nextRead) > 0;\r\n\t}", "private boolean hasUniqueState()\n {\n return (getExternalArcState() == getMiddleArcState() && getExternalArcState() == getInternalArcState() && getExternalArcState() == getCircleState());\n }", "void findMatchings(boolean isProtein) {\n\n GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();\n HashSet<String > searchSpaceList = new HashSet<>();\n GraphDatabaseService databaseService = dbFactory.newEmbeddedDatabase(graphFile);\n for (int id: queryGraphNodes.keySet()) {\n if(isProtein)\n searchSpaceList.add(queryGraphNodes.get(id).label);\n else\n searchSpaceList.add(String.valueOf(queryGraphNodes.get(id).labels.get(0)));\n }\n for(String x: searchSpaceList) {\n ResourceIterator<Node> xNodes;\n try(Transaction tx = databaseService.beginTx()) {\n xNodes = databaseService.findNodes(Label.label(x));\n tx.success();\n }\n\n while (xNodes.hasNext()) {\n Node node = xNodes.next();\n if (searchSpaceProtein.containsKey(x))\n searchSpaceProtein.get(x).add(node.getId());\n else {\n HashSet<Long> set = new HashSet<>();\n set.add(node.getId());\n searchSpaceProtein.put(x, set);\n }\n }\n\n }\n\n if(isProtein)\n search(0, databaseService, true);\n else\n search(0, databaseService, false);\n databaseService.shutdown();\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\" SELECT * FROM \");\n assertFalse(boolean0);\n assertNotNull(boolean0);\n }", "@Test\n public void testEquals04() {\n System.out.println(\"equals\");\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n Object otherObject = new SocialNetwork(new HashSet(), cities);\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "boolean pullingOnce();", "public boolean isDuplicate(IDecodedDeviceRequest<?> request) throws SiteWhereException;", "@Test\n public void testSameEPPNs() throws Exception {\n // Get a set of keys.\n ArrayList<UserMultiID> umks = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n umks.add(createUMK());\n }\n User user = newUser();\n User mostRecentUser = user;\n String idp = user.getIdP();\n long oneYear = 31557600000L; // in ms.\n long currentTime = System.currentTimeMillis();\n ArrayList<User> newUsers = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n newUsers.add(user);\n\n // all have the same EPPN, but different eptids\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn(), umks.get(i).getEptid());\n Date date = new Date(currentTime - (i + 1) * oneYear); // have these spaced one year apart.\n user.setCreationTS(date);\n user.setUserMultiKey(newUmk);\n getUserStore().update(user, true);\n user = newUser();\n user.setIdP(idp);\n }\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn());\n\n Collection<User> users = getUserStore().get(newUmk, idp);\n\n assert users.size() == count : \"Incorrect number of users found. Expected \" + count + \" and got \" + users.size();\n XMLMap userMap = getDBSClient().getUser(newUmk, idp);\n checkUserAgainstMap(userMap, mostRecentUser);\n }", "private void lastResortFindPeer() {\n\t\tDecentLogger.write(\"Resolving peers from DNS (last resort)\");\n\t\tfor(String seed: DNS_SEEDS) {\n\t\t\tArrayList<InetAddress> hosts = DNSResolver.getARecords(seed);\n\t\t\tif(hosts != null) {\n\t\t\t\tcheckList(hosts);\n\t\t\t}\n\t\t}\n\t}", "synchronized void checkAlive() {\n printAct(\"==>Checking all my Entries if alive \");\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Integer, FileLocation> entry = (Map.Entry) it.next();\n FileLocation location = entry.getValue();\n try {\n InetSocketAddress server = new InetSocketAddress(location.getIP(), location.getPort());\n Socket s = new Socket();\n s.connect(server, 200); //connect with to the AppliCation with a timeout\n ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());\n out.writeInt(2); //request 2 = file request\n out.writeInt(5); //\"random\" port, specific for this request\n out.close();\n s.close();\n } catch (java.net.SocketTimeoutException ex) {\n this.removeKey(entry.getKey());\n } catch (IOException ex) {\n this.removeKey(entry.getKey());\n }\n }\n printAct(\"==>Checked all my Entries if alive \");\n }", "public boolean checkDuplicate(ResultSet rsData, ResultSet rsWareHouse) {\n\t\ttry {\n\n\t\t\tint count = 0;\n\t\t\tfor (int i = 1; i <= number_colum; i++) {\n\t\t\t\ttry {\n//\t\t\t\t\tSystem.out.println(rsData.getString(i));\n//\t\t\t\t\tSystem.out.println(rsWareHouse.getObject(i + 1));\n\t\t\t\t\tif (!rsData.getString(i).equals(rsWareHouse.getObject(i + 1).toString())) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 2) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\n\t}", "private void checkInlineQueries() throws Exceptions.OsoException, Exceptions.InlineQueryFailedError {\n Ffi.Query nextQuery = ffiPolar.nextInlineQuery();\n while (nextQuery != null) {\n if (!new Query(nextQuery, host).hasMoreElements()) {\n String source = nextQuery.source();\n throw new Exceptions.InlineQueryFailedError(source);\n }\n nextQuery = ffiPolar.nextInlineQuery();\n }\n }", "public abstract boolean isDataConnectionAsDesired();", "@Override\n\tpublic boolean isConnected() {\n\t\tif(dwg.getV().size()==0) return true;\n\n\t\tIterator<node_data> temp = dwg.getV().iterator();\n\t\twhile(temp.hasNext()) {\n\t\t\tfor(node_data w : dwg.getV()) {\n\t\t\t\tw.setTag(0);\n\t\t\t}\n\t\t\tnode_data n = temp.next();\n\t\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\t\tn.setTag(1);\n\t\t\tq.add(n);\n\t\t\twhile(!q.isEmpty()) {\n\t\t\t\tnode_data v = q.poll();\n\t\t\t\tCollection<edge_data> arrE = dwg.getE(v.getKey());\n\t\t\t\tfor(edge_data e : arrE) {\n\t\t\t\t\tint keyU = e.getDest();\n\t\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\t\tif(u.getTag() == 0) {\n\t\t\t\t\t\tu.setTag(1);\n\t\t\t\t\t\tq.add(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tv.setTag(2);\n\t\t\t}\n\t\t\tCollection<node_data> col = dwg.getV();\n\t\t\tfor(node_data n1 : col) {\n\t\t\t\tif(n1.getTag() != 2) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean run()\n throws Exception {\n\n _startTreeCluster.start();\n _refCluster.start();\n\n SegmentInfoProvider segmentInfoProvider = new SegmentInfoProvider(_segmentDirName);\n StarTreeQueryGenerator queryGenerator =\n new StarTreeQueryGenerator(_tableName, segmentInfoProvider.getSingleValueDimensionColumns(),\n segmentInfoProvider.getMetricColumns(), segmentInfoProvider.getSingleValueDimensionValuesMap());\n\n boolean ret = true;\n for (int i = 0; i < _numQueries; i++) {\n String query = queryGenerator.nextQuery();\n LOGGER.info(\"QUERY: {}\", query);\n\n JsonNode refResponse = JsonUtils.stringToJsonNode(_refCluster.query(query));\n JsonNode starTreeResponse = JsonUtils.stringToJsonNode((_startTreeCluster.query(query)));\n\n if (QueryComparison.compare(refResponse, starTreeResponse, false)) {\n LOGGER.error(\"Comparison PASSED: {}\", query);\n } else {\n ret = false;\n LOGGER.error(\"Comparison FAILED: {}\", query);\n LOGGER.info(\"Ref Response: {}\", _refCluster.query(query));\n LOGGER.info(\"StarTree Response: {}\", _startTreeCluster.query(query));\n }\n }\n\n return ret;\n }", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "@Test\n public void testSyncWhenNeedToSyncMacsWithStatefulSnapshotAndRelocate() {\n\n String currentMac1 = \"1\";\n String currentMac2 = \"3\";\n String snapshottedMac1 = \"1\";\n String snapshottedMac2 = \"2\";\n\n String reallocatingMac = \"4\";\n\n VmNic currentNic1 = createNic(currentMac1);\n VmNic currentNic2 = createNic(currentMac2);\n VmNic snapshottedNic1 = createNic(snapshottedMac1);\n VmNic snapshottedNic2 = createNic(snapshottedMac2);\n\n List<String> macsToBeAdded = Collections.singletonList(snapshottedMac2);\n when(macPool.addMacs(macsToBeAdded)).thenReturn(macsToBeAdded);\n when(macPool.allocateNewMac()).thenReturn(reallocatingMac);\n\n createSyncMacsOfDbNicsWithSnapshot(false)\n .sync(Arrays.asList(currentNic1, currentNic2), Arrays.asList(snapshottedNic1, snapshottedNic2));\n\n verify(snapshottedNic2).setMacAddress(reallocatingMac);\n\n verifyMethodCallOn(VmNic::getMacAddress, 1, currentNic1, currentNic2);\n\n //because in reallocation all(in this case) snapshotted nics will be queried again.\n verifyMethodCallOn(VmNic::getMacAddress, 2, snapshottedNic1, snapshottedNic2);\n verify(macPool).allocateNewMac();\n\n verify(macPool).freeMacs(Collections.singletonList(currentMac2));\n\n verify(macPool).addMacs(macsToBeAdded);\n verifyNoMoreInteractionsOn(snapshottedNic1, snapshottedNic2, currentNic1, currentNic2);\n }", "void loadData() {\n\n // update if\n // station does not exist OR\n // the station exists and should be updated\n // don't update if the depth is rejected, regardless of the above 2\n\n String tmpStationId = \"\";\n if (dataType == CURRENTS) {\n tmpStationId = currents.getStationId(\"\");\n } else if (dataType == SEDIMENT) {\n tmpStationId = sedphy.getStationId(\"\");\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpStationId = watphy.getStationId(\"\");\n } // if (dataType == CURRENTS)\n if (dbg3) System.out.println(\"<br>loadData: tmpStationId = \" + tmpStationId);\n if (dbg3) System.out.println(\"<br>loadData: rejectDepth = \" + rejectDepth);\n if (dbg3) System.out.println(\"<br>loadData: stationExists = \" + stationExists);\n if (dbg3) System.out.println(\"<br>loadData: stationUpdated = \" + stationUpdated);\n if (dbg3) System.out.println(\"<br>loadData: dataExists = \" + dataExists);\n if (dbg3) System.out.println(\"<br>loadData: if = \" +\n (!\"\".equals(tmpStationId) && !rejectDepth &&\n (!stationExists || stationUpdated || !dataExists)));\n if (dbg3) System.out.println(\"<br>loadData: dataType = \" + dataType);\n\n//<br>loadData: tmpStationId = WOD007919212\n//<br>loadData: rejectDepth = false\n//<br>loadData: stationExists = true\n//<br>loadData: stationUpdated = false\n//<br>loadData: dataExists = true\n\n if (!\"\".equals(tmpStationId) && !rejectDepth &&\n (!stationExists || stationUpdated || !dataExists || (thisSubdesCount == 0))) {\n\n // was it a duplicate station with a different station-id?\n // as we can't update station-id's in oracle (used as FK elsewhere),\n // we have to update the watphy record's station id\n if (dbg4) System.out.println(\"<br>loadData: stationIDs = \" +\n station.getStationId(\"\") + \" \" + tmpStationId);\n //if (!station.getStationId(\"\").equals(watphy.getStationId(\"\"))) {\n if (!station.getStationId(\"\").equals(tmpStationId)) {\n if (dataType == CURRENTS) {\n currents.setStationId(station.getStationId(\"\"));\n } else if (dataType == SEDIMENT) {\n sedphy.setStationId(station.getStationId(\"\"));\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n if (dbg4) System.out.println(\"<br>loadData: put watphy = \" + watphy);\n watphy.setStationId(station.getStationId(\"\"));\n if (dbg4) System.out.println(\"<br>loadData: put watphy = \" + watphy);\n } // if (dataType == CURRENTS)\n } // if (!station.getStationId(\"\").equals(tmpStationId))\n\n if (dataType == CURRENTS) {\n\n // insert the currents record\n if (dbg4) System.out.println(\"<br>loadData: put currents1 = \" +\n currents);\n try {\n currents.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put currents1 = \" + currents);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + currents.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg4) System.out.println(\"<br>loadData: put currents2 = \" +\n currents);\n //dataCodeEnd = currents.getCode();\n //if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n currentsCount++;\n\n currents = new MrnCurrents();\n\n // set initial values for currents\n currents.setSpldattim(startDateTime);\n currents.setSubdes(subdes);\n\n } else if (dataType == SEDIMENT) {\n\n // set default values\n sedphy.setDeviceCode(1); // == unknown\n sedphy.setMethodCode(1); // == unknown\n sedphy.setStandardCode(1); // == unknown\n\n // insert the sedphy and child records\n if (dbg4) System.out.println(\"<br>loadData: put sedphy1 = \" + sedphy);\n try {\n sedphy.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedphy1 = \" + sedphy);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedphy.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg3) System.out.println(\"<br>loadData: put sedphy2 = \" + sedphy);\n dataCodeEnd = sedphy.getCode();\n if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n\n //sedphyCount++;\n\n if (!sedchem1.isNullRecord()) {\n sedchem1.setSedphyCode(dataCodeEnd);\n try {\n sedchem1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedchem1 = \" + sedchem1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedchem1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedchem1 = \" + sedchem1);\n sedchem1Count++;\n } // if (!sedchem1.isNullRecord()\n\n if (!sedchem2.isNullRecord()) {\n sedchem2.setSedphyCode(dataCodeEnd);\n try {\n sedchem2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedchem2 = \" + sedchem2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedchem2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedchem2 = \" + sedchem2);\n sedchem2Count++;\n } // if (!sedchem2.isNullRecord()\n\n if (!sedpol1.isNullRecord()) {\n sedpol1.setSedphyCode(dataCodeEnd);\n try {\n sedpol1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedpol1 = \" + sedpol1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedpol1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedpol1 = \" + sedpol1);\n sedpol1Count++;\n } // if (!sedpol1.isNullRecord()\n\n if (!sedpol2.isNullRecord()) {\n sedpol2.setSedphyCode(dataCodeEnd);\n try {\n sedpol2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedpol2 = \" + sedpol2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedpol2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedpol2 = \" + sedpol2);\n sedpol2Count++;\n } // if (!sedpol2.isNullRecord()\n\n sedphy = new MrnSedphy();\n sedchem1 = new MrnSedchem1();\n sedchem2 = new MrnSedchem2();\n sedpol1 = new MrnSedpol1();\n sedpol2 = new MrnSedpol2();\n\n // set initial values for sedphy\n sedphy.setSpldattim(startDateTime);\n sedphy.setSubdes(subdes);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n // set default values\n watphy.setDeviceCode(1); // == unknown\n watphy.setMethodCode(1); // == unknown\n watphy.setStandardCode(1); // == unknown\n\n // insert the watphy and child records\n if (dbg4) System.out.println(\"<br>loadData: put watphy1 = \" + watphy);\n try {\n watphy.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watphy1 = \" + watphy);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watphy.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg3) System.out.println(\"<br>loadData: put watphy2 = \" + watphy);\n dataCodeEnd = watphy.getCode();\n if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n\n watphyCount++;\n\n if (dbg4) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n if (!watProfQC.isNullRecord()) {\n watProfQC.setStationId(station.getStationId(\"\"));\n watProfQC.setSubdes(watphy.getSubdes(\"\"));\n if (dbg4) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n try {\n watProfQC.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watProfQC1 = \" + watProfQC);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watProfQC.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n } // if (!watProfQC.isNullRecord()\n\n if (dbg4) System.out.println(\"<br>loadData: put watQC = \" + watQC);\n if (!watQC.isNullRecord()) {\n try {\n watQC.setWatphyCode(dataCodeEnd);\n watQC.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watQC = \" + watQC);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watQC.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watQC = \" + watQC);\n } // if (!watQC.isNullRecord())\n\n if (!watchem1.isNullRecord()) {\n watchem1.setWatphyCode(dataCodeEnd);\n try {\n watchem1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchem1 = \" + watchem1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchem1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchem1 = \" + watchem1);\n watchem1Count++;\n } // if (!watchem1.isNullRecord()\n\n if (!watchem2.isNullRecord()) {\n watchem2.setWatphyCode(dataCodeEnd);\n try {\n watchem2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchem2 = \" + watchem2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchem2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchem2 = \" + watchem2);\n watchem2Count++;\n } // if (!watchem2.isNullRecord()\n\n if (!watchl.isNullRecord()) {\n watchl.setWatphyCode(dataCodeEnd);\n try {\n watchl.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchl = \" + watchl);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchl.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchl = \" + watchl);\n watchlCount++;\n } // if (!watchl.isNullRecord())\n\n if (!watnut.isNullRecord()) {\n watnut.setWatphyCode(dataCodeEnd);\n try {\n watnut.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watnut = \" + watnut);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watnut.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watnut = \" + watnut);\n watnutCount++;\n } // if (!watnut.isNullRecord())\n\n if (!watpol1.isNullRecord()) {\n watpol1.setWatphyCode(dataCodeEnd);\n try {\n watpol1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watpol1 = \" + watpol1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watpol1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watpol1 = \" + watpol1);\n watpol1Count++;\n } // if (!watpol1.isNullRecord()\n\n if (!watpol2.isNullRecord()) {\n watpol2.setWatphyCode(dataCodeEnd);\n try {\n watpol2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watpol2 = \" + watpol2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watpol2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watpol2 = \" + watpol2);\n watpol2Count++;\n } // if (!watpol2.isNullRecord()\n\n watphy = new MrnWatphy();\n watchem1 = new MrnWatchem1();\n watchem2 = new MrnWatchem2();\n watchl = new MrnWatchl();\n watnut = new MrnWatnut();\n watpol1 = new MrnWatpol1();\n watpol2 = new MrnWatpol2();\n\n watProfQC = new MrnWatprofqc();\n watQC = new MrnWatqc();\n\n // set initial values for watphy\n watphy.setSpldattim(startDateTime);\n watphy.setSubdes(subdes);\n\n } // if (dataType == CURRENTS)\n\n } // if (!rejectDepth && (!stationExists || stationUpdated))\n }", "protected synchronized boolean processNewRscDataListWithBinning() {\n preProcessFrameUpdate();\n\n boolean frameMatched = false;\n IRscDataObject lastDataObj = null;\n IRscDataObject rscDataObj = null;\n int closestMatch = 0;\n\n for (AbstractFrameData frameData : frameDataMap.values()) {\n if (frameData != null) {\n\n frameMatched = false;\n\n while (!newRscDataObjsQueue.isEmpty()) {\n rscDataObj = newRscDataObjsQueue.poll();\n\n if (frameData.isRscDataObjInFrame(rscDataObj)) {\n\n // Which is a closer match to the frame, the current\n // IRscDataObject or the one before?\n closestMatch = frameData.closestToFrame(rscDataObj,\n lastDataObj);\n\n // If current IRscDataObject rscDataObj is closer match\n if (closestMatch == 1) {\n addRscDataToFrame(frameData, rscDataObj);\n lastDataObj = rscDataObj;\n }\n // Else last IRscDataObject lastDataObj, closer (2)\n // OR last & current IRscDataObject are equal (0)\n // AND BOTH are not null (-1)\n else if (closestMatch != -1) {\n addRscDataToFrame(frameData, lastDataObj);\n }\n\n frameMatched = true;\n break;\n }\n\n lastDataObj = rscDataObj;\n\n } // end while\n\n if (!frameMatched) {\n\n // Which IRscDataObject is a closer time match ?\n // the last one processed or the current one?\n closestMatch = frameData.closestToFrame(rscDataObj,\n lastDataObj);\n\n // Latest IRscDataObject rscDataObj is the closest match\n if (closestMatch == 1) {\n addRscDataToFrame(frameData, rscDataObj);\n lastDataObj = rscDataObj;\n }\n // IF the previous IRscDataObject lastDataObj was the\n // closest match (2)\n // OR\n // IF the latest & previous were equally good matches(0)\n // and the two objects were equal without being both null\n // (-1)\n else if (closestMatch != -1) {\n addRscDataToFrame(frameData, lastDataObj);\n }\n\n }\n\n }\n } // end for\n\n // allow resources to post-process the data after it is added to the\n // frames\n postProcessFrameUpdate();\n autoUpdateReady = false;\n return true;\n }", "boolean repOk() {\n Set<Node> visited = new HashSet<Node>();\n Node n = header;\n while (n != null) {\n if (!visited.add(n)) {\n return false;\n }\n n = n.next;\n }\n return true;\n }", "public void checkConnections() {\n Boolean updateCanvas = false;\n\n // Find new connections set within a node and creates them\n for (DrawableNode node : nodes) {\n if (node instanceof LogicNode) {\n String src = ((LogicNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this LogicNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TestCaseNode) {\n String src = ((TestCaseNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this TestCaseNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) node).getSwitches();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n Boolean enabledConnection = false;\n\n for (Switch aSwitch : aSwitches) {\n if ((aSwitch.getTarget().equals(endNode.getContainedText()))) {\n enabledConnection = aSwitch.isEnabled();\n createConnection = true;\n }\n }\n\n if (createConnection && !connectionExists(node, endNode)) {\n Integer connectionType = NodeConnection.DYNAMIC_CONNECTION;\n if (!enabledConnection) {\n connectionType = NodeConnection.DISABLED_CONNECTION;\n }\n\n NodeConnection newConnection = new NodeConnection(node, endNode, connectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TriggerNode) {\n List<Trigger> triggers = ((TriggerNode) node).getTriggers();\n\n for (Trigger trigger : triggers) {\n String watchName = trigger.getWatch();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n\n if (watchName.equals(endNode.getContainedText())) {\n createConnection = true;\n }\n\n // This connection has the start and end the other way around, the target is specified in the trigger but\n // we want it to look like the watched node is connecting to the trigger as that is the order that they are run\n if (createConnection && !connectionExists(endNode, node)) {\n NodeConnection newConnection = new NodeConnection(endNode, node, NodeConnection.TRIGGER_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n\n // Find connection that are set using the Next node input box\n if (node != null && !node.getNextNodeToRun().isEmpty()) {\n for (DrawableNode endNode : getNodes()) {\n if (node.getNextNodeToRun().equals(endNode.getContainedText())) {\n if (!connectionExists(node, endNode)) {\n NodeConnection newConnection = new NodeConnection(node, endNode, NodeConnection.MAIN_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n }\n\n // Checks old connections and removes ones that don't exist\n List<NodeConnection> listToRemove = new ArrayList<>();\n List<NodeConnection> connectionsLoopTemp = new ArrayList<>(); // We make a copy the list here so that we can the original while iterating over this one\n connectionsLoopTemp.addAll(connections);\n for (NodeConnection nodeConnection : connectionsLoopTemp) {\n if (nodeConnection.getConnectionType().equals(NodeConnection.DYNAMIC_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || !aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create a disabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DISABLED_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.TRIGGER_CONNECTION)) {\n if (nodeConnection.getConnectionEnd() instanceof TriggerNode) { // Here the start and end connections are reversed\n List<Trigger> triggers = ((TriggerNode) nodeConnection.getConnectionEnd()).getTriggers();\n String endContainedText = nodeConnection.getConnectionStart().getContainedText();\n Integer removeCount = 0;\n for (Trigger trigger : triggers) {\n if ((!trigger.getWatch().equals(endContainedText))) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(triggers.size())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.GET_NODE_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.DISABLED_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create an enabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DYNAMIC_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n if (nodeConnection.getConnectionType().equals(NodeConnection.MAIN_CONNECTION)) {\n if (!nodeConnection.getConnectionStart().getNextNodeToRun().equals(nodeConnection.getConnectionEnd().getContainedText())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n connections.removeAll(listToRemove);\n if (updateCanvas) {\n Controller.getInstance().updateCanvasControllerLater();\n }\n }", "public boolean updateData( Result r)\n {\n //some result checking...\n //set last update time\n time = NTPDate.currentTimeMillis();\n int prevState = nState;\n //get state as int\n nState = (int)r.param[r.getIndex(\"State\")];\n return (prevState!=nState);\n }", "public boolean checkData()\n {\n boolean ok = true;\n int l = -1;\n for(Enumeration<Vector<Double>> iter = data.elements(); iter.hasMoreElements() && ok ;)\n {\n Vector<Double> v = iter.nextElement();\n if(l == -1)\n l = v.size();\n else\n ok = (l == v.size()); \n }\n return ok; \n }", "@Test\n public void fsckMetricsInconsistentFwdNoDupes() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 3});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(3, errors);\n }", "private void checkConnection( SquareNode a , SquareNode b ) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSquareEdge edgeA = a.edges[i];\n\t\t\tif( edgeA == null )\n\t\t\t\tcontinue;\n\n\t\t\tSquareNode common = edgeA.destination(a);\n\t\t\tint commonToA = edgeA.destinationSide(a);\n\t\t\tint commonToB = CircularIndex.addOffset(commonToA,1,4);\n\n\t\t\tSquareEdge edgeB = common.edges[commonToB];\n\t\t\tif( edgeB != null && edgeB.destination(common) == b ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tfail(\"Failed\");\n\t}", "@Test\n void test001_addValidFriendshipFor2BuddiesInNetwork() {\n\n try {\n christmasBuddENetwork.addFriendship(\"santa\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"santa\", \"rudolph\");\n christmasBuddENetwork.addFriendship(\"comet\", \"santa\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"comet\");\n\n\n // no exception should be thrown because this is a different network:\n lonelERedNosedRudolphNetwork.addFriendship(\"santa\", \"grinch\");\n // adding another friendship to the different network\n lonelERedNosedRudolphNetwork.addFriendship(\"blitzen\", \"donder\");\n // the lonelERedNosedRudolphNetwork should have 4 buddEs: santa, grinch,\n // blitzen, and donder\n Set<User> lonelERudolphSet = lonelERedNosedRudolphNetwork.getAllUsers();\n int numLonelERudolphBuddEs = lonelERudolphSet.size();\n if (numLonelERudolphBuddEs != 4) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did \"\n + \"NOT return 4 for the # of BuddEs in the \"\n + \"lonelERedNosedRudolphNetwork but instead returned: \"\n + numLonelERudolphBuddEs);\n }\n // we should see that blitzen and donder each just have 1 buddE in the\n // lonelERedNosedRudolphNetwork:\n lonelERedNosedRudolphNetwork.setCentralUser(\"blitzen\");\n User centralUserBlitzen = lonelERedNosedRudolphNetwork.getCentralUser();\n Set<User> blitzensFriends = centralUserBlitzen.getFriends();\n int numFriendsOfBlitzen = blitzensFriends.size(); // please note this\n // should be 1\n\n if (numFriendsOfBlitzen != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Blitzen has (Donder) and \"\n + \"instead returned: \" + numFriendsOfBlitzen);\n }\n for (User i : blitzensFriends)\n\n if ((!i.getName().equals(\"donder\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Blitzens buddE list is NOT correct\");\n\n }\n\n lonelERedNosedRudolphNetwork.setCentralUser(\"donder\");\n User centralUserDonder = lonelERedNosedRudolphNetwork.getCentralUser();\n Set<User> dondersFriends = centralUserDonder.getFriends();\n int numFriendsOfDonder = dondersFriends.size(); // please note this should\n // be 1\n\n if (numFriendsOfDonder != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Donder has (Blitzen) and \"\n + \"instead returned: \" + numFriendsOfDonder);\n }\n\n for (User i : dondersFriends) {\n if ((!i.getName().equals(\"blitzen\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Donders buddE list is NOT correct\");\n\n }\n }\n\n\n\n // ensuring we have added all 5 buddEs to the christmasBuddENetwork\n // because addFriendship should do\n // this :)\n // we should have 5 buddEs: santa, grinch, rudolph, comet, and prancer in\n // the network\n Set<User> allChristmasBuddEsSet = christmasBuddENetwork.getAllUsers();\n int numOfBuddEs = allChristmasBuddEsSet.size();\n if (numOfBuddEs != 5) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did \"\n + \"NOT return 5 for the # of BuddEs in the christmasBuddENetwork \"\n + \"but instead returned: \" + numOfBuddEs);\n }\n\n // checking Santa's friendships:\n // Santa's friends: grinch, rudolph, and comet (3 friends)\n christmasBuddENetwork.setCentralUser(\"santa\");\n User centralUserSanta = christmasBuddENetwork.getCentralUser();\n Set<User> santasFriends = centralUserSanta.getFriends();\n int numFriendsOfSanta = santasFriends.size(); // please note this should\n // be 3\n\n if (numFriendsOfSanta != 3) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 3 for the # of friends Santa has (Grinch, Rudolph, \"\n + \"and Comet) and instead returned: \" + numFriendsOfSanta);\n }\n\n ArrayList<String> santaBudsList = new ArrayList<String>();\n for (User i : santasFriends) {\n santaBudsList.add(i.getName());\n }\n\n if ((!santaBudsList.contains(\"grinch\"))\n || (!santaBudsList.contains(\"comet\"))\n || (!santaBudsList.contains(\"rudolph\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Santas buddE list is NOT correct\");\n\n }\n\n // checking Grinch's friendships:\n // we should have 2 friends: santa and prancer\n christmasBuddENetwork.setCentralUser(\"grinch\");\n User centralUserGrinch = christmasBuddENetwork.getCentralUser();\n Set<User> grinchsFriends = centralUserGrinch.getFriends();\n int numFriendsOfGrinch = grinchsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfGrinch != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of friends Grinch has (Santa and \"\n + \"Prancer) and instead returned: \" + numFriendsOfGrinch);\n }\n\n ArrayList<String> grinchBudsList = new ArrayList<String>();\n for (User i : grinchsFriends) {\n grinchBudsList.add(i.getName());\n }\n\n\n if ((!grinchBudsList.contains(\"santa\"))\n || (!grinchBudsList.contains(\"prancer\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Grinchs buddE list is NOT correct\");\n\n }\n\n // checking Comet's friendships:\n // Comet's friends: Santa and Prancer (2 buddEs)\n christmasBuddENetwork.setCentralUser(\"comet\");\n User centralUserComet = christmasBuddENetwork.getCentralUser();\n Set<User> cometsFriends = centralUserComet.getFriends();\n int numFriendsOfComet = cometsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfComet != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of buddEs reindeer Comet has (Santa and \"\n + \"Prancer) and instead returned: \" + numFriendsOfComet);\n }\n\n ArrayList<String> cometBudsList = new ArrayList<String>();\n for (User i : cometsFriends) {\n cometBudsList.add(i.getName());\n }\n\n if ((!cometBudsList.contains(\"santa\"))\n || (!cometBudsList.contains(\"prancer\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Comets buddE list is NOT correct\");\n\n }\n\n // checking Prancer's friendships:\n // Prancer's friends: Grinch and Comet (2 buddEs)\n christmasBuddENetwork.setCentralUser(\"prancer\");\n User centralUserPrancer = christmasBuddENetwork.getCentralUser();\n Set<User> prancersFriends = centralUserPrancer.getFriends();\n int numFriendsOfPrancer = cometsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfPrancer != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of buddEs reindeer Prancer has (Grinch \"\n + \"and Comet) and instead returned: \" + numFriendsOfPrancer);\n }\n\n ArrayList<String> prancerBudsList = new ArrayList<String>();\n for (User i : prancersFriends) {\n prancerBudsList.add(i.getName());\n }\n\n if ((!prancerBudsList.contains(\"grinch\"))\n || (!prancerBudsList.contains(\"comet\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Prancers buddE list is NOT correct\");\n }\n\n // checking Rudolph's friendships:\n // Rudolph's friends: Santa (1 buddE)\n christmasBuddENetwork.setCentralUser(\"rudolph\");\n User centralUserRudolph = christmasBuddENetwork.getCentralUser();\n Set<User> rudolphsFriends = centralUserRudolph.getFriends();\n int numFriendsOfRudolph = rudolphsFriends.size(); // please note this\n // should be 1\n\n if (numFriendsOfRudolph != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Red-Nose reindeer Rudolph has \"\n + \"(Santa) and instead returned: \" + numFriendsOfRudolph);\n }\n\n ArrayList<String> rudolphBudsList = new ArrayList<String>();\n for (User i : rudolphsFriends) {\n rudolphBudsList.add(i.getName());\n }\n\n\n if ((!rudolphBudsList.contains(\"santa\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Rudolphs buddE list is NOT correct\");\n }\n\n } catch (IllegalNullArgumentException e1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"an IllegalNullArgumentException when trying to add a valid \"\n + \"friendship!\");\n } catch (UserNotFoundException e2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"a UserNotFoundException when trying to add a valid friendship!\");\n } catch (Exception e3) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"an Exception when trying to add a valid friendship!\");\n }\n\n\n\n // please see if Grinch is in this set\n\n\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"SELECT * FROM null WHERE null = null AND null = null AND null = 'oeQdkmCG0DtW' AND null = null AND null = java.lang.Object@1593efe2\");\n assertFalse(boolean0);\n assertNotNull(boolean0);\n }", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "void validateMapRebuild(int tableSize, boolean expectedFullsize, boolean trimCanHappen) {\n CorfuRuntime rt = getNewRuntime();\n try {\n PersistentCorfuTable<String, Long> localm2A = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> localm2B = openTable(rt, streamNameB);\n for (int i = 0; i < localm2A.size(); i++) {\n assertThat(localm2A.get(String.valueOf(i))).isEqualTo(i);\n }\n for (int i = 0; i < localm2B.size(); i++) {\n assertThat(localm2B.get(String.valueOf(i))).isEqualTo(0L);\n }\n if (expectedFullsize) {\n assertThat(localm2A.size()).isEqualTo(tableSize);\n assertThat(localm2B.size()).isEqualTo(tableSize);\n }\n } catch (TrimmedException te) {\n if (!trimCanHappen) {\n // shouldn't happen\n te.printStackTrace();\n throw te;\n }\n } finally {\n rt.shutdown();\n }\n }", "public boolean isValid() {\n\n if (this.eTime == INFINITY) return false;\n\n int oldCountA = (a != null) ? a.getCount() : 0;\n int oldCountB = (b != null) ? b.getCount() : 0;\n\n if (countA != oldCountA || countB != oldCountB)\n return false;\n\n return true;\n }", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "private void validateQuery(boolean safe, Ignite node) {\n // Get node lost and remaining partitions.\n IgniteCache<?, ?> cache = node.cache(DEFAULT_CACHE_NAME);\n\n Collection<Integer> lostParts = cache.lostPartitions();\n\n int part = cache.lostPartitions().stream().findFirst().orElseThrow(AssertionError::new);\n\n Integer remainingPart = null;\n\n for (int i = 0; i < node.affinity(DEFAULT_CACHE_NAME).partitions(); i++) {\n if (lostParts.contains(i))\n continue;\n\n remainingPart = i;\n\n break;\n }\n\n assertNotNull(\"Failed to find a partition that isn't lost\", remainingPart);\n\n // 1. Check query against all partitions.\n validateQuery0(safe, node);\n\n // 2. Check query against LOST partition.\n validateQuery0(safe, node, part);\n\n // 3. Check query on remaining partition.\n checkQueryPasses(node, false, remainingPart);\n\n if (shouldExecuteLocalQuery(node, remainingPart))\n checkQueryPasses(node, true, remainingPart);\n\n // 4. Check query over two partitions - normal and LOST.\n validateQuery0(safe, node, part, remainingPart);\n }", "private boolean isFlightDataUnique(Flight flight) throws SQLException {\n\n\t\t// return flight database content through given list\n\t\tArrayList<Flight> listOfFlights = flightdb.fetchDatabaseContent();\n\n\t\tif (!listOfFlights.isEmpty() && listOfFlights.contains(flight)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean unique() {\n\t\tfor (int i = 1; i <= 9; i++) {\n\t\t\tcopy(problem, comp);\n\t\t\tsolve(0, 0, i, comp);\n\t\t\tif (!checkComp()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean repOk(){\n\t\tif(pool<0 || squares == null || communityCards == null || chanceCards == null || map == null)\n\t\t\treturn false;\n\t\tfor (Square[] layer : squares) {\n\t\t\tfor (Square square : layer) {\n\t\t\t\tif(square == null)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn mh.repOk();\n\t}", "public boolean needsResend(){\n return this.getNumNetworkCopies()-this.replicationDegree<0;\n }", "@Test\n\tpublic void test() \n\t{\n\t\t\n\t\tfor(int i =0; i< 100; i++)\n\t\t{\n\t\t\tConnection uno = new RMIConnection(true);\n\t\t\tuno.setActive();\n\t\tConnection due = new RMIConnection(true);\n\t\t\tdue.setActive();\n\t\t\n\t\tMap<Integer, Connection> wRoom = new HashMap<>();\n\t\twRoom.put(0, uno);\n\t\twRoom.put(1, due);\n\t\t\n\t\tWaitingRoom.setConnection(wRoom);\n\t\t\n\t\t\n\t\tList<Integer> players = new ArrayList<>();\n\t\tplayers.add(0);\n\t\tplayers.add(1);\n\t\tModel m = new Model(players);\n\t\t\t\n\t\t\tBusinessCard first = m.getMap().getRegionByType(RegionType.PLAIN).getFirstcard();\n\t\t\tBusinessCard second = m.getMap().getRegionByType(RegionType.PLAIN).getSecondcard();\n\t\t\t\n\t\t\tGameController g = new GameController(m);\n\t\t\tRedrawBusinessCardMessage message = new RedrawBusinessCardMessage(RegionType.PLAIN);\n\t\t\n\t\t\tmessage.setId(0);\n\t\t\n\t\t\tg.update(null, message);\n\t\t\n\t\t\tBusinessCard firstNew = m.getMap().getRegionByType(RegionType.PLAIN).getFirstcard();\n\t\t\tBusinessCard secondNew = m.getMap().getRegionByType(RegionType.PLAIN).getSecondcard();\n\n\t\t\tassertTrue(\"prima \" + first.getId() + \" - seconda \" + firstNew.getId(), first.getId() != firstNew.getId());\n\t\t\tassertTrue(\"prima \" + second.getId() + \" - seconda \" + secondNew.getId(), second.getId() != secondNew.getId());\n\t\t}\n\t}", "protected void ensureResultsAreFetched(int last) {\n\t\twhile(last > cacheStatus) {\n\t\t\tfetchNextBlock();\n\t\t}\n\t}", "public native boolean allMatchingRowsCached() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.allMatchingRowsCached();\r\n }-*/;", "private boolean dataAvailableOffline() {\n return false;\n }", "public void testRawQuery() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n String sql = \"SELECT * FROM \" + TBL_SERVICE_STATE + \" WHERE \" + COL_ID + \" = ?\";\n String[] selectionArgs = { String.valueOf(row1) };\n List<ServiceStateTuple> tuples = table.rawQuery(mTestContext, sql, selectionArgs);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(row1, values1, tuple);\n }", "boolean isDataConnectionAsDesired() {\n boolean roaming = phone.getServiceState().getRoaming();\n\n if (phone.mSIMRecords.getRecordsLoaded() &&\n phone.mSST.getCurrentGprsState() == ServiceState.STATE_IN_SERVICE &&\n (!roaming || getDataOnRoamingEnabled()) &&\n !mIsWifiConnected ) {\n return (state == State.CONNECTED);\n }\n return true;\n }", "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "@Test\n public void testDiff() {\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n lastWriteWinSet1.add(time3, \"php\");\n lastWriteWinSet1.add(time1, \"java\");\n lastWriteWinSet1.add(time2, \"python\");\n lastWriteWinSet1.add(time1, \"scala\");\n lastWriteWinSet1.delete(time2, \"scala\");\n\n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n lastWriteWinSet2.add(time1, \"php\");\n lastWriteWinSet2.add(time3, \"python\");\n lastWriteWinSet2.add(time1, \"scala\");\n lastWriteWinSet2.delete(time2, \"php\");\n\n // run test\n final LastWriteWinSet<String> resultSet = lastWriteWinSet1.diff(lastWriteWinSet2);\n \n assertTrue(resultSet.getData().size() == 3);\n assertTrue(resultSet.getData().contains(\"php\"));\n assertTrue(resultSet.getData().contains(\"python\"));\n assertTrue(resultSet.getData().contains(\"java\"));\n \n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultAddSet = resultSet.getAddSet();\n final Set<LastWriteWinSet.ItemTD<String>> addedData = resultAddSet.getData();\n assertTrue(addedData.size() == 3);\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(3, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"java\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(2, \"python\")));\n\n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultDeleteSet = resultSet.getDeleteSet();\n final Set<LastWriteWinSet.ItemTD<String>> deletedData = resultDeleteSet.getData();\n assertTrue(deletedData.size() == 1);\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"scala\")));\n }", "private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "public void testEquals() throws Exception {\n State state1 = new State();\n state1.setCanJump(1);\n state1.setDirection(1);\n state1.setGotHit(1);\n state1.setHeight(1);\n state1.setMarioMode(1);\n state1.setOnGround(1);\n state1.setEnemiesSmall(new boolean[3]);\n state1.setObstacles(new boolean[4]);\n state1.setDistance(1);\n state1.setStuck(1);\n\n State state2 = new State();\n state2.setCanJump(1);\n state2.setDirection(1);\n state2.setGotHit(1);\n state2.setHeight(1);\n state2.setMarioMode(1);\n state2.setOnGround(1);\n state2.setEnemiesSmall(new boolean[3]);\n state2.setObstacles(new boolean[4]);\n state2.setStuck(1);\n\n State state3 = new State();\n state3.setCanJump(1);\n state3.setDirection(1);\n state3.setGotHit(1);\n state3.setHeight(1);\n state3.setMarioMode(2);\n state3.setOnGround(1);\n state3.setEnemiesSmall(new boolean[3]);\n state3.setObstacles(new boolean[4]);\n assertEquals(state1,state2);\n assertTrue(state1.equals(state2));\n assertFalse(state1.equals(state3));\n Set<State> qTable = new HashSet<State>();\n qTable.add(state1);\n qTable.add(state2);\n assertEquals(1,qTable.size());\n qTable.add(state3);\n assertEquals(2,qTable.size());\n\n }", "@Test\n public void testLookup() {\n \t\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n\n lastWriteWinSet1.add(time1, \"java\");\n lastWriteWinSet1.add(time1, \"php\");\n lastWriteWinSet1.add(time1, \"python\");\n lastWriteWinSet1.add(time2, \"scala\");\n\n lastWriteWinSet1.delete(time1, \"scala\");\n lastWriteWinSet1.delete(time2, \"java\");\n\n // run test\n final Set<String> lookup1 = lastWriteWinSet1.getData();\n\n assertTrue(lookup1.size() == 3);\n assertTrue(lookup1.contains(\"php\"));\n assertTrue(lookup1.contains(\"python\"));\n assertTrue(lookup1.contains(\"scala\"));\n \t\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n\n lastWriteWinSet2.add(time1, \"java\");\n lastWriteWinSet2.add(time1, \"scala\");\n lastWriteWinSet2.add(time1, \"php\");\n lastWriteWinSet2.add(time1, \"python\");\n\n lastWriteWinSet2.delete(time2, \"scala\");\n lastWriteWinSet2.delete(time2, \"java\");\n\n // run test\n final Set<String> lookup = lastWriteWinSet2.getData();\n\n assertTrue(lookup.size() == 2);\n assertTrue(lookup.contains(\"php\"));\n assertTrue(lookup.contains(\"python\"));\n \n }", "private int checkStatus(Concept concept_1, Concept concept_2) throws\n Exception {\n int reviewed = 0;\n\n if (JekyllKit.getCoreDataClient().getRelationshipCount(concept_1) > 1000) {\n MEMEToolkit.notifyUser(\"There are more than 1000 relationships\"\n + \"\\nfor the cluster of concepts:\"\n + concept_1.getIdentifier().toString()\n + \" and \"\n +\n ( (concept_2 == null) ? \"0\" :\n concept_2.getIdentifier().toString())\n + \"\\nThe check whether cluster has been reviewed\"\n + \"\\nbefore will not be performed.\");\n return reviewed;\n }\n\n JekyllKit.getCoreDataClient().populateRelationships(concept_1);\n Relationship[] rels = concept_1.getRestrictedRelationships(new\n BySourceRestrictor(RelSemantics.getCurrentSAB_SL()));\n\n for (int i = 0; i < rels.length; i++) {\n if (rels[i].getRelatedConcept().equals(concept_2)) {\n if (rels[i].getTimestamp().after(worklist_creation_date)) {\n reviewed = 1;\n }\n }\n }\n\n return reviewed;\n }", "private boolean oneEquals(AccessPath that) {\n //if (this._n != that._n) return false;\n if (this._field != that._field) return false;\n if (this._last != that._last) return false;\n if (this.succ.size() != that.succ.size()) return false;\n return true;\n }", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }", "private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }", "public boolean percolates() {\n if (mGridSize == 1 && !isOpen(1, 1))\n return false;\n //return mUnionFind.connected(0, mGridSize * mGridSize + 1);\n return mUnionFind.find(0) == mUnionFind.find(mGridSize * mGridSize + 1);\n\n }", "void verifyMetaRowsAreUpdated(HConnection hConnection)\n throws IOException {\n List<Result> results = MetaTableAccessor.fullScan(hConnection);\n assertTrue(results.size() >= REGION_COUNT);\n\n for (Result result : results) {\n byte[] hriBytes = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.REGIONINFO_QUALIFIER);\n assertTrue(hriBytes != null && hriBytes.length > 0);\n assertTrue(MetaMigrationConvertingToPB.isMigrated(hriBytes));\n\n byte[] splitA = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.SPLITA_QUALIFIER);\n if (splitA != null && splitA.length > 0) {\n assertTrue(MetaMigrationConvertingToPB.isMigrated(splitA));\n }\n\n byte[] splitB = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.SPLITB_QUALIFIER);\n if (splitB != null && splitB.length > 0) {\n assertTrue(MetaMigrationConvertingToPB.isMigrated(splitB));\n }\n }\n }", "void compareDataStructures();", "private boolean allDataCheckSubst() throws IOException {\r\n\tint plen,dlen;\r\n\t//check if all of the X11 session opening packet is in the buffer\r\n\tif(dataSoFar.length<12) return false; // not got fixed length part\r\n\tif(dataSoFar[0]==0x42) { //MSB first\r\n\t plen = 256*dataSoFar[6]+dataSoFar[7];\r\n\t dlen = 256*dataSoFar[8]+dataSoFar[9];\r\n\t} else if(dataSoFar[0]==0x6C) {//LSB first\r\n\t plen = 256*dataSoFar[7]+dataSoFar[6];\r\n\t dlen = 256*dataSoFar[9]+dataSoFar[8];\r\n\t} else {\r\n\t throw new IOException(\"Bad initial X11 packet: bad byte order byte: \"+dataSoFar[0]);\r\n\t}\r\n\r\n\r\n\tif(dataSoFar.length < (12+ ((plen+3) & ~3)+((dlen+3) & ~3))) return false; // not all packet\r\n\tif(plen!=authType.length()) {\r\n\t throw new IOException(\"X11 connection uses different authentication protocol.\");\r\n\t} else {\r\n\t if(!authType.equals(new String(dataSoFar, 12, plen, \"US-ASCII\"))) {\r\n\t\tthrow new IOException(\"X11 connection uses different authentication protocol.\");\r\n\t }\r\n\t}\r\n\tif(fakeAuthData.length()!=realAuthData.length()) throw new IOException(\"fake and real X11 authentication data differ in length.\");\r\n\tint len = fakeAuthData.length()/2;\r\n\tbyte newdata[] = new byte[len];\r\n\tif(dlen!=len) {\r\n\t throw new IOException(\"X11 connection used wrong authentication data.\");\r\n\t} else {\r\n\t for(int i=0;i<len;i++) {\r\n\t\tbyte data = (byte) Integer.parseInt(fakeAuthData.substring(i*2,i*2+2), 16);\r\n\t\tif(data!=dataSoFar[i+(12+((plen+3) & ~3))]) throw new IOException(\"X11 connection used wrong authentication data.\");\r\n\t\tnewdata[i] = (byte) Integer.parseInt(realAuthData.substring(i*2,i*2+2), 16);\r\n\t }\r\n\t}\r\n\tSystem.arraycopy(newdata, 0, dataSoFar, 12+((plen+3) & ~3), dlen);\r\n\treturn true;\r\n\r\n }", "private void processPeers() {\n\t\tif (System.currentTimeMillis() - lastPeerUpdate > 20000) {\n\t\t\tupdatePeers();\n\t\t\tlastPeerUpdate = System.currentTimeMillis();\n\t\t}\n\t\tif (System.currentTimeMillis() - lastPeerCheck > 5000) {\n\t\t\tcleanPeerList();\n\t\t\tlastPeerCheck = System.currentTimeMillis();\n\t\t}\n\t}", "private void checkComparabilityOfGroundTruthAndExtractedPostBlocks() {\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockIsInGT = false;\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInGT = true;\n break;\n }\n }\n\n if (!postBlockIsInGT) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }\n\n\n // check whether all post blocks from ground truth are found in the extracted post blocks\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockIsInCS = false;\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInCS = true;\n break;\n }\n }\n }\n\n if (!postBlockIsInCS) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }", "private void verifyLinks(String[][] linkSelfO1O2IDs) {\n // fill expectedLinkIDs\n List expectedLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n for (int linkIdx = 0; linkIdx < linkSelfO1O2IDs.length; linkIdx++) {\n String[] linkIDs = linkSelfO1O2IDs[linkIdx];\n String linkID = linkIDs[0];\n String o1ID = linkIDs[1];\n String o2ID = linkIDs[2];\n expectedLinkIDs.add(linkID + o1ID + o2ID);\n }\n\n // fill actualLinkIDs\n List actualLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n NST linkNST = DB.getLinkNST();\n ResultSet resultSet = linkNST.selectRows(); // \"o1_id\", \"o2_id\"\n while (resultSet.next()) {\n int linkID = resultSet.getOID(1);\n int o1ID = resultSet.getOID(2);\n int o2ID = resultSet.getOID(3);\n actualLinkIDs.add(linkID + \"\" + o1ID + \"\" + o2ID);\n }\n\n // compare\n assertEquals(expectedLinkIDs.size(), actualLinkIDs.size());\n assertTrue(expectedLinkIDs.containsAll(actualLinkIDs));\n }", "@Test\n public void getPerrosTest() {\n List<PerroEntity> list = perroLogic.getPerros();\n Assert.assertEquals(Perrodata.size(), list.size());\n for (PerroEntity entity : list) {\n boolean found = false;\n for (PerroEntity storedEntity : Perrodata) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "@Test(groups = { \"unittest\", \"postiontests\" })\n public void testMatchOnlineAndBatch() throws Exception {\n BatchPositionCache batchCache = loadTestBatchFile();\n\n assertTrue(batchCache.size() > 0, \"Failed to read batch records\");\n \n // check that we have the records we need\n BatchPosition bp1 = batchCache.getCacheItem(new PositionKey(\"TUU8\", \"QMF\", \"QF.NDayBreak\",\n \"Breakout\", \"General\", \"QUANTYS\", new BigDecimal(96)));\n assertNotNull(bp1, \"Failed to find TUU8 for NDayBreak position 96\");\n assertComparable(bp1.getFullCurrentNetPosition(), new BigDecimal(7200000), \"Current position is wrong\");\n \n BatchPosition bp2 = batchCache.getCacheItem(new PositionKey(\"TUU8\", \"QMF\", \"QF.NDayBreak\",\n \"Breakout\", \"General\", \"QUANTYS\", new BigDecimal(-96)));\n assertNotNull(bp2, \"Failed to find TUU8 for NDayBreak position -96\");\n assertComparable(bp2.getFullCurrentNetPosition(), new BigDecimal(7200000), \"Current position is wrong\");\n \n // Build the online cache\n OnlinePositionAggregateCache onlineCache = loadTestOnlineFile(); \n \n assertTrue(onlineCache.size() > 0, \"Failed to read in online records\");\n \n // check that we have the records we need\n RtfOnlinePosition op1 = onlineCache.getOnlinePosition(new PositionKey(\"TUU8\", \"QMF\", \"QF.NDayBreak\",\n \"Breakout\", \"General\", \"QUANTYS\", new BigDecimal(96)));\n assertNotNull(op1, \"Failed to find TUU8 for NDayBreak position 96\");\n assertEquals(op1.getPrimeBroker(), \"NO PB\", \"Wrong record found\");\n assertEquals(op1.getCurrentPosition(), BigDecimal.ZERO, \"Current position is wrong\");\n \n RtfOnlinePosition op2 = onlineCache.getOnlinePosition(new PositionKey(\"TUU8\", \"QMF\", \"QF.NDayBreak\",\n \"Breakout\", \"General\", \"QUANTYS\", new BigDecimal(-96)));\n assertNotNull(op2, \"Failed to find TUU8 for NDayBreak position -96\");\n assertEquals(op2.getPrimeBroker(), \"GSFUT\", \"Wrong record found\");\n assertEquals(op2.getCurrentPosition(), BigDecimal.ZERO, \"Current position is wrong\");\n }", "public static boolean samePhysicalConnection( C3P0ProxyConnection con1, C3P0ProxyConnection con2 ) throws SQLException\n {\n\ttry \n\t { \n\t\tObject out = con1.rawConnectionOperation( IPCFP, null, new Object[] { C3P0ProxyConnection.RAW_CONNECTION, con2 } ); \n\t\treturn ((Boolean) out).booleanValue();\n\t }\n\tcatch (Exception e)\n\t {\n\t\te.printStackTrace();\n\t\tthrow SqlUtils.toSQLException( e );\n\t }\n }", "protected boolean check(CrawlDatum datum) {\n if (datum.getStatus() != expectedDbStatus)\n return false;\n return true;\n }", "@Override\n public boolean areItemsTheSame(Concert oldConcert, Concert newConcert) {\n return oldConcert.getId() == newConcert.getId();\n }", "private void HaveDuplicate() {\n haveDuplicate = false;\n duplicateCounter = 0;\n try {\n query=\"SELECT * FROM category WHERE category_id = '\"+ txtCategoryNo.getText() +\"' OR category_name = '\"+\n txtCategoryName.getText() + \"'\";\n rset = connection.createStatement().executeQuery(query);\n while (rset.next()) {\n haveDuplicate = true;\n duplicateCounter++;\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "public boolean alreadyOwnsIdenticalRoute(){\n City city1 = mSelectedRoute.getCity1();\n City city2 = mSelectedRoute.getCity2();\n for(int i=0; i<mUser.getClaimedRoutes().size(); i++){\n City ownedCity1 = mUser.getClaimedRoutes().get(i).getCity1();\n City ownedCity2 = mUser.getClaimedRoutes().get(i).getCity2();\n if(city1.equals(ownedCity1) && city2.equals(ownedCity2))\n return true;\n }\n return false;\n }", "public boolean networkCheck(String region) throws IOException {\r\n // Debug mode can be run offline.\r\n if(DEBUG) {\r\n return true;\r\n }\r\n \r\n try {\r\n getServerStatusData();\r\n networkOK = true;\r\n return true;\r\n }\r\n catch(UnknownHostException e) {\r\n System.out.println(e);\r\n networkOK = false;\r\n return false;\r\n }\r\n }", "@Test public void buildManaged_persistentZone() {\n // Restart.\n Location loc = Location.create(ZONE_DIR);\n Zone zone = Zone.connect(loc);\n\n Quad q1 = SSE.parseQuad(\"(:g :s :p 1)\");\n Quad q2 = SSE.parseQuad(\"(:g :s :p 2)\");\n\n {\n DatasetGraph dsg = ManagedDatasetBuilder.create()\n .deltaLink(deltaLink)\n .logName(\"ABD\")\n .zone(zone)\n .syncPolicy(SyncPolicy.TXN_RW)\n .storageType(LocalStorageType.TDB2)\n .build();\n\n DeltaConnection conn = (DeltaConnection)(dsg.getContext().get(symDeltaConnection));\n Txn.executeWrite(dsg, ()->dsg.add(q1));\n Txn.executeRead( conn.getDatasetGraph(), ()->assertTrue(conn.getDatasetGraph().contains(q1)) );\n }\n\n // Same zone\n Zone.clearZoneCache();\n zone = Zone.connect(loc);\n // Storage should be recovered from the on-disk state.\n\n {\n DatasetGraph dsg1 = ManagedDatasetBuilder.create()\n .deltaLink(deltaLink)\n .logName(\"ABD\")\n .zone(zone)\n .syncPolicy(SyncPolicy.TXN_RW)\n //.storageType(LocalStorageType.TDB2) // Storage required. Should detect [FIXME]\n .build();\n DatasetGraph dsg2 = ManagedDatasetBuilder.create()\n .deltaLink(deltaLink)\n .logName(\"ABD\")\n .zone(zone)\n .syncPolicy(SyncPolicy.TXN_RW)\n //.storageType(LocalStorageType.TDB) // Wrong storage - does not matter; dsg1 setup choice applies\n .build();\n DeltaConnection conn1 = (DeltaConnection)(dsg1.getContext().get(symDeltaConnection));\n DeltaConnection conn2 = (DeltaConnection)(dsg2.getContext().get(symDeltaConnection));\n\n Txn.executeRead(conn1.getDatasetGraph(), ()->assertTrue(conn1.getDatasetGraph().contains(q1)) );\n Txn.executeWrite(conn2.getDatasetGraph(), ()->conn2.getDatasetGraph().add(q2));\n Txn.executeRead(conn1.getDatasetGraph(), ()->assertTrue(conn1.getDatasetGraph().contains(q2)) );\n }\n }", "private void verificaData() {\n\t\t\n\t}", "public void testPersistence() {\n ImmutableSet<Integer> set = new ImmutableSet();\n for (int i = -50; i < 51; i++) {\n set.add(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n for(int i = -50; i < 51; i++) {\n set.remove(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n }", "@Override\n protected boolean runInEQ() {\n return true;\n }", "private boolean inDatabase() {\r\n \t\treturn inDatabase(0, null);\r\n \t}", "final boolean checkAlive() {\r\n\t\t\r\n\t\tif (this.conn == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif (this.conn.isClosed()) {\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (--this.loops < 0 || this.date < System.currentTimeMillis()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (this.databaseType == ConnectionHolder.DT_UNKNOWN) {\r\n\t\t\t\tthis.databaseType = this.conn.getMetaData().getDatabaseProductName().toUpperCase().indexOf(\"ORACLE\") == -1\r\n\t\t\t\t\t? ConnectionHolder.DT_NORMAL\r\n\t\t\t\t\t: ConnectionHolder.DT_ORACLE;\r\n\t\t\t}\r\n\t\t\ttry (final Statement st = this.conn.createStatement()) {\r\n\t\t\t\t/** Do not use it here, may be unsupported? */\r\n\t\t\t\ttry {\r\n\t\t\t\t\tst.setQueryTimeout(10);\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tst.execute(\r\n\t\t\t\t\t\tthis.databaseType == ConnectionHolder.DT_ORACLE\r\n\t\t\t\t\t\t\t? \"SELECT 5 FROM DUAL\"\r\n\t\t\t\t\t\t\t: \"SELECT 5\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} catch (final SQLException e) {\r\n\t\t\tif (this.conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }" ]
[ "0.58550686", "0.57427925", "0.5589511", "0.5440948", "0.5331951", "0.532759", "0.52875626", "0.5286719", "0.52857333", "0.52843267", "0.5251215", "0.52496535", "0.52195156", "0.5201471", "0.51554626", "0.5139445", "0.5137111", "0.5135772", "0.51324385", "0.5124856", "0.51099783", "0.5105159", "0.50931376", "0.50859356", "0.5072463", "0.5029308", "0.5014942", "0.5012409", "0.5008882", "0.49819216", "0.49654883", "0.496461", "0.49512923", "0.495108", "0.4947866", "0.49441606", "0.49390742", "0.49351445", "0.49346077", "0.49231422", "0.49177372", "0.49075922", "0.4905004", "0.49027705", "0.48934963", "0.4889489", "0.48865074", "0.4878333", "0.4878274", "0.487258", "0.48608693", "0.4860391", "0.48379704", "0.4837384", "0.48290277", "0.48281652", "0.4828088", "0.48270687", "0.48269448", "0.4826", "0.4822721", "0.48183262", "0.48181525", "0.48131692", "0.48120293", "0.48107105", "0.48050746", "0.48012474", "0.47968325", "0.47967723", "0.47930306", "0.47929883", "0.47821137", "0.47790816", "0.47790676", "0.4778816", "0.47765836", "0.4772396", "0.4770013", "0.4769886", "0.4762784", "0.47546417", "0.47524485", "0.47524342", "0.47496784", "0.47426748", "0.4742318", "0.47394657", "0.473916", "0.47295335", "0.47290206", "0.47286603", "0.47259656", "0.47242472", "0.4723178", "0.4717069", "0.46975568", "0.46967202", "0.46950033", "0.46926412", "0.46872187" ]
0.0
-1
/ Methods used to sync UI state with that of the network update the voicemail number from what we've recorded on the sim.
private void updateVoiceNumberField() { if (mSubMenuVoicemailSettings == null) { return; } mOldVmNumber = mPhone.getVoiceMailNumber(); if (mOldVmNumber == null) { mOldVmNumber = ""; } mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber); final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber : getString(R.string.voicemail_number_not_set); mSubMenuVoicemailSettings.setSummary(summary); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateGUIStatus() {\r\n\r\n }", "private void updateUI() {\n\t\t\tfinal TextView MessageVitesse = (TextView) findViewById(R.id.TextView01);\r\n\t\t\tfinal ProgressBar Progress = (ProgressBar) findViewById (R.id.ProgressBar01);\r\n\t\t\tfinal TextView MessageStatus = (TextView)findViewById (R.id.TextView02);\r\n\t\t\t\t\t\r\n\t\t\t//on affecte des valeurs aux composant\r\n\t\t\tMessageVitesse.setText(\"Vitesse Actuelle : \"+ Vitesse + \" Ko/s\");\r\n\t\t\tProgress.setProgress(Pourcent);\r\n\t\t\tMessageStatus.setText (Status);\r\n\t\t\tif (Status.equals(\"Télèchargement terminé!!!\")&&NotifDejaLancée==false){\r\n\t\t\t\tlanceNotification();\r\n\t\t\t\tNotifDejaLancée=true;\r\n\t\t\t}\r\n\t\t\t}", "public void updateUI(){\n\t\t\n\t\ttimeTV.setText(\"\"+String.format(\"\" + gameClock%10));\n\t\ttimeTV2.setText(\"\"+ gameClock/10+\".\");\n\t\tif (currentGameEngine!=null) {\n\t\t\tmultLeft.setText(\"multiplier: \"+currentGameEngine.getMultiplier()+\"X\");\n\t\t\tscoreTV.setText(\"\"+currentGameEngine.getScore());\n\t\t} else {\n\t\t\tscoreTV.setText(\"0\");\n\t\t}\n\n\t\t//errorTV.setText(\"\"+mFrameNum);\n\t\t\n\t\t\n\t}", "private void updateUI() {\n if (mAccount != null) {\n signInButton.setEnabled(false);\n signOutButton.setEnabled(true);\n callGraphApiInteractiveButton.setEnabled(true);\n callGraphApiSilentButton.setEnabled(true);\n currentUserTextView.setText(mAccount.getUsername());\n } else {\n signInButton.setEnabled(true);\n signOutButton.setEnabled(false);\n callGraphApiInteractiveButton.setEnabled(false);\n callGraphApiSilentButton.setEnabled(false);\n currentUserTextView.setText(\"None\");\n }\n\n deviceModeTextView.setText(mSingleAccountApp.isSharedDevice() ? \"Shared\" : \"Non-shared\");\n }", "protected void updateUI() {\n this.runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n xWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro X:\\n\"\n + mWakeupUncalibratedGyroData[0]);\n yWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro Y:\\n\"\n + mWakeupUncalibratedGyroData[1]);\n zWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro Z:\\n\"\n + mWakeupUncalibratedGyroData[2]);\n }\n });\n }", "private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}", "public void updateUi() {\n\t\t// // update the car color to reflect premium status or lack thereof\n\t\t// ((ImageView)findViewById(R.id.free_or_premium)).setImageResource(mIsPremium\n\t\t// ? R.drawable.premium : R.drawable.free);\n\t\t//\n\t\t// // \"Upgrade\" button is only visible if the user is not premium\n\t\t// findViewById(R.id.upgrade_button).setVisibility(mIsPremium ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // \"Get infinite gas\" button is only visible if the user is not\n\t\t// subscribed yet\n\t\t// findViewById(R.id.infinite_gas_button).setVisibility(mSubscribedToInfiniteGas\n\t\t// ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // update gas gauge to reflect tank status\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(R.drawable.gas_inf);\n\t\t// }\n\t\t// else {\n\t\t// int index = mTank >= TANK_RES_IDS.length ? TANK_RES_IDS.length - 1 :\n\t\t// mTank;\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(TANK_RES_IDS[index]);\n\t\t// }\n\t}", "private void sendStatus() {\n\n // Only send status if we have UI bound to service\n if (isBound) {\n try {\n Message msg = Message.obtain(null, RadioPlayerFragment.UPDATE_STATUS);\n Bundle bundle = new Bundle();\n bundle.putString(RadioPlayerFragment.STATUS, mpState);\n msg.setData(bundle);\n fragmentMessenger.send(msg);\n } catch (RemoteException e) {\n Log.e(LOG_TAG, \"Cannot send status: \" + mpState);\n }\n }\n\n }", "public void updateUI(){}", "public void updateIM(){\n \n }", "private void updateUI() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n if(timer_count==5) {\n\n //Animation Starts by Singing Si\n animateReceiveMoney();\n animateSendMoney();\n PlayIntoSound(siID);\n\n tvSiOut.setVisibility(View.VISIBLE);\n tvSiIn.setVisibility(View.VISIBLE);\n tvDoIn.setVisibility(View.VISIBLE);\n tvDoOut.setVisibility(View.VISIBLE);\n tvSIDO.setVisibility(View.VISIBLE);\n tvSIDO.setText(\"SI\");\n }\n\n else if(timer_count==20){\n //Animation Ends by Singing Do\n PlayIntoSound(doID);\n\n //dISPLAY DO TEXT\n tvSIDO.setText(\"SIDO\");\n\n\n }\n\n else if(timer_count==25){\n\n //DISPLAY mONEY TRANSFER TEXT\n tvMoneyTransfer.setVisibility(View.VISIBLE);\n\n }\n\n }\n });\n }", "private void saveVoiceMailNumber(String newVMNumber) {\n if (newVMNumber == null) {\n newVMNumber = \"\";\n }\n \n //throw a warning if they are the same.\n if (newVMNumber.equals(mOldVmNumber)) {\n showVMDialog(MSG_VM_NOCHANGE);\n return;\n }\n \n maybeSaveNumberForVoicemailProvider(newVMNumber);\n // otherwise, set it.\n if (DBG) log(\"save voicemail #: \" + newVMNumber);\n mPhone.setVoiceMailNumber(\n mPhone.getVoiceMailAlphaTag().toString(),\n newVMNumber,\n Message.obtain(mSetOptionComplete, EVENT_VOICEMAIL_CHANGED));\n }", "public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }", "private void updateUI(Intent intent) {\n\t\tString gConnectStatus = intent.getStringExtra(STATUS);\n\t\tLog.d(TAG, gConnectStatus);\n\t\tmTextViewG = (TextView) findViewById(R.id.textGoogleStatus);\n\t\tmTextViewG.setText(gConnectStatus);\n\n\t}", "@FXML\n private void updateGUI(){\n\n spriteImage.setImage(new Image(Main.gang.getCarSpriteURL()));\n\n // updating labels\n distanceLabel.setText(\"Travelled: \"+ Main.gang.getDistance() +\"Mi\");\n conditionsLabel.setText(\"Health Cond: \"+ Main.gang.getHealthConditions());\n daysLabel.setText(\"Days: \"+ Main.gang.getDays());\n\n if (Main.gang.isMoving()) {\n setOutBtn.setText(\"Speedup\");\n statusLabel.setText(\"Status: Moving\");\n } else {\n setOutBtn.setText(\"Set out\");\n statusLabel.setText(\"Status: Resting\");\n }\n }", "private void updateNetworkStateUi() {\n if (ArchosUtils.isNetworkConnected(getActivity())) {\n mNetworkStateVeil.animate().alpha(0);\n mNetworkStateVeil.setClickable(false);\n }\n else {\n mNetworkStateVeil.animate().alpha(0.9f);\n mNetworkStateVeil.setClickable(true);\n }\n }", "private void sendUpdateConnectionInfo() {\n\n }", "private void updateUIAfterTick(){ \n //turn counter\n this.turnClock.setText(\"Turn: \" + this.village.getTurnCountAsString());\n \n //population\n this.populationAmount.setText(\"Population: \" + Integer.toString(this.village.getPopulation().getPopulationAmount()) );\n this.populationGrowthrate.setText(\"Growthrate: \" + Float.toString(this.village.getPopulation().getGrowthrate()));\n\n //buildings:\n this.constructedBuildingsArea.setText(this.getConstructedBuildingsAsList());\n \n //event\n this.eventText.setText(this.currentEvent.getEventText());\n this.eventOption1Btn.setText(this.currentEvent.getOption1Text());\n this.eventOption2Btn.setText(this.currentEvent.getOption2Text());\n this.eventOption3Btn.setText(this.currentEvent.getOption3Text());\n this.eventOption4Btn.setText(this.currentEvent.getOption4Text());\n \n }", "public void updateUiState() {\n if (meetingJoined) {\n this.joinMeetingButton.setText(R.string.leave_meeting);\n } else {\n this.joinMeetingButton.setText(R.string.join_meeting);\n }\n }", "private void updateTurnIconCharacteristic() {\n String editTextValue = ((EditText) view.findViewById(R.id.turnIconEditText)).getText().toString();\n String turnIcon = \"\";\n try {\n turnIcon = Integer.toHexString(Integer.parseInt(editTextValue));\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n //Set visibility and the turnIcon\n turnIconCharacteristic_value[16] = visibility;\n turnIconCharacteristic_value[17] = Byte.parseByte(turnIcon);\n turnIconCharacteristic.setValue(turnIconCharacteristic_value);\n }", "private void updateTransferText() {\n downloadsLine.setValue((Integer) downloadsCountVM.getValue());\n uploadsLine.setValue((Integer) uploadsCountVM.getValue());\n }", "private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }", "void successUiUpdater();", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}", "private void updateHubModels() {\n this.hub.setWeight( this.hub.indexOf( this.modelHub1 ) , (Integer)this.jSpinnerModel1.getValue() );\n this.hub.setWeight( this.hub.indexOf( this.modelHub2 ) , (Integer)this.jSpinnerModel2.getValue() );\n this.hub.setWeight( this.hub.indexOf( this.modelHub3 ) , (Integer)this.jSpinnerModel3.getValue() );\n this.modelHub1.setValue( this.jSliderModel1.getValue() );\n this.modelHub2.setValue( this.jSliderModel2.getValue() );\n this.modelHub3.setValue( this.jSliderModel3.getValue() );\n\n this.updateHubHelps( this.modelHub1 , this.jLabelHelp1 );\n this.updateHubHelps( this.modelHub2 , this.jLabelHelp2 );\n this.updateHubHelps( this.modelHub3 , this.jLabelHelp3 );\n }", "private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }", "private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }", "@Action\n public void showDnetBox()\n {\n int answer;\n int index = getMoteIndexFromList();\n int address = 0xFF, freqChann, netId, secu;\n SwapMote mote = null;\n\n // Get current network settings\n try\n {\n freqChann = swapDmt.getFreqChannel();\n netId = swapDmt.getNetworkId();\n secu = swapDmt.getSecurityOpt();\n\n if (index >= 0)\n {\n address = mote.getAddress();\n mote = swapDmt.getMote(index);\n }\n\n NetworkPanel netPanel = new NetworkPanel(address, freqChann, netId, secu);\n answer = JOptionPane.showConfirmDialog(null, netPanel, \"Device's Network Settings\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n\n if (answer == JOptionPane.OK_OPTION)\n {\n address = netPanel.getAddress();\n freqChann = netPanel.getFreqChannel();\n netId = netPanel.getNetworkId();\n secu = netPanel.getSecurity();\n\n boolean runSync = false;\n // Mote not selected or mote with power-down mode?\n if (mote == null)\n runSync = true;\n else if (mote.getPwrDownMode())\n runSync = true;\n\n if (runSync)\n {\n // Display SYNC waiting screen\n syncDiag = new SyncDialog(null, true);\n syncDiag.setVisible(true);\n\n // Sync dialog closed by the user?\n if (syncDiag != null)\n {\n syncDiag = null;\n return;\n }\n\n // Sync signal received\n if (syncAddress > 0)\n mote = swapDmt.getMoteFromAddress(syncAddress);\n }\n\n // Send new parameters only if the mote has been contacted\n if (mote != null)\n {\n if (mote.getAddress() != address)\n {\n if (!mote.sendAddressWack(address))\n {\n JOptionPane.showMessageDialog(null, \"Unable to set device network address\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n }\n if (swapDmt.getNetworkId() != netId)\n {\n if (!mote.sendNetworkIdWack(netId))\n {\n JOptionPane.showMessageDialog(null, \"Unable to set Network ID on device\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n }\n if (swapDmt.getFreqChannel() != freqChann)\n {\n if (!mote.sendFreqChannelWack(freqChann))\n {\n JOptionPane.showMessageDialog(null, \"Unable to set frequency channel on device\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n }\n if (swapDmt.getSecurityOpt() != secu)\n {\n if (!mote.sendSecurityWack(secu))\n {\n JOptionPane.showMessageDialog(null, \"Unable to set security option on device\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n }\n }\n else\n JOptionPane.showMessageDialog(null, \"Unable to contact remote device\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n }\n }\n catch(CcException ex)\n {\n ex.display();\n }\n }", "public void update() {\n\t\tif (!uiDone)\n\t\t\tinitializeUI();\n\t\t\n Vehicle vehicle = (Vehicle) unit;\n\n // Update driver button if necessary.\n boolean driverChange = false;\n if (driverCache == null) {\n if (vehicle.getOperator() != null) driverChange = true;\n }\n else if (!driverCache.equals(vehicle.getOperator())) driverChange = true;\n if (driverChange) {\n driverCache = vehicle.getOperator();\n if (driverCache == null) {\n driverButton.setVisible(false);\n }\n else {\n driverButton.setVisible(true);\n driverButton.setText(driverCache.getOperatorName());\n }\n }\n\n // Update status label\n if (!vehicle.sameStatusTypes(statusCache, vehicle.getStatusTypes())) {\n statusCache = vehicle.getStatusTypes();\n statusLabel.setText(vehicle.printStatusTypes());\n }\n\n // Update beacon label\n if (beaconCache != vehicle.isBeaconOn()) {\n \tbeaconCache = vehicle.isBeaconOn();\n \tif (beaconCache) beaconLabel.setText(\"On\");\n \telse beaconLabel.setText(\"Off\");\n }\n\n // Update speed label\n if (speedCache != vehicle.getSpeed()) {\n speedCache = vehicle.getSpeed();\n speedLabel.setText(\"\" + formatter.format(speedCache) + \" km/h\");\n }\n\n // Update elevation label if ground vehicle.\n if (vehicle instanceof GroundVehicle) {\n GroundVehicle gVehicle = (GroundVehicle) vehicle;\n double currentElevation = gVehicle.getElevation();\n if (elevationCache != currentElevation) {\n elevationCache = currentElevation;\n elevationLabel.setText(formatter.format(elevationCache) + \" km\");\n }\n }\n\n Mission mission = missionManager.getMissionForVehicle(vehicle);\n \n boolean hasDestination = false;\n \t\t\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n \tNavPoint destinationPoint = ((VehicleMission) mission).getNextNavpoint();\n \t\n \thasDestination = true;\n \t\n \tif (destinationPoint.isSettlementAtNavpoint()) {\n \t\t// If destination is settlement, update destination button.\n \t\tif (destinationSettlementCache != destinationPoint.getSettlement()) {\n \t\t\tdestinationSettlementCache = destinationPoint.getSettlement();\n \t\t\tdestinationButton.setText(destinationSettlementCache.getName());\n \t\t\taddDestinationButton();\n \t\t\tdestinationTextCache = \"\";\n \t\t}\n \t}\n \telse {\n// \t\tif (destinationTextCache != \"\") {\n \t\t\t// If destination is coordinates, update destination text label.\n \t\t\tdestinationTextCache = Conversion.capitalize(destinationPoint.getDescription());//\"A Navpoint\";\n \t\t\tdestinationTextLabel.setText(destinationTextCache);\n \t\t\taddDestinationTextLabel();\n destinationSettlementCache = null;\n// \t\t}\n \t}\n }\n \n if (!hasDestination) {\n \t// If destination is none, update destination text label.\n \tif (destinationTextCache != \"\") {\n \t\tdestinationTextCache = \"\";\n \t\tdestinationTextLabel.setText(destinationTextCache);\n \t\taddDestinationTextLabel();\n \t\tdestinationSettlementCache = null;\n \t}\n }\n \n\n // Update latitude and longitude panels if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \tif (destinationLocationCache == null)\n \t\tdestinationLocationCache = new Coordinates(vehicleMission.getNextNavpoint().getLocation());\n \telse \n \t\tdestinationLocationCache.setCoords(vehicleMission.getNextNavpoint().getLocation());\n destinationLatitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLatitudeString());\n destinationLongitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLongitudeString());\n }\n else {\n \tif (destinationLocationCache != null) {\n \t\tdestinationLocationCache = null;\n destinationLatitudeLabel.setText(\"\");\n destinationLongitudeLabel.setText(\"\");\n \t}\n }\n\n // Update distance to destination if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \ttry {\n \t\tif (distanceCache != vehicleMission.getCurrentLegRemainingDistance()) {\n \t\t\tdistanceCache = vehicleMission.getCurrentLegRemainingDistance();\n \t\t\tdistanceLabel.setText(\"\" + formatter.format(distanceCache) + \" km\");\n \t\t}\n \t}\n \tcatch (Exception e) {\n \t\tlogger.log(Level.SEVERE,\"Error getting current leg remaining distance.\");\n \t\t\te.printStackTrace(System.err);\n \t}\n }\n else {\n \tdistanceCache = 0D;\n \tdistanceLabel.setText(\"\");\n }\n\n // Update ETA if necessary\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n if (vehicleMission.getLegETA() != null) {\n if (!etaCache.equals(vehicleMission.getLegETA().toString())) {\n etaCache = vehicleMission.getLegETA().toString();\n etaLabel.setText(\"\" + etaCache);\n }\n }\n }\n else {\n \tetaCache = \"\";\n \tetaLabel.setText(\"\");\n }\n\n // Update direction display\n directionDisplay.update();\n\n // Update terrain display\n terrainDisplay.update();\n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n // 添加更新ui的代码\n if (!isstop) {\n if(currentNum==0){\n getNumberBtn.setClickable(true);\n getNumberBtn.setText(\"重新发送验证码\");\n }else{\n getNumberBtn.setText(\"发送验证码(\"+currentNum+\")\");\n currentNum--;\n mHandler.sendEmptyMessageDelayed(1, 1000);\n }\n }\n break;\n case 2:\n break;\n }\n }", "private void updateGui(PshData pshData) {\n\n // Storm Type\n PshStormType stormType = pshData.getStormType();\n if (stormType != null) {\n typeCombo.setText(stormType.getDesc());\n\n // Storm number for tropical depression.\n if (stormType == PshStormType.TROPICAL_DEPRESSION) {\n depressionCheckbox.setEnabled(true);\n int stormNumber = pshData.getStormNumber();\n if (stormNumber > 0) {\n depressionCheckbox.setSelection(true);\n depressionNumberCombo.setText(\"\" + stormNumber);\n } else {\n depressionCheckbox.setSelection(false);\n depressionNumberCombo.setText(\"1\");\n }\n }\n }\n\n // Message Type - always start up with \"ROU\".\n pshData.setStatus(IssueType.ROUTINE);\n messageTypeCombo.select(0);\n\n // Route - always start up with \"ALL\".\n pshData.setRoute(AFOS_ROUTING_CODE[0]);\n routeCombo.select(0);\n\n }", "private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }", "public static void updateViewSettings() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tinformationFrame.update(selectedSensor);\n\t\t\tviewPort.getGraphicsPainter().repaint();\n\t\t}\n\t}", "private void updateStatus() {\n Response block = blockTableModel.getChainHead();\n int height = (block != null ? block.getInt(\"height\") : 0);\n nodeField.setText(String.format(\"<html><b>NRS node: [%s]:%d</b></html>\",\n Main.serverConnection.getHost(),\n Main.serverConnection.getPort()));\n chainHeightField.setText(String.format(\"<html><b>Chain height: %d</b></html>\",\n height));\n connectionsField.setText(String.format(\"<html><b>Peer connections: %d</b></html>\",\n connectionTableModel.getActiveCount()));\n }", "private void reportUIChange() {\r\n\t\tif (messengerToUI != null) {\r\n\t\t\ttry {\r\n\t\t\t\tmessengerToUI.send(Message.obtain(null, DRIVER2UI_DEV_STATUS));\r\n\t\t\t} catch (RemoteException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setCurrentTrack() {\n runOnUiThread(new Runnable() {\n public void run() {\n setText(controller.getCurrentTrack());\n }\n });\n\t}", "private void updateUI() {\n if(mChoice == Keys.CHOICE_WAITING) {\n mInstructionView.setText(\"Choose your weapon...\");\n mChoiceView.setImageResource(R.drawable.unknown);\n mRockButton.setEnabled(true);\n mPaperButton.setEnabled(true);\n mScissorsButton.setEnabled(true);\n } else {\n // A mChoice has been made\n mRockButton.setEnabled(false);\n mPaperButton.setEnabled(false);\n mScissorsButton.setEnabled(false);\n\n mInstructionView.setText(\"Waiting for opponent...\");\n\n switch(mChoice) {\n case Keys.CHOICE_ROCK:\n mChoiceView.setImageResource(R.drawable.rock);\n break;\n case Keys.CHOICE_PAPER:\n mChoiceView.setImageResource(R.drawable.paper);\n break;\n case Keys.CHOICE_SCISSORS:\n mChoiceView.setImageResource(R.drawable.scissors);\n break;\n }\n }\n\n // Check Pebble player response has arrived first\n if(mChoice != Keys.CHOICE_WAITING && mP2Choice != Keys.CHOICE_WAITING) {\n doMatch();\n }\n }", "public void update() {\n Dashboard.sendToDash(\"/update Servo \" + id + \" \" + servo.getPosition());\n }", "private void updateComputerPlayerMoney()\n {\n lb_money_1.setText(\"My money: \" + computerPlayer_1.getMoney());\n\n // step 2. set lb_money_2 to be \"\"My money: \" + computerPlayer_2.getMoney(), using setText() of the label\n lb_money_2.setText(\"My money: \" + computerPlayer_2.getMoney());\n }", "private void updateCarrierStateWithSimStatus(State simState) {\n if (DEBUG) Log.d(TAG, \"updateCarrierTextWithSimStatus(), simState = \" + simState);\n \n CharSequence carrierText = null;\n int carrierHelpTextId = 0;\n mEmergencyButtonEnabledBecauseSimLocked = false;\n mStatus = getStatusForIccState(simState);\n mSimState = simState;\n switch (mStatus) {\n case Normal:\n carrierText = makeCarierString(mPlmn, mSpn);\n break;\n \n case NetworkLocked:\n carrierText = makeCarierString(mPlmn,\n getContext().getText(R.string.lockscreen_network_locked_message));\n carrierHelpTextId = R.string.lockscreen_instructions_when_pattern_disabled;\n break;\n \n case SimMissing:\n // Shows \"No SIM card | Emergency calls only\" on devices that are voice-capable.\n // This depends on mPlmn containing the text \"Emergency calls only\" when the radio\n // has some connectivity. Otherwise, it should be null or empty and just show\n // \"No SIM card\"\n carrierText = getContext().getText(R.string.lockscreen_missing_sim_message_short);\n if (mLockPatternUtils.isEmergencyCallCapable()) {\n carrierText = makeCarierString(carrierText, mPlmn);\n }\n carrierHelpTextId = R.string.lockscreen_missing_sim_instructions_long;\n break;\n \n case SimPermDisabled:\n carrierText = getContext().getText(R.string.lockscreen_missing_sim_message_short);\n carrierHelpTextId = R.string.lockscreen_permanent_disabled_sim_instructions;\n mEmergencyButtonEnabledBecauseSimLocked = true;\n break;\n \n case SimMissingLocked:\n carrierText = makeCarierString(mPlmn,\n getContext().getText(R.string.lockscreen_missing_sim_message_short));\n carrierHelpTextId = R.string.lockscreen_missing_sim_instructions;\n mEmergencyButtonEnabledBecauseSimLocked = true;\n break;\n \n case SimLocked:\n carrierText = makeCarierString(mPlmn,\n getContext().getText(R.string.lockscreen_sim_locked_message));\n mEmergencyButtonEnabledBecauseSimLocked = true;\n break;\n \n case SimPukLocked:\n carrierText = makeCarierString(mPlmn,\n getContext().getText(R.string.lockscreen_sim_puk_locked_message));\n if (!mLockPatternUtils.isPukUnlockScreenEnable()) {\n // This means we're showing the PUK unlock screen\n mEmergencyButtonEnabledBecauseSimLocked = true;\n }\n break;\n }\n \n setCarrierText(carrierText);\n setCarrierHelpText(carrierHelpTextId);\n updateEmergencyCallButtonState(mPhoneState);\n }", "public void updateCount(){\n TextView newCoupons = (TextView) findViewById(R.id.counter);\n //couponsCount.setText(\"Pocet pouzitych kuponov je: \" + SharedPreferencesManager.getUsedCoupons());\n if(SharedPreferencesManager.getNew()>0) {\n newCoupons.setVisibility(View.VISIBLE);\n newCoupons.setText(String.valueOf(SharedPreferencesManager.getNew()));\n }\n else {\n newCoupons.setVisibility(View.GONE);\n }\n }", "private void updateUi() {\n mBuyButton = (Button) findViewById(R.id.but_purchase);\n mMessageText = (TextView)findViewById(R.id.txt_purchase);\n }", "private void updateSharedState()\r\n {\r\n // TODO update the shared state\r\n // e.g.: sharedState.setTurnHolder(gameModel.getTurnHolder());\r\n }", "@Override\n public void notifyUpdate() {\n Update();\n //Invia all'activity di questo frammento il totale speso per aggiornare la sezione di controllo del budget\n onSendTotSpent.ReceiveTotSpent(contactGiftAdapter.totSpent());\n }", "protected void refreshCaptured(){\n\t\twhiteCount.setText(String.valueOf(game.getCapturedStones(Game.WHITE)));\n\t\tblackCount.setText(String.valueOf(game.getCapturedStones(Game.BLACK)));\t\t\n\t}", "private void updateUI() {\n Log.i(DEBUG.TAG, \"BTDevicesActivity - updateUI - start\");\n\n btnBTScan.setEnabled(btAdapter.isEnabled() && !btAdapter.isDiscovering());\n\n if (btAdapter.isDiscovering())\n btnBTScan.setText(R.string.btn_bt_devices_scan_running_text);\n else\n btnBTScan.setText(R.string.btn_bt_devices_scan_text);\n tglBTToggle.setChecked(btAdapter.isEnabled());\n\n // remove all found (if any) devices when BT is disabled\n if (!btAdapter.isEnabled())\n lvAdapter.clear();\n\n if (lvAdapter.getCount() > 0)\n tvHeader.setText(R.string.tv_bt_devices_header_text_devices_found);\n else\n tvHeader.setText(R.string.tv_bt_devices_header_text_no_devices);\n\n Log.i(DEBUG.TAG, \"BTDevicesActivity - updateUI - finish\");\n }", "void updateViewToDevice()\n {\n if (!mBeacon.isConnected())\n {\n return;\n }\n\n KBCfgCommon oldCommonCfg = (KBCfgCommon)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeCommon);\n KBCfgCommon newCommomCfg = new KBCfgCommon();\n KBCfgEddyURL newUrlCfg = new KBCfgEddyURL();\n KBCfgEddyUID newUidCfg = new KBCfgEddyUID();\n try {\n //check if user update advertisement type\n int nAdvType = 0;\n if (mCheckBoxURL.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyURL;\n }\n if (mCheckboxUID.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyUID;\n }\n if (mCheckboxTLM.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyTLM;\n }\n //check if the parameters changed\n if (oldCommonCfg.getAdvType() != nAdvType)\n {\n newCommomCfg.setAdvType(nAdvType);\n }\n\n //adv period, check if user change adv period\n Integer changeTag = (Integer)mEditBeaconAdvPeriod.getTag();\n if (changeTag > 0)\n {\n String strAdvPeriod = mEditBeaconAdvPeriod.getText().toString();\n if (Utils.isPositiveInteger(strAdvPeriod)) {\n Float newAdvPeriod = Float.valueOf(strAdvPeriod);\n newCommomCfg.setAdvPeriod(newAdvPeriod);\n }\n }\n\n //tx power ,\n changeTag = (Integer)mEditBeaconTxPower.getTag();\n if (changeTag > 0)\n {\n String strTxPower = mEditBeaconTxPower.getText().toString();\n Integer newTxPower = Integer.valueOf(strTxPower);\n if (newTxPower > oldCommonCfg.getMaxTxPower() || newTxPower < oldCommonCfg.getMinTxPower()) {\n toastShow(\"tx power not valid\");\n return;\n }\n newCommomCfg.setTxPower(newTxPower);\n }\n\n //device name\n String strDeviceName = mEditBeaconName.getText().toString();\n if (!strDeviceName.equals(oldCommonCfg.getName()) && strDeviceName.length() < KBCfgCommon.MAX_NAME_LENGTH) {\n newCommomCfg.setName(strDeviceName);\n }\n\n //uid config\n if (mCheckboxUID.isChecked())\n {\n KBCfgEddyUID oldUidCfg = (KBCfgEddyUID)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyUID);\n String strNewNID = mEditEddyNID.getText().toString();\n String strNewSID = mEditEddySID.getText().toString();\n if (!strNewNID.equals(oldUidCfg.getNid()) && KBUtility.isHexString(strNewNID)){\n newUidCfg.setNid(strNewNID);\n }\n\n if (!strNewSID.equals(oldUidCfg.getSid()) && KBUtility.isHexString(strNewSID)){\n newUidCfg.setSid(strNewSID);\n }\n }\n\n //url config\n if (mCheckBoxURL.isChecked())\n {\n KBCfgEddyURL oldUrlCfg = (KBCfgEddyURL)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyURL);\n String strUrl = mEditEddyURL.getText().toString();\n if (!strUrl.equals(oldUrlCfg.getUrl())){\n newUrlCfg.setUrl(strUrl);\n }\n }\n\n //TLM advertisement interval configuration (optional)\n if (mCheckboxTLM.isChecked()){\n //The default TLM advertisement interval is 10. The KBeacon will send 1 TLM advertisement packet every 10 advertisement packets.\n //newCommomCfg.setTLMAdvInterval(8);\n }\n }catch (KBException excpt)\n {\n toastShow(\"config data is invalid:\" + excpt.errorCode);\n excpt.printStackTrace();\n }\n\n ArrayList<KBCfgBase> cfgList = new ArrayList<>(3);\n cfgList.add(newCommomCfg);\n cfgList.add(newUidCfg);\n cfgList.add(newUrlCfg);\n mDownloadButton.setEnabled(false);\n mBeacon.modifyConfig(cfgList, new KBeacon.ActionCallback() {\n @Override\n public void onActionComplete(boolean bConfigSuccess, KBException error) {\n mDownloadButton.setEnabled(true);\n if (bConfigSuccess)\n {\n clearChangeTag();\n toastShow(\"config data to beacon success\");\n }\n else\n {\n if (error.errorCode == KBException.KBEvtCfgNoParameters)\n {\n toastShow(\"No data need to be config\");\n }\n else\n {\n toastShow(\"config failed for error:\" + error.errorCode);\n }\n }\n }\n });\n }", "public void updateGui(int receivedMessage){\n // The game has been won / lost / is a draw\n if(receivedMessage < 4){\n this.disconnectListeners();\n this.endGame(receivedMessage);\n }\n \n // YOUR move was valid, now display it\n else if(receivedMessage < 19){\n receivedMessage = receivedMessage - 10;\n grid[receivedMessage/3][receivedMessage%3].setIcon(myTheme.playerSquare);\n statusBar.setText(\"Waiting for your opponent's move\");\n }\n \n // display your opponent's move \n else{\n if(receivedMessage < 29){\n receivedMessage = receivedMessage - 20;\n grid[receivedMessage/3][receivedMessage%3].setIcon(myTheme.opponentSquare); \n }\n \n // if YOUR move was invalid, it is still your turn\n statusBar.setText(\"Your turn to make a move\");\n this.connectListeners();\n }\n this.repaint();\n }", "@Override\r\n public void updateUI() {\r\n }", "private void updateUi(){\n competencia = (CompetitionMin) getArguments().getSerializable(\"competencia\");\n\n edtCiudad = vista.findViewById(R.id.edt_ciudad_edit_comp);\n\n spinGenero = vista.findViewById(R.id.spinner_genero_edit);\n spinEstado = vista.findViewById(R.id.spinner_estado_edit);\n\n generos = new ArrayList<>();\n estados = new ArrayList<>();\n\n btnUpdateCompetition = vista.findViewById(R.id.btn_update_edit_comp);\n }", "public void updateDisplay(){\r\n //Update the display\r\n DefaultTableModel regs = (DefaultTableModel)tblRegisters.getModel();\r\n regs.setValueAt(Integer.toHexString(board.getA()),0,0);\r\n regs.setValueAt(Integer.toHexString(board.getB()),0,1);\r\n regs.setValueAt(Integer.toHexString(board.getX()),0,2);\r\n regs.setValueAt(Integer.toHexString(board.getY()),0,3);\r\n regs.setValueAt(Integer.toBinaryString(board.getIntCCR()),0,4);\r\n lblPC.setText(Integer.toHexString(board.getPC()));\r\n lblSP.setText(Integer.toHexString(board.getSP()));\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tnewUpdate1(DeviceNum1);\r\n\r\n\t\t\t}", "public void updateStatusIndicators() {\n // this runs on the UI thread, to avoid conflicting UI updates\n final class statusUpdater implements Runnable {\n @Override\n public void run() {\n boolean phoneCommBusy;\n boolean myConnectedToPhone;\n synchronized(statusLock) {\n phoneCommBusy = waitingForProjectLoad || sendingToPhone;\n myConnectedToPhone = connectedToPhone;\n }\n // comm indicator\n if (phoneCommBusy) { // communicating with phone\n commIndicator.setState(PhoneCommIndicator.IndicatorState.COMMUNICATING);\n } else {\n if (myConnectedToPhone) { // not communicating with phone and repl app is running\n commIndicator.setState(PhoneCommIndicator.IndicatorState.CONNECTED);\n } else { // not communicating and repl app not running\n commIndicator.setState(PhoneCommIndicator.IndicatorState.DISCONNECTED);\n }\n }\n // connect menu enabled/disabled\n // Note: The device selector menu is created with the initial text\n // \"Loading a Project\". This changes to \"Connect to Device\" when the\n // menu is first activated.\n if (!phoneCommBusy\n && WorkspaceControllerHolder.get().haveProject()) {\n deviceSelector.setEnabled(true);\n } else {\n deviceSelector.setEnabled(false);\n }\n // connected device\n if (myConnectedToPhone) {\n deviceSelector.setCurrentDevice(psReplController.getSelectedDevice());\n } else {\n deviceSelector.setCurrentDevice(null);\n }\n }\n }\n if (commIndicator == null) {\n // only expect this to be true during testing\n return;\n }\n if (SwingUtilities.isEventDispatchThread()) {\n new statusUpdater().run();\n } else {\n try {\n SwingUtilities.invokeAndWait(new statusUpdater());\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }", "private void updateReceivedView() {\n mReceivedCoins = Data.getReceivedCoins();\n mRecyclerViewCol.setVisibility(View.INVISIBLE);\n mRecyclerViewRec.setVisibility(View.VISIBLE);\n mReceivedAdapter.notifyDataSetChanged();\n }", "private void updateUI(){\n\t\tString eventType = eventbean.getEventType();\n\t\n\t\t//THE FOLLOWING MAKE EVERYTHING DISAPPEAR BEFORE UPDATING THE UI\n\t\t\n\t\t// set invisible text views not used and enable based on request\n\t\tresponse_tv.setVisibility(View.GONE);\n\t\tbtnContacts.setVisibility(View.GONE);\n\t\tbtnCallLog.setVisibility(View.GONE);\n\t\tbtnEnterNumManually.setVisibility(View.GONE);\n\t\tbtnEnterText.setVisibility(View.GONE);\n\t\thint_tv.setVisibility(View.GONE);\n\t\t\n\t\t// IF THERE ARE ALREADY INPUT TEXT REPONSE, THEN SHOW\n\t\tif (eventbean.getTextResponse().length() > 1){\n\t\t\t\n\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\tresponse_tv.setText(eventbean.getTextResponse());\n\t\t\t\n\t\t\t}\n\t\t\n\t\t// Clean up all the items in the radio group and check box layout\n\t\tradioGroup.removeAllViews();\n\t\tcheckboxLayout.removeAllViews();\n\t\t\n\t\t// based on the event type, dynamically change the user interface\n\t\tif (eventType.equals(\"TEXT_DISPLAY\")){\n\t\t\t\n\t\t\t// get text value from bean\n\t\t\tString textbody = eventbean.getTextbody().replace(\"\\\"\", \"\");\n\t\t\t\n\t\t\t//update user interface\n\t\t\ttitle_tv.setVisibility(View.GONE);\n\t\t\ttextbody_tv.setText(textbody);\n\t\t\tradioGroup.setVisibility(View.GONE);\n\t\t\t\n\t\t}\n\t\t\n\t\telse if(eventType.equals(\"TIE_DISPLAY\")){\n\t\t\t\n\t\t\t// getting the list of tie criteria associated with this event\n\t\t\tTieCriteria tieCriteria = eventbean.getTieCriteria().get(0);\n\t\t\t\n\t\t\t// initiate a String and a ArrayList to store names\n\t\t\tTie tie = null;\n\t\t\t\n\t\t\tTieGenerator tieGT = new TieGenerator(getActivity());\n\t\t\t\n\t\t\tif(eventbean.getDynamicText().length()<1){\n\t\t\t\n\t\t\t\t/* The following applies SELECTION METHOD = Random\n\t\t\t\t * As only random selection is used in TIE DISPLAY event\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tint nameCount = tieGT.countTies(tieCriteria);\n\t\t\t\t\t\n\t\t\t\t\t// randomize to get a random name\n\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\tint place = rand.nextInt(nameCount)+1;\n\t\t\t\t\ttieCriteria.setPlace(place);\n\t\t\t\t\t\n\t\t\t\t\t// get a name based on the tie criteria\n\t\t\t\t\ttie = tieGT.getTieByCriteria(tieCriteria);\n\t\t\t\t\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t\ttie = new Tie(eventbean.getQid(),\"NONAME\", \"NONAME\", tieCriteria);\n\t\t\t\t\tLog.v(\"failedcriteria\",tieCriteria.toString());\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\teventbean.setDynamicText(tie.getName());\n\t\t\t\t\n\t\t\t\t//show in text view\n\t\t\t\ttextbody_tv.setText(tie.getName());\n\t\t\t}\n\t\t\t\n\t\t\t\telse{\n\t\t\t\t\n\t\t\t\t//show in text view\n\t\t\t\ttextbody_tv.setText(eventbean.getDynamicText());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//update user interface\n//\t\t\ttitle_tv.setText(eventIndex+\".Tie Display\");\n\t\t\ttitle_tv.setVisibility(View.GONE);\n\t\t\tradioGroup.setVisibility(View.GONE);\n\t\t}\n\t\t\n\t\telse if(eventType.equals(\"SURVEY_QUESTION\")){\n\t\t\t\n\t\t\t//IF EVENT IS SURVEY QUESTIONS \n\t\t\t//disable confirm button every time to DISALLOW skipping questions\n\t\t\t\n\t\t\t// setting the text for the question title text view\n//\t\t\tString qtitle = eventIndex+\".Survey Question\";\n\t\t\t\n\t\t\t// setting the text for the question body text view\n\t\t\tString qbody = eventbean.getTextbody().replace(\"\\\"\", \"\");\n\t\t\t\n\t\t\tint choiceTotal = eventbean.getChoicecount();\n\t\t\t\n\t\t\t// setting the current question title\n//\t\t\ttitle_tv.setText(qtitle);\n\t\t\ttitle_tv.setVisibility(View.GONE);\n\t\t\t\n\t\t\t// BRANCH ENABLED ONLY\n\t\t\t// if enabled branch, the hint will show that response can't be changed\n\t\t\tif (eventbean.isBranchEnabled()){\n\t\t\t\t\n\t\t\t\thint_tv.setVisibility(View.VISIBLE);\n\t\t\t\thint_tv.setText(R.string.branchenabled_hint);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t/* THE FOLLOWING APPLIES TO: DYNAMIC QUESTIONS\n\t\t\t * If the survey question requires dynamic text, will based on it\n\t\t\t * to modify the text body\n\t\t\t */\n\t\t\t\n\t\t\t// getting the list of tie criteria associated with this event\n\t\t\tArrayList<TieCriteria> criteriaList = eventbean.getTieCriteria();\n\t\t\t\n\t\t\t// if it is NOT empty, then there's dynamic text to show\n\t\t\tif(!criteriaList.isEmpty()){\n\t\t\t\t\n\t\t\t\t// rearrange the array list in order of text position\n\t\t\t\t// this is necessary for later inserting the text into question body\n\t\t\t\tComparator <TieCriteria> compareTextPosition = new Comparator<TieCriteria>(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(TieCriteria tc1, TieCriteria tc2) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tc1.getTextPosition()!=tc2.getTextPosition()){\n\t\t\t\t\t\t\treturn tc1.getTextPosition() - tc2.getTextPosition(); \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\t// rearrange the list in order of text position\n\t\t\t\tCollections.sort(criteriaList,compareTextPosition);\n\t\t\t\t\n\t\t\t\t// this array list is used locally, to make sure multiple tie criteria\n\t\t\t\t// in a single question does not generate the same name\n\t\t\t\tArrayList<String> event_local_namepool = new ArrayList<String>();\n\n\t\t\t\tTieGenerator tieGT = new TieGenerator(getActivity());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//IF THERE ARE NO EXISTING GENERATED TIES(NEW EVENT)\n\t\t\t\t/* THE if(event.getDynamicText().length()<1) IS USED FOR THE \"BACK\" \n\t\t\t\t * CHECK FIRST IF THE TIE HAS ALREADY BEEN GENERATED\n\t\t\t\t * IF IT DOES, THEN USE PREVIOUSLY GENERATED TIES\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(eventbean.getDynamicText().length()<1){\n\t\t\t\t\n\t\t\t\t\t// this value is added up as tie is inserted into the question\n\t\t\t\t\tint differPos = 0;\n\t\t\t\t\n\t\t\t\tfor (TieCriteria tieCriteria:criteriaList){\n\t\t\t\t\t\n\t\t\t\t\t/* The following applies to when\n\t\t\t\t\t * SELECTION METHOD = Random\n\t\t\t\t\t */\n\t\t\t\t\tTie tie = null;\n\t\t\t\t\t\n\t\t\t\t\tif (tieCriteria.getMethod().equals(\"random\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint nameCount = tieGT.countTies(tieCriteria);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t// randomize to get a random name\n\t\t\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\t\t\tint place = rand.nextInt(nameCount)+1;\n\t\t\t\t\t\t\ttieCriteria.setPlace(place);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// get a name based on the tie criteria\n\t\t\t\t\t\t\ttie = tieGT.getTieByCriteria(tieCriteria);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}while(event_local_namepool.indexOf(tie.getName())!=-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// assigning question id and event index to the tie\n\t\t\t\t\t\t\ttie.setQid(eventbean.getQid());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttie = new Tie(eventbean.getQid(),\"NONAME\", \"NONAME\", tieCriteria);\n\t\t\t\t\t\t\tLog.v(\"failedcriteria\",tieCriteria.toString());\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// register the name in the name pool\n\t\t\t\t\t\ttieGenerateCallBack.onTieGenerated(tie);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if (tieCriteria.getMethod().equals(\"walk_through\")){\n\t\t\t\t\t\n\t\t\t\t\t\t/* the extra step in WALK THROUGH is just to check the name Pool\n\t\t\t\t\t\t * and make sure the name does not appear again.\n\t\t\t\t\t\t */\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint nameCount = tieGT.countTies(tieCriteria);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t// randomize to get a random name\n\t\t\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\t\t\tint place = rand.nextInt(nameCount)+1;\n\t\t\t\t\t\t\ttieCriteria.setPlace(place);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// get a name based on the tie criteria\n\t\t\t\t\t\t\ttie = tieGT.getTieByCriteria(tieCriteria);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}while(local_tiePool.contains(tie) || //PAY ATTENTION IF IT WORKS\n\t\t\t\t\t\t\t\t\tevent_local_namepool.indexOf(tie.getName())!=-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// assigning question id to the tie\n\t\t\t\t\t\t\ttie.setQid(eventbean.getQid());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttie = new Tie(eventbean.getQid(),\"NONAME\", \"NONAME\", tieCriteria);\n\t\t\t\t\t\t\tLog.v(\"failedcriteria\",tieCriteria.toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// register the name in the name pool\n\t\t\t\t\t\t\ttieGenerateCallBack.onTieGenerated(tie);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}else if (tieCriteria.getMethod().contains(\"use\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* the extra step in USE PREVIOUS TIE is just to check the name Pool\n\t\t\t\t\t\t * and pick up the name used in a previous question.\n\t\t\t\t\t\t */\n\t\t\t\t\t\t\n\t\t\t\t\t\t// first of all, parsing the USE PREVIOUS TIE STRING to get the question id and tie id\n\t\t\t\t\t\tString methodStr = tieCriteria.getMethod();\n\t\t\t\t\t\tint qid = Integer.parseInt(methodStr.substring(methodStr.indexOf(\"q\")+1, methodStr.indexOf(\"t\")));\n\t\t\t\t\t\tint criteria_id = Integer.parseInt(methodStr.substring(methodStr.indexOf(\"t\")+1, methodStr.length()));\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// iterate through the tie pool to find a previous tie that fits the question id and criteria id\n\t\t\t\t\t\t\tfor (int i = 0; i < local_tiePool.size(); i++){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tint q_id = local_tiePool.get(i).getQid();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tint c_id = local_tiePool.get(i).getCriteria().getId();\n\n\t\t\t\t\t\t\t\t// if match is found, get this tie!\n\t\t\t\t\t\t\t\tif(qid == q_id && c_id == criteria_id){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// get this tie\n\t\t\t\t\t\t\t\t\ttie = local_tiePool.get(i);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// NO NEED TO REGISTER, BECAUSE USED PREVIOUS TIE\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// error control: if not found previous tie, then assign NONAME\n\t\t\t\t\t\t\tif(tie == null)tie = new Tie(eventbean.getQid(),\"NONAME\", \"NONAME\", tieCriteria);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//this should not happen, if it does there's a big warning\n\t\t\t\t\t\t\tLog.v(\"debugtag\",\"Warning: Can't find previous tie.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttie = new Tie(\"NONAME\", \"NONAME\", tieCriteria);\n\t\t\t\t\t\t\tLog.v(\"failedcriteria\",tieCriteria.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// add to a name list to later avoid having two same names\n\t\t\t\t\tif(!tie.getName().equals(\"NONAME\"))event_local_namepool.add(tie.getName());\n\t\t\t\n\t\t\t\t\t// save this name to the event bean\n\t\t\t\t\teventbean.setDynamicText(eventbean.getDynamicText() + tie.getName() + \",\" );\n\t\t\t\t\t\n\t\t\t\t\t// get the position that this tie wants to be placed\n\t\t\t\t\tint position = tieCriteria.getTextPosition();\n\t\t\t\t\t\n\t\t\t\t\t// use a String Builder to insert the name into the text body\n\t\t\t\t\tStringBuilder inserted_qbody = new StringBuilder(qbody);\n\t\t\t\t\n\t\t\t\t\tint destination_position = (int)position + (int)differPos;\n\t\t\t\t\t\n\t\t\t\t\tif(destination_position > qbody.length())destination_position = qbody.length()-1;\n\t\t\t\n\t\t\t\t\tinserted_qbody.insert(destination_position,tie.getName());\n\t\t\t\t\t\n\t\t\t\t\tqbody = inserted_qbody+\"\";\n\t\t\t\t\t\n\t\t\t\t\tdifferPos = differPos + tie.getName().length();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// ELSE IF the Dynamic Text is not empty\n\t\t\t\t\t// meaning ties have already been generated\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t// this value is added up as tie is inserted into the question\n\t\t\t\t\tint differPos = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor (int i=0 ; i < criteriaList.size();i++){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// retrieve the name from the already generated list\n\t\t\t\t\t\t\tString name = eventbean.getDynamicText().split(\",\")[i];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// get the position that this tie wants to be placed\n\t\t\t\t\t\t\tint position = criteriaList.get(i).getTextPosition();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// use a String Builder to insert the name into the text body\n\t\t\t\t\t\t\tStringBuilder inserted_qbody = new StringBuilder(qbody);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tint destination_position = (int)position + (int)differPos;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(destination_position > qbody.length())destination_position = qbody.length()-1;\n\t\t\t\t\t\n\t\t\t\t\t\t\tinserted_qbody.insert(destination_position,name);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tqbody = inserted_qbody+\"\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdifferPos = differPos + name.length();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}//correspond to the else\n\t\t\t\t\n\t\t\t}\n\n\t\t\t// setting the question body\n\t\t\ttextbody_tv.setText(qbody);\n\t\t\t\n\t\t\t// identify the question type\n\t\t\t\n\t\t\tString questionType = eventbean.getQuestionType();\n\t\t\t\n\t\t\t/* Based on the question type (single or multiple)\n\t\t\t * Different UI updates code will be initiated\n\t\t\t * 1. Single Choice: RadioGroup and RadioButtons will be used\n\t\t\t * 2. Multiple Choice: Check boxes will be used\n\t\t\t */\n\t\t\t\n\t\t\t\n\t\t\tif (questionType.equals(\"single\")){\n\t\t\t\t\n\t\t\t\t/*1. Single Choice Questions: update radio button for every choice\n\t\t\t\t * \n\t\t\t\t * The following code has been changed from its previous version\n\t\t\t\t * Now, it allows dynamically adding the radio buttons so there are no limit of choices\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tradioGroup.setVisibility(View.VISIBLE);\n\t\t\t\t\n\t\t\t\tfor (int i = 0 ; i < choiceTotal ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t// getting the text from the bean and update radio button text\n\t\t\t\t\t\tString choice_text = eventbean.getChoice(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// instantiate new radio buttons\n\t\t\t\t\t\tRadioButton choiceRadioButton = new RadioButton(getActivity());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// setting the text and tag(used later to read choice text) of the radio button\n\t\t\t\t\t\tchoiceRadioButton.setText(choice_text.replace(\"\\\"\", \"\"));\n\t\t\t\t\t\tchoiceRadioButton.setTag((char) ('A' + i)); // this is to set characters as tags\n\t\t\t\t\t\t\n\t\t\t\t\t\t// setting the layout and style for the radio button\n\t\t\t\t\t\tRadioGroup.LayoutParams params = new RadioGroup.LayoutParams(\n\t\t\t\t LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\t\t\t\t\tparams.setMargins(0, 0, 0, 30);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// styling the new added radio button\n\t\t\t\t choiceRadioButton.setLayoutParams(params);\n\t\t\t\t\t\tchoiceRadioButton.setTextSize(27);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tradioGroup.addView(choiceRadioButton,i);\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 * Setting a checked change lister for the radio Group\n\t\t\t\t * So when it is selected, will release the \"next\" button\n\t\t\t\t * And user can go to the next event\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tradioGroup.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\n\t\t \t/* Error Control\n\t\t \t * Every time a radio button is checked/unchecked,\n\t\t \t * it will check if there are radio buttons checked\n\t\t \t * if not, it will disable the \"next\" button\n\t\t \t */\n\t\t \t\n\t\t\t\t\t\t// if there exists radio button checked, then enable the next button\n\t\t\t\t\t\tif (checkedId != -1){\n\t\t \t\t\t\t\n\t\t \t\t\t\tRadioButton checkedButton = (RadioButton) group.findViewById(checkedId);\n\t\t \t\t\t\tint checkedIndex = group.indexOfChild(checkedButton) + 1;\n\t\t \t\t\t\t\n\t\t \t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"S\",checkedIndex+\"\");\n\t\t\t\t\t\t\t\n\t\t \t\t\t}else {responseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"S\",\"-1\");}\n\t\t \t\t\t\n\t\t\t\t\t\t// FOR BRANCH ENABLED EVENTS ONLY\n\t\t\t\t\t\t// if branching is enabled, the response will NOT be allowed to change \n\t\t\t\t\t\t\n\t\t\t\t\t\tif(eventbean.isBranchEnabled())disableResponse();\n\t\t\t\t\t\t\n\t\t\t \t\t//record response\n\t\t\t \t\tcheckSingleChoice();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t }\n\t\t ); \n\t\t\t\t\n\t\t\t\tString responseString = eventbean.getChoiceResponse();\n\t\t\t\t\n\t\t\t\t// make sure selected tag is not null first\n\t\t\t\tif(responseString!=null){\n\t\t\t\t\n\t\t\t\t\t// READ FROM RESPONSE: IF HAVE PREVIOUS RESPONSE, THEN RECALL\n\t\t\t\t\tString selectedTag = responseString.split(\"\\\\.\")[0];\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0 ; i < radioGroup.getChildCount(); i++ ){\n\t\t\t\t\t\t\n\t\t\t\t\t\tRadioButton choice = (RadioButton)radioGroup.getChildAt(i);\n\n\t\t\t\t\t\tString choiceTag = choice.getTag()+\"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (choiceTag.equals(selectedTag)){((RadioButton) radioGroup.getChildAt(i)).setChecked(true);}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if (questionType.equals(\"multiple\")){\n\t\t\t\t/*2. Multiple Choice Questions: update check boxes for every choice\n\t\t\t\t *Since there's no thing as \"check box group\" the code here just\n\t\t\t\t *add the check boxes to the input linear layout\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tradioGroup.setVisibility(View.GONE);\n\t\t\t\t\n\t\t\t\t// used to store checked choices, accessed by later code \n\t\t\t\tArrayList<String> checkedChoices = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t// if there has already been response, check the boxes\n\t\t\t\tif(eventbean.getChoiceResponse().length()>1){\n\t\t\t\t\t\n\t\t\t\t\tString responseStr = eventbean.getChoiceResponse();\n\t\t\t\t\t\n\t\t\t\t\t\t// parsing every choice from the response string and add them to the list\n\t\t\t\t\t\tfor (int i = 0; i < responseStr.split(\",\").length ; i++ ){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString choice = responseStr.split(\",\")[i].split(\"\\\\.\")[0];\n\t\t\t\t\t\t\tcheckedChoices.add(choice);\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = 0 ; i < choiceTotal ; i++)\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t// getting the text from the bean and update radio button text\n\t\t\t\t\tString choice_text = eventbean.getChoice(i);\n\t\t\t\t\t\n\t\t\t\t\t// instantiate new radio buttons\n\t\t\t\t\tCheckBox choiceCheckBox = new CheckBox(getActivity());\n\t\t\t\t\t\n\t\t\t\t\t// setting the text and tag(used later to read choice text) of the radio button\n\t\t\t\t\tchoiceCheckBox.setText(choice_text.replace(\"\\\"\", \"\"));\n\t\t\t\t\tchoiceCheckBox.setTag((char) ('A' + i)); // this is to set characters as tags\n\t\t\t\t\t\n\t\t\t\t\t// setting the layout and style for the radio button\n\t\t\t\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\t\t\t\tparams.setMargins(0, 0, 0, 30);\n\t\t\t\t\t\n\t\t\t choiceCheckBox.setLayoutParams(params);\n\t\t\t choiceCheckBox.setTextSize(21);\n\t\t\t\t\t\n\t\t\t // setting the listener that will release the \"next\" button when checked\n\t\t\t choiceCheckBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n\n\t\t\t @Override\n\t\t\t public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {\n\t\t\t\t\t\t\t\n\t\t\t \t/* = Error Control =\n\t\t\t \t * Every time a box is checked/unchecked,\n\t\t\t \t * it will check if there are still boxes checked by the user\n\t\t\t \t * if not, it will disable the \"next\" button\n\t\t\t \t */\n\t\t\t \t\n\t\t\t \tString checkedBoxIndexString = \"\";\n\t\t\t \t\n\t\t\t \tfor (int i =0; i < checkboxLayout.getChildCount();i++){\n\t\t\t \t\t\t\n\t\t\t \t\t\tCheckBox choiceBox = (CheckBox) checkboxLayout.getChildAt(i);\n\t\t\t \t\t\t\n\t\t\t \t\t\t// if there exists checked box, then continue and enable \"next\" button\n\t\t\t \t\t\tif(choiceBox.isChecked()){\n\t\t\t \t\t\t\t\n\t\t\t \t\t\t\t// set the choice index string format\n\t\t\t \t\t\t\tcheckedBoxIndexString = checkedBoxIndexString + (i + 1) + \"&\";\n\t\t\t \t\t\t\t\n\t\t\t \t\t\t}\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t// if there exists checked box, then continue and enable \"next\" button\n\t\t\t \tif(!checkedBoxIndexString.equals(\"\")){\n\t\t\t \t\t\n\t\t\t \t\t// remove the & sign at end if exists\n\t\t\t\t \t\tif(checkedBoxIndexString.endsWith(\"&\")){\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t// remove the & at the end\n\t\t\t\t \t\t\tcheckedBoxIndexString = checkedBoxIndexString.substring(0, checkedBoxIndexString.length()-1);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t \t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"M\",checkedBoxIndexString);\n\t\t\t \t\t\n\t\t\t \t\t}\n\t\t\t \t\n\t\t\t \telse {\n\t\t\t \t\n\t\t \t\t\t// if no checked box is found, then disable the button\n\t\t \t\t\t// THIS IS BECAUSE, we don't want to continue without at least a box checked\n\t\t\t \t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"M\",\"-1\");\n\t \t\t\t\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t//record the response\n\t\t\t \tcheckMultipleChoice();\n\t\t\t \t\n\t\t\t }\n\t\t\t }\n\t\t\t ); \n\t\t\t\t\t\n\t\t\t // looking up saved choices and check the selected boxes\n\t\t\t if (!checkedChoices.isEmpty()){\n\t\t\t \t\n\t\t\t \t// tag of the current check box\n\t\t\t \tString box_tag = choiceCheckBox.getTag()+\"\";\n\t\t\t \t\n\t\t\t \t// compared with all checked choices in the list\n\t\t\t \tif (checkedChoices.contains(box_tag))choiceCheckBox.setChecked(true);// if has, then check\n\t\t\t \t\n\t\t\t }\n\t\t\t \n\t\t\t\t\tcheckboxLayout.addView(choiceCheckBox,i);\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// if the question asks user to select from contacts/call log/enter manually\n\t\t\t// the corresponding function button will show\n\t\t\tif(eventbean.isSelectContacts())btnContacts.setVisibility(View.VISIBLE);\n\t\t\tif(eventbean.isSelectCallLog())btnCallLog.setVisibility(View.VISIBLE);\n\t\t\tif(eventbean.isEnterManually())btnEnterNumManually.setVisibility(View.VISIBLE);\n\t\t\tif(eventbean.isEnterText())btnEnterText.setVisibility(View.VISIBLE);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "@FXML\r\n\tvoid Save(ActionEvent event) \r\n\t{\r\n\t\ttry {\r\n\t\t\tMessage myMessage;\r\n\t\t\tString userName = MainGUI.currClient.getUserName();\r\n\t\t\tString password = MainGUI.currClient.getPassword();\r\n\t\t\tlong telephone = MainGUI.currClient.getTelephone();\r\n\t\t\tbyte[] salt = MainGUI.currClient.getSalt();\r\n\t\t\tString\tpermission = MainGUI.currClient.getPermission().toString();\r\n\t\t\tlong cardNumber = MainGUI.currClient.getCardNumber();\r\n\t\t\tlong id = MainGUI.currClient.getID();\r\n\t\t\tLocalDate expiryDate = MainGUI.currClient.getExpiryDate() ;\r\n\t\t\tLocalDate newExpiryDate = dpCreditCardExpiryDate.getValue();\r\n\t\t\tString firstName = tfFirstName.getText();\r\n\t\t\tString lastName = tfLastName.getText();\r\n\r\n\t\t\t//Verify that characters entered for telephone are digits only\r\n\t\t\tlistenerForOnlyDigitsInput(tfphone);\r\n\t\t\ttelephone = (tfphone.getText().length() <= 10) ? Long.parseLong(tfphone.getText()) : telephone;\r\n\r\n\t\t\tif(newExpiryDate != null) expiryDate = newExpiryDate;\r\n\r\n\t\t\t//Check whether entered email is according to an email format\r\n\t\t\tString email = tfEmail.getText();\r\n\t\t\tif (!isValid(email)) \r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"The email address is invalid\", \"Error\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}\r\n\r\n\t\t\t//Update credit card number and id if radio button was chosen\r\n\t\t\tif(rbChangeCreditNumber.isSelected())\r\n\t\t\t{\r\n\t\t\t\tid = (tfIDNumber.getText().length() <= 9) ? Long.parseLong(tfIDNumber.getText()) : id;\r\n\t\t\t\tString fullCardString = tfCreditCard1.getText() + tfCreditCard2.getText() +\r\n\t\t\t\t\t\t\t\t tfCreditCard3.getText() + tfCreditCard4.getText();\r\n\t\t\t\tcardNumber = (fullCardString.length() >= 17) ? 0L : Long.parseLong(fullCardString);\r\n\t\t\t}\r\n\t\t\tmyMessage = new Message(Action.EDIT_USER_DETAILS, firstName,lastName,userName,password,salt,email,permission,\r\n\t\t\t\t\ttelephone,cardNumber,id,expiryDate,userName);\r\n\t\t\tMainGUI.GUIclient.sendToServer(myMessage);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\te.toString() + \" Could not send message to server. Terminating client.\", \"Error\",\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\tMainGUI.GUIclient.quit();\r\n\t\t}\r\n\t}", "public void startSesChangeBodyStatusUi(Model model) throws CommandException {\n Body body = toAdd.getBody();\n String notifContent = \"Body Id: \" + body.getIdNum()\n + \"\\nName: \" + body.getName()\n + \"\\nNext of Kin has been uncontactable. Please contact the police\";\n\n Runnable changeUi = () -> Platform.runLater(() -> {\n if (body.getBodyStatus().equals(Optional.of(CONTACT_POLICE))) {\n UpdateCommand up = new UpdateCommand(body.getIdNum(), new UpdateBodyDescriptor(body));\n up.setUpdateFromNotif(true);\n try {\n up.execute(model);\n\n NotifWindow notifWindow = new NotifWindow();\n notifWindow.setTitle(\"Contact Police!\");\n notifWindow.setContent(notifContent);\n notifWindow.display();\n // ses.shutdown();\n } catch (CommandException e) {\n logger.info(\"Error updating the body and fridge \");\n }\n }\n NotificationButton.getInstanceOfNotifButton().setIconNumber(model.getNumberOfNotifs());\n });\n\n ses.schedule(changeUi, period, timeUnit);\n }", "@Override\r\n\tpublic void updatedri(DriverVO driverVO) {\n\t\t\r\n\t}", "public Scratch_update_details(String network,String price,String pinn,String batch,String serial,String id){\n try {\n initComponents();\n setTitle(\"Details\");\n setLocationRelativeTo(this);\n loadnetwork();\n lblNetwork.setText(network);\n lblPrice.setText(price);\n pinTXT.setText(pinn);\n batchTXT.setText(batch);\n serialTXT.setText(serial);\n lblid.setText(id);\n \n } catch (Exception ex) {\n Logger.getLogger(Scratch_update_details.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n \n \n \n }", "public void update() {\n\t\tif (this.block.getValue() != 0) {\n\t\t\tthis.displayNumberBlock.removeAll();\n\t\t\tthis.displayNumberBlock.setLayout(new GridLayout(1,1));\n\t\t\tthis.label = new JLabel(\"\" + this.block.getValue(), SwingConstants.CENTER);\n\t\t\tthis.label.setFont(new Font(\"Serif\", Font.PLAIN, 25));\n\t\t\tthis.displayNumberBlock.add(this.label, BorderLayout.CENTER);\n\t\t\t\n\t\t\tthis.displayNumberBlock.revalidate();\n\t\t} else {\n\t\t\tthis.displayNumberBlock.removeAll();\n\t\t\tthis.displayNumberBlock.setLayout(new GridLayout(3,3));\n\t\t\t\n\t\t\tfor(int i = 0; i < SudokuPanel.gameSize; i++){\n\t\t\t\tString temp = \"\";\n\t\t\t\tif(this.getBlock().getNotes()[i]){\n\t\t\t\t\ttemp = \"\" + (i+1);\n\t\t\t\t}\n\t\t\t\tJLabel tempLabel = new JLabel(temp);\n\t\t\t\ttempLabel.setFont(new Font(\"Serif\", Font.PLAIN, 10));\n\t\t\t\tthis.displayNumberBlock.add(tempLabel);\n\t\t\t}\n\t\t\tthis.displayNumberBlock.revalidate();\n\t\t}\n\t}", "private void update() {\n\t\t\n\t\tlinkID.setText(\"\"+workingLink.ID);\n\t\t\n\t\troomIDA.setText(\"\"+this.workingLink.targetRooms[0].ID);\n\t\t\n\t\t//Falls bisher nur ein Link-Part gesetzt wurde\n\t\tif(workingLink.targetRooms[1] == null)\n\t\t\troomIDB.setText(\"nicht gesetzt\");\n\t\telse\n\t\t\troomIDB.setText(\"\"+this.workingLink.targetRooms[1].ID);\n\t\t\n\t\t\n\t\tfieldPosA.setText(\"\"+this.workingLink.targetFields[0].pos);\n\t\t\n\t\t//Falls bisher nur ein Link-Part gesetzt wurde\n\t\tif(workingLink.targetFields[1] == null)\n\t\t\tfieldPosB.setText(\"nicht gesetzt\");\n\t\telse\n\t\t\tfieldPosB.setText(\"\"+this.workingLink.targetFields[1].pos);\n\t}", "public void updateACUI() {\n CanDataInfo.CAN_ACInfo mAcInfo = Can.mACInfo;\n Can.mACInfo.Update = 0;\n this.mLeftTemp.setText(mAcInfo.szLtTemp);\n setWindValue(mAcInfo.nWindValue);\n int footWind = mAcInfo.fgDownWind;\n int headWind = mAcInfo.fgParallelWind;\n int winWind = mAcInfo.fgForeWindMode;\n if (i2b(footWind) && i2b(headWind)) {\n setAcMode(1);\n } else if (i2b(headWind)) {\n setAcMode(0);\n } else if (i2b(footWind) && i2b(winWind)) {\n setAcMode(3);\n } else if (i2b(footWind)) {\n setAcMode(2);\n } else if (i2b(winWind)) {\n setAcMode(4);\n } else {\n setAcMode(-1);\n }\n this.mStatusWindow.SetSel(mAcInfo.fgDFBL);\n this.mStatusWindowRear.SetSel(mAcInfo.fgRearLight);\n this.mStatusAc.SetSel(mAcInfo.fgAC);\n this.mStatusAuto.SetSel(mAcInfo.nAutoLight);\n this.mStatusClosed.SetSel(mAcInfo.PWR);\n if (mAcInfo.fgInnerLoop != 0) {\n this.mStatusOutLoop.setStateDrawable(R.drawable.can_rh7_nxh_up, R.drawable.can_rh7_nxh_dn, R.drawable.can_rh7_nxh_dn);\n } else {\n this.mStatusOutLoop.setStateDrawable(R.drawable.can_rh7_wxh_up, R.drawable.can_rh7_wxh_dn, R.drawable.can_rh7_wxh_dn);\n }\n this.mStatusOutLoop.setSelected(true);\n }", "public void update() {\n // gear shift\n gear = simConnection.stringValueOf(gearid, \"P\");\n }", "@Override\n public synchronized boolean update() {\n final UIMessageRequest req = UIMessageRequest.newBuilder()\n .setCode(UIMessageRequestCode.REQ_UPDATE)\n .setSleeptime(this.sleepTime)\n .build();\n\n final SwingWorker<UIMessageReply, Object> worker = new SwingWorker<UIMessageReply, Object>() {\n @Override\n public UIMessageReply doInBackground() {\n debug.println(\"update: send REQ_UPDATE message\");\n final UIMessageReply msg = ss.sendRecv(req);\n lastUpdate = new MJD().mjd;\n return msg;\n }\n\n @Override\n public void done() {\n try {\n final UIMessageReply msg = get();\n if (msg != null)\n processReply(msg);\n } catch (Exception ex) {\n System.err.println(\"Exception during RtDisplay.update()\");\n ex.printStackTrace();\n }\n }\n };\n\n worker.execute();\n return true;\n }", "public void updateImcState(int value) {\n }", "void stateUpdate(String msg);", "public void callSetCmd(){\n if(spinCmdValue.getSelectedItem().toString().equals(\"Select Value\")){\n Toast.makeText(getApplicationContext(),\"Please select value\",Toast.LENGTH_SHORT).show();\n return;\n }\n int floorNo = Integer.valueOf(String.valueOf(spinCmd.getSelectedItemPosition()));\n int a1 = 18;\n int a2 = 17;\n int a3 = 112;\n int a4 = 240 + floorNo;\n int a5 = Integer.parseInt(spinCmdValue.getSelectedItem().toString());\n int a6 = 00;\n\n int[] sendValChkSum = {a1, a2, a3, a4, a5, a6};\n String strChkSum = CalculateCheckSum.calculateChkSum(sendValChkSum);\n String asciiString = String.format(\"%04x\", a1).substring(2, 4) + String.format(\"%04x\", a2).substring(2, 4) + String.format(\"%04x\", a3).substring(2, 4) + String.format(\"%04x\", a4).substring(2, 4) + String.format(\"%04x\", a5).substring(2, 4) + String.format(\"%04x\", a6).substring(2, 4);\n asciiString = asciiString + strChkSum + \"\\r\";\n// Log.e(TAG, \"asciiString = \" + asciiString);\n\n if (isConnected()) {\n sendMessage(asciiString.getBytes());\n } else {\n Toast.makeText(getApplicationContext(), \"Connect to the device\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public static void update() { // Chk for Joystick configuration\n if (jsConfig != chsr.getSelected()) {\n jsConfig = chsr.getSelected();\n caseDefault();\n configJS();\n SmartDashboard.putNumber(\"JS/JS_Config\", jsConfig);\n SmartDashboard.putString(\"JS/Choosen\", chsrDesc[chsr.getSelected()]); //Put selected on sdb\n }\n }", "private void setupUi() {\n //Set title\n setTitle(R.string.send_mms);\n\n //Set numbers recycler view\n RecyclerView recyclerView = mBinding.ownNumbersList;\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setHasFixedSize(true);\n\n NumbersAdapter numbersAdapter = new NumbersAdapter();\n numbersAdapter.watchSubscriptionIdData().observe(this, subscriptionId -> {\n mViewModel.setSubscriptionId(subscriptionId);\n });\n recyclerView.setAdapter(numbersAdapter);\n\n //Get data\n addToCompositeDisposable(mViewModel.getDeviceNumbersList());\n\n //Observe on data\n mViewModel.watchSimCardsList().observe(this, numbersAdapter::setData);\n }", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "private void initView() {\n\t\tbtCheck1 = (Button) findViewById(R.id.btCek1);\n\t\ttbChannel4 = (ToggleButton) findViewById(R.id.tbChannel4);\n\t\t//currentIpAddress = setting.getString(\"ip\", \"192.168.64.44\");\n\t\tcurrentIpAddress =\"192.168.64.45\";\n\t}", "public void receivedUpdateFromServer();", "public void refreshGUIConfiguration() {\n\t\tcbxFEP.setSelectedItem(Initializer.getFEPname());\n\t\ttxtPort.setText(String.valueOf(Initializer.getPortNumber()));\n\t\t\n\t\tfor(Map.Entry<String, String> value : Initializer.getConfigurationTracker().getFepPropertiesMap().entrySet()) {\n\t\t\tif(value.getKey().equals(\"valueOfBitfield76\")) {\n\t\t\t\tSystem.out.println(value.getValue());\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().sendResponseVariableName).equalsIgnoreCase(\"No\")) {\n\t\t\trdbtnDontSendResponse.setSelected(true);\n\t\t} else {\n\t\t\trdbtnSendResponse.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().authorizationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnAuthorizationApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().authorizationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnAuthorizationDecline.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().authorizationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().partialApprovalValue)) {\n\t\t\trdbtnAuthorizationPartiallyapprove.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialSalesResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnFinancialSalesApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialSalesResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnFinancialSalesDecline.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialSalesResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().partialApprovalValue)) {\n\t\t\trdbtnFinancialSalesPartiallyapprove.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialForceDraftResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnFinancialForceDraftApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().financialForceDraftResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnFinancialForceDraftDecline.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reconciliationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnReconciliationApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reconciliationResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnReconciliationDecline.setSelected(true);\n\t\t}\n\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reversalResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().approvalValue)) {\n\t\t\trdbtnReversalApprove.setSelected(true);\n\t\t} else if (Initializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.get(Initializer.getBaseConstants().reversalResultVariableName)\n\t\t\t\t.equalsIgnoreCase(Initializer.getBaseConstants().declineValue)) {\n\t\t\trdbtnReversalDecline.setSelected(true);\n\t\t}\n\n\t\ttxtDeclineCode\n\t\t\t\t.setText(Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"ValueOfBitfield39Decline\"));\n\t\ttxtApprovalAmount.setText(Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"valueOfBitfield4\"));\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"isHalfApprovalRequired\")\n\t\t\t\t.equalsIgnoreCase(\"true\")) {\n\t\t\tchckbxApproveForHalf.setSelected(true);\n\t\t\ttxtApprovalAmount.setEnabled(false);\n\t\t} else {\n\t\t\tchckbxApproveForHalf.setSelected(false);\n\t\t\ttxtApprovalAmount.setEnabled(true);\n\t\t}\n\t\t\n\t\tlogger.debug(\"GUI configuration updated based on the FEP properties configured\");\n\t}", "private void update()\n {\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"UPDATE\");\n updateHumanPlayerMoney();\n updateListViewDoctorItems();\n updateListViewHospitalItems();\n updateListViewLogWindow();\n updateListViewComputerPlayer();\n load_figure();\n updateComputerPlayerMoney();\n }\n });\n }", "public void UI_Refresh ()\r\n\t{\r\n\t\tUI_RefreshSensorData ();\r\n\t\tUI_RefreshConnStatus ();\r\n\t}", "public static void updateStatusBar(){\n\t\tstatus.setText(\"Sensors: \"+Sensor.idToSensor.size()+(TurnController.getInstance().getCurrentTurn()!=null?\", Turn: \"+TurnController.getInstance().getCurrentTurn().turn:\"\"));\n\t}", "private void follow_updates() {\n new Thread() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(1000);\n GUI.setUps(upd_count);\n upd_count = 0;\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }", "private void updateUi() {\n this.tabDetail.setDisable(false);\n this.lblDisplayName.setText(this.currentChild.getDisplayName());\n this.lblPersonalId.setText(String.format(\"(%s)\", this.currentChild.getPersonalId()));\n this.lblPrice.setText(String.format(\"%.2f\", this.currentChild.getPrice()));\n this.lblAge.setText(String.valueOf(this.currentChild.getAge()));\n this.dtBirthDate.setValue(this.currentChild\n .getBirthDate()\n .toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate());\n this.lblWeight.setText(String.format(\"%.1f kg\", this.currentChild.getWeight()));\n this.sldWeight.setValue(this.currentChild.getWeight());\n this.checkboxTrueRace.setSelected(!this.currentChild.isRace());\n this.imgChildProfile.setImage(this.currentChild.getAvatar());\n if (this.currentChild.getGender().equals(GenderType.MALE)){\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/boy.png\"));\n this.lblSex.setText(\"Male\");\n }\n else {\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/girl.png\"));\n this.lblSex.setText(\"Female\");\n }\n if (this.currentChild.isVirginity()){\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/virgin.png\"));\n this.lblVirginity.setText(\"Virgin\");\n }\n else {\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/not-virgin.png\"));\n this.lblVirginity.setText(\"Not Virgin\");\n }\n\n // TODO [assignment2] nastavit obrazek/avatar ditete v karte detailu\n // TODO [assignment2] nastavit spravny obrazek pohlavi v karte detailu\n // TODO [assignment2] nastavit spravny obrazek virginity atribut v v karte detailu\n }", "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "public void refreshUI() {\n float f;\n float f2;\n float f3;\n this.mSpeedView.updateNetworkSpeed(this.mCurrentSpeed.get());\n float f4 = (float) this.mCurrentSpeed.get();\n if (f4 > 1.6777216E7f) {\n f = 1.0f;\n } else {\n if (f4 > 8388608.0f) {\n f2 = ((f4 - 8388608.0f) / 8388608.0f) * 0.2f;\n f3 = 0.8f;\n } else if (f4 > 4194304.0f) {\n f2 = ((f4 - 4194304.0f) / 4194304.0f) * 0.2f;\n f3 = 0.6f;\n } else if (f4 > 2097152.0f) {\n f2 = ((f4 - 2097152.0f) / 2097152.0f) * 0.2f;\n f3 = 0.4f;\n } else {\n f = f4 > M ? (((f4 - M) / M) * 0.2f) + 0.2f : (f4 / M) * 0.2f;\n }\n f = f2 + f3;\n }\n this.mDialView.setProgress(f);\n }", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public final void updateGUIFromPrefs() {\n try {\n angleStepSizeSpinner_.setValue(Double.parseDouble(prefs_.get(PrefUtils.ANGLESTEPSIZE, \"0.0\")));\n startAngleField_.setText(prefs_.get(PrefUtils.STARTANGLE, \"\"));\n doubleZeroCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.DOUBLEZERO, \"\")));\n saveImagesCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.ACQSAVEIMAGES, \"\")));\n acqdirRootField_.setText(prefs_.get(PrefUtils.ACQDIRROOT, \"\"));\n acqnamePrefixField_.setText(prefs_.get(PrefUtils.ACQNAMEPREFIX, \"\"));\n String channelGroup = core_.getChannelGroup();\n prefs_.put(PrefUtils.CHANNEL, channelGroup + \": \" + core_.getCurrentConfig(channelGroup));\n coeff3Field_.setText(PrefUtils.parseCal(3, prefs_, gui_));\n coeff2Field_.setText(PrefUtils.parseCal(2, prefs_, gui_));\n coeff1Field_.setText(PrefUtils.parseCal(1, prefs_, gui_));\n coeff0Field_.setText(PrefUtils.parseCal(0, prefs_, gui_));\n channelField_.setText(prefs_.get(PrefUtils.CHANNEL,\"\"));\n } catch (Exception ex) {\n Logger.getLogger(AcquisitionPanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n Document doc = Jsoup.parse(adsDetailText.getText());\n Elements adsText = doc.getElementsByTag(\"font\");\n String[] desSession = adsText.text().split(\" \");\n Double price = Double.valueOf(desSession[1]);\n String type = desSession[2];\n // write reward to local file\n// writeLeftCoin(Arith.add(leftToken,Double.valueOf(price)));\n String adsPaybackType;\n String testAdsAdress;\n String testApAdress;\n switch (type) {\n case \"积分\": {\n adsPaybackType = \"WatchAdvToken\";\n testAdsAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ffbb\";\n testApAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ff33\";\n // add token to green area\n changeGreenLabel(\"token\",\"ads\",price,true,false,\"看广告\");\n }\n break;\n case \"代币\": {\n adsPaybackType = \"WatchAdvCoin\";\n testAdsAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ffcc\";\n testApAdress = \"0xf439bf68fc695b4a62f9e3322c75229ba5a0ff44\";\n // add coin to green area\n changeGreenLabel(\"coin\",\"ads\",price,true,false,\"看广告\");\n }\n break;\n default:\n System.out.println(\"[ERROR] Unknown reward type!\");return;\n }\n adsDetailPane.setVisible(false);\n adsContainer.setVisible(true);\n // sync reward to blockchain\n new Thread(() -> {\n int tryout = 3;\n boolean isSuccess = false;\n while(tryout > 0) {\n try {\n ArrayList<String> syncCmd = new ArrayList<>();\n syncCmd.add(\"node\");\n syncCmd.add(rootPath.concat(\"/js_contact_chain/client.js\"));\n syncCmd.add(adsPaybackType);\n syncCmd.add(\"0x01c96e4d9be1f4aef473dc5dcf13d8bd1d4133cd\");\n syncCmd.add(\"e16a1130062b37f038b9df02f134d7ddd9009c54c62bd92d4ed42c0dba1189a8\");\n syncCmd.add(testAdsAdress);\n syncCmd.add(testApAdress);\n ProcessBuilder syncRewardPB = new ProcessBuilder(syncCmd);\n Process syncRewardPS = syncRewardPB.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(syncRewardPS.getInputStream()));\n String line;\n System.out.println(\"========== get reward by watching ads ==========\");\n while ((line = reader.readLine()) != null) {\n System.out.println(line);\n if (line.contains(\"status: true\")) {\n isSuccess = true;\n }\n }\n if (isSuccess) {\n break;\n }\n System.out.println(\"[ERROR] Transaction failed! Get payback failed!\");\n syncRewardPS.waitFor();\n sleep(500);\n } catch (IOException|InterruptedException ex) {\n System.out.println(ex.getMessage());\n }\n tryout--;\n }\n switch (type) {\n case \"积分\":\n changeGreenLabel(\"token\",\"ads\",-price,false,isSuccess,\"看广告\");\n break;\n case \"代币\":\n changeGreenLabel(\"coin\",\"ads\",-price,false,isSuccess,\"看广告\");\n break;\n default:\n System.out.println(\"[ERROR] Unknown advertisement type\");\n }\n }).start();\n }", "private void updatesForBuild78()\r\n {\r\n runningBuildNumber = \"78\";\r\n u78(\"mNetNetworkHistory\", \" \");\r\n u78(\"filteredCatcherPorts\", \" \");\r\n u78(\"connectToHistory\", \" \");\r\n u78(\"searchTermHistory\", \",\");\r\n }", "private void updateSimilarFrame() {\n\t\tint userSelect = list.getSelectedIndex();\n\t\tString userSelectStr = resultListRankedNames.get(userSelect);\n\t\tInteger frm = similarFrameMap.get(userSelectStr);\n\t\terrorsg = \" from frame \" + (frm + 1) + \" to frame \" + (frm + 151);\n\t\tThread initThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\terrorLabel.setText(errorsg);\n\t\t\t\tHashtable<Integer, JComponent> hashtable = new Hashtable<Integer, JComponent>();\n\t\t hashtable.put(frm + 1, new JLabel(\"↑\")); \n\t\t hashtable.put(frm + 151, new JLabel(\"↑\")); \n\t\t slider.setLabelTable(hashtable);\n\n//\t\t slider.setPaintTicks(true);\n\t\t slider.setPaintLabels(true);\n//\t\t System.out.println(slider.getLabelTable().toString());\n\t\t\t}\n\t\t};\n\t\tinitThread.start();\n\t}", "private synchronized void UI_RefreshConnStatus ()\r\n\t{\r\n\t\tTCPClient used=null;\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\tused=_roboCOM;\r\n\t\t}\r\n\t\tLog.e(TAG, \"Is conection Active ACCE : \" + isConnectionActive());\r\n\t\t\r\n\t\tif (!isConnecting())\r\n\t\t{\r\n\t\t\tif (old_conn_status==-2) return;\r\n\t\t\told_conn_status=-2;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (used!=null)\r\n\t\t{\r\n\t\t\tif (old_conn_status!=used.getConnStatus())\r\n\t\t\t{\r\n\t\t\t\told_conn_status=used.getConnStatus();\r\n\t\t\t\tLog.e(TAG,\"Connections Status ACCE : \" + used.getConnStatusStr());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void updateVideoCallDefaultSIM() {\n\t\tXlog.d(TAG,\"updateVideoCallDefaultSIM()+mVTCallSupport=\"+mVTCallSupport);\n\t\tif (iTelephony != null) {\n\n\t\t\ttry {\n\t\t\t\tint videocallSlotID = iTelephony.get3GCapabilitySIM();\n\t\t\t\tXlog.d(TAG,\"updateVideoCallDefaultSIM()---videocallSlotID=\"+videocallSlotID);\n\t\t\t\tGeminiUtils.m3GSlotID = videocallSlotID;\n\t\t\t\t\n\t\t\t\tif (videocallSlotID < 0)\n\t\t\t\t\treturn;\n\n\t\t\t\tSIMInfo siminfo = SIMInfo.getSIMInfoBySlot(getActivity(), videocallSlotID);\n\n\t\t\t\tif (siminfo != null) {\n\t\t\t\t\tInteger intIndex = mSimIdToIndexMap.get(siminfo.mSimId);\n\t\t\t\t\tXlog.d(TAG,\"updateVideoCallDefaultSIM()---intIndex=\"+intIndex);\n\t\t\t\t\tif (intIndex == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint index = intIndex.intValue();\n\t\t\t\t\tXlog.d(TAG,\"updateVideoCallDefaultSIM()---index=\"+index);\n\t\t\t\t\tif ((index >= 0) && (siminfo != null)) {\n\t\t\t\t\t if(mVTCallSupport){\n\t\t\t\t\t\tmVideoCallSimSetting.setInitValue(index);\n\t\t\t\t\t\tmVideoCallSimSetting.setSummary(siminfo.mDisplayName);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t if(mVTCallSupport){\n\t\t\t\t\t\tXlog.d(TAG,\"mVideoCallSimSetting.setInitValue(-1)\");\n\t\t\t\t\t\tmVideoCallSimSetting.setInitValue(-1);\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t} catch (RemoteException e){\n\t\t\t\tXlog.e(TAG, \"iTelephony exception\");\n\t\t\t\treturn;\n\t\t\t}\n\n\n\t\t}\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void run() {\n receivedTextView6.setText(str5);\n receivedTextView5.setText(str4);\n receivedTextView4.setText(str3);\n receivedTextView3.setText(str2);\n receivedTextView2.setText(str1);\n receivedTextView1.setText(str0);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tclient = new AuctioneerWindow();\n\t\t\t\tsure = client.getSure();\n\t\t\t\tip_text = client.getIp_text();\n\t\t\t\tcontent = client.getContent();\n\t\t\t\tsure.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\tIP = ip_text.getText();\n\t\t\t\t\t\tip_text.setEnabled(false);\n\t\t\t\t\t\tsure.setEnabled(false);\n\n\t\t\t\t\t\tcontent.append(\"获取IP成功\");\n\n\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tinitBroadCastClient();\n\t\t\t\t\t\t\t\t\tReceivePublicKey();\n\t\t\t\t\t\t\t\t\tReceiveEncryptPrice();\n\t\t\t\t\t\t\t\t\tgenerateEProduct();\n\t\t\t\t\t\t\t\t\tsendEProduct();\n\t\t\t\t\t\t\t\t\tGarbleCircuits();\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).start();\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}", "@Override\r\n\tpublic void update(Observable observable, Object data) {\n\t\tfinal int eventID = ((NotificationInfoObject) data).actionID;\r\n\r\n\t\tif ((nwrap.getApplicationState() == ApplicationState.IDLE) || (nwrap.getApplicationState() == ApplicationState.INST_SERVICE)) {\r\n\r\n\t\t\tswitch (eventID) {\r\n\t\t\tcase EventIDs.EVENT_INST_STARTED:\r\n\t\t\t\tLog.d(TAG, \"EVENT_INST_STARTED \");\r\n\t\t\t\tbroadcastIntent(\"org.droidtv.euinstallertc.CHANNEL_INSTALL_START\");\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase EventIDs.EVENT_INST_STOPPED:\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase EventIDs.EVENT_INST_COMPLETED:\r\n\t\t\t\tLog.d(TAG, \"EVENT_INST_COMPLETED \");\r\n\t\t\t\t// check if channels added /removed\r\n\t\t\t\tnwrap.commitDatabaseToTvProvider(false);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase EventIDs.EVENT_NETWORK_UPDATE_DETECTED:\r\n\t\t\t\tLog.d(TAG, \"EVENT_NETWORK_UPDATE_DETECTED \");\r\n\t\t\t\t// The Update dialog is only needed for UPC operator : CR AN-717\r\n\t\t\t\tLog.d(TAG, \"Current Operator\" + nwrap.getOperatorFromMW());\r\n\t\t\t\tif (nwrap.getOperatorFromMW() == NativeAPIEnums.Operators.UPC){\r\n\t\t\t\t\tLog.d(TAG, \"UPC operator or APMEAbackgroundNWupdateDVBT\\n\");\r\n\t\t\t\t\tif (mContext != null) {\r\n\t\t\t\t\t\t// unregister service from notification framework\r\n\t\t\t\t\t\tntf.unregisterForNotification(thisInstance);\r\n\t\t\t\t\t\tLog.d(TAG, \"service context not null\");\r\n\t\t\t\t\t\t// stop installation if in progress\r\n\t\t\t\t\t\t// nwrap.stopInstallation(false); instead of doing this\r\n\t\t\t\t\t\t// we\r\n\t\t\t\t\t\t// will call stop-restart api in nativeapiwrapper\r\n\t\t\t\t\t\tif (nwrap.ifNetworkChangeDetected() == false) { // AN-49771\r\n\t\t\t\t\t\t\tIntent l_intent = new Intent(mContext, NetworkUpdateDialogActivity.class);\r\n\t\t\t\t\t\t\tl_intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\t\t\t\tmContext.startActivity(l_intent);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tLog.d(TAG, \"User has already selected Later\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(nwrap.IsAPMEAbackgroundNWupdate() && (DVBTOrDVBC.DVBT == nwrap.getSelectedDVBTOrDVBCFromTVS())){\r\n\t\t\t\t\tLog.d(TAG,\"APMEA network update\");\r\n\t\t\t\t\t// requirement APMEA Smitha TF515PHIALLMTK01-17521\r\n\t\t\t\t\tif (nwrap.ifNetworkChangeDetected() == false) {\r\n\t\t\t\t\t\tnwrap.showTVNofification(mContext, mContext.getString(org.droidtv.ui.strings.R.string.MAIN_MSG_CHANNEL_UPDATE_NEEDED));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnwrap.networkChangeDetected(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t// for all other non UPC countries\r\n\t\t\t\t\tnwrap.networkChangeDetected(true);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_DIGIT_CH_FOUND:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_DIGIT_CH_FOUND\");\r\n\t\t\t\t// query mw for digital channel count\r\n\t\t\t\t// update digit channels count\r\n\t\t\t\tnwrap.getDigitalChannelCount();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_DIGIT_CH_ADDED:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_DIGIT_CH_ADDED\");\r\n\t\t\t\tnwrap.getDigitalChannelCount();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_DIGIT_CH_REMOVED:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_DIGIT_CH_REMOVED\");\r\n\t\t\t\tnwrap.getDigitalChannelsRemoved();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_MAJORVERSION_UPDATE:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_MAJORVERSION_UPDATE\");\r\n\t\t\t\tnwrap.setMajorVersion();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_NEWPRESETNUMBER:\r\n\t\t\t\tint presetNum = -1;\r\n\t\t\t\tString l_msg1 = (String) ((NotificationInfoObject) data).message; \r\n\t\t\t\tpresetNum = Integer.parseInt(l_msg1);\r\n presetAfterBackgroundUpdate = presetNum;\r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\tcase EventIDs.EVENT_COMMIT_FINISHED:\r\n\t\t\t\tnwrap.startLogoAssociation(nwrap.getSelectedDVBTOrDVBCFromTVS(), null);\r\n\t\t\t\tbroadcastIntent(\"org.droidtv.euinstallertc.CHANNEL_INSTALL_COMPLETE\");\r\n \tif (presetAfterBackgroundUpdate != -1) { \r\n\t\t\t\t nwrap.HandleTuneToLowestPreset (presetAfterBackgroundUpdate);\r\n }\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_TELENET_NAME_UPDATE:\r\n\t\t\t\tint presetNbr = -1, CABLE_MEDIUM = 1;\r\n\t\t\t\tString l_msg2 = (String) ((NotificationInfoObject) data).message; \r\n\t\t\t\tpresetNbr = Integer.parseInt(l_msg2);\r\n\t\t\t\t/* Currently this will happen only for Telenet */\r\n nwrap.SyncSingleChannelToDatabase (CABLE_MEDIUM, presetNbr);\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_TELENET_MAJOR_VERSION_UPDATE:\r\n\t\t\t\tnwrap.mUpdateDatabaseVersion(true);\r\n\t\t\t\tbroadcastIntent(\"org.droidtv.euinstallertc.CHANNEL_INSTALL_COMPLETE\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void send(Gui view) {\n view.update(this);\n }", "private void updateUI() {\n// if (mCurrentLocation != null) {\n// mLatitudeTextView.setText(String.valueOf(mCurrentLocation.getLatitude()));\n// mLongitudeTextView.setText(String.valueOf(mCurrentLocation.getLongitude()));\n// mLastUpdateTimeTextView.setText(mLastUpdateTime);\n// }\n }", "void updateState() {\n String[] players = client.getPlayers();\n System.out.println(Arrays.toString(players));\n\n if(oldPlayerNum != players.length){\n oldPlayerNum = players.length;\n updateComboBox();\n }\n\n playersListModel.clear();\n\n for (int i = 0; i < players.length; i++) {\n playersListModel.add(i, players[i]);\n }\n\n // SECOND check if player holding the ball / update GUI accordingly\n String[] playerBall = client.whoIsBall();\n boolean serverSideBall = Integer.parseInt(playerBall[1]) == client.getId();\n\n if (client.hasBall != serverSideBall) { // If the server says something different\n client.hasBall = serverSideBall;\n ballState(serverSideBall, playerBall[0]);\n }\n // THIRD if you are holding the ball update gui so that ball is throwable\n\n }", "public void updateUI()\n\t{\n\t\tif( isRunning() == false) \n\t\t{\n\t\t\tupdateButton(\"Run\");\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateTextView(Feedback.getMessage(Feedback.TYPE.NEW_TEST, null));\n\t\t}else\n\t\t{\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateButton( \"Stop\" );\n\t\t\tupdateTextView(\"Tests are running.\");\n\n\t\t}\n\t}", "private void updateUI() {\n handler_.post(new Runnable() {\n public void run() {\n bar_.setProgress(time_);\n String remTimeStr = \"\" + (maxTime_ - time_);\n timeRemaining_.setText(REM_STRING.replace(\"?\", remTimeStr));\n }\n });\n }", "public void update(){\n\t\tSystem.out.println(\"Return From Observer Pattern: \\n\" + theModel.getObserverState() \n\t\t+ \"\\n\");\n\t}" ]
[ "0.61092347", "0.60596395", "0.5911005", "0.5827604", "0.57633775", "0.5705396", "0.56983656", "0.5677321", "0.562981", "0.5586728", "0.5572326", "0.55684066", "0.5563913", "0.55203193", "0.55192804", "0.55187005", "0.5515929", "0.551491", "0.5505249", "0.55009204", "0.5496948", "0.5494932", "0.5468849", "0.54687274", "0.5462666", "0.5423824", "0.5420865", "0.5409415", "0.5404548", "0.54038596", "0.54034334", "0.53992975", "0.5398972", "0.5393535", "0.5392661", "0.5381464", "0.5375202", "0.5374239", "0.53703266", "0.53683716", "0.5366227", "0.5362415", "0.5358253", "0.53572947", "0.53559935", "0.53534424", "0.53493506", "0.5342001", "0.5336362", "0.5328166", "0.5327337", "0.5320218", "0.5307962", "0.530532", "0.53052557", "0.5302572", "0.528364", "0.52829665", "0.5280972", "0.52733034", "0.5264029", "0.5257314", "0.52541393", "0.52536625", "0.5243759", "0.5242273", "0.5240808", "0.52389", "0.52377963", "0.52316105", "0.523068", "0.5229895", "0.5226492", "0.5217032", "0.52120596", "0.5198214", "0.5197911", "0.51902384", "0.5189369", "0.5189171", "0.5186495", "0.5186214", "0.51804924", "0.5180333", "0.5174717", "0.5173153", "0.51706666", "0.5166645", "0.51642925", "0.51642925", "0.51642925", "0.51608586", "0.5153291", "0.5151197", "0.51448154", "0.5134823", "0.5131796", "0.51289886", "0.5127034", "0.51217145" ]
0.60928243
1
/ Helper Methods for Activity class. The inital query commands are split into two pieces now for individual expansion. This combined with the ability to cancel queries allows for a much better user experience, and also ensures that the user only waits to update the data that is relevant. dialog creation method, called by showDialog()
@Override protected Dialog onCreateDialog(int id) { if ((id == VM_RESPONSE_ERROR) || (id == VM_NOCHANGE_ERROR) || (id == VOICEMAIL_DIALOG_CONFIRM)) { AlertDialog.Builder b = new AlertDialog.Builder(this); int msgId; int titleId = R.string.error_updating_title; switch (id) { case VOICEMAIL_DIALOG_CONFIRM: msgId = R.string.vm_changed; titleId = R.string.voicemail; // Set Button 2 b.setNegativeButton(R.string.close_dialog, this); break; case VM_NOCHANGE_ERROR: // even though this is technically an error, // keep the title friendly. msgId = R.string.no_change; titleId = R.string.voicemail; // Set Button 2 b.setNegativeButton(R.string.close_dialog, this); break; case VM_RESPONSE_ERROR: msgId = R.string.vm_change_failed; // Set Button 1 b.setPositiveButton(R.string.close_dialog, this); break; default: msgId = R.string.exception_error; // Set Button 3, tells the activity that the error is // not recoverable on dialog exit. b.setNeutralButton(R.string.close_dialog, this); break; } b.setTitle(getText(titleId)); b.setMessage(getText(msgId)); b.setCancelable(false); AlertDialog dialog = b.create(); // make the dialog more obvious by bluring the background. dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); return dialog; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tthis.setContentView(R.layout.advance);\r\n\t\t\r\n\t\tButton cbtn = (Button) this.findViewById(R.id.cbtn);\r\n\t\t\r\n\t\tcbtn.setOnClickListener(new OnClickListener()\r\n\t\t{\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tDataHelper dataHelper = DataBaseContext.getInstance(getApplicationContext());\r\n\t\t\t\tdataHelper.initDB();\r\n\t\t\t\t\r\n\t\t\t\t//showDialog(TIME_ALERT_DIALOG_1);\r\n\t\t\t\t//Log.d(\"AdvancedInfoActivity\", \"clear button:\"+i);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tButton qbtn = (Button) this.findViewById(R.id.qbtn);\r\n\t\t\r\n\t\tqbtn.setOnClickListener(new OnClickListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\r\n/*\t\t\t\tDataHelper dataHelper = DataBaseContext.getInstance(getApplicationContext());\r\n\t\t\t\tdataHelper.testExists();\r\n\t\t\t\tList<ASDataObject> ObjList = dataHelper.getConfigList();\r\n\t\t\t\tfor(ASDataObject object : ObjList)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", object.getEmpCode());\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", object.getWorkDate());\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", object.getAP());\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", \"--------\");\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tshowDialog(TIME_ALERT_DIALOG_2);\r\n\t\t\t\t\r\n\t\t\t\tLog.d(\"AdvancedInfoActivity\", \"query data\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t/*Builder dialog = new AlertDialog.Builder(AdvancedInfoActivity.this);\r\n\t\t\r\n\t\tdialog.setIcon(android.R.drawable.btn_star);\r\n\t\tdialog.setSingleChoiceItems(items, checkedItem, listener)*/\r\n\t\t\r\n\t\tspinner = (Spinner) findViewById(R.id.Spinner01);\r\n\t\t\r\n\t\tadapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,m);\r\n\t\t\r\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n\t\t\r\n\t\tspinner.setAdapter(adapter);\r\n\t\tspinner.setVisibility(View.VISIBLE);\r\n\t}", "public Dialog onCreateDialogSingleChoice() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t// Source of the data in the DIalog\n\t\tfinal String[] arr = new String[] { \"Completed\", \"Pending\",\n\t\t\t\t\"In progress\", \"Cancelled\" };\n\n\t\tfinal List<String> str1 = new ArrayList<String>();\n\n\t\t// Set the dialog title\n\t\tbuilder.setTitle(\"UpdateStatus\")\n\t\t\t\t// Specify the list array, the items to be selected by default\n\t\t\t\t// (null for none),\n\t\t\t\t// and the listener through which to receive callbacks when\n\t\t\t\t// items are selected\n\t\t\t\t.setSingleChoiceItems(arr, 0,\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ which);\n\t\t\t\t\t\t\t\tfor (String str : arr) {\n\t\t\t\t\t\t\t\t\tif(which>=0){\n\t\t\t\t\t\t\t\t\tstr = arr[which];\n\t\t\t\t\t\t\t\t\tstr1.add(str);\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tstr = arr[2];\n\t\t\t\t\t\t\t\t\t\tstr1.add(str);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t\t// Set the action buttons\n\t\t\t\t.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos okay button\"\n\t\t\t\t\t\t\t\t\t\t+ id+\"STR! = \"+str1);\n\t\t\t\t\t\tif(id==-1){\n\t\t\t\t\t\t\tif(str1.size()>0){\n\t\t\t\t\t\tString str = str1.get(0);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tLog.d(Config.TAG, \"@@@@@@@@@@@@@@\"+str);\n\t\t\t\t\t\tnew UpdateStatus(str).execute();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tString str = \"Completed\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLog.d(Config.TAG, \"@@@@@@@@@@@@@@\"+str);\n\t\t\t\t\t\t\t\tnew UpdateStatus(str).execute();\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\t.setNegativeButton(\"Cancel\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tLog.d(Config.TAG,\n\t\t\t\t\t\t\t\t\t\t\"insdie onclick dialog interface which pos cancel button\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ id);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\treturn builder.create();\n\t}", "protected void startQuery() {\n final EditText editSearch = (EditText) findViewById(R.id.editTextSearchWord);\n final String searchWord = editSearch.getText().toString(); //EditText.getText() returns Editable\n //new DDGAsyncQuery(this).execute(searchWord);\n //DDGLoader implementation does not have a\n try {\n this.dialog = new ProgressDialog(this);\n this.dialog.setCancelable(true);\n this.dialog.setIndeterminate(true);\n this.dialog.setTitle(getText(R.string.queryStartedDialogTitle));\n this.dialog.setMessage(getText(R.string.queryStartedDialogText));\n this.dialog.show();\n } catch (Exception e) {\n Log.w(TAG, \"startQuery(): unable to show dialog\");\n }\n\n //Create the actual loader that will perform the query submission to remote server\n Bundle args = new Bundle(1);\n args.putString(DDGLoader.KEY_SEARCH_WORD, searchWord);\n /* Quirk in support library implementation of AsyncTaskLoader which baffled me before\n * requires this .forceLoad() method to actually start the loader. This should not be\n * necessary if using the API11+ framework implementation but I haven't tried it.\n * See http://stackoverflow.com/questions/10524667/android-asynctaskloader-doesnt-start-loadinbackground\n * Also, I found for this application .restartLoader makes sure it fetches new data for every\n * query; with .initLoader on subsequent queries it would return data from the previous query\n * seemingly without even accessing the network */\n getSupportLoaderManager().restartLoader(queryLoaderId, args, this).forceLoad();\n }", "private void initDialog() {\n }", "private void performNewQuery(){\n\n // update the label of the Activity\n setLabelForActivity();\n // reset the page number that is being used in queries\n pageNumberBeingQueried = 1;\n // clear the ArrayList of Movie objects\n cachedMovieData.clear();\n // notify our MovieAdapter about this\n movieAdapter.notifyDataSetChanged();\n // reset endless scroll listener when performing a new search\n recyclerViewScrollListener.resetState();\n\n /*\n * Loader call - case 3 of 3\n * We call loader methods as we have just performed reset of the data set\n * */\n // initiate a new query\n manageLoaders();\n\n }", "@Override\r\n \tprotected Dialog onCreateDialog(int id) {\n \t\tDialog dialog;\r\n \t\tswitch (id) {\r\n \t\t\tcase DIALOG_LOCATION_HISTORY:\r\n \t\t\t\t//logically, this cannot appear before the location layout is updated, so there is no \r\n \t\t\t\t//chance historyLayout can be null, except you are doing something wrong\r\n \t\t\t\tdialog = new Dialog(this);\r\n \t\t\t\tdialog.setTitle(\"Location History\");\r\n \t\t\t\tdialog.setContentView(detachedHistoryLayout);\r\n \t\t\t\treturn dialog;\r\n \t\t\t\t\r\n \t\t\tcase DIALOG_LOCATION:\r\n \t\t\t\tlocationLayout = (LinearLayout) getLayoutInflater().inflate\r\n \t\t\t\t\t\t\t(R.layout.manual_location_dialog, null);\r\n \t\t\t\tdetachedHistoryLayout = (LinearLayout) getLayoutInflater().inflate\r\n \t\t\t\t\t\t(R.layout.manual_location_history_dialog, null);\r\n \t\t\t\t\r\n \t\t\t\tfinal LinearLayout historyLayout = (LinearLayout) detachedHistoryLayout.findViewById(R.id.historyLayout); \r\n \t\t\t\t\r\n \t\t\t\tfinal TextView currentLocation = (TextView) locationLayout.findViewById(R.id.locationText);\r\n \t\t\t\tif (MyApplication.currentLocation != null)\r\n \t\t\t\t{\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\tcurrentLocation.setText(\"Your last updated location is \" + '\\n' + \r\n \t\t\t\t\t\t\t\tMyApplication.currentLocation.getString(\"name\") + \" within approx. \" \r\n \t\t\t\t\t\t\t\t+ MyApplication.currentLocation.getString(\"accuracy\"));\r\n \t\t\t\t\t} catch (JSONException e) {\r\n \t\t\t\t\t\te.printStackTrace();\r\n \t\t\t\t\t\tcurrentLocation.setText(\"Cannot get your current location.\");\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\tfinal RelativeLayout showHistoryLayout = (RelativeLayout) locationLayout.findViewById(R.id.showHistoryLayout);\r\n \t\t\t\tshowHistoryLayout.setOnClickListener(new OnClickListener() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic void onClick(View v) {\r\n \t\t\t\t\t\tshowDialog(Page.DIALOG_LOCATION_HISTORY);\r\n \t\t\t\t\t}\r\n \t\t\t\t});\r\n \t\t\t\t\r\n \t\t\t\tnew LocationListTask(null,Page.this, false, true).execute(historyLayout,currentLocation);\r\n \t\t\t\t\r\n \t\t\t\tRelativeLayout autoLocLayout = (RelativeLayout) locationLayout.findViewById(R.id.autoLocLayout);\r\n \t\t\t\tautoLocLayout.setOnClickListener(new OnClickListener() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic void onClick(View v) {\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\tLocationTracker.autoLoc = true;\r\n \t\t\t\t\t\t\tnew LocationListTask(null,Page.this, false, true).execute(historyLayout,currentLocation);\r\n \t\t\t\t\t\t} catch (Exception e) {\r\n \t\t\t\t\t\t\te.printStackTrace();\r\n \t\t\t\t\t\t\tToast.makeText(Page.this, \"Your new location cannot be updated. Please try again later\", \r\n \t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n \t\t\t\t\t\t} \r\n \t\t\t\t\t}\r\n \t\t\t\t});\r\n \t\t\t\t\r\n \t\t\t\tfinal EditText manualLocationField = (EditText) locationLayout.findViewById(R.id.manualLocationField);\r\n \t\t\t\tmanualLocationField.setOnKeyListener(new OnKeyListener() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\r\n \t\t\t\t\t\tif (event.getAction() == KeyEvent.ACTION_DOWN)\r\n \t\t\t\t\t\t{\r\n \t\t\t\t\t\t\tswitch (keyCode) {\r\n \t\t\t\t\t\t\tcase KeyEvent.KEYCODE_ENTER:\r\n \t\t\t\t\t\t\tcase KeyEvent.KEYCODE_DPAD_CENTER:\r\n \t\t\t\t\t\t\t\tLocationTracker.autoLoc = false;\r\n \t\t\t\t\t\t\t\tnew LocationListTask(manualLocationField.getText().toString(), Page.this, \r\n \t\t\t\t\t\t\t\t\t\t\tfalse, true).execute(historyLayout,currentLocation);\r\n \t\t\t\t\t\t\t\treturn true;\r\n \t\t\t\t\t\t\tdefault:\r\n \t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\treturn false;\r\n \t\t\t\t\t}\r\n \t\t\t\t});\r\n \t\t\t\t\r\n \t\t\t\tButton setLocation = (Button) locationLayout.findViewById(R.id.setLocationButton);\r\n \t\t\t\tsetLocation.setOnClickListener(new OnClickListener() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic void onClick(View v) {\r\n \t\t\t\t\t\tLocationTracker.autoLoc = false;\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\tnew LocationListTask(manualLocationField.getText().toString(), Page.this, \r\n \t\t\t\t\t\t\t\t\tfalse, true).execute(historyLayout,currentLocation);\r\n \t\t\t\t\t\t} catch (Exception e) {\r\n \t\t\t\t\t\t\tToast.makeText(Page.this, \"Your new location cannot be updated. Please try \" +\r\n \t\t\t\t\t\t\t\t\t\"again later\", Toast.LENGTH_SHORT).show();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t});\r\n \t\t\t\t\r\n \t\t\t\tdialog = new LocationDialog(this);\r\n \t\t\t\tdialog.setTitle(\"Update your location\");\r\n \t\t\t\tdialog.setContentView(locationLayout);\r\n \t\t\t\treturn dialog;\r\n \t\t\tdefault:\r\n \t\t\t\tbreak;\r\n \t\t}\r\n \t\treturn super.onCreateDialog(id);\r\n \t}", "@Override\n\t public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t \tString sTitle = \"Enter in your search criteria!\";\n\t \tString sSearchAgain = \"Search Again\"; \n\t \tString sGoHome = \"Go Home\"; \n\t \t\n\t \t//Create an Alert Dialog object via the Builder.\n\t \tAlertDialog.Builder oADB = new AlertDialog.Builder(getActivity());\n\n\t \t//Set the title of the AlertDialog\n\t \toADB.setTitle(sTitle);\n\t \t\n\t \t//Set the icon to the app icon.\n\t \toADB.setIcon(R.drawable.ic_launcher);\n\t \t\n\t \t//Create a listener associated with the Search Again click.\n\t \tDialogInterface.OnClickListener onClickSearchAgainListener = new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t//Close the dialog box itself when user clicks Search Again.\n\t \t\t@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }\n\t\t\t\t\n\t\t\t}; \n\t \t\n\t\t\t//Associate the setNegativeButton with the listener above.\n\t\t\toADB.setNegativeButton(sSearchAgain, onClickSearchAgainListener);\n\t\t\t\n\t \t//Create a listener associated with the Go Home click.\n\t \tDialogInterface.OnClickListener onClickGoHomeListener = new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t//Close the SearcActivity when user clicks Go Home.\n\t \t\t@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \t((SearchActivity)getActivity()).CloseSearchActivity(); \n }\n\t\t\t\t\n\t\t\t}; \n\t\t\t\n\t\t\t//Associate the setNegativeButton with the listener above.\n\t\t\toADB.setPositiveButton(sGoHome, onClickGoHomeListener);\n\n\t\t\t//Create the AlertDialog and return it.\n\t\t\treturn oADB.create();\n\t\t\t\n\t }", "public abstract void initDialog();", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}", "private void goOnQuery() {\n int end;\n for (end = mQueryTimes; end < SPEED_DIAL_MAX + 1 && TextUtils.isEmpty(mPrefNumState[end]); ++end) {\n // empty loop body\n }\n populateMatrixCursorEmpty(this, mMatrixCursor, mQueryTimes - 1, end - 1);\n Log.i(TAG, \"goOnQuery(), mQueryTimes = \" + mQueryTimes + \", end = \" + end);\n if (end > SPEED_DIAL_MAX) {\n Log.i(TAG, \"goOnQuery(), queryComplete in goOnQuery()\");\n mIsQueryContact = false;\n dismissProgressIndication();\n updatePreferences();\n showToastIfNecessary();\n mAdapter.changeCursor(mMatrixCursor);\n resumeDialog(); \n } else {\n mQueryTimes = end;\n Log.i(TAG, \"goOnQuery(), startQuery at mQueryTimes = \" + mQueryTimes);\n Log.i(TAG, \"goOnQuery(), number = \" + mPrefNumState[mQueryTimes]);\n Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri\n .encode(mPrefNumState[mQueryTimes]));\n Log.i(TAG, \"goOnQuery(), uri = \" + uri);\n mQueryHandler.startQuery(QUERY_TOKEN, null, uri, QUERY_PROJECTION, null, null, null);\n // Cursor testCursor = getContentResolver().query(uri,\n // QUERY_PROJECTION, null, null, null);\n }\n }", "protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.activity_data_list);\r\n\t list=(ListView)screenDialog.findViewById(R.id.list);\r\n\t ApplicationAdapter adapter = new ApplicationAdapter(this, apps);\r\n\t list.setAdapter(adapter);\r\n\t list.setOnItemClickListener(new OnItemClickListener(){\r\n\t \tpublic void onItemClick(AdapterView<?> parent, View view,int position, long id) {\r\n\t \t screenDialog.dismiss();\r\n\t \t screenDialog.cancel();\r\n\t \t\tIntent in=new Intent(getApplicationContext(),Jobdetail.class);\r\n\t \t Bundle extras = new Bundle();\r\n\t \t\textras.putString(\"name\", apps.get(position).getTitle());\r\n\t \t\textras.putString(\"descript\", apps.get(position).getDescript());\r\n\t \t extras.putLong(\"price\", apps.get(position).getPrice());\r\n\t \t extras.putInt(\"view\", apps.get(position).getView());\r\n\t \t extras.putDouble(\"latitude\", apps.get(position).getLatitude());\r\n\t \t extras.putDouble(\"longitude\",apps.get(position).getLongitude());\r\n\t \t in.putExtras(extras);\r\n\t \t startActivity(in); //เปิดหน้าใหม่*/\r\n\t \t }\r\n\t \t});\r\n\t }\r\n\t return screenDialog;\r\n\t }", "protected Dialog onCreateDialog(int id) {\r\n switch(id) {\r\n case PROGRESS_DIALOG:\r\n progressDialog = new ProgressDialog(Suggestions.this);\r\n progressDialog.setMessage(\"Loading. Please wait.\");\r\n progressThread = new ProgressThread(handler);\r\n progressThread.start();\r\n return progressDialog;\r\n default:\r\n return null;\r\n }\r\n }", "protected Dialog onCreateDialog (int id) {\n\t\tif (!this.hasWindowFocus())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tdismissDialog (DIALOG_CREATE);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tdismissDialog (DIALOG_SUBMIT);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tAlertDialog.Builder bld = new AlertDialog.Builder(this);\r\n\t\tswitch (id){\r\n\t\tcase DIALOG_CREATE: \r\n\t\t{bld.setMessage(\"More than one call needs to be reported. Your most recent call is first.\").setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\r\n\t\t{\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\tdialog.dismiss();\r\n\t\t}\r\n\t\t}).setTitle(\"New Record\");\r\n\t\tbreak;\r\n\t\t}\r\n\t\tcase DIALOG_SUBMIT:\r\n\t\t{\r\n\t\t\tbld.setMessage(\"Please submit your previous call record now.\").setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\r\n\t\t\t{\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}\r\n\t\t\t}).setTitle(\"Older Record\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t}\r\n\t\treturn bld.create();\r\n\t}", "@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\n\t\tIntent intent = getIntent();\n\t\tfinal DatabaseUtil mDatabaseUtil = new DatabaseUtil(this); \n\t\tfinal UiManager mUiManager = new UiManager(this);\n\t\t\n\t\tCustomDialog mCustomDialog = new CustomDialog(this);\n final CustomDialog customDialog = mCustomDialog;\n mCustomDialog = null;\n \n final ViewInfo viewInfo = new ViewInfo();\n\t\tviewInfo.panelNum = intent.getStringExtra(\"panelNum\");\n\t\tviewInfo.cellNum = intent.getStringExtra(\"cellNum\");\n\t\tviewInfo.viewId = \"shortcut\" + viewInfo.cellNum;\n\t\t\n customDialog.show();\n customDialog.setOnDismissListener(new OnDismissListener(){\n\n\t\t\tpublic void onDismiss(DialogInterface arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tTempActivity.this.finish();\n\t\t\t}\n });\n \n\t\tcustomDialog.setItemBackground(getResources().getDrawable(R.drawable.btn_default_normal_disable_focused));\n\t\t\n\t\tcustomDialog.loadingAllApp();\n\t\t\n\t\tcustomDialog.setOnSelectedItemsListener(new OnSelectedItemsListener(){\n\t\t\tpublic void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\tpublic void onSelectedItem(int position) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tviewInfo.intentUri = customDialog.mAppList.get(position).intentUri;\n\t\t\t\t\n\t\t\t\tviewInfo.icon = customDialog.mAppList.get(position).icon;\n\t\t\t\tviewInfo.label = customDialog.mAppList.get(position).label;\n\t\t\t\t\n\t\t\t\tmUiManager.addItemToPanel(null\n\t\t\t\t,viewInfo\n\t\t\t\t,mDatabaseUtil);\n\t\t\t}\n\t\t});\n\t}", "@Override\n public Dialog onCreateDialog(Bundle state) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n // Set the title\n builder.setTitle(R.string.new_location_title);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n // Pass null as the parent view because its going in the dialog layout\n view = inflater.inflate(R.layout.fire_report, null);\n builder.setView(view);\n\n populate();\n\n // Add a cancel button\n builder.setNegativeButton(R.string.close, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n Boolean checked = ((CheckBox) view.findViewById(R.id.checkExtinguished)).isChecked();\n if (fire.isExtinguished() != checked) {\n fire.setExtinguished(checked);\n if (!new Cloud(view.getContext()).updateExtinguishedToCloud(fire)) {\n fire.setExtinguished(!checked);\n view.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(view.getContext(), R.string.extinguished_failed, Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n }\n }).start();\n }\n });\n\n dlg = builder.create();\n\n return dlg;\n }", "String dialogQuery(String msg, String defaultValue, String optionValues[],\n int nOptions)\n { /* dialogQuery */\n this.sleepFlag= true;\t/* flag for waiting */\n this.data= defaultValue;\t/* save default */\n \n /* save the new list */\n this.optionValues= optionValues;\n this.nOptions= nOptions;\n \n updatePopupDialog(msg, defaultValue, optionValues,nOptions); /* do it */\n \n return(data);\t\t/* return string */\n }", "private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }", "private void openDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.allmark));\n\t\tfinal List<ReaderTags> listData = ReaderDataBase\n\t\t\t\t.getReaderDataBase(this);\n\t\tif (listData.size() > 0) {\n\t\t\tListView list = new ListView(this);\n\t\t\tfinal MTagAdapter myAdapter = new MTagAdapter(this, listData);\n\t\t\tlist.setAdapter(myAdapter);\n\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tJump(arg2, listData, myAdapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\tlist.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tdeleteOneDialog(arg2, listData, myAdapter);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuilder.setView(list);\n\t\t} else {\n\t\t\tTextView txt = new TextView(this);\n\t\t\ttxt.setText(getString(R.string.nomark));\n\t\t\ttxt.setPadding(10, 5, 0, 5);\n\t\t\ttxt.setTextSize(16f);\n\t\t\tbuilder.setView(txt);\n\t\t}\n\t\tbuilder.setNegativeButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n public void onClick(View v) {\n mQuery.setmDuration(VideoActivity.INTERVAL.toString());\n // added checks here so that it performs automatic checking of non-initilaization of query element\n\n if (CustomContentDialogClass.mScenery != null){\n mQuery.setmIsSceneryChecked(CustomContentDialogClass.mScenery.isChecked());\n Log.d(\"CREATEFRAG\",\"Scene check: \"+CustomContentDialogClass.mScenery.isChecked());\n }\n\n if (CustomContentDialogClass.mPeople != null){\n mQuery.setmIsPeopleChecked(CustomContentDialogClass.mPeople.isChecked());\n Log.d(\"CREATEFRAG\", \"People check: \" + CustomContentDialogClass.mPeople.isChecked());\n }\n\n if (CustomContentDialogClass.mSelfie != null){\n mQuery.setmIsSelfieClicked(CustomContentDialogClass.mSelfie.isChecked());\n Log.d(\"CREATEFRAG\", \"Selfie check: \" + CustomContentDialogClass.mSelfie.isChecked());\n }\n\n Long time_start = new Long(0);\n Long time_end = Calendar.getInstance().getTimeInMillis();\n try {\n Date date_start = new SimpleDateFormat(\"MM/dd/yy\", Locale.ENGLISH).parse(CustomDialogClass.mStartText.getText().toString());\n time_start = date_start.getTime();\n\n Date date_end = new SimpleDateFormat(\"MM/dd/yy\", Locale.ENGLISH).parse(CustomDialogClass.mEndText.getText().toString());\n time_end = date_end.getTime();\n }\n catch(Exception e)\n {\n\n }\n\n mQuery.setmStartDate(time_start);\n mQuery.setmEnddate(time_end);\n mQuery.setmRadius(MapsActivity.radius);\n\n\n if (MapsActivity.mPosition != null) {\n mQuery.setmLocation(new LatLng(MapsActivity.mPosition.latitude,\n MapsActivity.mPosition.longitude));\n Log.d(\"Creation fragemnt\", MapsActivity.mPosition.latitude + \"\");\n Log.d(\"Creation fragemnt\", MapsActivity.mPosition.longitude + \"\");\n }\n else\n {\n Log.d(\"CREATION FRAGMENT\", \"NO LOCATION SPECIFIED\" );\n }\n\n ArrayList<String> file_paths = mQueryController.HandleQuery(mQuery);\n\n Intent intent = new Intent(getActivity(),\n VideoActivity.class);\n\n intent.putStringArrayListExtra(IMAGES_FROM_QUERY,file_paths);\n\n startActivity(intent);\n }", "private Dialogs () {\r\n\t}", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\t\r\n\t\tcase R.id.bSQLUpdate:\r\n\t\t\tboolean did=true;\r\n\t\t\ttry{\r\n\t\t\t\tString name=sqlName.getText().toString();\r\n\t\t\t\tString detail=sqlDetail.getText().toString();\r\n\t\t\t\tString date=sqlDate.getText().toString();\r\n\t\t\t\tString location=sqlLocation.getText().toString();\r\n\t\t\t\tString year=sqlYear.getText().toString();\r\n\t\t\t\tString year1=sqlYear1.getText().toString();\r\n\t\t\t\tint a=name.length();\r\n\t\t\t\tint b=5/a;\r\n\t\t\t\ta=detail.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=date.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=location.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year1.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\t\r\n\t\t\t\tData entry=new Data(SQLexample.this);\r\n\t\t\tentry.open();\r\n\t\t\tentry.createEntry(name,detail,date,location,year,year1);\r\n\t\t\tentry.close();\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tdid=false;\r\n\t\t\t\t/*String error=e.toString();\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"Error\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(error);\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();*/\r\n\t\t\t\t\r\n\t\t\t}finally{\r\n\t\t\t\tif(did){\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"ok\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Data Entered Successfully\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();}\r\n\t\t\telse{\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"alert\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Fill all the fields**\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.bSQLopenView:\r\n\t\t\tIntent i=new Intent(SQLexample.this,SQLView.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t}", "@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\n\t\t\tpDialog = new Dialog_Progress();\n\t\t\tpDialog.show(getFragmentManager(), \"\");\n\n objects = new ArrayList<RowData_Program>();\n\t\t}", "private void showDialog() {\n\n dialogSort = new Dialog(new ContextThemeWrapper(PlaceListActivity.this, R.style.DialogSlideAnim));\n Window window = dialogSort.getWindow();\n dialogSort.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialogSort.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialogSort.getWindow().setGravity(Gravity.BOTTOM);\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n int screenWidth = (int) (metrics.widthPixels * 0.98);\n dialogSort.getWindow().setLayout(screenWidth, WindowManager.LayoutParams.WRAP_CONTENT);\n dialogSort.setContentView(R.layout.dialog_sort_by);\n final String[] selectFilter = new String[2];\n //Control Initialize\n final ImageView filter_age = (ImageView) dialogSort.findViewById(R.id.filter_age);\n final ImageView filter_busy = (ImageView) dialogSort.findViewById(R.id.filter_busy);\n final ImageView filter_not_busy = (ImageView) dialogSort.findViewById(R.id.filter_not_busy);\n final ImageView filter_males = (ImageView) dialogSort.findViewById(R.id.filter_males);\n final ImageView filter_females = (ImageView) dialogSort.findViewById(R.id.filter_females);\n final LinearLayout liner_age = (LinearLayout) dialogSort.findViewById(R.id.linear_age);\n final TextView btn_done = (TextView) dialogSort.findViewById(R.id.btn_done);\n liner_age.setVisibility(View.GONE); // by default spinner not visible\n\n // Click image\n filter_busy.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_busy.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"busy\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_not_busy.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_not_busy.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"notbusy\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_age.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_age.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"age\";\n liner_age.setVisibility(View.VISIBLE);\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_males.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_males.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"males\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_females.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_females.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"females\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n btn_done.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialogSort.dismiss();\n BlurBehind.getInstance().execute(PlaceListActivity.this, new OnBlurCompleteListener() {\n @Override\n public void onBlurComplete() {\n Intent intent = new Intent(PlaceListActivity.this, LoadingActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n\n startActivity(intent);\n }\n });\n }\n });\n //Age Spinner Initialize\n final AbstractWheel spinner_age = (AbstractWheel) dialogSort.findViewById(R.id.dialog_spinner_age);\n final NumericWheelAdapter numericWheelAdapter = new NumericWheelAdapter(this, 22, 40);\n numericWheelAdapter.setItemResource(R.layout.wheel_text_centered);\n numericWheelAdapter.setItemTextResource(R.id.text);\n spinner_age.setViewAdapter(numericWheelAdapter);\n OnWheelChangedListener wheelListener2 = new OnWheelChangedListener() {\n @TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n public void onChanged(AbstractWheel wheel, int oldValue, int newValue) {\n LinearLayout mItemsLayout = spinner_age.getItemsLayout();\n int visibleitem = wheel.getVisibleItems();\n if (newValue > oldValue) {\n for (int i = 0; i < mItemsLayout.getChildCount(); i++) {\n FrameLayout select_frame = (FrameLayout) mItemsLayout.getChildAt(i);\n TextView select_txt = (TextView) select_frame.getChildAt(0);\n if (i == (visibleitem / 2) + 1) {\n select_frame.setBackground(getResources().getDrawable(R.drawable.spinner_select_white));\n select_txt.setTextColor(Color.BLACK);\n } else {\n select_frame.setBackgroundColor(Color.TRANSPARENT);\n select_txt.setTextColor(Color.WHITE);\n }\n }\n }\n }\n };\n spinner_age.addChangingListener(wheelListener2);\n if (!dialogSort.isShowing())\n dialogSort.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder ab=new AlertDialog.Builder(getActivity());\n View v=getActivity().getLayoutInflater().inflate(R.layout.activity_task_list,null);\n ab.setView(v);\n\n mDbHelper = OpenHelperManager.getHelper(getActivity(), AvahanSqliteDbHelper.class);\n\n resou_list= v.findViewById(R.id.resourcelist);\n resource_subtask= v.findViewById(R.id.subtask);\n rv_resour_list= v.findViewById(R.id.rv_resourcelist);\n progress_Bar=v.findViewById(R.id.progressbar);\n sp_res_list= v.findViewById(R.id.sp_resourcelist);\n res_list_ok= v.findViewById(R.id.resourcelist_ok);\n res_list_cancel= v.findViewById(R.id.resourcelist_cancel);\n mdialog=ab.create();\n\n progress_Bar.getIndeterminateDrawable().setColorFilter(getResources().getColor(R.color.poym), PorterDuff.Mode.MULTIPLY);\n progress_Bar.setVisibility(View.VISIBLE);\n progress = new ProgressDialog(getActivity());\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.setMessage(\"Loading..\");\n progress.setIndeterminate(true);\n progress.setCancelable(false);\n progress.show();\n\n mremarks=new ArrayList<>();\n mtaskResourceLinkViewses=new ArrayList<>();\n Log.d(\"routeassignid\",\"\"+AppPreferences.getRouteAssignmentId(getActivity()));\n new FetchDetailsFromDbTask().execute();\n\n resource_subtask.setText(AppPreferences.getSubTaskType(getActivity())==null?\"\":AppPreferences.getSubTaskType(getActivity()));\n //TODO : resource code\n //networkRemarks();\n\n sp_res_list.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n if(i>0){\n remarkid = mremarklinks.get(sp_res_list.getSelectedItemPosition()-1).getDup_id();\n remarkname = mremarklinks.get(sp_res_list.getSelectedItemPosition()-1).getName();\n if(mtaskResourceLinkViewses.size()==0){\n remarkname=null;\n }\n }\n }\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n }\n });\n res_list_ok.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(remarkname!=null){\n for(TaskResourceLinkViews taskresourceslinkviews : mtaskResourceLinkViewses){\n if(taskresourceslinkviews.getActualofresources()!=null || taskresourceslinkviews.getResourceapproved()!=null){\n projectresources=new ProjectResources();\n long masterid = System.currentTimeMillis();\n AppPreferences.setResourceFlag(getActivity(),true);\n remarkname=null;\n Log.d(\"projectresource\",\"\"+mresources.size());\n if(mresources.size()<=0){\n projectresources.setId(masterid);\n projectresources.setDate(AppUtilities.getDateTime());\n projectresources.setRemarkid(remarkid);\n projectresources.setTaskid(taskresourceslinkviews.getTasktypeid());\n projectresources.setResourceid(taskresourceslinkviews.getResourcetypeid());\n projectresources.setRemarkdesc(remarkname);\n projectresources.setSubtasktypeid(AppPreferences.getSubTaskId(getActivity()));\n projectresources.setAreaid(AppPreferences.getSubTypeId(getActivity()));\n projectresources.setResourceqty(taskresourceslinkviews.getActualofresources());\n projectresources.setRouteassignid(AppPreferences.getRouteAssignmentId(getActivity()));\n projectresources.setRouteassignmentid(AppPreferences.getRouteAssignmentId(getActivity()));\n projectresources.setRouteassignmentsummaryid(AppPreferences.getRouteAssignmentSummaryId(getActivity()));\n projectresources.setTaskresourcelinkid(taskresourceslinkviews.getId());\n projectresources.setInsertFlag(true);\n //postprojectresources();\n try {\n RuntimeExceptionDao<ProjectResources, Integer> projectResourcesDao = mDbHelper.getProjectResourcesRuntimeDao();\n projectResourcesDao.create(projectresources);\n Log.d(\"projectresource\",\"post\");\n }catch (Exception e){\n e.printStackTrace();\n }\n mdialog.dismiss();\n } else if(mresources.size()>0){\n try {\n RuntimeExceptionDao<ProjectResources, Integer> projectResourcesDao = mDbHelper.getProjectResourcesRuntimeDao();\n UpdateBuilder<ProjectResources, Integer> updateBuilder = projectResourcesDao.updateBuilder();\n updateBuilder.where().eq(\"id\",taskresourceslinkviews.getProjectResourceId());\n updateBuilder.updateColumnValue(\"updateflag\",true);\n updateBuilder.updateColumnValue(\"date\",AppUtilities.getDateTime());\n updateBuilder.updateColumnValue(\"remarkid\",remarkid);\n updateBuilder.updateColumnValue(\"taskid\",taskresourceslinkviews.getTasktypeid());\n updateBuilder.updateColumnValue(\"resourceid\",taskresourceslinkviews.getResourcetypeid());\n updateBuilder.updateColumnValue(\"areaid\",AppPreferences.getSubTypeId(getActivity()));\n updateBuilder.updateColumnValue(\"remarkdesc\",remarkname);\n updateBuilder.updateColumnValue(\"subtasktypeid\",AppPreferences.getSubTaskId(getActivity()));\n updateBuilder.updateColumnValue(\"resourceqty\",taskresourceslinkviews.getActualofresources());\n updateBuilder.updateColumnValue(\"routeassignid\",AppPreferences.getRouteAssignmentId(getActivity()));\n updateBuilder.updateColumnValue(\"routeassignmentid\",AppPreferences.getRouteAssignmentId(getActivity()));\n updateBuilder.updateColumnValue(\"routeassignmentsummaryid\",AppPreferences.getRouteAssignmentSummaryId(getActivity()));\n updateBuilder.update();\n Log.d(\"projectresource\",\"update\");\n }catch (Exception e){\n e.printStackTrace();\n }\n mdialog.dismiss();\n }\n if(AppPreferences.getGroupId(getActivity())==14||AppPreferences.getGroupId(getActivity())==23||AppPreferences.getGroupId(getActivity())==41){\n //projectresources.setQatime(taskresourceslinkviews.getResourceapproved());\n //projectresources.setId(taskresourceslinkviews.getId());\n mdialog.dismiss();\n //putProjectResources();\n try {\n RuntimeExceptionDao<ProjectResources, Integer> projectResourcesDao = mDbHelper.getProjectResourcesRuntimeDao();\n UpdateBuilder<ProjectResources, Integer> updateBuilder = projectResourcesDao.updateBuilder();\n updateBuilder.where().eq(\"id\",taskresourceslinkviews.getId());\n updateBuilder.updateColumnValue(\"updateflag\",true);\n updateBuilder.updateColumnValue(\"qatime\",taskresourceslinkviews.getResourceapproved());\n updateBuilder.update();\n Log.d(\"projectresource\",\"update\");\n }catch (Exception e){\n e.printStackTrace();\n }\n }else if(AppPreferences.getGroupId(getActivity())==39){\n mdialog.dismiss();\n }\n }\n }\n }else{\n //Toast.makeText(ProjectMonitorActivity.this, \"Plz Select Remark\", Toast.LENGTH_SHORT).show();\n new AlertDialog.Builder(getActivity())\n .setTitle(\"Are you sure to close Resources.?\").setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n AppPreferences.setResourceFlag(getActivity(),true);\n mdialog.dismiss();\n }\n }).setNegativeButton(R.string.cancel,null).create().show();\n }\n }\n });\n res_list_cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mdialog.dismiss();\n }\n });\n return mdialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(device.getName())\n \t\t.setTitle(R.string.bt_exchange_dialog_title)\n .setPositiveButton(R.string.bt_exchange_dialog_positive_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n \t //Add BT Device Activity\n \t performBTKeyExchange(device);\n }\n })\n .setNegativeButton(R.string.bt_exchange_dialog_negative_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n \t dismiss();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\n\t\t// get data from arguments\n\t\tBundle bundle = getArguments();\n\t\tString[] ids = bundle.getStringArray(\"ids\");\n\t\tString[] names = bundle.getStringArray(\"names\");\n\t\tboolean dismiss = bundle.getBoolean(\"dismiss\");\n\t\t\n\t\tif(ids.length!=names.length) return null;\n\t\t\n\t\tPopUpRow[] rows = new PopUpRow[ids.length];\n\t\tfor(int i=0; i<ids.length; i++) {\n\t\t\trows[i] = new PopUpRow(ids[i], names[i]);\n\t\t}\n\t\t\n\t\tPopUpAdapter adapter = new PopUpAdapter(this.getActivity(), R.layout.fragment_dialog, rows);\n\t\t\n\t\t// format and build and return the dialog\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder( getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_DARK);\n\t\tbuilder.setTitle(\"PROXIMITY UPDATE\");\n\t\tbuilder.setNeutralButton(\"DISMISS\",\n\t\t\t\t(new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\tprivate boolean closeActivity;\n\t\t\t\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tbuttonSelected(closeActivity);\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic boolean getCloseActivity() {\n\t\t\t\t\t\treturn closeActivity;\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic DialogInterface.OnClickListener setCloseActivity(boolean closeActivity) {\n\t\t\t\t\t\tthis.closeActivity = closeActivity;\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t}).setCloseActivity(dismiss));\n\t\t\n\t\tbuilder.setAdapter(adapter, new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tLog.d(TAG, dialog.toString()+\" ::: \"+which); // TODO make useful\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tdialog = builder.create();\n\t\treturn dialog;\n\t}", "private void initializeUserInput(final String operation) {\n\n mDialogUserInput = new Dialog(this);\n mDialogUserInput.getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n LayoutInflater inflaterUser = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n mDialogUserInput.setContentView(inflaterUser.inflate(R.layout.dialog_user_input, null));\n mDialogUserInput.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n\n mEditTextUserInput = mDialogUserInput.findViewById(R.id.user_input_tv);\n mEditTextUserInputTitle = mDialogUserInput.findViewById(R.id.user_input_title_tv);\n TextView mTextViewOk = mDialogUserInput.findViewById(R.id.profile_ok);\n\n if (operation.equals(Constants.UPDATE_API)) {\n mEditTextUserInputTitle.setHint(getResources().getString(R.string.enter_title));\n } else if (operation.equals(Constants.CREATE_API)) {\n mEditTextUserInputTitle.setHint(getResources().getString(R.string.enter_extension));\n }\n\n if (operation.equals(Constants.UPDATE_API) || operation.equals(Constants.CREATE_API)) {\n mEditTextUserInputTitle.setVisibility(View.VISIBLE);\n } else {\n mEditTextUserInputTitle.setVisibility(View.GONE);\n }\n\n mTextViewOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n mDialogUserInput.dismiss();\n dialog.setMessage(\"Calling \" + operation + \" API.\");\n dialog.show();\n\n switch (operation) {\n case Constants.CREATE_API:\n if (!mEditTextUserInput.getText().toString().isEmpty() || !mEditTextUserInputTitle.getText().toString().isEmpty()) {\n\n Map<String, String> version = new HashMap<>();\n version.put(CreateVersionParams.CROPPING, CroppingParams.C_FIT);\n\n mPublitio.versions().createVersion(mEditTextUserInput.getText().toString(), mEditTextUserInputTitle.getText().toString(), version, new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.extension_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.LIST_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n\n Map<String, String> list = new HashMap<>();\n list.put(VersionsListParams.ORDER, OrderParams.NAME_ASC);\n\n mPublitio.versions().versionsList(mEditTextUserInput.getText().toString(), list, new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.provide_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.SHOW_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n\n mPublitio.versions().showVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n break;\n\n case Constants.UPDATE_API:\n\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().updateVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n case Constants.DELETE_API:\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().deleteVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n case Constants.RECONVERT_API:\n\n if (!mEditTextUserInput.getText().toString().isEmpty()) {\n mPublitio.versions().reconvertVersion(mEditTextUserInput.getText().toString(), new PublitioCallback<JsonObject>() {\n @Override\n public void success(JsonObject result) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(result.toString());\n dialog.dismiss();\n }\n\n @Override\n public void failure(String message) {\n mTextViewResponse.setText(\"\");\n mTextViewResponse.setText(message);\n dialog.dismiss();\n }\n });\n } else {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n Toast.makeText(VersionsActivity.this, R.string.version_id, Toast.LENGTH_LONG).show();\n }\n\n break;\n\n }\n }\n });\n\n mDialogUserInput.show();\n }", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "@Override\n public Dialog onCreateDialog(Bundle bundle) {\n AlertDialog.Builder builder =\n new AlertDialog.Builder(getActivity());\n builder.setMessage(\n getString(R.string.results,\n totalSuposicoes,\n (1000 / (double) totalSuposicoes)));\n\n // \"Resetar Questão\" Button\n builder.setPositiveButton(R.string.reset_quiz,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n resetQuiz();\n }\n }\n );\n\n return builder.create(); // retorna o AlertDialog\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "private void dialogBuilder(String title, String message, String displayText, final int mode) {\n final AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(title);\n dialog.setMessage(message);\n final EditText editText = new EditText(this);\n editText.setText(displayText);\n dialog.setView(editText);\n dialog.setPositiveButton(\"Update\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String string = editText.getText().toString().trim();\n if (!string.isEmpty()) {\n switch (mode) {\n case nameUpdate:\n updateShopInDatabase(\"shopName\", string);\n break;\n case phoneUpdate:\n updateShopInDatabase(\"shopNumber\", string);\n break;\n case addressUpdate:\n updateShopInDatabase(\"shopAddress\", string);\n break;\n case descriptionUpdate:\n updateShopInDatabase(\"shopDescription\", string);\n break;\n case aboutUpdate:\n updateShopInDatabase(\"shopAbout\", string);\n break;\n }\n } else\n Toast.makeText(getApplicationContext(), \"Field cannot be empty\", Toast.LENGTH_SHORT).show();\n }\n });\n dialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n dialog.create();\n dialog.show();\n\n }", "protected void onPreExecute() {\n this.dialog.setMessage(\"Refreshing data...\");\n this.dialog.show();\n }", "@Override\r\n\tprotected Dialog onCreateDialog(int id) {\n\t\tswitch (id) {\r\n case DIALOG_SELF:\r\n \treturn new AlertDialog.Builder(PhotoImagePagerActivity.this, AlertDialog.THEME_HOLO_LIGHT)\r\n .setTitle(\"选项\")\r\n .setItems(R.array.dialog_self, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n \tif (which == 0)\r\n \t{\r\n \t\t// 设置活动封面\r\n \t\tMap<String, String> params = new HashMap<String, String>();\r\n \t\tparams.put(\"event_id\", String.valueOf(event_id));\r\n \t\tparams.put(\"event_pic_width\", String.valueOf(UDisplayWidth.getPosterPicWidth(PhotoImagePagerActivity.this)));\r\n \t\tparams.put(\"pic_id\", String.valueOf(pic_id));\r\n \t\t\r\n \t\tmDataLoader.postData(UConstants.SETTING_PIC_URL, params, PhotoImagePagerActivity.this, new HDataListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFinish(String source) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tGson gson = new Gson();\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tTempModel mTempModel = gson.fromJson(source, new TypeToken<TempModel>(){}.getType());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (mTempModel != null)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, mTempModel.message, Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\t\tDDBOpenHelper mDdbOpenHelper = DDBOpenHelper.getInstance(PhotoImagePagerActivity.this);\r\n\t\t\t\t\t\t\t\t\t\tmDdbOpenHelper.updateLocalEventModel(mTempModel.event);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, \"数据解析出错\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t} catch (JsonSyntaxException e) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, \"数据解析出错\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, \"服务器错误\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n \t}\r\n \telse if (which == 1)\r\n \t{\r\n \t\t// 设置删除图片\r\n \t\tMap<String, String> params = new HashMap<String, String>();\r\n \t\tparams.put(\"pic_id\", String.valueOf(pic_id));\r\n \t\tparams.put(\"method\", \"delete\");\r\n \t\t\r\n \t\tmDataLoader.postData(UConstants.DELETE_PIC_URL, params, PhotoImagePagerActivity.this, new HDataListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFinish(String source) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n \t}\r\n \telse if (which == 2)\r\n \t{\r\n \t\t// 保存图片到本地\r\n \t\tmFinalBitmap.display(downloadImageView, big_pic_url);\r\n \t}\r\n }\r\n })\r\n .create();\r\n case DIALOG_OTHER:\r\n \treturn new AlertDialog.Builder(PhotoImagePagerActivity.this, AlertDialog.THEME_HOLO_LIGHT)\r\n .setTitle(\"选项\")\r\n .setItems(R.array.dialog_other, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n \tif (which == 0)\r\n \t{\r\n \t\tmFinalBitmap.display(downloadImageView, big_pic_url);\r\n \t}\r\n }\r\n })\r\n .create();\r\n }\r\n return null;\r\n\t}", "protected void onPreExecute() {\n\n this.dialog.setMessage(\"Refreshing data...\");\n this.dialog.show();\n }", "protected void onPreExecute() {\n\n this.dialog.setMessage(\"Refreshing data...\");\n this.dialog.show();\n }", "protected void onPreExecute() {\n\n this.dialog.setMessage(\"Refreshing data...\");\n this.dialog.show();\n }", "public StandardDialog() {\n super();\n init();\n }", "private void cleanUpDialog() {\n\t\tfinal Dialog dialog = new Dialog(this);\n\n\t\t// inflate the layout, this is important otherwise spinner throws\n\t\t// null pointer exception\n\t\tLayoutInflater inflater = (LayoutInflater) this\n\t\t\t\t.getSystemService(LAYOUT_INFLATER_SERVICE);\n\n\t\tView layout = inflater.inflate(R.layout.dlg_delete_homework_options,\n\t\t\t\tnull);\n\n\t\tdialog.setContentView(layout);\n\t\tdialog.setTitle(R.string.dlg_delete_options);\n\t\tdialog.setCancelable(true);\n\t\tdialog.getWindow().setBackgroundDrawableResource(R.drawable.gradient_dialog_bg);\n\n\t\t// set up the what spinner\n\t\tfinal Spinner whatSpinner = (Spinner) dialog\n\t\t\t\t.findViewById(R.id.spn_delete_what);\n\n\t\tfinal String[] whatDisplay = new String[] {\n\t\t\t\tgetResources().getString(R.string.dlg_delete_option_completed),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_option_by_subject),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_option_all) };\n\n\t\tArrayAdapter<String> whatAdapter = new ArrayAdapter<String>(this,\n\t\t\t\tandroid.R.layout.simple_spinner_item, whatDisplay);\n\t\twhatAdapter\n\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n\t\twhatSpinner.setAdapter(whatAdapter);\n\t\t\n\t\t// set up the subject spinner\n\t\tfinal Spinner subjectSpinner = (Spinner) dialog\n\t\t\t\t.findViewById(R.id.spn_delete_by_subject);\n\n\t\t// create the array adapter for it\n\t\tfinal SubjectArrayList subjectEntries = db.getArrayOfSubjects(this);\n\n\t\tfinal String[] subjectDisplay = subjectEntries.getStringsOfHomework();\n\n\t\tArrayAdapter<String> subjectAdapter = new ArrayAdapter<String>(this,\n\t\t\t\tandroid.R.layout.simple_spinner_item, subjectDisplay);\n\t\tsubjectAdapter\n\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n\t\tsubjectSpinner.setAdapter(subjectAdapter);\n\n\t\t// set up the when spinner\n\t\tfinal Spinner whenSpinner = (Spinner) dialog\n\t\t\t\t.findViewById(R.id.spn_delete_when);\n\n\t\tfinal String[] whenDisplay = new String[] {\n\t\t\t\tgetResources().getString(R.string.dlg_delete_time_1),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_time_2),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_time_3),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_time_4),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_time_5),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_time_6),\n\t\t\t\tgetResources().getString(R.string.dlg_delete_time_7) };\n\n\t\tArrayAdapter<String> whenAdapter = new ArrayAdapter<String>(this,\n\t\t\t\tandroid.R.layout.simple_spinner_item, whenDisplay);\n\t\twhenAdapter\n\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n\t\twhenSpinner.setAdapter(whenAdapter);\n\n\t\t// show or hide the subject options\n\t\twhatSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\t// show the subject spinner if selected\n\t\t\t\tif (position == 1) {\n\t\t\t\t\t// show it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// hide it\n\t\t\t\t\tsubjectSpinner.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set up the buttons\n\t\t// set up cancel button\n\t\tfinal Button buttonCancel = (Button) dialog\n\t\t\t\t.findViewById(R.id.btn_delete_cancel);\n\n\t\t// when cancelled, dismiss the dialog\n\t\tbuttonCancel.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\n\t\t// set up confirm button\n\t\tfinal Button buttonDelete = (Button) dialog\n\t\t\t\t.findViewById(R.id.btn_delete_confirm);\n\n\t\t// delete accordingly\n\t\tbuttonDelete.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// pass the spinner settings to a delete method and dismiss dialog\n\t\t\t\tint subjectDatabaseID = subjectEntries.getSubjectAtListPosition(subjectSpinner.getSelectedItemPosition()).getDatabaseID();\n\t\t\t\t\n\t\t\t\tdeleteSelection(\n\t\t\t\t\t\twhatSpinner.getSelectedItemPosition(),\n\t\t\t\t\t\tsubjectDatabaseID,\n\t\t\t\t\t\twhenSpinner.getSelectedItemPosition());\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\n\t\tdialog.show();\n\n\t}", "public void gatherData(View v) {\n\tfinal Dialog dialog = new Dialog(this);\n\tdialog.setContentView(R.layout.dialog_data);\n\tdialog.setTitle(\"Patient Data Input\");\n\n\tfinal DatePicker datePicker = (DatePicker) dialog\n\t\t.findViewById(R.id.datePicker1);\n\tdatePicker.init(Calendar.getInstance().get(Calendar.YEAR), Calendar\n\t\t.getInstance().get(Calendar.MONTH),\n\t\tCalendar.getInstance().get(Calendar.DAY_OF_MONTH), null);\n\n\tButton dialogButton = (Button) dialog.findViewById(R.id.done_button);\n\tdialogButton.setOnClickListener(new OnClickListener() {\n\t @Override\n\t public void onClick(View v) {\n\t\tif (((EditText) dialog.findViewById(R.id.patient_name_field))\n\t\t\t.getText().toString() == null\n\t\t\t& ((EditText) dialog.findViewById(R.id.heathcard_field))\n\t\t\t\t.getText().toString() == null) {\n\t\t ((EditText) dialog.findViewById(R.id.patient_name_field))\n\t\t\t .setHint(\"Name missing\");\n\t\t ((EditText) dialog.findViewById(R.id.heathcard_field))\n\t\t\t .setHint(\"Health card number missing\");\n\t\t personalData = null;\n\t\t} else {\n\t\t Date date;\n\t\t try {\n\t\t\tdate = new SimpleDateFormat(\"yyyy-MM-dd\",\n\t\t\t\tLocale.ENGLISH).parse(datePicker.getYear()\n\t\t\t\t+ \"-\" + datePicker.getMonth() + \"-\"\n\t\t\t\t+ datePicker.getDayOfMonth());\n\t\t\tpersonalData = new Data(((EditText) dialog\n\t\t\t\t.findViewById(R.id.patient_name_field))\n\t\t\t\t.getText().toString(), date, ((EditText) dialog\n\t\t\t\t.findViewById(R.id.heathcard_field)).getText()\n\t\t\t\t.toString());\n\t\t } catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t }\n\n\t\t}\n\t\tdialog.dismiss();\n\t }\n\t});\n\tdialog.show();\n\n }", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n fragment=this;\n View dialogView = inflater.inflate(R.layout.travel_search_dialog,null);\n builder.setView(dialogView);\n\n dialog = builder.create();\n //finding edittext box for user to enter travel search term\n searchTerm = (EditText) dialogView.findViewById(R.id.travel_search_term);\n\n //set up search button\n searchButton= (Button) dialogView.findViewById(R.id.search_button);\n searchButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n //ensure user has entered text into field\n if (searchTerm.getText().length() > 0) {\n String searchWord =searchTerm.getText().toString().replace(\" \", \"%20\");\n MainActivity.searchTerm = searchWord;\n new PhotoSearch(fragment).execute(MainActivity.searchTerm);\n\n } else\n Toast.makeText(getContext(), \"Enter a travel search term.\", Toast.LENGTH_SHORT).show();\n }\n });\n\n return dialog;\n\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n //use the builder class for convenient dialog construction\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n //get the layout inflater\r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n View rootView = inflater.inflate(R.layout.dialog_room, null);\r\n mRoomNumber = rootView.findViewById(R.id.roomNumberEditText);\r\n mAllergy = rootView.findViewById(R.id.allergyEditText);\r\n mPlateType = rootView.findViewById(R.id.plateTypeEditText);\r\n mChemicalDiet = rootView.findViewById(R.id.chemicalDietEditText);\r\n mTextureDiet = rootView.findViewById(R.id.textureDietEditText);\r\n mLiquidDiet = rootView.findViewById(R.id.liquidDietEditText);\r\n mLikes = rootView.findViewById(R.id.likesEditText);\r\n mDislikes = rootView.findViewById(R.id.dislikesEditText);\r\n mNotes = rootView.findViewById(R.id.notesEditText);\r\n mMeal = rootView.findViewById(R.id.mealEditText);\r\n mDessert = rootView.findViewById(R.id.dessertEditText);\r\n mBeverage = rootView.findViewById(R.id.beverageEditText);\r\n\r\n mBeverage.setOnEditorActionListener(new TextView.OnEditorActionListener() {\r\n @Override\r\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\r\n if (i == EditorInfo.IME_ACTION_DONE || keyEvent.getAction() == KeyEvent.ACTION_DOWN){\r\n addRoom();\r\n }\r\n return true;\r\n }\r\n });\r\n\r\n //inflate and set the layout for the dialog\r\n //pass null as the parent view cause its going in the dialog layout.\r\n builder.setView(rootView).setPositiveButton(R.string.button_done, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n addRoom();\r\n }\r\n });\r\n\r\n return builder.create();\r\n }", "private void nextLevelQuery(){\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(\"Warning! Insane Whack-A-Mole Incoming!\");\n dialog.setMessage(\"Would you like to advance to advanced mode?\");\n dialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n nextLevel();\n Log.v(TAG, \"User accepts!\");\n }\n });\n dialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Log.v(TAG, \"User decline!\");\n }\n });\n AlertDialog alertBox = dialog.create();\n alertBox.show();\n Log.v(TAG, \"Advance option given to user!\");\n }", "private void queryAllMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\t//get value from combo boxes into Values\n\t\tsetValue1(getTopics1().getSelectedItem().toString());\t\n\t\tsetValue2(getTopics2().getSelectedItem().toString());\n\t\t\n\t\t//load user values into query1 by calling CrimeQuery and passing the values\n\t\tsetQuery1(new CrimeQuery(getValue1(),getValue2()));\n\t\t\n\t\t//get the table from QueryAll from CrimeQuery class\n\t\tJTable table=getQuery1().QueryAll();\n\t\t\n\t\t//add table with new options\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\n\t\tgetPanel1().add(scrolltable);\n\t\t\n\t\tgetPanel1().add(getButton2());\n\t\tgetPanel1().add(getButton5());\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton6());\n\t\tgetButton3().setBounds(100,10,230,60);\n\t\tgetButton6().setBounds(100,215,230,60);\n\t\tgetButton5().setBounds(100,315,230,60);\n\t\tgetButton2().setBounds(100,410,230,60);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@android.support.annotation.NonNull\n public android.app.Dialog onCreateDialog(android.os.Bundle r12) {\n /*\n r11 = this;\n r10 = 2;\n r9 = 1;\n r8 = 0;\n r1 = com.whatsapp.DialogToastActivity.f;\n r0 = com.whatsapp.App.as;\n r2 = r11.getArguments();\n r3 = z;\n r3 = r3[r9];\n r2 = r2.getString(r3);\n r0 = r0.b(r2);\n r2 = r11.getContext();\n r2 = r0.a(r2);\n r3 = r11.getArguments();\n r4 = z;\n r4 = r4[r8];\n r3 = r3.getParcelableArrayList(r4);\n r4 = r0.m();\n if (r4 != 0) goto L_0x0037;\n L_0x0031:\n r0 = r0.c();\n if (r0 == 0) goto L_0x0079;\n L_0x0037:\n r0 = r3.get(r8);\n r0 = (android.net.Uri) r0;\n r0 = a(r0);\n r4 = r3.size();\n if (r4 != r9) goto L_0x005c;\n L_0x0047:\n r4 = android.text.TextUtils.isEmpty(r0);\n if (r4 != 0) goto L_0x005c;\n L_0x004d:\n r4 = 2131231276; // 0x7f08022c float:1.8078628E38 double:1.052968157E-314;\n r5 = new java.lang.Object[r10];\n r5[r8] = r0;\n r5[r9] = r2;\n r0 = r11.getString(r4, r5);\n if (r1 == 0) goto L_0x0077;\n L_0x005c:\n r0 = com.whatsapp.App.az;\n r4 = 2131296277; // 0x7f090015 float:1.8210466E38 double:1.0530002716E-314;\n r5 = r3.size();\n r6 = new java.lang.Object[r10];\n r7 = r3.size();\n r7 = java.lang.Integer.valueOf(r7);\n r6[r8] = r7;\n r6[r9] = r2;\n r0 = r0.a(r4, r5, r6);\n L_0x0077:\n if (r1 == 0) goto L_0x00b9;\n L_0x0079:\n r0 = r3.get(r8);\n r0 = (android.net.Uri) r0;\n r0 = a(r0);\n r4 = r3.size();\n if (r4 != r9) goto L_0x009e;\n L_0x0089:\n r4 = android.text.TextUtils.isEmpty(r0);\n if (r4 != 0) goto L_0x009e;\n L_0x008f:\n r4 = 2131230935; // 0x7f0800d7 float:1.8077937E38 double:1.0529679883E-314;\n r5 = new java.lang.Object[r10];\n r5[r8] = r0;\n r5[r9] = r2;\n r0 = r11.getString(r4, r5);\n if (r1 == 0) goto L_0x00b9;\n L_0x009e:\n r0 = com.whatsapp.App.az;\n r1 = 2131296266; // 0x7f09000a float:1.8210444E38 double:1.053000266E-314;\n r4 = r3.size();\n r5 = new java.lang.Object[r10];\n r6 = r3.size();\n r6 = java.lang.Integer.valueOf(r6);\n r5[r8] = r6;\n r5[r9] = r2;\n r0 = r0.a(r1, r4, r5);\n L_0x00b9:\n r1 = new android.support.v7.app.AlertDialog$Builder;\n r2 = r11.getActivity();\n r1.<init>(r2);\n r2 = r11.getContext();\n r0 = com.whatsapp.a28.b(r0, r2);\n r0 = r1.setMessage(r0);\n r1 = 2131231861; // 0x7f080475 float:1.8079815E38 double:1.052968446E-314;\n r2 = new com.whatsapp.aec;\n r2.<init>(r11, r3);\n r0 = r0.setPositiveButton(r1, r2);\n r1 = 2131230884; // 0x7f0800a4 float:1.8077833E38 double:1.052967963E-314;\n r2 = 0;\n r0 = r0.setNegativeButton(r1, r2);\n r0 = r0.create();\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.DocumentPickerActivity.SendDocumentsConfirmationDialogFragment.onCreateDialog(android.os.Bundle):android.app.Dialog\");\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n String title;\n String message;\n String value;\n \n Units units = new Units(Settings.KEY_UNITS);\n \t\n \tswitch (id) {\n \tcase DIALOG_CONFIRM_ODOMETER_LOW_ID:\n \t\ttitle = getString(R.string.title_confirm_odometer);\n \t\tmessage = getString(R.string.message_confirm_odometer);\n \t\tvalue = Integer.toString(current_odometer);\n \t\tmessage = String.format(message,value);\n \tdialog = ConfirmationDialog.create(this,this,id,title,message);\n \tbreak;\n \t\n \tcase DIALOG_CONFIRM_GALLONS_HIGH_ID:\n \t\ttitle = getString(R.string.title_confirm_gallons);\n \t\ttitle = String.format(title,units.getLiquidVolumeLabel());\n \t\tmessage = getString(R.string.message_confirm_gallons);\n \t\tvalue = String.format(App.getLocale(),\"%.1f %s\", \n \t\t\t\ttank_size, units.getLiquidVolumeLabelLowerCase());\n \t\tmessage = String.format(message,value);\n \tdialog = ConfirmationDialog.create(this,this,id,title,message);\n \tbreak;\n \t\n \t}\n \treturn dialog;\n }", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case START_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n \t\t\tstartDateSetListener,\r\n \t\t\tstartYear_dp, startMonth_dp-1, startDay_dp); \r\n case START_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tstartTimeSetListener, startHour_dp, startMinute_dp, false); \r\n case END_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n endDateSetListener,\r\n endYear_dp, endMonth_dp-1, endDay_dp);\r\n case END_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tendTimeSetListener, endHour_dp, endMinute_dp, false);\r\n }\r\n return null;\r\n }", "@Override\n\tpublic void onClick(View arg0) {\n\n\t\tswitch (arg0.getId()) {\n\t\t\n\t\tcase R.id.bUpdateSQL:\n\t\t\tString name = sqlName.getText().toString();\n\t\t\tString product = sqlProduct.getText().toString();\n\n\t\t\tdidItWork = true;\n\t\t\ttry {\n\t\t\t\tordersHolder entry = new ordersHolder(DropDown.this);\n\t\t\t\tentry.open();\n\t\t\t\tentry.createEntry(name, product);\n\t\t\t\tentry.close();\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tString error = e.toString();\n\t\t\t\tDialog d = new Dialog(this);\n\t\t\t\td.setTitle(\"Dang it!\");\n\t\t\t\tTextView tv = new TextView(this);\n\t\t\t\ttv.setText(error);\n\t\t\t\td.setContentView(tv);\n\t\t\t\td.show();\n\t\t\t} finally {\n\t\t\t\tif (didItWork) {\n\t\t\t\t\tDialog d = new Dialog(this);\n\t\t\t\t\td.setTitle(\"Heck Yeah!\");\n\t\t\t\t\tTextView tv = new TextView(this);\n\t\t\t\t\ttv.setText(\"Success\");\n\t\t\t\t\td.setContentView(tv);\n\t\t\t\t\td.show();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.bViewSQL:\n\t\t\tIntent i = new Intent(\"android.intent.action.SQLVIEW\");\n\t\t\tstartActivity(i);\n\t\t\tbreak;\n\n\t\tcase R.id.bGet:\n\t\t\ttry {\n\t\t\t\tString sRowGet = sqlRow.getText().toString();\n\t\t\t\t// converts the text into a long (number) variable\n\t\t\t\tlong lRowGet = Long.parseLong(sRowGet);\n\t\t\t\t\n\t\t\t\tordersHolder dbH = new ordersHolder(this);\n\t\t\t\tdbH.open();\n\t\t\t\tString returnedName = dbH.getName(lRowGet);\n\t\t\t\tString returnedProdType = dbH.getProdType(lRowGet);\n\t\t\t\tdbH.close();\n\n\t\t\t\tsqlName.setText(returnedName);\n\t\t\t\tsqlProduct.setText(returnedProdType);\n\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tString error = e.toString();\n\t\t\t\tDialog d = new Dialog(this);\n\t\t\t\td.setTitle(\"Error while retriving data!\");\n\t\t\t\tTextView tv = new TextView(this);\n\t\t\t\ttv.setText(error);\n\t\t\t\td.setContentView(tv);\n\t\t\t\td.show();\n\t\t\t} \n\t\t\tbreak;\n\n\t\tcase R.id.bEdit:\n\t\t\tdidItWork = true;\n\t\t\ttry {\n\t\t\t\tString modifyName = sqlName.getText().toString();\n\t\t\t\tString modifyProduct = sqlProduct.getText().toString();\n\t\t\t\tString sRowMod = sqlRow.getText().toString();\n\t\t\t\t// converts the text into a long (number) variable\n\t\t\t\tlong lRowMod = Long.parseLong(sRowMod);\n\n\t\t\t\tordersHolder editDb = new ordersHolder(this);\n\t\t\t\teditDb.open();\n\t\t\t\teditDb.updateEntry(lRowMod, modifyName, modifyProduct);\n\t\t\t\teditDb.close();\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tString error = e.toString();\n\t\t\t\tDialog d = new Dialog(this);\n\t\t\t\td.setTitle(\"Error while updating data!\");\n\t\t\t\tTextView tv = new TextView(this);\n\t\t\t\ttv.setText(error);\n\t\t\t\td.setContentView(tv);\n\t\t\t\td.show();\n\t\t\t} finally {\n\t\t\t\tif (didItWork) {\n\t\t\t\t\tDialog d = new Dialog(this);\n\t\t\t\t\td.setTitle(\"Record Modified\");\n\t\t\t\t\tTextView tv = new TextView(this);\n\t\t\t\t\ttv.setText(\"Successfully!\");\n\t\t\t\t\td.setContentView(tv);\n\t\t\t\t\td.show();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.bDelete:\n\t\t\tdidItWork = true;\n\t\t\ttry {\n\t\t\t\tString sRowDel = sqlRow.getText().toString();\n\t\t\t\t// converts the text into a long (number) variable\n\t\t\t\tlong lRowDel = Long.parseLong(sRowDel);\n\t\t\t\tordersHolder delRDb = new ordersHolder(this);\n\t\t\t\tdelRDb.open();\n\t\t\t\tdelRDb.deleteEntry(lRowDel);\n\t\t\t\tdelRDb.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tString error = e.toString();\n\t\t\t\tDialog d = new Dialog(this);\n\t\t\t\td.setTitle(\"Error while deleting data!\");\n\t\t\t\tTextView tv = new TextView(this);\n\t\t\t\ttv.setText(error);\n\t\t\t\td.setContentView(tv);\n\t\t\t\td.show();\n\t\t\t} finally {\n\t\t\t\tif (didItWork) {\n\t\t\t\t\tDialog d = new Dialog(this);\n\t\t\t\t\td.setTitle(\"Record Deleted \");\n\t\t\t\t\tTextView tv = new TextView(this);\n\t\t\t\t\ttv.setText(\"Successfully!\");\n\t\t\t\t\td.setContentView(tv);\n\t\t\t\t\td.show();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbreak;\n\t\t}\n\n\t}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n\tprotected Cursor query()\n\t{\n\t\treturn null;\n\t}", "@Override\n\tpublic void cancelQuery() {\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Done entering class?\")\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent tmp = new Intent(getContext(), course_info.class);\n startActivity(tmp);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "@Override\n protected void onPreExecute() {\n\n dialog.setCancelable(true);\n dialog.setMessage(\"Fetching...\");\n\n dialog.show();\n\n }", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n\n// 2. Chain together various setter methods to set the dialog characteristics\n builder.setMessage(\"Click the right dismiss button\")\n .setTitle(\"Do you hear, it? Isn't it great?\");\n\n\n builder.setPositiveButton(\"Left\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n audioServiceBinder.stopAudio();\n String deviceId = mDurationTimeEditText.getText().toString();\n new MyTurnIsOver().execute(deviceId);\n }\n });\n builder.setNegativeButton(\"Right\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n showDialog();\n }\n });\n\n// 3. Get the <code><a href=\"/reference/android/app/AlertDialog.html\">AlertDialog</a></code> from <code><a href=\"/reference/android/app/AlertDialog.Builder.html#create()\">create()</a></code>\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "@Override\n public void onCancelled(DatabaseError databaseError) {\n if(dialog!=null)\n dialog.cancel();\n // ...\n }", "public void dialog_entranceSheet() {\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_entrance_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_enterDialog = dialog.findViewById(R.id.tv_enterDialog);\n tv_enterDialog.setText(entrance_item);\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n ArrayList<EntranceSheet> preEntranceSheetList = new ArrayList<>();\n preEntranceSheetList = dataBaseHandler.getAllEntranceSheet();\n\n TextView tv_Title = dialog.findViewById(R.id.tv_Title);\n if (preEntranceSheetList.size() == 0) {\n tv_Title.setText(no_entrace_data);\n } else {\n tv_Title.setText(has_entrance_data);\n }\n\n ListView lv_preEntranceSheet = dialog.findViewById(R.id.lv_preEntranceSheet);\n PreEntranceSheetAdapter preEntranceSheetAdapter = new PreEntranceSheetAdapter(ReportActivity.this, preEntranceSheetList, dialog);\n lv_preEntranceSheet.setAdapter(preEntranceSheetAdapter);\n\n Button bt_AddEntranceSheet = dialog.findViewById(R.id.bt_AddEntranceSheet);\n bt_AddEntranceSheet.setText(add_new_entrance_process);\n bt_AddEntranceSheet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dialog_AddEntranceSheet();\n dialog.dismiss();\n dialog.cancel();\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }", "final @SuppressLint(\"InflateParams\")\n @NonNull\n @Override\n public Dialog onCreateDialog(final Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n FragmentActivity activity = getActivity();\n LayoutInflater inflater;\n View view = null;\n if (activity != null) {\n inflater = getActivity().getLayoutInflater();\n view = inflater.inflate(R.layout.dialog_createtanda, null);\n sharedPrefs = new SharedPrefs(activity);\n\n }\n dbmanager = DatabaseManager.createInstance();\n\n if (view != null) {\n initViews(view);\n random = new Random();\n builder.setView(view)\n .setTitle(getString(\n R.string.dialog_create_tanda_title))\n .setPositiveButton(getString(\n R.string.dialog_create_tanda_positive),\n new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, final int id) {\n // Update database\n if (isValidForm()) {\n writeTandaInDatabase();\n } else {\n Toast.makeText(getContext(),\n getString(R.string.app_invalid_form),\n Toast.LENGTH_LONG)\n .show();\n }\n }\n })\n .setNegativeButton(getString(\n R.string.dialog_create_tanda_negative),\n new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog,\n final int id) {\n // User cancelled the dialog\n }\n });\n\n }\n // Create the AlertDialog object and return it\n return builder.create();\n }", "protected void onPreExecute() {\n dialog = ProgressDialog.show(getActivity(), \"\", \"Consultando Clientes...\", true);\n }", "public void onClick(DialogInterface dialog, int id) {\n mDbHelper.emptyDatabase();\n fillData();\n }", "private void initUi() {\n\t\tsetContentView(R.layout.add_contact_layout);\n\t\tnameEditText = (EditText) findViewById(R.id.AddContactNameEditText);\n\t\tphoneNumberEditText = (EditText) findViewById(R.id.AddContactNumberEditText);\n\t\tsaveContactButton = (Button) findViewById(R.id.AddContactSaveContactButton);\n\n\t\tIntent intent = getIntent();\n\t\tBundle bundle = intent.getExtras();\n\t\tcontactID = bundle.getInt(\"ContactId\");\n\n\t\tcontactRepository = new ContactRepository(AddEmergencyContactsActivity.this);\n\n\t\tCursor ContactCursor = contactRepository\n\t\t\t\t.SelectContactsByWhere(contactID);\n\n\t\tif (ContactCursor.getCount() > 0) {\n\n\t\t\tContactCursor.moveToFirst();\n\t\t\tint nameIndex = ContactCursor.getColumnIndex(\"name\");\n\t\t\tint phonenumberIndex = ContactCursor.getColumnIndex(\"number\");\n\n\t\t\tString personName = ContactCursor.getString(nameIndex);\n\t\t\tint phoneNumber = ContactCursor.getInt(phonenumberIndex);\n\n\t\t\tnameEditText.setText(personName);\n\t\t\tphoneNumberEditText.setText(phoneNumber + \"\");\n\t\t\tinsertOrUpdate = false;\n\n\t\t}\n\t\tContactCursor.close();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_creation, container, false);\n\n mQueryController = new QueryController(getActivity());\n\n\n LinearLayout linear = (LinearLayout)rootView.findViewById(R.id.flipLayout);\n final CustomDialogClass cdd=new CustomDialogClass(getActivity());\n linear.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n cdd.show();\n Window window = cdd.getWindow();\n window.setLayout(600,900);\n\n }\n });\n\n LinearLayout linearCustom = (LinearLayout)rootView.findViewById(R.id.contentLayout);\n final CustomContentDialogClass ccd=new CustomContentDialogClass(getActivity());\n linearCustom.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n ccd.show();\n Window window = ccd.getWindow();\n window.setLayout(600,500);\n\n }\n });\n\n\n mCreateVideo = (Button) rootView.findViewById(R.id.btn_create_video);\n //setting create video button listener\n mCreateVideo.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n //settin values to the Query object\n mQuery.setmDuration(VideoActivity.INTERVAL.toString());\n // added checks here so that it performs automatic checking of non-initilaization of query element\n\n if (CustomContentDialogClass.mScenery != null){\n mQuery.setmIsSceneryChecked(CustomContentDialogClass.mScenery.isChecked());\n Log.d(\"CREATEFRAG\",\"Scene check: \"+CustomContentDialogClass.mScenery.isChecked());\n }\n\n if (CustomContentDialogClass.mPeople != null){\n mQuery.setmIsPeopleChecked(CustomContentDialogClass.mPeople.isChecked());\n Log.d(\"CREATEFRAG\", \"People check: \" + CustomContentDialogClass.mPeople.isChecked());\n }\n\n if (CustomContentDialogClass.mSelfie != null){\n mQuery.setmIsSelfieClicked(CustomContentDialogClass.mSelfie.isChecked());\n Log.d(\"CREATEFRAG\", \"Selfie check: \" + CustomContentDialogClass.mSelfie.isChecked());\n }\n\n Long time_start = new Long(0);\n Long time_end = Calendar.getInstance().getTimeInMillis();\n try {\n Date date_start = new SimpleDateFormat(\"MM/dd/yy\", Locale.ENGLISH).parse(CustomDialogClass.mStartText.getText().toString());\n time_start = date_start.getTime();\n\n Date date_end = new SimpleDateFormat(\"MM/dd/yy\", Locale.ENGLISH).parse(CustomDialogClass.mEndText.getText().toString());\n time_end = date_end.getTime();\n }\n catch(Exception e)\n {\n\n }\n\n mQuery.setmStartDate(time_start);\n mQuery.setmEnddate(time_end);\n mQuery.setmRadius(MapsActivity.radius);\n\n\n if (MapsActivity.mPosition != null) {\n mQuery.setmLocation(new LatLng(MapsActivity.mPosition.latitude,\n MapsActivity.mPosition.longitude));\n Log.d(\"Creation fragemnt\", MapsActivity.mPosition.latitude + \"\");\n Log.d(\"Creation fragemnt\", MapsActivity.mPosition.longitude + \"\");\n }\n else\n {\n Log.d(\"CREATION FRAGMENT\", \"NO LOCATION SPECIFIED\" );\n }\n\n ArrayList<String> file_paths = mQueryController.HandleQuery(mQuery);\n\n Intent intent = new Intent(getActivity(),\n VideoActivity.class);\n\n intent.putStringArrayListExtra(IMAGES_FROM_QUERY,file_paths);\n\n startActivity(intent);\n }\n });\n\n return rootView;\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n Realm.init(getApplicationContext());\n Realm realm = Realm.getDefaultInstance();\n realm.beginTransaction();\n Activity toUpdate =\n realm.where(Activity.class).equalTo(\"id\", activity.getId()).findFirst();\n if (toUpdate == null) {\n return;\n }\n toUpdate.setDeleted(true);\n realm.copyToRealmOrUpdate(toUpdate);\n realm.commitTransaction();\n realm.close();\n finish();\n dialog.dismiss();\n }", "protected Dialog onCreateDialog(int id) {\n if (id == 1) {\n AlertDialog.Builder adb = new AlertDialog.Builder(this);\n // заголовок\n adb.setTitle(\"PIN Removed\");\n // сообщение\n adb.setMessage(\"There will be no PIN entry screen when Application starts up.\");\n // иконка\n adb.setIcon(android.R.drawable.ic_dialog_info);\n adb.setNeutralButton(\"Ok\", myClickListener);\n // создаем диалог\n return adb.create();\n }\n return super.onCreateDialog(id);\n }", "private Dialog recreateDialog() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(OptionActivity.this);\n builder.setMessage(\"Do you want to change your profile?\")\n .setPositiveButton(\"Yah!\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(OptionActivity.this, amountscreen.class);\n startActivity(intent);\n }\n })\n .setNegativeButton(\"Nope\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this, pickingquery.class);\n startActivity(myIntent);\n picking.this.finish();\n\n }", "public void createDialog(int d) {\n\t\tswitch (d) {\n\n\t\tcase DIALOG_SHOW_MESSAGE:\n\t\t\tAlertDialog.Builder messageBuilder = new AlertDialog.Builder(\n\t\t\t\t\tgetActivity());\n\t\t\tmessageBuilder.setMessage(errorMessage).setPositiveButton(\n\t\t\t\t\tgetString(R.string.ok),\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tAlertDialog showDialog = messageBuilder.create();\n\t\t\tshowDialog.show();\n\t\t\tbreak;\n\n\t\tcase DIALOG_DISTANCE:\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t\t\tbuilder.setTitle(R.string.select_distance);\n\t\t\tbuilder.setSingleChoiceItems(items, Preferences.selectedDistance,\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int item) {\n\t\t\t\t\t\t\tdistance = items[item];\n\t\t\t\t\t\t\tsetDeviceLocation();\n\t\t\t\t\t\t\tPreferences.selectedDistance = item;\n\t\t\t\t\t\t\t// save prefrences\n\t\t\t\t\t\t\tPreferences.saveSettings(getActivity());\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\ttoastLong(R.string.finding_map);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tAlertDialog alert = builder.create();\n\t\t\talert.show();\n\t\t\tbreak;\n\n\t\tcase DIALOG_CLEAR_DEPLOYMENT:\n\t\t\tAlertDialog.Builder clearBuilder = new AlertDialog.Builder(\n\t\t\t\t\tgetActivity());\n\t\t\tclearBuilder\n\t\t\t\t\t.setMessage(getString(R.string.confirm_clear))\n\t\t\t\t\t.setCancelable(false)\n\t\t\t\t\t.setPositiveButton(getString(R.string.yes),\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\tmHandler.post(deleteAllMaps);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t.setNegativeButton(getString(R.string.no),\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\tAlertDialog clearDialog = clearBuilder.create();\n\t\t\tclearDialog.show();\n\n\t\t\tbreak;\n\n\t\tcase DIALOG_ADD_DEPLOYMENT:\n\t\t\tLayoutInflater factory = LayoutInflater.from(getActivity());\n\t\t\tfinal View textEntryView = factory.inflate(R.layout.add_map, null);\n\t\t\tfinal AddMapView addMapView = new AddMapView(textEntryView);\n\n\t\t\t// if edit was selected at the context menu, populate fields\n\t\t\t// with existing map details\n\t\t\tif (edit) {\n\t\t\t\tfinal List<ListMapModel> listMap = mListMapModel.loadMapById(\n\t\t\t\t\t\tmId, mapId);\n\t\t\t\tif (listMap.size() > 0) {\n\t\t\t\t\taddMapView.setMapName(listMap.get(0).getName());\n\t\t\t\t\taddMapView.setMapDescription(listMap.get(0).getDesc());\n\t\t\t\t\taddMapView.setMapUrl(listMap.get(0).getUrl());\n\t\t\t\t\taddMapView.setMapId(listMap.get(0).getId());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal AlertDialog.Builder addBuilder = new AlertDialog.Builder(\n\t\t\t\t\tgetActivity());\n\n\t\t\taddBuilder\n\t\t\t\t\t.setTitle(R.string.enter_map_details)\n\t\t\t\t\t.setView(textEntryView)\n\t\t\t\t\t.setPositiveButton(R.string.ok,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t\t// edit was selected\n\t\t\t\t\t\t\t\t\tif (edit) {\n\n\t\t\t\t\t\t\t\t\t\tif (!addMapView.updateMapDetails())\n\t\t\t\t\t\t\t\t\t\t\ttoastLong(R.string.fix_error);\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tmHandler.post(refreshMapList);\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\tif (!addMapView.addMapDetails())\n\t\t\t\t\t\t\t\t\t\t\ttoastLong(R.string.fix_error);\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tmHandler.post(fetchMapList);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t.setNegativeButton(R.string.cancel,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\tAlertDialog deploymentDialog = addBuilder.create();\n\t\t\tdeploymentDialog.show();\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.complete_workout_dialog,null);\n builder.setView(view);\n completeScore = view.findViewById(R.id.score_edit_text);\n completeTime = view.findViewById(R.id.time_edit_text);\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n // Add action buttons\n builder.setMessage(\"\")\n .setPositiveButton(\"Ok \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n completeWorkoutListener.onCompletedWorkoutSelected(completeScore.getText().toString(), completeTime.getText().toString());\n }\n })\n .setNegativeButton(\" Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "void updateDialog(){\r\n\t\tString title = getString(R.string.pick_day);\r\n\t\tString[] day_name = getResources().getStringArray(R.array.day_name);\r\n\t\tString positive = getString(R.string.update); \r\n\t\tString negative = getString(R.string.cancel);\r\n\t\t\r\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n \t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t \r\n\t // specify the list array\r\n\t\tbuilder.setSingleChoiceItems(day_name, SelectedDayID, new DialogInterface.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t\t// get selected day\r\n\t\t\t\tSelectedDayID = which;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t // set positive button\r\n\t builder.setPositiveButton(positive, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t\r\n\t \tString[] day_name = getResources().getStringArray(R.array.day_name);\r\n\t \t\r\n\t \t// check if data already available in this day program\r\n\t \tboolean isAvailable = HomeActivity.dbPrograms.isDataAvailable(SelectedDayID, WorkoutID);\r\n\r\n\t \t// if data is not available update data to this day program, otherwise, show toast message\r\n\t \tif(!isAvailable){\r\n\t\t \tHomeActivity.dbPrograms.updateData(SelectedDayID, ProgramID);\r\n\t\t \tToast.makeText(DetailProgramActivity.this, getString(R.string.success_update), Toast.LENGTH_SHORT).show();\r\n\t\t \tgetSupportFragmentManager()\r\n\t\t\t\t\t.beginTransaction().\r\n\t\t\t\t\tremove(HomeActivity.programListFrag)\r\n\t\t\t\t\t.commit();\r\n\t\t \tfinish();\r\n\t \t}else{\r\n\t \t\tToast.makeText(DetailProgramActivity.this, getString(R.string.failed_add)+\" \"+day_name[SelectedDayID], Toast.LENGTH_SHORT).show();\r\n\t \t}\r\n\t }\r\n\t });\r\n\t \r\n\t // set negative button\r\n\t builder.setNegativeButton(negative, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t// close update dialog if cancel button clicked\r\n\t \tdialog.dismiss();\r\n\t }\r\n\t });\r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}", "@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n switch (id) {\n case CHOOSE_METHOD_DIALOG:\n return chooseActionContextMenu.createMenu(this.getString(R.string.choose_action_title));\n case ABOUT_DIALOG:\n dialog = createAboutDialog();\n break;\n default:\n dialog = null;\n break;\n }\n return dialog;\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "@Override\r\n\t protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.message);\r\n\t messageText=(EditText)screenDialog.findViewById(R.id.messagetext1);\r\n\t send=(Button)screenDialog.findViewById(R.id.button1);\r\n\t send.setOnClickListener(sendmessage);\r\n\t cancel=(Button)screenDialog.findViewById(R.id.button2);\r\n\t cancel.setOnClickListener(cancelmessage);\r\n\t }\r\n\t return screenDialog;\r\n\t }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.filter_dialog, null);\n\n\n\n /* Inflate and set the layout for the dialog */\n /* Pass null as the parent view because its going in the dialog layout*/\n builder.setView(rootView)\n /* Add action buttons */\n .setPositiveButton(R.string.filter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n addShoppingList();\n }\n });\n\n return builder.create();\n }", "protected Dialog onCreateDialog(int id) {\n\t\n\t// Arg value corresponds to showDialog(0)\n\t\tif (id != 0)\n\t\t\treturn null;\n\t\tmyProgressDialog = new ProgressDialog(this); \n\t\tmyProgressDialog.setMessage(\"Loading ...\"); \n\t\tmyProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); \n\t\tmyProgressDialog.setCancelable(false);\n\t\treturn myProgressDialog ;\n\t}", "private void showFilterDialog(){\n final Dialog dialog = new Dialog(this);\n\n dialog.setContentView(R.layout.filter_search);\n dialog.setTitle(\"Search Filter\");\n\n Button okBtn = (Button) dialog.findViewById(R.id.okBtn);\n Button cancelBtn = (Button) dialog.findViewById(R.id.cancelBtn);\n final Spinner categorySpn = (Spinner) dialog.findViewById(R.id.categorySpn);\n final TextView rangeTw = (TextView) dialog.findViewById(R.id.rangeTw);\n String[] categories = getResources().getStringArray(R.array.question_category_array);\n\n ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(MainActivity.this, R.layout.support_simple_spinner_dropdown_item, categories);\n categorySpn.setAdapter(spinnerAdapter);\n\n cancelBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n okBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String category = categorySpn.getSelectedItem().toString();\n String range = rangeTw.getText().toString();\n range = range.equals(\"\")?\"NOT_SET\":range;\n\n if(currentLocation==null) {\n Snackbar.make(MainActivity.this.drawer,\n \"Wait until GPS find your location.\"\n ,Snackbar.LENGTH_LONG).show();\n return;\n }\n if(mSearchView.getQuery().trim().equals(\"\")){\n Snackbar.make(MainActivity.this.drawer,\n \"You need to enter some query first\"\n ,Snackbar.LENGTH_LONG).show();\n return;\n }\n mSearchView.showProgress();\n mSearchView.clearSuggestions();\n questionHandler.searchQuestions(MainActivity.this.mSearchView.getQuery(),\n category,range,\n currentLocation.getPosition().latitude,\n currentLocation.getPosition().longitude,\n REQUEST_TAG,\n new SearchQuestionListener(MainActivity.this));\n }\n });\n\n dialog.show();\n dialog.getWindow().setLayout((6*getResources().getDisplayMetrics().widthPixels)/7, DrawerLayout.LayoutParams.WRAP_CONTENT);\n\n }", "private void openPopupMold(final int position, String start_dt, String end_dt, final String KEY) {\n final Dialog dialog = new Dialog(CompositeActivity.this, R.style.Theme_AppCompat_DayNight_Dialog_Alert);\n View dialogView;\n\n if (KEY.equals(\"WK\")) {\n dialogView = LayoutInflater.from(CompositeActivity.this).inflate(R.layout.change_worker, null);\n dialog.setCancelable(false);\n dialog.setContentView(dialogView);\n StaffType = dialog.findViewById(R.id.StaffType);\n StaffType.setText(compositeMasterArrayList.get(position).getStaffTp());\n dialog.findViewById(R.id.rll2).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWorker(StaffType);\n }\n });\n\n\n } else {\n dialogView = LayoutInflater.from(CompositeActivity.this).inflate(R.layout.change_mold, null);\n dialog.setCancelable(false);\n dialog.setContentView(dialogView);\n }\n\n final TextView ngaystart, giostart, Used;\n ngaystart = dialog.findViewById(R.id.ngaystart);\n giostart = dialog.findViewById(R.id.giostart);\n\n final TextView ngayend, gioend;\n ngayend = dialog.findViewById(R.id.ngayend);\n gioend = dialog.findViewById(R.id.gioend);\n Used = dialog.findViewById(R.id.Used);\n tvid = dialog.findViewById(R.id.tvid);\n tvid.setText(compositeMasterArrayList.get(position).getCode());\n\n if (compositeMasterArrayList.get(position).getUseYn().equals(\"Y\")) {\n Used.setText(\"USE\");\n } else {\n Used.setText(\"UNUSE\");\n }\n dialog.findViewById(R.id.im1).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n openCameraScan();\n }\n });\n\n dialog.findViewById(R.id.confirm).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (tvid.getText().toString().length() != 0) {\n //so sanh 2 ngay duoc chon\n Date dsend = new Date();\n Date dstart = new Date();\n\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n dstart = sdf.parse(ngaystart.getText().toString() + \" \" + giostart.getText().toString());\n dsend = sdf.parse(ngayend.getText().toString() + \" \" + gioend.getText().toString());\n\n } catch (ParseException ex) {\n Log.e(\"rrr\", ex.getMessage());\n }\n\n if (dsend.after(dstart)) {\n\n String us = Used.getText().toString();\n String keyus = \"\";\n if (us.equals(\"USE\")) {\n keyus = \"Y\";\n } else {\n keyus = \"N\";\n }\n if (KEY.equals(\"WK\")) {\n showDialog();\n modifyProcessMachineWK(KEY,compositeMasterArrayList.get(position).getPmId(),keyus,ngaystart.getText().toString() + \" \" + giostart.getText().toString(),ngayend.getText().toString() + \" \" + gioend.getText().toString());\n } else {\n showDialog();\n modifyProcessMachine(KEY,compositeMasterArrayList.get(position).getPmId(),keyus,ngaystart.getText().toString() + \" \" + giostart.getText().toString(),ngayend.getText().toString() + \" \" + gioend.getText().toString());\n }\n\n } else {\n AlertError.alertError(\"Start day was bigger than end day. That is wrong\", CompositeActivity.this);\n }\n\n } else {\n tvid.setError(\"Please input here!\");\n }\n\n }\n });\n\n dialog.findViewById(R.id.rl2).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n openPpUse(Used);\n }\n });\n\n final String yy, MM, dd, hh, mm, ss, yye, MMe, dde, hhe, mme, sse;\n if (start_dt.length() == 19) {\n yy = start_dt.substring(0, 4);\n MM = start_dt.substring(5, 7);\n dd = start_dt.substring(8, 10);\n hh = start_dt.substring(11, 13);\n mm = start_dt.substring(14, 16);\n ss = start_dt.substring(17, 19);\n } else {\n AlertError.alertError(\"Format date incorrect.\", CompositeActivity.this);\n return;\n }\n if (end_dt.length() == 19) {\n yye = end_dt.substring(0, 4);\n MMe = end_dt.substring(5, 7);\n dde = end_dt.substring(8, 10);\n hhe = end_dt.substring(11, 13);\n mme = end_dt.substring(14, 16);\n sse = end_dt.substring(17, 19);\n } else {\n AlertError.alertError(\"Format date incorrect.\", CompositeActivity.this);\n return;\n }\n ngaystart.setText(yy + \"-\" + MM + \"-\" + dd);\n ngayend.setText(yye + \"-\" + MMe + \"-\" + dde);\n giostart.setText(hh + \":\" + mm + \":\" + ss);\n gioend.setText(hhe + \":\" + mme + \":\" + sse);\n\n ngaystart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogDay(ngaystart);\n }\n });\n giostart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogHour(giostart, hh, mm);\n }\n });\n ngayend.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogDay(ngayend);\n }\n });\n gioend.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogHour(gioend, hhe, mme);\n }\n });\n\n dialog.findViewById(R.id.btclose).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.cancel();\n }\n });\n\n dialog.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n setRetainInstance(true);\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n View view = inflater.inflate(R.layout.void_reason_dialog, null);\n\n final TextView voidSummaryText = (TextView) view.findViewById(R.id.void_summary);\n\n if(voidOrder)\n voidSummaryText.setText(getString(R.string.void_order));\n else\n voidSummaryText.setText(getString(R.string.void_summary, noItems));\n\n voidReason = (EditText) view.findViewById(R.id.reason_text);\n\n builder.setTitle(R.string.void_title);\n builder.setView(view)\n // Add action buttons\n .setPositiveButton(R.string.void_item, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //Nothing on purpose to avoid closing the dialog when the reason is not filled out\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n VoidReasonDialogFragment.this.getDialog().cancel();\n }\n });\n\n Dialog dialog = builder.create();\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n return dialog;\n }", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "private void showInputDialog() {\n final EditText input = new EditText(this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);\n input.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT));\n\n\n mHelper.confirm(R.string.add_comment, input,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String comment = input.getText().toString();\n\n // Add the comment\n Intent serviceIntent = new Intent(INaturalistService.ACTION_ADD_COMMENT, null, ObservationDetails.this, INaturalistService.class);\n serviceIntent.putExtra(INaturalistService.OBSERVATION_ID, mObservation.optInt(\"id\"));\n serviceIntent.putExtra(INaturalistService.COMMENT_BODY, comment);\n startService(serviceIntent);\n\n mCommentsIds = null;\n loadResultsIntoUI();\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Refresh the comment/id list\n IntentFilter filter = new IntentFilter(INaturalistService.ACTION_OBSERVATION_RESULT);\n registerReceiver(mObservationReceiver, filter);\n Intent serviceIntent2 = new Intent(INaturalistService.ACTION_GET_OBSERVATION, null, ObservationDetails.this, INaturalistService.class);\n serviceIntent2.putExtra(INaturalistService.OBSERVATION_ID, mObservation.optInt(\"id\"));\n startService(serviceIntent2);\n\n // Ask for a sync (to update the comment count)\n Intent serviceIntent3 = new Intent(INaturalistService.ACTION_SYNC, null, ObservationDetails.this, INaturalistService.class);\n startService(serviceIntent3);\n }\n },\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n }", "String dialogQuery(String msg, String defaultValue)\n { /* dialogQuery */\n this.sleepFlag= true;\t/* flag for waiting */\n this.data= defaultValue;\t/* save default */\n \n updatePopupDialog(msg, defaultValue, null, 0); /* do it */\n \n return(data);\t\t/* return string */\n }", "@Override\n protected Cursor buildCursor() {\n return(db.getReadableDatabase().rawQuery(rawQuery, args));\n }", "protected final void executeQuery() {\n\ttry {\n\t executeQuery(queryBox.getText());\n\t} catch(SQLException e) {\n\t e.printStackTrace();\n\t clearTable();\n\t JOptionPane.showMessageDialog(\n\t\tnull, e.getMessage(),\n\t\t\"Database Error\",\n\t\tJOptionPane.ERROR_MESSAGE);\n\t}\n }", "public QueryFrame( String driver, String databaseURL, \n\t\t\t\t\t String username, String password )\n\t{\n\t\tsuper( \"Database Queries\" ); // call superclass constructor with frame title\n\t\t\n\t\tDRIVER = driver; // set the jdbc driver\n\t\tDATABASE_URL = databaseURL; // set the database URL\n\t\tUSERNAME = username; // set the username for accessing the database\n\t\tPASSWORD = password; // set the password for accessing the database\n\t\t\n\t\t// initialise Instructions label\n\t\tlblInstructions = new JLabel( \"Choose a defined query or create a custom query in the text area below\" );\n\t\t\n\t\t// initialise Defined Queries combo box with element DefinedQueriesEnum\n\t\tcmbDefinedQueries = new JComboBox< DefinedQueriesEnum >( DefinedQueriesEnum.values() );\n\t\t\n\t\ttxtCustomQuery = new JTextArea( 10, 30 ); // initialise Custom Query text area with 10 rows and 30 columns\n\t\ttxtCustomQuery.setLineWrap( true ); // set line wrap true for text area\n\t\ttxtCustomQuery.setWrapStyleWord( true ); // set wrap style word for text area\n\t\t\n\t\ttry // begin try block\n\t\t{\n\t\t\t// initialise JTable data model to the currently selected query in the Defined Queries combo box\n\t\t\t// using five argument constructor as employee type is not relevant for this result model\n\t\t\tqueryResultsModel = new ResultSetTableModel( DRIVER, DATABASE_URL, USERNAME, PASSWORD,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ( ( DefinedQueriesEnum ) cmbDefinedQueries.getSelectedItem() ).getQuery() );\n\t\t\t\n\t\t\tbtnDefinedQueries = new JButton( \"Execute Defined Query\" ); // initialise Defined Queries button\n\t\t\tbtnDefinedQueries.addActionListener( // add an action listener for the Defined Queries button\n\t\t\t\tnew ActionListener() // begin anonymous inner class\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t// override method actionPerformed\n\t\t\t\t\tpublic void actionPerformed( ActionEvent event )\n\t\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t\ttry // begin try block\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// set the query of the table model to the currently selected query in the Defined Queries combo box\n\t\t\t\t\t\t\tqueryResultsModel.setQuery( ( ( DefinedQueriesEnum ) cmbDefinedQueries.getSelectedItem() ).getQuery() );\n\t\t\t\t\t\t} // end try block\n\t\t\t\t\t\tcatch( SQLException sqlException ) // catch SQLException\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// display message to user indicating that an error occurred\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t\t\tnull, // use default parent component\n\t\t\t\t\t\t\t\tsqlException.getMessage(), // message to display\n\t\t\t\t\t\t\t\t\"Table Model Error\", // title of the message dialog\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\t\t\t\t\tsqlException.printStackTrace(); // print stack trace\n\t\t\t\t\t\t} // end catch SQLException\n\t\t\t\t\t} // end method actionPerformed\n\t\t\t\t} // end anonymous inner class\n\t\t\t); // end registering of event handler for Defined Queries button\n\t\t\n\t\t\tbtnCustomQuery = new JButton( \"Execute Custom Query\" ); // initialise Custom Query button\n\t\t\tbtnCustomQuery.addActionListener( // add an action listener for the Custom Query button\n\t\t\t\tnew ActionListener() // begin anonymous inner class\n\t\t\t\t{\n\t\t\t\t\t// override method actionPerformed\n\t\t\t\t\tpublic void actionPerformed( ActionEvent event )\n\t\t\t\t\t{\n\t\t\t\t\t\ttry // begin try block\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// set the query of the table model to that entered in the Custom Query text area\n\t\t\t\t\t\t\tqueryResultsModel.setQuery( txtCustomQuery.getText() );\n\t\t\t\t\t\t} // end try block\n\t\t\t\t\t\tcatch( SQLException sqlException ) // catch SQLException\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// display message to user indicating that an error occurred\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t\t\tnull, // use default parent component\n\t\t\t\t\t\t\t\tString.format( \"Not a valid SQL query\\n%s\\n%s\",\n\t\t\t\t\t\t\t\t\ttxtCustomQuery.getText(),\n\t\t\t\t\t\t\t\t\tsqlException.getMessage() ), // message to display\n\t\t\t\t\t\t\t\t\"Query Invalid\", // title of the message dialog\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\t\t\t\t} // end catch SQLException\n\t\t\t\t\t} // end method actionPerformed\n\t\t\t\t} // end anonymous inner class\n\t\t\t); // end registering of event handler for Custom Query button\n\t\t\n\t\t\ttblQueryResults = new JTable( queryResultsModel ); // initialise data table\n\t\t\ttblQueryResults.setGridColor( Color.BLACK ); // set table gridline colour to black\n\t\t\ttablePanel = new JPanel(); // initialise the table panel\n\t\t\ttablePanel.setLayout( new BorderLayout() ); // set border layout as the layout of the table panel\n\t\t\t\n\t\t\t// add data table to table panel within a scroll pane with center alignment\n\t\t\ttablePanel.add( new JScrollPane( tblQueryResults ), BorderLayout.CENTER );\n\t\t\n\t\t\tgridBagLayout = new GridBagLayout(); // initialise grid bag layout\n\t\t\tgridBagConstraints = new GridBagConstraints(); // initialise grid bag constraints\n\t\t\tsetLayout( gridBagLayout ); // set the layout of this frame to grid bag layout\n\t\t\t\n\t\t\t// add GUI components to the frame with the specified constraints\n\t\t\t// component, gridx, gridy, gridwidth, gridheight, weightx, weighty, insets, anchor, fill\t\t\n\t\t\taddComponent( lblInstructions, 0, 0, 2, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.CENTER, gridBagConstraints.NONE );\n\t\t\taddComponent( cmbDefinedQueries, 0, 1, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.WEST, gridBagConstraints.NONE );\n\t\t\taddComponent( btnDefinedQueries, 1, 1, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.WEST, gridBagConstraints.NONE );\n\t\t\taddComponent( txtCustomQuery, 0, 2, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.WEST, gridBagConstraints.HORIZONTAL );\n\t\t\taddComponent( btnCustomQuery, 1, 2, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.NORTHWEST, gridBagConstraints.HORIZONTAL );\n\t\t\taddComponent( tablePanel, 0, 3, 3, 1, 1, 1, new Insets( 5, 0, 5, 0 ), gridBagConstraints.CENTER, gridBagConstraints.BOTH );\n\t\t\n\t\t\t// add a window listener to this frame\n\t\t\taddWindowListener(\n\t\t\t\tnew WindowAdapter() // declare anonymous inner class\n\t\t\t\t{\n\t\t\t\t\t// override method windowClosing\n\t\t\t\t\t// when window is closing, disconnect from the database if connected\n\t\t\t\t\tpublic void windowClosing( WindowEvent event )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( queryResultsModel != null ) // if the JTable data model has been initialised\n\t\t\t\t\t\t\tqueryResultsModel.disconnectFromDatabase(); // disconnect the data model from database\n\t\t\t\t\t} // end method windowClosing\n\t\t\t\t} // end anonymous inner class\n\t\t\t); // end registering of event handler for the window\n\t\t\n\t\t\tpack(); // resize the frame to fit the preferred size of its components\n\t\t\tsetVisible( true ); // set the frame to be visible\n\t\t} // end try block\n\t\tcatch ( SQLException sqlException ) // catch SQLException\n\t\t{\n\t\t\t// display message to user indicating that an error occurred\n\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\tnull, // use default parent component\n\t\t\t\tsqlException.getMessage(), // message to display\n\t\t\t\t\"Table Model Error\", // title of the message dialog\n\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\tsqlException.printStackTrace(); // print stack trace\n\t\t\t\n\t\t\t// if table model cannot be initialised then frame is useless\n\t\t\t// so set the frame invisible and dispose of it\n\t\t\tsetVisible( false ); // set the frame to be invisible\n\t\t\tdispose(); // dispose of this frame\n\t\t} // end catch SQLException\n\t\tcatch ( ClassNotFoundException classNotFoundException )\n\t\t{\n\t\t\t// display message to user indicating that an error occurred\n\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\tnull, // use default parent component\n\t\t\t\tString.format( \"Could not find database driver %s\\n%s\", // message to display\n\t\t\t\t\tDRIVER,\n\t\t\t\t\tclassNotFoundException.getMessage() ),\n\t\t\t\t\"Driver Not Found\", // title of the message dialog\n\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\tclassNotFoundException.printStackTrace(); // print stack trace\n\t\t\t\n\t\t\t// if table model cannot be initialised then frame is useless\n\t\t\t// so set the frame invisible and dispose of it\n\t\t\tsetVisible( false ); // set the frame to be invisible\n\t\t\tdispose(); // dispose of this frame\n\t\t} // end catch ClassNotFoundException\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "private Dialog buildTracksDialog() {\n final ContentResolver resolver = getContentResolver();\n final ContentValues values = new ContentValues();\n \n final Cursor cursor = managedQuery(Tracks.CONTENT_URI, null, null, null, null);\n cursor.setNotificationUri(resolver, Tracks.CONTENT_URI);\n \n final int COL_ID = cursor.getColumnIndex(Tracks._ID);\n \n // Wrap this dialog in a specific theme so that list items have correct\n // text color, otherwise they inherit from our white theme.\n final Context dialogContext = new ContextThemeWrapper(this, android.R.style.Theme_Black);\n \n AlertDialog.Builder builder = new AlertDialog.Builder(dialogContext);\n builder.setInverseBackgroundForced(true);\n builder.setTitle(R.string.menu_tracks);\n builder.setPositiveButton(getString(android.R.string.ok), null);\n builder.setNegativeButton(getString(android.R.string.cancel), null);\n \n builder.setMultiChoiceItems(cursor, TracksColumns.VISIBLE, TracksColumns.TRACK,\n new OnMultiChoiceClickListener() {\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n // Build Uri for this specific track\n cursor.moveToPosition(which);\n long trackId = cursor.getLong(COL_ID);\n Uri trackUri = ContentUris.withAppendedId(Tracks.CONTENT_URI, trackId);\n \n // Update visible state of this track\n values.clear();\n values.put(TracksColumns.VISIBLE, isChecked ? 1 : 0);\n resolver.update(trackUri, values, null, null);\n \n cursor.requery();\n \n }\n });\n \n return builder.create();\n }", "private void dialogGame(final Game game) {\n final boolean isInsert = game.getId() == null;\n final Dialog dialog = new Dialog(this);\n\n dialog.setContentView(R.layout.new_game);\n\n dialog.setTitle(R.string.label_novo_game);\n\n final TextInputLayout etTitulo = (TextInputLayout) dialog.findViewById(R.id.inputTitulo);\n\n Spinner spGenero = (Spinner)dialog.findViewById(R.id.spGenero);\n\n Spinner spPlataforma = (Spinner)dialog.findViewById(R.id.spPlataforma);\n\n initGeneroSpinner(spGenero, game.getGenero());\n\n initPlataformaSpinner(spPlataforma, game.getPlataforma());\n\n etTitulo.getEditText().setText(game.getTitulo());\n\n Button btConfirmar = (Button) dialog.findViewById(R.id.btConfirmar);\n\n btConfirmar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String titulo = etTitulo.getEditText().getText().toString();\n if(titulo.trim().equals(\"\")){\n etTitulo.setError(getString(R.string.label_campo_obrigatorio));\n } else {\n etTitulo.setErrorEnabled(false);\n game.setTitulo(etTitulo.getEditText().getText().toString());\n game.setGenero(generoSelecionado);\n game.setPlataforma(plataformaSelecionada);\n game.save();\n\n if (isInsert)\n mAdapter.add(game);\n\n mAdapter.notifyDataSetChanged();\n\n dialog.dismiss();\n Toast.makeText(MainActivity.this, R.string.label_gravado_com_sucesso, Toast.LENGTH_SHORT).show();\n }\n\n }\n });\n\n Button btCancelar = (Button) dialog.findViewById(R.id.btCancelar);\n\n btCancelar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n dialog.show();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.filter_dialog, null);\n\n builder.setView(view);\n\n spinnerLocation = view.findViewById(R.id.spLocations);\n spinnerSeverity = view.findViewById(R.id.spBleedSeverity);\n spinnerCause = view.findViewById(R.id.spinnerCause);\n btnReset = view.findViewById(R.id.btnReset);\n btnApply = view.findViewById(R.id.btnApply);\n\n txtLocation = view.findViewById(R.id.txtLocations);\n txtCause = view.findViewById(R.id.txtCause);\n txtSeverity = view.findViewById(R.id.txtSeverity);\n\n\n\n//resets textfields and spinners\n btnReset.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n txtLocation.setText(\"\");\n txtCause.setText(\"\");\n txtSeverity.setText(\"\");\n\n spinnerLocation.setSelection(0);\n spinnerCause.setSelection(0);\n spinnerSeverity.setSelection(0);\n }\n });\n\n //Applys filter\n btnApply.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveFilterData();\n }\n });\n\n\n\n spinnerLocation.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n txtLocation.setText(spinnerLocation.getSelectedItem().toString());\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n spinnerCause.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n txtCause.setText(spinnerCause.getSelectedItem().toString());\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n spinnerSeverity.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n txtSeverity.setText(spinnerSeverity.getSelectedItem().toString());\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n\n\n return builder.create();\n\n\n }", "@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }", "void optionsDialog(){\r\n\t\tString title = getString(R.string.select_option);\r\n\t\tString[] options = getResources().getStringArray(R.array.options);\r\n\t\t\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n\t\t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t \r\n\t // specify the list array\r\n\t builder.setItems(options, new DialogInterface.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tswitch(which){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\t// open update dialog\r\n\t\t\t\t\tupdateDialog();\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t// open delete dialog\r\n\t\t\t\t\tdeleteDialog();\r\n\t\t\t\t\tdialog.dismiss();\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 \r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }", "private AlertDialog createDialog(){\n final LayoutInflater inflater = QuizViewActivity.this.getLayoutInflater();\n View v = inflater.inflate(R.layout.add_new_quiz, null);\n\n final EditText et = (v.findViewById(R.id.enter_new_name));\n Toolbar toolbar = v.findViewById(R.id.enter_new_name_toolbar);\n toolbar.setTitle(R.string.new_name_dialog);\n\n if(et.getText().toString().compareTo(\"\")==0){\n et.setError(\"Quiz name can't be empty or same as any other quiz!\");\n }//sets the warning for the edit text in case it's empty\n\n AlertDialog.Builder builder = new AlertDialog.Builder(QuizViewActivity.this);\n builder.setView(v)\n // Add action buttons\n .setPositiveButton(\"Done\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //add a quiz.\n String name = et.getText().toString();\n try {\n if (quizManager.saveQuiz(new Quiz(name, Services.getQuizPersistence().incrementQuizID(), CurrentUser.getCurrentUser()))) {\n adapter.clear();\n adapter.addAll(quizManager.getQuizList());\n adapter.notifyDataSetChanged();//notify changes to the adapter\n et.getText().clear();\n Toast.makeText(QuizViewActivity.this, \"New Quiz Added. Click To Edit\", Toast.LENGTH_LONG).show();\n }\n }catch(InvalidQuizException e){\n createDialog().show();//show the new name dialog again until a valid name is enterer\n //or the dialog is canceled\n e.printStackTrace();\n }\n }\n })//set positive button to add the quiz\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });//set negative button to cancel\n return builder.create();\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tprogress = UserCenterDialog.onCreateDialog(this);\r\n\t\tcontext = this;\r\n\t\tshellRW = new RWSharedPreferences(context, \"addInfo\");\r\n\t\tinitDialog(NoticeActivityGroup.LOTNO);\r\n\t}", "@Override\n\tprotected Dialog onCreateDialog(int id)\n\t{\n\t\tsuper.onCreateDialog(id);\n\t\treturn visitor.instantiateDialog(id);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "protected abstract void onQueryStart();", "protected void onPrepareDialogBuilder(Builder builder) {\n\n\t\tMyFolderDAO dao = new MyFolderDAO(getContext(), null);\n\t\tdao.setSource(MySource.DISK_SOURCE);\n\t\tMyFolder fd = new MyFolder(\"/mnt\");\n\t\tfd.setDao(dao);\n\n\t\tArrayList<MyFolder> folders = fd.getChildFolders();\n\n\t\tListAdapter listAdapter = new FolderArrayAdapter(getContext(),\n\t\t\t\tR.layout.setting_folder_chooser_item, folders, null, fd,\n\t\t\t\tnew MyItemClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(MyFolder fd, Boolean isChecked) {\n\t\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\t\t// chooseResult.put(fd.getAbsPath(), fd);\n\t\t\t\t\t\t\tpushToChooser(fd);\n\t\t\t\t\t\t\tLog.w(\"qd\", \"Put \" + fd.getAbsPath());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// chooseResult.remove(fd.getAbsPath());\n\t\t\t\t\t\t\tremoveFromChooser(fd);\n\t\t\t\t\t\t\tLog.w(\"qd\", \"Remove \" + fd.getAbsPath());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// Order matters.\n\n\t\tbuilder.setAdapter(listAdapter, this);\n\t\tbuilder.setPositiveButton(\"OK\", new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tLog.w(\"qd\", \"OK clicked\");\n\t\t\t\tLog.w(\"qd\", \"Chooder folder list before validate:\");\n\t\t\t\tfor (MyFolder item : chooseResult.values()) {\n\t\t\t\t\tLog.w(\"qd\", item.getAbsPath());\n\t\t\t\t}\n\t\t\t\t// validate first\n\t\t\t\tchooseResult = validateChooser(chooseResult);\n\t\t\t\tLog.w(\"qd\", \"Final folder list to fetch after validate:\");\n\t\t\t\tfor (MyFolder item : chooseResult.values()) {\n\t\t\t\t\tLog.w(\"qd\", item.getAbsPath());\n\t\t\t\t}\n\n\t\t\t\tif (chooseResult.size() <= 0) {\n\t\t\t\t\tToast.makeText(getContext(), \"Nothing changed\", 300).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// FINISH\n\t\t\t\tArrayList<MyFolder> list_tmp = new ArrayList<MyFolder>();\n\t\t\t\tlist_tmp.addAll(chooseResult.values());\n\t\t\t\tMyLibraryUpdateTask tsk = new MyLibraryUpdateTask(list_tmp,\n\t\t\t\t\t\tgetContext(), new OnBGTaskWorkingListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\t\t\t// clear after success\n\t\t\t\t\t\t\t\tchooseResult.clear();\n\t\t\t\t\t\t\t\t// stop progress bar...\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t * SharedPreferences pref =\n\t\t\t\t\t\t\t\t * getPreferenceManager(\n\t\t\t\t\t\t\t\t * ).getSharedPreferences(); Editor edit =\n\t\t\t\t\t\t\t\t * pref.edit();\n\t\t\t\t\t\t\t\t * edit.remove(\"key\").commit();//van con bi\n\t\t\t\t\t\t\t\t * double event\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\tLog.w(\"qd\", \"Folder changed\");\n\t\t\t\t\t\t\t\tgetSharedPreferences().edit()\n\t\t\t\t\t\t\t\t\t\t.putBoolean(FOLDER_CHANGED_KEY, true)\n\t\t\t\t\t\t\t\t\t\t.commit();\n\t\t\t\t\t\t\t\t// unlock asynctask wait\n\t\t\t\t\t\t\t\t// aSyncTaskFinish=true;\n\t\t\t\t\t\t\t\tsetSummary(summary_bk);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onProgressUpdating(Integer total,\n\t\t\t\t\t\t\t\t\tInteger current) {\n\t\t\t\t\t\t\t\tLog.w(\"qd\", current + \"/\" + total);\n\t\t\t\t\t\t\t\tsetSummary(\"Progress: \"\n\t\t\t\t\t\t\t\t\t\t+ current\n\t\t\t\t\t\t\t\t\t\t+ \"/\"\n\t\t\t\t\t\t\t\t\t\t+ total\n\t\t\t\t\t\t\t\t\t\t+ \" (\"\n\t\t\t\t\t\t\t\t\t\t+ (MyNumberHelper\n\t\t\t\t\t\t\t\t\t\t\t\t.round((double) current / total\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t* 100)) + \"%)\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\ttsk.start();\n\n\t\t\t\tsummary_bk = String.valueOf(getSummary());\n\t\t\t\tsetSummary(\"Waiting...\");\n\t\t\t}\n\t\t});\n\t\t// do not call super or OK button will never appear\n\t\t// super.onPrepareDialogBuilder(builder);\n\n\t}" ]
[ "0.6272307", "0.625159", "0.6102075", "0.60557747", "0.60494554", "0.5961905", "0.5856076", "0.5767524", "0.571736", "0.56763095", "0.5660644", "0.56534606", "0.56494266", "0.5623371", "0.5620557", "0.5609118", "0.55849874", "0.5556062", "0.55546784", "0.5539842", "0.5535989", "0.5487436", "0.5454237", "0.54377747", "0.5430621", "0.54297936", "0.54294467", "0.5422529", "0.5412572", "0.5406448", "0.54061186", "0.5400712", "0.5378465", "0.5371876", "0.5367446", "0.5367446", "0.5367446", "0.53666854", "0.5366478", "0.53619415", "0.5358155", "0.53515255", "0.53482884", "0.5342356", "0.53415483", "0.5335331", "0.5325356", "0.53166467", "0.53155947", "0.53152436", "0.5310786", "0.5309618", "0.5290126", "0.5282891", "0.52808684", "0.5280782", "0.52787286", "0.5275137", "0.5263988", "0.52601737", "0.5259662", "0.52487093", "0.5248535", "0.5248291", "0.5245867", "0.5245557", "0.52450657", "0.5240541", "0.5240027", "0.5239592", "0.5237654", "0.5235954", "0.5235851", "0.52355176", "0.5235024", "0.52305734", "0.5229273", "0.5227672", "0.52166855", "0.5214155", "0.5214122", "0.5213681", "0.52099967", "0.5206281", "0.5204", "0.51987785", "0.5194654", "0.5191919", "0.5191828", "0.51910204", "0.5187502", "0.5172702", "0.5171682", "0.5162623", "0.5162139", "0.51602775", "0.51563275", "0.5151014", "0.5142885", "0.51419485", "0.5141623" ]
0.0
-1
This is a method implemented for DialogInterface.OnClickListener. Used with the error dialog to close the app, voicemail dialog to just dismiss. Close button is mapped to BUTTON1 for the errors that close the activity, while those that are mapped to 3 only move the preference focus.
public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); switch (which){ case DialogInterface.BUTTON3: // Neutral Button, used when we want to cancel expansion. break; case DialogInterface.BUTTON1: // Negative Button finish(); break; default: // If we were called to explicitly configure voice mail then finish here if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) { finish(); } // just let the dialog close and go back to the input // ready state // Positive Button } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\tdialog.dismiss();\n \t\t\t\t\t\tdialog = null;\n \t\t\t\t\t}", "@Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t{\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tmAlertDialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t\t dismissDialog(SCHEMA_ERROR_DIALOG);\n\t\t\t\t }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onCancelPressed();\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int i) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1)\n\t\t\t\t{\n\t\t\t\t\targ0.dismiss();\n\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n imm.hideSoftInputFromWindow(mAmt.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(mFreq.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(mDur.getWindowToken(), 0);\n \n dialogInterface.dismiss();\n if(listener != null) listener.onCancelClick();\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }", "@Override\n public void onClick(View view) {\n preferencesUtil.setPreferenceBooleanValue(\"dismiss\" ,true);\n //[E] fix bug 7691 by licong for safeLock\n customDialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n String nada = null;\n callbackContext.error(\"cancelled\");\n }", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}", "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n paramDialogInterface.dismiss();\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n alertDialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,int id) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }" ]
[ "0.723786", "0.7227067", "0.7227067", "0.7211596", "0.7211596", "0.72064036", "0.7200973", "0.71912414", "0.71894133", "0.71894133", "0.7186947", "0.71841884", "0.71841884", "0.71841884", "0.71841884", "0.71819156", "0.7177933", "0.7177474", "0.71719533", "0.7161142", "0.7158501", "0.7158501", "0.71552354", "0.71552354", "0.71552354", "0.71547556", "0.71536833", "0.71501887", "0.715004", "0.7136083", "0.71278596", "0.71278596", "0.71278596", "0.71278596", "0.71172935", "0.71172935", "0.71172935", "0.71172935", "0.71172935", "0.71172935", "0.7098618", "0.7096575", "0.70687103", "0.70487654", "0.70455754", "0.70409024", "0.70311075", "0.7027123", "0.7025927", "0.7025927", "0.70238364", "0.7022939", "0.7021982", "0.70173806", "0.70173806", "0.70173806", "0.7014574", "0.70100313", "0.700081", "0.69980097", "0.6993182", "0.69913346", "0.6986614", "0.6986614", "0.698492", "0.69847363", "0.6982128", "0.69785595", "0.69785595", "0.697659", "0.6973644", "0.6969863", "0.6969863", "0.6966585", "0.6966585", "0.6966585", "0.6966585", "0.6966585", "0.6965703", "0.6961693", "0.69613487", "0.6921482", "0.6921482", "0.6921482", "0.6921482", "0.6918913", "0.6917153", "0.6915152", "0.69071794", "0.6904093", "0.68956274", "0.68938404", "0.68924737", "0.68924737", "0.688553", "0.688553", "0.6876752", "0.6875317", "0.6866123", "0.6855267", "0.68465567" ]
0.0
-1
set the app state with optional status.
private void showVMDialog(int msgStatus) { switch (msgStatus) { case MSG_VM_EXCEPTION: showDialog(VM_RESPONSE_ERROR); break; case MSG_VM_NOCHANGE: showDialog(VM_NOCHANGE_ERROR); break; case MSG_VM_OK: showDialog(VOICEMAIL_DIALOG_CONFIRM); break; case MSG_OK: default: // This should never happen. } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean setApplicationStatus(ApplicationBean application) throws UASException;", "@Override\n\tpublic void setStatus(int status) {\n\t\t_scienceApp.setStatus(status);\n\t}", "void setStatus(STATUS status);", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(String status) {\n mBundle.putString(KEY_STATUS, status);\n }", "void setStatus(int status);", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "void setStatus(TaskStatus status);", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(int status) {\n STATUS = status;\n }", "public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(String status) { this.status = status; }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Boolean s){ status = s;}", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "void setStatus(String status);", "public void setStatus(JobStatus status);", "public void setStatus(boolean newStatus);", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public synchronized void setState(Status status){\n state=status;\n if(status.equals(Status.RED)){\n updateScreen(\"red\");\n }\n else if(status.equals(Status.YELLOW)){\n updateScreen(\"yellow\");\n }\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "private void setStatusBar(String statusMsg)\r\n {\r\n\r\n debug(\"setStatusBar() - get a handle to the main application\");\r\n StockMarketApp mainApp = getMainApp();\r\n\r\n if (mainApp != null)\r\n {\r\n debug(\"setStatusBar() - Sending message to change applications\");\r\n mainApp.setStatus(statusMsg);\r\n }\r\n debug(\"setStatusBar() - Processing completed\");\r\n }", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "void setStatus(java.lang.String status);", "public void setStatus(String status)\n {\n setValue(\"status\", status);\n }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "private void setAppBaeState(int state) {\n mAppBarState = state;\n if (mAppBarState == STANDARD_APPBAR) {\n searchBar.setVisibility(View.GONE);\n viewMoviesBar.setVisibility(View.VISIBLE);\n\n View view = getView();\n InputMethodManager im = (InputMethodManager) Objects.requireNonNull(getActivity()).getSystemService(Context.INPUT_METHOD_SERVICE);\n try {\n im.hideSoftInputFromWindow(view.getWindowToken(), 0); // make keyboard hide\n } catch (NullPointerException e) {\n Log.d(TAG, \"setAppBaeState: NullPointerException: \" + e);\n }\n } else if (mAppBarState == SEARCH_APPBAR) {\n viewMoviesBar.setVisibility(View.GONE);\n searchBar.setVisibility(View.VISIBLE);\n mSearchMovies.requestFocus();\n InputMethodManager im = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n im.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); // make keyboard popup\n }\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "@Override\n\tpublic void setStatus(int status);", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "public void setStatus(EnumVar status) {\n this.status = status;\n }" ]
[ "0.65898377", "0.65872544", "0.632883", "0.6223362", "0.62156266", "0.6207264", "0.6207264", "0.6201945", "0.6169786", "0.614727", "0.6140088", "0.61056435", "0.61056435", "0.6102242", "0.6093718", "0.6093101", "0.6093101", "0.6084834", "0.6084772", "0.6074503", "0.60583216", "0.60583216", "0.60583216", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6054708", "0.6050442", "0.60413957", "0.60344374", "0.60344374", "0.60344374", "0.60344374", "0.60253406", "0.60253406", "0.60176605", "0.60164535", "0.6008063", "0.6002924", "0.5982121", "0.59708637", "0.59564483", "0.5948327", "0.5926393", "0.5926393", "0.59098357", "0.59039295", "0.5901736", "0.5901736", "0.5897994", "0.58928025", "0.588958", "0.5872127", "0.5872127", "0.58712316", "0.58662045", "0.5848603", "0.5844705", "0.5844705", "0.5840551", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.58371854", "0.5835822", "0.5827738", "0.58209664", "0.58145005", "0.58145005", "0.58145005", "0.58145005", "0.58145005", "0.58141166", "0.5801509" ]
0.0
-1
/ Activity class methods
@Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); mPhone = PhoneFactory.getDefaultPhone(); addPreferencesFromResource(R.xml.call_feature_setting); mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); // get buttons PreferenceScreen prefSet = getPreferenceScreen(); mSubMenuVoicemailSettings = (EditPhoneNumberPreference)findPreference(BUTTON_VOICEMAIL_KEY); if (mSubMenuVoicemailSettings != null) { mSubMenuVoicemailSettings.setParentActivity(this, VOICEMAIL_PREF_ID, this); mSubMenuVoicemailSettings.setDialogOnClosedListener(this); mSubMenuVoicemailSettings.setDialogTitle(R.string.voicemail_settings_number_label); } mButtonDTMF = (ListPreference) findPreference(BUTTON_DTMF_KEY); mButtonAutoRetry = (CheckBoxPreference) findPreference(BUTTON_RETRY_KEY); mButtonHAC = (CheckBoxPreference) findPreference(BUTTON_HAC_KEY); mButtonTTY = (ListPreference) findPreference(BUTTON_TTY_KEY); mVoicemailProviders = (ListPreference) findPreference(BUTTON_VOICEMAIL_PROVIDER_KEY); if (mVoicemailProviders != null) { mVoicemailProviders.setOnPreferenceChangeListener(this); mVoicemailSettings = (PreferenceScreen)findPreference(BUTTON_VOICEMAIL_SETTING_KEY); initVoiceMailProviders(); } if (getResources().getBoolean(R.bool.dtmf_type_enabled)) { mButtonDTMF.setOnPreferenceChangeListener(this); } else { prefSet.removePreference(mButtonDTMF); mButtonDTMF = null; } if (getResources().getBoolean(R.bool.auto_retry_enabled)) { mButtonAutoRetry.setOnPreferenceChangeListener(this); } else { prefSet.removePreference(mButtonAutoRetry); mButtonAutoRetry = null; } if (getResources().getBoolean(R.bool.hac_enabled)) { mButtonHAC.setOnPreferenceChangeListener(this); } else { prefSet.removePreference(mButtonHAC); mButtonHAC = null; } if (getResources().getBoolean(R.bool.tty_enabled)) { mButtonTTY.setOnPreferenceChangeListener(this); ttyHandler = new TTYHandler(); } else { prefSet.removePreference(mButtonTTY); mButtonTTY = null; } if (!getResources().getBoolean(R.bool.world_phone)) { prefSet.removePreference(prefSet.findPreference(BUTTON_CDMA_OPTIONS)); prefSet.removePreference(prefSet.findPreference(BUTTON_GSM_UMTS_OPTIONS)); if (mPhone.getPhoneName().equals("CDMA")) { prefSet.removePreference(prefSet.findPreference(BUTTON_FDN_KEY)); addPreferencesFromResource(R.xml.cdma_call_options); } else { addPreferencesFromResource(R.xml.gsm_umts_call_options); } } // create intent to bring up contact list mContactListIntent = new Intent(Intent.ACTION_GET_CONTENT); mContactListIntent.setType(android.provider.Contacts.Phones.CONTENT_ITEM_TYPE); // check the intent that started this activity and pop up the voicemail // dialog if we've been asked to. // If we have at least one non default VM provider registered then bring up // the selection for the VM provider, otherwise bring up a VM number dialog. // We only bring up the dialog the first time we are called (not after orientation change) if (icicle == null) { if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL) && mVoicemailProviders != null) { if (mVMProvidersData.size() > 1) { simulatePreferenceClick(mVoicemailProviders); } else { mSubMenuVoicemailSettings.showPhoneNumberDialog(); } } } updateVoiceNumberField(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openActivity() {\n }", "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "Activity activity();", "void doActivity();", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "void onActivityReady();", "protected interface Activity {\r\n boolean isActive(File dir);\r\n }", "public Activity() {\n }", "public void goTestActivity()\n\t {\n\t }", "public LigTvAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 61;BA.debugLine=\"utilidades.ResetUserFontScale(Activity)\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv0 /*String*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(mostCurrent._activity.getObject())));\n //BA.debugLineNum = 62;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public interface ActivityInterface {\n public void initView();\n public void setUICallbacks();\n public int getLayout();\n public void updateUI();\n}", "@Override\n public void needReloain(Activity activity) {\n }", "private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }", "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}", "protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }", "public interface MeetingsActivityView {\n void startMainActivity();\n\n void startMeetingDetailsActivity();\n\n void startMeetingAddActivity();\n\n void errorInfo(String msg);\n\n void errorMeetingCompletedInfo(String msg);\n void successMeetingCompletedInfo(String msg);\n\n\n void startGetMeetings();\n}", "protected ApiActivityBase() {\n super();\n }", "public interface MyBaseActivityImp {\n\n /**\n * 跳转Activity;\n *\n * @param paramClass Activity参数\n */\n void gotoActivity(Class<?> paramClass);\n\n /**\n * 跳转Activity,带有Bundle参数;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivity(Class<?> paramClass, Bundle bundle);\n\n /**\n * 跳转Activity,带有Bundle参数,并且该Activity不会压入栈中,返回后自动关闭;\n *\n * @param paramClass Activity参数\n * @param bundle Bundle参数\n */\n void gotoActivityNoHistory(Class<?> paramClass, Bundle bundle);\n\n /**\n * @param paramClass\n * @param bundle\n * @param paramInt\n */\n void gotoActivityForResult(Class<?> paramClass, Bundle bundle, int paramInt);\n\n /**\n * init View\n */\n void initView();\n\n /**\n *\n */\n void onEvent(Object o);\n}", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "public FotomacAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "private void link(MainActivity pActivity) {\n\n\t\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\t_activity = this;\n\t\tLog.d(\"onCreateJava\" , \"++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t}", "void mo21580A(Intent intent);", "@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}", "protected void startRegActivity() {\n }", "public SabahAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "public interface OmnomActivity {\n\tpublic static final int REQUEST_CODE_ENABLE_BLUETOOTH = 100;\n\tpublic static final int REQUEST_CODE_SCAN_QR = 101;\n\n\tvoid start(Intent intent, int animIn, int animOut, boolean finish);\n\n\tvoid startForResult(Intent intent, int animIn, int animOut, int code);\n\n\tvoid start(Class<?> cls);\n\n\tvoid start(Class<?> cls, boolean finish);\n\n\tvoid start(Intent intent, boolean finish);\n\n\tActivity getActivity();\n\n\tint getLayoutResource();\n\n\tvoid initUi();\n\n\tPreferenceProvider getPreferences();\n\n\tSubscription subscribe(final Observable observable, final Action1<? extends Object> onNext, final Action1<Throwable> onError);\n\n\tvoid unsubscribe(final Subscription subscription);\n\n}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "public interface MeetingAddActivityView {\n\n void startMeetingsActivity();\n void successInfo(String msg);\n void errorInfo(String msg);\n void startGetCustomers();\n}", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "public CanliSkorAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n\r\n }", "void startNewActivity(Intent intent);", "protected ScllActivity iGetActivity() {\n\t\treturn (ScllActivity) getActivity();\n\t}", "public TrtsporAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "protected abstract Intent getIntent();", "public SporxAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "public void activityCreated(Context ctx){\n //set Activity context - in this case there is only MainActivity\n mActivityContext = ctx;\n }", "public PuanDurumuAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "Builder(Activity activity) {\n this.context = activity;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }", "protected abstract Intent createOne();", "public interface ActivityInterface {\n\n int getLayout();\n\n void initView();\n}", "public interface MainView extends MvpView{\n void startAnekdotActivity(int type);\n}", "private void openVerificationActivity() {\n }", "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\thandleIntent(getIntent());\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\n public Void visitStartActivityTask(StartActivityTask<Void> startActivityTask) {\n return null;\n }", "@Override\n protected void onNewIntent(Intent intent) {\n }", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "public S(Activity activity){\n\t\tthis.activity = activity;\n\t\t\n\t}", "@Override\n\tpublic void initContext(Activity act) {\n\t\tthis._activity = act;\n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }", "@Override // android.support.v7.app.AppCompatActivity, android.support.v4.app.SupportActivity, android.support.v4.app.FragmentActivity\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n setFlag(getIntent());\n final TextView flagWidget = (TextView) findViewById(R.id.flag);\n ((Button) findViewById(R.id.getflag)).setOnClickListener(new View.OnClickListener() {\n /* class com.mobisec.nojumpstarts.MainActivity.AnonymousClass1 */\n\n public void onClick(View v) {\n flagWidget.setText(\"Getting flag....\");\n flagWidget.setTextColor(ViewCompat.MEASURED_STATE_MASK);\n try {\n MainActivity.this.getFlag();\n } catch (Exception e) {\n Log.e(\"MOBISEC\", \"Exception while getting the flag:\" + Log.getStackTraceString(e));\n flagWidget.setText(\"An error occurred when getting flag\");\n }\n }\n });\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "public void create(MyActivity activity, Bundle bundle){\n super.create(activity, bundle);\n\n }", "public interface ISEActivityAttatcher {\n void onCreate(Bundle savedInstanceState);\n void onStart();\n void onRestart();\n void onResume();\n void onPause();\n void onStop();\n void onDestroy();\n void onActivityResult(int requestCode, int resultCode, Intent data);\n boolean isRecyled();\n}", "public interface MainActivityView {\n\n void showLoading();\n void hideLoading();\n void toMainActivity(String data);\n}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tmActivityManager = (ActivityManager) (getSystemService(Context.ACTIVITY_SERVICE));\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}", "public interface ActivityLauncher {\r\n\r\n\tpublic void launchActivity();\r\n\r\n\tpublic void finishCurrentActivity();\r\n\r\n}", "public interface IBaseView {\n\n void showToastMessage(String message);\n\n void setProgressBar(boolean show);\n\n void showNetworkFailureMessage(boolean show);\n\n Context getPermission();\n\n void startNewActivity();\n\n}", "public void createActivity(Activity activity) {\n\t\t\n\t}", "protected void onCreate() {\n }", "void onCreate(Intent intent);", "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tm_Activity = this;\n\t\tm_Handler = new Handler();\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "public void onCreate(Bundle bundle) {\n if (Theme.primaryColor == 0) {\n Theme.primaryColor = UtilManager.sharedPrefHelper().getActionBarColor();\n }\n StrictMode.setThreadPolicy(new Builder().permitAll().build());\n if (!getClass().getSimpleName().equalsIgnoreCase(\"aveRssContentViewPager\")) {\n getTheme().applyStyle(new FontSizeHelper(this).getFontStyle().getResId(), true);\n } else if (new FontSizeHelper(this).getContentFontOrder() != -1) {\n getTheme().applyStyle(new FontSizeHelper(this).getContentFontStyle().getResId(), true);\n } else {\n getTheme().applyStyle(new FontSizeHelper(this).getFontStyle().getResId(), true);\n }\n super.onCreate(bundle);\n this.progressViewHelper = new ProgressViewHelper((AppCompatActivity) this);\n injectActivity(activityComponent());\n Intent intent = getIntent();\n String str = Constants.KEY_SCREEN_ID;\n if (intent.hasExtra(str)) {\n this.screenId = getIntent().getStringExtra(str);\n }\n Intent intent2 = getIntent();\n String str2 = Constants.KEY_SCREEN_TYPE;\n if (intent2.hasExtra(str2)) {\n this.screenType = getIntent().getStringExtra(str2);\n }\n Intent intent3 = getIntent();\n String str3 = Constants.KEY_SUB_SCREEN_TYPE;\n if (intent3.hasExtra(str3)) {\n this.subScreenType = getIntent().getStringExtra(str3);\n }\n String str4 = this.screenId;\n if (str4 != null && JSONStorage.containsScreen(str4)) {\n this.screenModel = JSONStorage.getScreenModel(this.screenId);\n }\n checkStats();\n }", "@Override\n public void onClick(View v) {\n if (arg0 == 0) {//清理缓存\n final String filePath = Environment.getExternalStorageDirectory().getPath()+\"/video\";\n DataCleanManager.cleanApplicationData(Setinfo_Activity.this, filePath);\n try {\n //获取缓存大小\n notifyDataSetChanged();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n } else if (arg0 == 1) {//检查新版本\n presenter.getVersionInfo();\n } else if (arg0 == 2) { // 帮助与反馈\n Intent feedBackIntent = new Intent(Setinfo_Activity.this, FeedbackActivity.class);\n ScreenManager.getScreenManager().startPage(Setinfo_Activity.this, feedBackIntent, true);\n }else if(arg0 == 3){//关于我们\n\t\t\t\t\t\tIntent intent3 = new Intent(Setinfo_Activity.this,AboutMy_Activity.class);\n\t\t\t\t\t\tScreenManager.getScreenManager().startPage(Setinfo_Activity.this, intent3, true);\n\t\t\t\t\t}\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "public interface IActivity {\n void bindData();\n\n void bindListener();\n}", "public FiksturAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "public interface IViewListActivity {\n\n Context getBaseContext();\n\n View findViewById(final int id);\n\n void onResultList(final List<Filme> filmes);\n\n void setSupportActionBar(Toolbar toolbar);\n\n void startSearch();\n\n void onErrorSearch(final String errorMsg);\n\n void onSuccess(final Filme filme);\n\n}", "public abstract Activity getActivity(IBinder token);", "@Override\n\tprotected void onCreate(Bundle savedInstanceState){\n\t\tsuper.onCreate(savedInstanceState);\n\t\t/*LIST PAGES*/\n\t\taddTab(R.string.main,MainActivity.class);\n\t\t//addTab(R.string.menu,MenuActivity.class);\n\t\taddTab(R.string.menu,PagerCore.MenuActivity.class);\n\t\taddTab(R.string.murasyoulaw,LawViewerActivity.class);\n\n\t\t//for(Map.Entry<Integer,Class<? extends Activity>> i:dic.entrySet())helper.add(i);\n\t\tfor(Map.Entry<Integer,Class<? extends Activity>> i:helper)decorCache.put(dbg(i.getValue()),openActivity(i.getValue()));\n\t\tfor(Map.Entry<Class<? extends Activity>,View> i:decorCache.entrySet())helper2.add(i.getValue());\n\t\t\n\t\tif(sdkint>=21)getActionBar().setElevation(0);\n\t\tinstance=new WeakReference<PagerFlameActivity>(this);\n\t\tsetContentView(getLocalActivityManager().startActivity(\"core\",new Intent(this,PagerCore.class)).getDecorView());\n\t}", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"regis\",mostCurrent.activityBA);\n //BA.debugLineNum = 31;BA.debugLine=\"Activity.Title = \\\"Register\\\"\";\nmostCurrent._activity.setTitle(BA.ObjectToCharSequence(\"Register\"));\n //BA.debugLineNum = 33;BA.debugLine=\"ImageView1.Visible = False\";\nmostCurrent._imageview1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 35;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void initializeActivity() {\n initializeActionbar();\n initializeActionDrawerToggle();\n setUpNavigationDrawer();\n setStartFragment();\n setFloatingButtonListener();\n setUpShareAppListener();\n hideWindowSoftKeyboard();\n }", "@Override\n public void onResume(Activity activity) {\n }", "@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n act = (BaseActivity) activity;\r\n\r\n }", "@Override\n public void onCreate() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tonIntentClass(activity, MainActivity.class, true);\n\t\t\t}", "protected abstract Activity getActivity(final T androidComponent);", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }" ]
[ "0.7188008", "0.71591485", "0.7046226", "0.69698983", "0.6943855", "0.69095016", "0.6723075", "0.6722393", "0.6673645", "0.66259915", "0.66215897", "0.65929407", "0.64851135", "0.6460059", "0.6400533", "0.63749844", "0.6373116", "0.6356219", "0.63501775", "0.63458776", "0.6324725", "0.6324546", "0.632384", "0.6320889", "0.62565917", "0.62507784", "0.62330484", "0.6190011", "0.61787236", "0.61766195", "0.6172148", "0.61663395", "0.6159138", "0.61502236", "0.6147278", "0.6141059", "0.6133871", "0.61321", "0.6127692", "0.6094522", "0.608776", "0.60758", "0.60728073", "0.6069957", "0.6065209", "0.60589886", "0.6057961", "0.60505044", "0.6038692", "0.6038396", "0.60377616", "0.60320437", "0.60176134", "0.6017288", "0.6005588", "0.59974027", "0.5991876", "0.5990609", "0.5989247", "0.5986565", "0.598414", "0.598414", "0.59836364", "0.596031", "0.596031", "0.5958139", "0.595385", "0.5935014", "0.59241503", "0.5923342", "0.5918158", "0.5916137", "0.59155494", "0.59115356", "0.59112775", "0.5909676", "0.59033084", "0.58996373", "0.58951557", "0.58951557", "0.58951557", "0.58951557", "0.58951557", "0.58951557", "0.5892608", "0.588763", "0.58866316", "0.588416", "0.5883801", "0.58815", "0.5875664", "0.5872546", "0.58696824", "0.58663875", "0.586322", "0.5855855", "0.58540887", "0.5848471", "0.5846116", "0.584594", "0.584594" ]
0.0
-1
Updates the look of the VM preference widgets based on current VM provider settings. Note that the provider name is loaded form the found activity via loadLabel in initVoiceMailProviders in order for it to be localizable.
private void updateVMPreferenceWidgets(String currentProviderSetting) { final String key = currentProviderSetting; final VoiceMailProvider provider = mVMProvidersData.get(key); /* This is the case when we are coming up on a freshly wiped phone and there is no persisted value for the list preference mVoicemailProviders. In this case we want to show the UI asking the user to select a voicemail provider as opposed to silently falling back to default one. */ if (provider == null) { mVoicemailProviders.setSummary(getString(R.string.sum_voicemail_choose_provider)); mVoicemailSettings.setSummary(""); mVoicemailSettings.setEnabled(false); mVoicemailSettings.setIntent(null); } else { final String providerName = provider.name; mVoicemailProviders.setSummary(providerName); mVoicemailSettings.setSummary(getApplicationContext().getString( R.string.voicemail_settings_for, providerName)); mVoicemailSettings.setEnabled(true); mVoicemailSettings.setIntent(provider.intent); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initVoiceMailProviders() {\n String providerToIgnore = null;\n if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) {\n providerToIgnore = getIntent().getStringExtra(IGNORE_PROVIDER_EXTRA);\n }\n \n mVMProvidersData.clear();\n \n // Stick the default element which is always there\n final String myCarrier = getString(R.string.voicemail_default);\n mVMProvidersData.put(\"\", new VoiceMailProvider(myCarrier, null));\n \n // Enumerate providers\n PackageManager pm = getPackageManager();\n Intent intent = new Intent();\n intent.setAction(ACTION_CONFIGURE_VOICEMAIL);\n List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0);\n int len = resolveInfos.size() + 1; // +1 for the default choice we will insert.\n \n // Go through the list of discovered providers populating the data map\n // skip the provider we were instructed to ignore if there was one\n for (int i = 0; i < resolveInfos.size(); i++) {\n final ResolveInfo ri= resolveInfos.get(i);\n final ActivityInfo currentActivityInfo = ri.activityInfo;\n final String key = makeKeyForActivity(currentActivityInfo);\n if (key.equals(providerToIgnore)) {\n len--;\n continue;\n }\n final String nameForDisplay = ri.loadLabel(pm).toString();\n Intent providerIntent = new Intent();\n providerIntent.setAction(ACTION_CONFIGURE_VOICEMAIL);\n providerIntent.setClassName(currentActivityInfo.packageName,\n currentActivityInfo.name);\n mVMProvidersData.put(\n key,\n new VoiceMailProvider(nameForDisplay, providerIntent));\n \n }\n \n // Now we know which providers to display - create entries and values array for\n // the list preference\n String [] entries = new String [len];\n String [] values = new String [len];\n entries[0] = myCarrier;\n values[0] = \"\";\n int entryIdx = 1;\n for (int i = 0; i < resolveInfos.size(); i++) {\n final String key = makeKeyForActivity(resolveInfos.get(i).activityInfo);\n if (!mVMProvidersData.containsKey(key)) {\n continue;\n }\n entries[entryIdx] = mVMProvidersData.get(key).name;\n values[entryIdx] = key;\n entryIdx++;\n }\n \n mVoicemailProviders.setEntries(entries);\n mVoicemailProviders.setEntryValues(values);\n \n updateVMPreferenceWidgets(mVoicemailProviders.getValue());\n \n mPerProviderSavedVMNumbers =\n this.getApplicationContext().getSharedPreferences(\n VM_NUMBERS_SHARED_PREFERENCES_NAME, MODE_PRIVATE);\n }", "private void configureViewElementsBasedOnProvider() {\n JRDictionary socialSharingProperties = mSelectedProvider.getSocialSharingProperties();\n \n if (socialSharingProperties.getAsBoolean(\"content_replaces_action\"))\n updatePreviewTextWhenContentReplacesAction();\n else\n updatePreviewTextWhenContentDoesNotReplaceAction();\n \n if (isPublishThunk()) {\n mMaxCharacters = mSelectedProvider.getSocialSharingProperties()\n .getAsDictionary(\"set_status_properties\").getAsInt(\"max_characters\");\n } else {\n mMaxCharacters = mSelectedProvider.getSocialSharingProperties()\n .getAsInt(\"max_characters\");\n }\n \n if (mMaxCharacters != -1) {\n mCharacterCountView.setVisibility(View.VISIBLE);\n } else\n mCharacterCountView.setVisibility(View.GONE);\n \n updateCharacterCount();\n \n boolean can_share_media = mSelectedProvider.getSocialSharingProperties()\n .getAsBoolean(\"can_share_media\");\n \n // Switch on or off the media content view based on the presence of media and ability to\n // display it\n boolean showMediaContentView = mActivityObject.getMedia().size() > 0 && can_share_media;\n mMediaContentView.setVisibility(showMediaContentView ? View.VISIBLE : View.GONE);\n \n // Switch on or off the action label view based on the provider accepting an action\n //boolean contentReplacesAction = socialSharingProperties.getAsBoolean(\"content_replaces_action\");\n //mPreviewLabelView.setVisibility(contentReplacesAction ? View.GONE : View.VISIBLE);\n \n mUserProfileInformationAndShareButtonContainer.setBackgroundColor(\n colorForProviderFromArray(socialSharingProperties.get(\"color_values\"), true));\n \n int colorWithNoAlpha = colorForProviderFromArray(\n mSelectedProvider.getSocialSharingProperties().get(\"color_values\"), false);\n \n mJustShareButton.getBackground().setColorFilter(colorWithNoAlpha, PorterDuff.Mode.MULTIPLY);\n mConnectAndShareButton.getBackground().setColorFilter(colorWithNoAlpha,\n PorterDuff.Mode.MULTIPLY);\n mPreviewBorder.getBackground().setColorFilter(colorWithNoAlpha, PorterDuff.Mode.SRC_ATOP);\n \n // Drawable providerIcon = mSelectedProvider.getProviderListIconDrawable(this);\n //\n // mConnectAndShareButton.setCompoundDrawables(null, null, providerIcon, null);\n // mJustShareButton.setCompoundDrawables(null, null, providerIcon, null);\n mProviderIcon.setImageDrawable(mSelectedProvider.getProviderListIconDrawable(this));\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "private void configureTextViewAccordingToPreference() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mActivity);\n String area = preferences.getString(\"area\", \"sq ft\");\n String currency = preferences.getString(\"currency\", \"$\");\n\n if (area.equals(\"sq ft\"))\n mBinding.searchSurfaceTxt.setText(R.string.surface_sqft);\n else\n mBinding.searchSurfaceTxt.setText(R.string.surface_m2);\n\n if (currency.equals(\"$\"))\n mBinding.searchPriceTxt.setText(R.string.price_dollars);\n else\n mBinding.searchPriceTxt.setText(R.string.price_euros);\n }", "private void setview() {\n\t\ttitleView = (TextView) findViewById(R.id.title_text);\r\n\t\ttitleView.setText(R.string.advanced_setting);\r\n\t\tbackView = (ImageView) findViewById(R.id.title_back);\r\n\t\tbackView.setOnClickListener(this);\r\n\r\n\t\tswitch_preview = (Switch) findViewById(R.id.switch_preview);\r\n\t\tswitch_preview.setOnCheckedChangeListener(this);\r\n\r\n\t\tcb_use_STUN = (CheckBox) findViewById(R.id.cb_use_STUN);\r\n\t\tcb_forbid_server_call = (CheckBox) findViewById(R.id.cb_forbid_server_call);\r\n\t\tcb_open_BLFList = (CheckBox) findViewById(R.id.cb_open_BLFList);\r\n\t\tcb_open_session_timer = (CheckBox) findViewById(R.id.cb_open_session_timer);\r\n\t\tcb_open_Rport = (CheckBox) findViewById(R.id.cb_open_Rport);\r\n\t\tcb_open_PRACK = (CheckBox) findViewById(R.id.cb_open_PRACK);\r\n\t\tcb_start_Tel_type_call = (CheckBox) findViewById(R.id.cb_start_Tel_type_call);\r\n\t\tcb_compatible_special_server = (CheckBox) findViewById(R.id.cb_compatible_special_server);\r\n\t\tcb_allow_URI_transition = (CheckBox) findViewById(R.id.cb_allow_URI_transition);\r\n\t\tcb_show_name_quotationmark = (CheckBox) findViewById(R.id.cb_show_name_quotationmark);\r\n\t\tcb_start_voice_message = (CheckBox) findViewById(R.id.cb_start_voice_message);\r\n\t\tcb_open_DNS_SRV = (CheckBox) findViewById(R.id.cb_open_DNS_SRV);\r\n\r\n\t\tcb_use_STUN.setOnCheckedChangeListener(this);\r\n\t\tcb_forbid_server_call.setOnCheckedChangeListener(this);\r\n\t\tcb_open_BLFList.setOnCheckedChangeListener(this);\r\n\t\tcb_open_session_timer.setOnCheckedChangeListener(this);\r\n\t\tcb_open_Rport.setOnCheckedChangeListener(this);\r\n\t\tcb_open_PRACK.setOnCheckedChangeListener(this);\r\n\t\tcb_start_Tel_type_call.setOnCheckedChangeListener(this);\r\n\t\tcb_compatible_special_server.setOnCheckedChangeListener(this);\r\n\t\tcb_allow_URI_transition.setOnCheckedChangeListener(this);\r\n\t\tcb_show_name_quotationmark.setOnCheckedChangeListener(this);\r\n\t\tcb_start_voice_message.setOnCheckedChangeListener(this);\r\n\t\tcb_open_DNS_SRV.setOnCheckedChangeListener(this);\r\n\r\n\t\tll_proxy_server_address = (LinearLayout) findViewById(R.id.ll_proxy_server_address);\r\n\t\tll_proxy_server_port = (LinearLayout) findViewById(R.id.ll_proxy_server_port);\r\n\t\tll_proxy_server_name = (LinearLayout) findViewById(R.id.ll_proxy_server_name);\r\n\t\tll_proxy_server_password = (LinearLayout) findViewById(R.id.ll_proxy_server_password);\r\n\t\tll_backup_proxy_server_address = (LinearLayout) findViewById(R.id.ll_backup_proxy_server_address);\r\n\t\tll_backup_proxy_server_port = (LinearLayout) findViewById(R.id.ll_backup_proxy_server_port);\r\n\t\tll_server_name = (LinearLayout) findViewById(R.id.ll_server_name);\r\n\t\tll_server_register_time = (LinearLayout) findViewById(R.id.ll_server_register_time);\r\n\t\tll_DTMF_type = (LinearLayout) findViewById(R.id.ll_DTMF_type);\r\n\t\tll_BLFList_number = (LinearLayout) findViewById(R.id.ll_BLFList_number);\r\n\t\tll_session_timeout = (LinearLayout) findViewById(R.id.ll_session_timeout);\r\n\t\tll_specification_version = (LinearLayout) findViewById(R.id.ll_specification_version);\r\n\t\tll_anonymity_call_specification = (LinearLayout) findViewById(R.id.ll_anonymity_call_specification);\r\n\t\tll_transport_protocols = (LinearLayout) findViewById(R.id.ll_transport_protocols);\r\n\t\tll_caller_identification = (LinearLayout) findViewById(R.id.ll_caller_identification);\r\n\t\tll_preview_pattern = (LinearLayout) findViewById(R.id.ll_preview_pattern);\r\n\r\n\t\ttv_proxy_server_address = (TextView) findViewById(R.id.tv_proxy_server_address);\r\n\t\ttv_proxy_server_port = (TextView) findViewById(R.id.tv_proxy_server_port);\r\n\t\ttv_proxy_server_name = (TextView) findViewById(R.id.tv_proxy_server_name);\r\n\t\ttv_proxy_server_password = (TextView) findViewById(R.id.tv_proxy_server_password);\r\n\t\ttv_backup_proxy_server_address = (TextView) findViewById(R.id.tv_backup_proxy_server_address);\r\n\t\ttv_backup_proxy_server_port = (TextView) findViewById(R.id.tv_backup_proxy_server_port);\r\n\t\ttv_server_name = (TextView) findViewById(R.id.tv_server_name);\r\n\t\ttv_server_register_time = (TextView) findViewById(R.id.tv_server_register_time);\r\n\t\ttv_DTMF_type = (TextView) findViewById(R.id.tv_DTMF_type);\r\n\t\ttv_BLFList_number = (TextView) findViewById(R.id.tv_BLFList_number);\r\n\t\ttv_session_timeout = (TextView) findViewById(R.id.tv_session_timeout);\r\n\t\ttv_specification_version = (TextView) findViewById(R.id.tv_specification_version);\r\n\t\ttv_anonymity_call_specification = (TextView) findViewById(R.id.tv_anonymity_call_specification);\r\n\t\ttv_transport_protocols = (TextView) findViewById(R.id.tv_transport_protocols);\r\n\t\ttv_caller_identification = (TextView) findViewById(R.id.tv_caller_identification);\r\n\t\ttv_preview_pattern = (TextView) findViewById(R.id.tv_preview_pattern);\r\n\r\n\t\tll_proxy_server_address.setOnClickListener(this);\r\n\t\tll_proxy_server_port.setOnClickListener(this);\r\n\t\tll_proxy_server_name.setOnClickListener(this);\r\n\t\tll_proxy_server_password.setOnClickListener(this);\r\n\t\tll_backup_proxy_server_address.setOnClickListener(this);\r\n\t\tll_backup_proxy_server_port.setOnClickListener(this);\r\n\t\tll_server_name.setOnClickListener(this);\r\n\t\tll_server_register_time.setOnClickListener(this);\r\n\t\tll_DTMF_type.setOnClickListener(this);\r\n\t\tll_BLFList_number.setOnClickListener(this);\r\n\t\tll_session_timeout.setOnClickListener(this);\r\n\t\tll_specification_version.setOnClickListener(this);\r\n\t\tll_anonymity_call_specification.setOnClickListener(this);\r\n\t\tll_transport_protocols.setOnClickListener(this);\r\n\t\tll_caller_identification.setOnClickListener(this);\r\n\t\tll_preview_pattern.setOnClickListener(this);\r\n\t}", "public static void updateViewSettings() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tinformationFrame.update(selectedSensor);\n\t\t\tviewPort.getGraphicsPainter().repaint();\n\t\t}\n\t}", "private void setupSimplePreferencesScreen() {\n if (!isSimplePreferences(this)) {\n return;\n }\n\n // In the simplified UI, fragments are not used at all and we instead\n // use the older PreferenceActivity APIs.\n\n // Add 'general' preferences.\n addPreferencesFromResource(R.xml.pref_general);\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n bindPreferenceSummaryToValue(findPreference(\"pref_favColor\"));\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "private void initializeWithProviderConfiguration() {\n List<JRProvider> socialProviders = mSessionData.getSocialProviders();\n if (socialProviders == null || socialProviders.size() == 0) {\n JREngageError err = new JREngageError(\n \"Cannot load the Publish Activity, no social providers are configured.\",\n JREngageError.ConfigurationError.CONFIGURATION_INFORMATION_ERROR,\n JREngageError.ErrorType.CONFIGURATION_INFORMATION_MISSING);\n mSessionData.triggerPublishingDialogDidFail(err);\n return;\n }\n \n // Configure the properties of the UI\n mActivityObject.shortenUrls(new JRActivityObject.ShortenedUrlCallback() {\n public void setShortenedUrl(String shortenedUrl) {\n mShortenedActivityURL = shortenedUrl;\n \n if (mSelectedProvider == null) return;\n \n if (mSelectedProvider.getSocialSharingProperties().\n getAsBoolean(\"content_replaces_action\")) {\n updatePreviewTextWhenContentReplacesAction();\n } else {\n updatePreviewTextWhenContentDoesNotReplaceAction();\n }\n updateCharacterCount();\n }\n });\n createTabs();\n }", "@Override\n public void refreshView() {\n WSDLActivityConfigurationBean configuration = activity.getConfiguration();\n description.setText(\"VPH-Share service \" + configuration.getWsdl());\n }", "private void configureViewPresenters(View inflatedView) {\n // Instantiate the Event Listener\n listener = new PresenterListener(this);\n actionToolbarPresenter = new ActionToolbarPresenter(inflatedView);\n actionToolbarPresenter.setListener(listener);\n actionToolbarPresenter.setBattery(sharedPrefs.getInt(BATTERY_RECEIVED, 0)); }", "private void setupSimplePreferencesScreen() {\n\n addPreferencesFromResource(R.xml.pref_weight);\n\n final Activity activity = getActivity();\n\n CustomPreferenceCategory fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader.setTitle(R.string.pref_header_about);\n getPreferenceScreen().addPreference(fakeHeader);\n addPreferencesFromResource(R.xml.pref_about);\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_units_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_plate_style_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_bar_weight_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_formula_key)));\n\n Preference aboutButton = (Preference)findPreference(getString(R.string.pref_about_button));\n aboutButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n AboutDialog aboutDialog = new AboutDialog();\n aboutDialog.show(getFragmentManager(), \"AboutDialog\");\n return true;\n }\n });\n\n Preference rateButton = (Preference)findPreference(getString(R.string.pref_rate_button));\n rateButton .setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n Uri uri = Uri.parse(\"market://details?id=\" + activity.getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n try {\n startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://play.google.com/store/apps/details?id=\" + activity.getPackageName())));\n }\n return true;\n }\n });\n\n final RepCheckPreferenceFragment repCheckPreferenceFragment = this;\n\n Preference resetButton = (Preference)findPreference(getString(R.string.pref_reset_button));\n resetButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n DialogFragment saveAsNewDialog = ConfirmResetDialog.newInstance(new ResetResponseHandler(repCheckPreferenceFragment));\n saveAsNewDialog.show(activity.getFragmentManager(), \"RenameSetDialog\");\n return true;\n }\n });\n }", "private void updateUi() {\n final int numPoints = map.getPolyLinePoints(featureId).size();\n final MapPoint location = map.getGpsLocation();\n\n // Visibility state\n playButton.setVisibility(inputActive ? View.GONE : View.VISIBLE);\n pauseButton.setVisibility(inputActive ? View.VISIBLE : View.GONE);\n recordButton.setVisibility(inputActive && recordingEnabled && !recordingAutomatic ? View.VISIBLE : View.GONE);\n\n // Enabled state\n zoomButton.setEnabled(location != null);\n backspaceButton.setEnabled(numPoints > 0);\n clearButton.setEnabled(!inputActive && numPoints > 0);\n settingsView.findViewById(R.id.manual_mode).setEnabled(location != null);\n settingsView.findViewById(R.id.automatic_mode).setEnabled(location != null);\n\n if (intentReadOnly) {\n playButton.setEnabled(false);\n backspaceButton.setEnabled(false);\n clearButton.setEnabled(false);\n }\n // Settings dialog\n\n // GPS status\n boolean usingThreshold = isAccuracyThresholdActive();\n boolean acceptable = location != null && isLocationAcceptable(location);\n int seconds = INTERVAL_OPTIONS[intervalIndex];\n int minutes = seconds / 60;\n int meters = ACCURACY_THRESHOLD_OPTIONS[accuracyThresholdIndex];\n locationStatus.setText(\n location == null ? getString(org.odk.collect.strings.R.string.location_status_searching)\n : !usingThreshold ? getString(org.odk.collect.strings.R.string.location_status_accuracy, location.accuracy)\n : acceptable ? getString(org.odk.collect.strings.R.string.location_status_acceptable, location.accuracy)\n : getString(org.odk.collect.strings.R.string.location_status_unacceptable, location.accuracy)\n );\n locationStatus.setBackgroundColor(\n location == null ? getThemeAttributeValue(this, com.google.android.material.R.attr.colorPrimary)\n : acceptable ? getThemeAttributeValue(this, com.google.android.material.R.attr.colorPrimary)\n : getThemeAttributeValue(this, com.google.android.material.R.attr.colorError)\n );\n collectionStatus.setText(\n !inputActive ? getString(org.odk.collect.strings.R.string.collection_status_paused, numPoints)\n : !recordingEnabled ? getString(org.odk.collect.strings.R.string.collection_status_placement, numPoints)\n : !recordingAutomatic ? getString(org.odk.collect.strings.R.string.collection_status_manual, numPoints)\n : !usingThreshold ? (\n minutes > 0 ?\n getString(org.odk.collect.strings.R.string.collection_status_auto_minutes, numPoints, minutes) :\n getString(org.odk.collect.strings.R.string.collection_status_auto_seconds, numPoints, seconds)\n )\n : (\n minutes > 0 ?\n getString(org.odk.collect.strings.R.string.collection_status_auto_minutes_accuracy, numPoints, minutes, meters) :\n getString(org.odk.collect.strings.R.string.collection_status_auto_seconds_accuracy, numPoints, seconds, meters)\n )\n );\n }", "private void setLanguage(String currentLang) {\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE, currentLang);\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE_CODE, String.valueOf(languageCode));\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n switch (currentLang) {\n case Constants.AppConstant.CHINES_TRAD:\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.CHINES_SIMPLE:\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.MALAYALAM:\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.HINDI:\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.ARABIC:\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n default:\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n }\n }", "private void updateUI() {\n if (mAccount != null) {\n signInButton.setEnabled(false);\n signOutButton.setEnabled(true);\n callGraphApiInteractiveButton.setEnabled(true);\n callGraphApiSilentButton.setEnabled(true);\n currentUserTextView.setText(mAccount.getUsername());\n } else {\n signInButton.setEnabled(true);\n signOutButton.setEnabled(false);\n callGraphApiInteractiveButton.setEnabled(false);\n callGraphApiSilentButton.setEnabled(false);\n currentUserTextView.setText(\"None\");\n }\n\n deviceModeTextView.setText(mSingleAccountApp.isSharedDevice() ? \"Shared\" : \"Non-shared\");\n }", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "public void configure(T aView)\n {\n aView.setPrefSize(120,22);\n aView.getTextField().setPromptText(\"Spinner\");\n }", "private void configureUI() {\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeClear, getString(R.string.defaultClearSourceUrl));\r\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedSourceUrl));\r\n viewBinding.sourceUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Defining default licenses and its visibility constraints.\r\n viewBinding.licenseUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedLicenseUrl));\r\n viewBinding.licenseUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Checking default stream type and defining action on its change.\r\n viewBinding.streamTypesGroup.setOnCheckedChangeListener((group, checkedId) -> onStreamTypeChange(checkedId));\r\n viewBinding.streamTypesGroup.check(R.id.streamTypeClear);\r\n\r\n // Setting action on stream play request.\r\n viewBinding.playButton.setOnClickListener(playButton -> onPlay());\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_settings,container,false);\n\n live_match = (Switch) view.findViewById(R.id.live_match);\n live_score = (Switch) view.findViewById(R.id.live_score);\n\n live_match.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n setPreferences(getString(R.string.live_match), live_match.isChecked());\n }\n });\n\n live_score.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n setPreferences(getString(R.string.live_score), live_score.isChecked());\n }\n });\n\n loadPreferences();\n \n fav_team_age_group = (Spinner)view.findViewById(R.id.fav_team_age_group);\n fav_team_name = (Spinner)view.findViewById(R.id.fav_team_name);\n team_name_arraylist = new ArrayList<String>();\n team_name_arraylist.add(\"Select Team\");\n\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(\"UserPreferences\",Context.MODE_PRIVATE);\n final SharedPreferences.Editor editor = sharedPreferences.edit();\n\n final ArrayAdapter<String> age_group_adapter = new ArrayAdapter<String>(getActivity(),android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.age_groups));\n age_group_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n fav_team_age_group.setAdapter(age_group_adapter);\n\n ArrayAdapter<String> team_name_adapter = new ArrayAdapter<String>(getActivity(),android.R.layout.simple_list_item_1,team_name_arraylist);\n team_name_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n fav_team_name.setAdapter(team_name_adapter);\n\n fav_team_age_group.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if(position!=selection_for_age_group){\n selection_for_age_group = position;\n age_group = \"Group - \"+age_group_codes[position];\n FetchTeamNames();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n fav_team_name.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if(position!=0 && position!=selection_for_team && selection_for_age_group!=0){\n selection_for_team = position;\n editor.putString(\"Favourite Age Group\",age_group);\n editor.putString(\"Favourite Team Name\",team_name_arraylist.get(position));\n editor.commit();\n Toast.makeText(getActivity(),\"Favorite Team has been added\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n return view;\n }", "private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }", "private void applyCurrentTheme() {\n TempestatibusApplicationSettings tempestatibusApplicationSettings = getTempestatibusApplicationSettings();\n tempestatibusApplicationSettings.createSharedPreferenceContext(this);\n String theme = tempestatibusApplicationSettings.getAppThemePreference();\n mRefreshImageView.setBackgroundResource(TempestatibusApplicationSettings.getRefreshId());\n mDegreeImageView.setBackgroundResource(TempestatibusApplicationSettings.getLargeDegreeId(theme));\n mDewValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mApparentTemperatureValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mSettingsImageView.setBackgroundResource(TempestatibusApplicationSettings.getSettingsIconId());\n mHourglassIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getHourglassId());\n mSaveIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSaveIconId());\n mSearchIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSearchIconId());\n }", "private void populateInterfaceElements() {\n prismUserTextView.setTypeface(Default.sourceSansProBold);\n prismPostDateTextView.setTypeface(Default.sourceSansProLight);\n likesCountTextView.setTypeface(Default.sourceSansProLight);\n repostsCountTextView.setTypeface(Default.sourceSansProLight);\n\n setupPostUserUIElements();\n setupPostImageView();\n setupActionButtons();\n }", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n \r\n mOriginName.setEnabled(!state.builder.isPersistent() && TextUtils.isEmpty(ma.getUsername()));\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary;\r\n if (ma.getUsername().length() > 0) {\r\n summary = new StringBuilder(ma.getUsername());\r\n } else {\r\n summary = new StringBuilder(this.getText(ma.alternativeTermForResourceId(R.string.summary_preference_username)));\r\n }\r\n mEditTextUsername.setDialogTitle(this.getText(ma.alternativeTermForResourceId(R.string.dialog_title_preference_username)));\r\n mEditTextUsername.setTitle(this.getText(ma.alternativeTermForResourceId(R.string.title_preference_username)));\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(!state.builder.isPersistent() && !ma.isUsernameValidToStartAddingNewAccount());\r\n \r\n boolean isNeeded = ma.canChangeOAuth();\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(isNeeded);\r\n if (isNeeded) {\r\n mOAuth.setTitle(R.string.title_preference_oauth);\r\n mOAuth.setSummary(ma.isOAuth() ? R.string.summary_preference_oauth_on : R.string.summary_preference_oauth_off);\r\n } else {\r\n mOAuth.setTitle(\"\");\r\n mOAuth.setSummary(\"\");\r\n }\r\n \r\n isNeeded = ma.getConnection().isPasswordNeeded();\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n if (isNeeded) {\r\n mEditTextPassword.setTitle(R.string.title_preference_password);\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n } else {\r\n summary = null;\r\n mEditTextPassword.setTitle(\"\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(isNeeded);\r\n \r\n int titleResId;\r\n boolean addAccountOrVerifyCredentialsEnabled = ma.isOAuth() || ma.getCredentialsPresent();\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (state.builder.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n if (!ma.isUsernameValidToStartAddingNewAccount()) {\r\n addAccountOrVerifyCredentialsEnabled = false;\r\n }\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n addAccountOrVerifyCredentials.setTitle(titleResId);\r\n addAccountOrVerifyCredentials.setSummary(summary);\r\n addAccountOrVerifyCredentials.setEnabled(addAccountOrVerifyCredentialsEnabled);\r\n }", "public PreferencesPanel()\n {\n initComponents();\n CB_CHECK_NEW.setSelected( Main.get_long_prop(Preferences.CHECK_NEWS) > 0);\n CB_CACHE_MAILS.setSelected( Main.get_long_prop(Preferences.CACHE_MAILFILES) > 0);\n\n\n\n COMBO_UI.removeAllItems();\n ArrayList<String> ui_names = UI_Generic.get_ui_names();\n for (int i = 0; i < ui_names.size(); i++)\n {\n String string = ui_names.get(i);\n COMBO_UI.addItem(string);\n }\n\n last_ui = (int)Main.get_long_prop(Preferences.UI, 0l);\n if (last_ui < COMBO_UI.getItemCount())\n COMBO_UI.setSelectedIndex( last_ui );\n else\n COMBO_UI.setSelectedIndex( 0 );\n\n String ds = Main.get_prop( Preferences.DEFAULT_STATION );\n if (ds != null && ds.length() > 0)\n {\n ParseToken pt = new ParseToken(ds);\n String ip = pt.GetString(\"IP:\");\n long po = pt.GetLongValue(\"PO:\");\n boolean only_this = pt.GetBoolean(\"OT:\");\n TXT_SERVER_IP.setText(ip);\n if (po > 0)\n TXT_SERVER_PORT.setText(Long.toString(po) );\n CB_NO_SCANNING.setSelected(only_this);\n }\n\n String l_code = Main.get_prop( Preferences.COUNTRYCODE, \"DE\");\n\n if (l_code.compareTo(\"DE\") == 0)\n COMBO_LANG.setSelectedIndex(0);\n if (l_code.compareTo(\"EN\") == 0)\n COMBO_LANG.setSelectedIndex(1); \n }", "private void initButtonStates() {\n//\t\tString provMethod = ProvisioningActivator.getProvisioningService().getProvisioningMethod();\n//\t\tboolean isProvEnabled = (provMethod != null && provMethod.length() > 0 && !provMethod.equals(\"NONE\"));\n//\n//\t\tenableCheckBox.setSelected(isProvEnabled);\n//\n//\t\tif (isProvEnabled) {\n//\t\t\tif (provMethod.equals(\"DHCP\"))\n//\t\t\t\tdhcpButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"DNS\"))\n//\t\t\t\tdnsButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"Bonjour\"))\n//\t\t\t\tbonjourButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"Manual\")) {\n//\t\t\t\tmanualButton.setSelected(true);\n//\n//\t\t\t\tString uri = ProvisioningActivator.getProvisioningService().getProvisioningUri();\n//\t\t\t\tif (uri != null)\n//\t\t\t\t\turiField.setText(uri);\n//\t\t\t}\n//\t\t}\n//\n//\t\tdhcpButton.setEnabled(isProvEnabled);\n//\t\tmanualButton.setEnabled(isProvEnabled);\n//\t\turiField.setEnabled(manualButton.isSelected());\n//\t\tbonjourButton.setEnabled(isProvEnabled);\n//\t\tdnsButton.setEnabled(false);\n//\n//\t\t// creadentials\n//\t\tforgetPasswordButton.setEnabled(isProvEnabled);\n//\t\tusernameField.setText(ProvisioningActivator.getConfigurationService().getString(ProvisioningServiceImpl.PROPERTY_PROVISIONING_USERNAME));\n//\n//\t\tif (ProvisioningActivator.getCredentialsStorageService().isStoredEncrypted(ProvisioningServiceImpl.PROPERTY_PROVISIONING_PASSWORD)) {\n//\t\t\tpasswordField.setText(ProvisioningActivator.getCredentialsStorageService().loadPassword(ProvisioningServiceImpl.PROPERTY_PROVISIONING_PASSWORD));\n//\t\t}\n\t}", "private void updateViewConfig() {\n boolean newView = false;\n\n // Check if our view is right for the current mode\n int mode = getMode();\n boolean isCurrentViewShortcut = mCurrentView instanceof ShortcutView;\n Set<SliceItem> loadingActions = mCurrentView.getLoadingActions();\n if (mode == MODE_SHORTCUT && !isCurrentViewShortcut) {\n removeView(mCurrentView);\n mCurrentView = new ShortcutView(getContext());\n addView(mCurrentView, getChildLp(mCurrentView));\n newView = true;\n } else if (mode != MODE_SHORTCUT && isCurrentViewShortcut) {\n removeView(mCurrentView);\n mCurrentView = new TemplateView(getContext());\n addView(mCurrentView, getChildLp(mCurrentView));\n newView = true;\n }\n\n // If the view changes we should apply any configurations to it\n if (newView) {\n mCurrentView.setPolicy(mViewPolicy);\n applyConfigurations();\n if (mListContent != null && mListContent.isValid()) {\n mCurrentView.setSliceContent(mListContent);\n }\n mCurrentView.setLoadingActions(loadingActions);\n }\n updateActions();\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate void setupSimplePreferencesScreen() {\n\t\tif (!isSimplePreferences(this)) {\n\t\t\treturn;\n\t\t}\n\n\t\taddPreferencesFromResource(R.xml.pref_blank);\n\n\t\t// Add 'filters' preferences.\n\t\tPreferenceCategory fakeHeader = new PreferenceCategory(this);\n\n\t\t// Add 'appearance' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.appearance);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_appearance);\n\n\t\t// Add 'text color' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.text_color);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_textcolor);\n\n\t\t// Add 'info' preferences.\n\t\tfakeHeader = new PreferenceCategory(this);\n\t\tfakeHeader.setTitle(R.string.information);\n\t\tgetPreferenceScreen().addPreference(fakeHeader);\n\t\taddPreferencesFromResource(R.xml.pref_info);\n\n\t\t// Add others\n\t\tsetupOpenSourceInfoPreference(this, findPreference(getString(R.string.pref_info_open_source)));\n\t\tsetupVersionPref(this, findPreference(getString(R.string.pref_version)));\n\n\t}", "private void initPreferencesListener()\n {\n Activator.getDefault().getPreferenceStore().addPropertyChangeListener( new IPropertyChangeListener()\n {\n /* (non-Javadoc)\n * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)\n */\n public void propertyChange( PropertyChangeEvent event )\n {\n if ( authorizedPrefs.contains( event.getProperty() ) )\n {\n if ( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING == event.getProperty() )\n {\n view.reloadViewer();\n }\n else\n {\n view.refresh();\n }\n }\n }\n } );\n }", "private void refreshSettingsFields() {\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\txPos.setText(Float.toString(mediaSrc.getActiveCamera().getxPos()));\r\n\t\t\tyPos.setText(Float.toString(mediaSrc.getActiveCamera().getyPos()));\r\n\t\t\tzPos.setText(Float.toString(mediaSrc.getActiveCamera().getzPos()));\r\n\t\t\thOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getHorOrientation()));\r\n\t\t\tvOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getVerOrientation()));\r\n\t\t\tfov.setText(Float.toString(mediaSrc.getActiveCamera().getFov()));\r\n\t\t}\r\n\t\t\r\n\t\txPos.setBackground(Color.WHITE);\r\n\t\tyPos.setBackground(Color.WHITE);\r\n\t\tzPos.setBackground(Color.WHITE);\r\n\t\thOrientation.setBackground(Color.WHITE);\r\n\t\tvOrientation.setBackground(Color.WHITE);\r\n\t\tfov.setBackground(Color.WHITE);\r\n\t}", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "public void setupWidgets(){\n // Checkboxes\n CheckBox checkBonus = (CheckBox) getActivity().findViewById(R.id.eCheck_StackYellow);\n CheckBox checkYellowTop = (CheckBox) getActivity().findViewById(R.id.eCheck_StackTop);\n CheckBox checkYellowBottom = (CheckBox) getActivity().findViewById(R.id.eCheck_StackBottom);\n CheckBox checkHP = (CheckBox) getActivity().findViewById(R.id.eCheck_AbleCollect);\n CheckBox checkStacker = (CheckBox) getActivity().findViewById(R.id.eCheck_Stacker);\n CheckBox checkHerder = (CheckBox) getActivity().findViewById(R.id.eCheck_Herder);\n CheckBox checkBinSpecialist = (CheckBox) getActivity().findViewById(R.id.eCheck_BinSpecialist);\n CheckBox checkNoodleSpecialist = (CheckBox) getActivity().findViewById(R.id.eCheck_NoodleSpecialist);\n CheckBox checkInbound = (CheckBox) getActivity().findViewById(R.id.eCheck_Inbound);\n CheckBox checkOther = (CheckBox) getActivity().findViewById(R.id.eCheck_Other);\n }", "private void update() {\n if (mSuggestionsPref != null) {\n mSuggestionsPref.setShouldDisableView(mSnippetsBridge == null);\n boolean suggestionsEnabled =\n mSnippetsBridge != null && mSnippetsBridge.areRemoteSuggestionsEnabled();\n mSuggestionsPref.setChecked(suggestionsEnabled\n && PrefServiceBridge.getInstance().getBoolean(\n Pref.CONTENT_SUGGESTIONS_NOTIFICATIONS_ENABLED));\n mSuggestionsPref.setEnabled(suggestionsEnabled);\n mSuggestionsPref.setSummary(suggestionsEnabled\n ? R.string.notifications_content_suggestions_summary\n : R.string.notifications_content_suggestions_summary_disabled);\n }\n\n mFromWebsitesPref.setSummary(ContentSettingsResources.getCategorySummary(\n ContentSettingsType.CONTENT_SETTINGS_TYPE_NOTIFICATIONS,\n PrefServiceBridge.getInstance().isCategoryEnabled(\n ContentSettingsType.CONTENT_SETTINGS_TYPE_NOTIFICATIONS)));\n }", "public void setLabelProvider(ILabelProvider labelProvider) throws Exception;", "TvShowSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n\n // UI initializations\n initComponents();\n initDataBindings();\n\n // logic initializations\n btnClearTraktTvShows.addActionListener(e -> {\n Object[] options = { BUNDLE.getString(\"Button.yes\"), BUNDLE.getString(\"Button.no\") };\n int confirm = JOptionPane.showOptionDialog(null, BUNDLE.getString(\"Settings.trakt.cleartvshows.hint\"),\n BUNDLE.getString(\"Settings.trakt.cleartvshows\"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);\n if (confirm == JOptionPane.YES_OPTION) {\n TmmTask task = new ClearTraktTvTask(false, true);\n TmmTaskManager.getInstance().addUnnamedTask(task);\n }\n });\n\n btnPresetXbmc.addActionListener(evt -> settings.setDefaultSettingsForXbmc());\n btnPresetKodi.addActionListener(evt -> settings.setDefaultSettingsForKodi());\n btnPresetMediaPortal1.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetMediaPortal2.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetPlex.addActionListener(evt -> settings.setDefaultSettingsForPlex());\n\n buildCheckBoxes();\n }", "@Override\n\tprotected Control createContents(final Composite parent) {\n\t\tfinal Composite composite = new Composite(parent, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout());\n\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\tfinal Label lblRandomRules = new Label(composite, SWT.NONE);\n\t\tlblRandomRules.setText(Messages.getString(\"PasswordPolicyPreferences.RulesLabel\")); //$NON-NLS-1$\n\n\t\tfinal Composite composite_1 = new Composite(composite, SWT.NONE);\n\t\tfinal GridLayout gridLayout = new GridLayout();\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.marginWidth = 0;\n\t\tgridLayout.numColumns = 2;\n\t\tcomposite_1.setLayout(gridLayout);\n\n\t\tfinal Label lblDefaultLength = new Label(composite_1, SWT.NONE);\n\t\tlblDefaultLength.setText(Messages.getString(\"PasswordPolicyPreferences.PasswordLength\")); //$NON-NLS-1$\n\n\t\tspiLength = new Spinner(composite_1, SWT.BORDER);\n\t\tspiLength.setSelection(preferenceStore.getInt(DEFAULT_PASSWORD_LENGTH));\n\n\t\tbtnUseLowercase = new Button(composite, SWT.CHECK);\n\t\tbtnUseLowercase.setText(Messages.getString(\"PasswordPolicyPreferences.Lowercase\")); //$NON-NLS-1$\n\t\tbtnUseLowercase.setSelection(preferenceStore.getBoolean(USE_LOWERCASE_LETTERS));\n\n\t\tbtnUserUppercase = new Button(composite, SWT.CHECK);\n\t\tbtnUserUppercase.setText(Messages.getString(\"PasswordPolicyPreferences.Uppercase\")); //$NON-NLS-1$\n\t\tbtnUserUppercase.setSelection(preferenceStore.getBoolean(USE_UPPERCASE_LETTERS));\n\n\t\tbtnUseDigits = new Button(composite, SWT.CHECK);\n\t\tbtnUseDigits.setText(Messages.getString(\"PasswordPolicyPreferences.Digits\")); //$NON-NLS-1$\n\t\tbtnUseDigits.setSelection(preferenceStore.getBoolean(USE_DIGITS));\n\n\t\tbtnUseSymbols = new Button(composite, SWT.CHECK);\n\t\tbtnUseSymbols.setText(Messages.getString(\"PasswordPolicyPreferences.Symbols\")); //$NON-NLS-1$\n\t\tbtnUseSymbols.setSelection(preferenceStore.getBoolean(USE_SYMBOLS));\n\n\t\tbtnUseEaseToRead = new Button(composite, SWT.CHECK);\n\t\tbtnUseEaseToRead.setText(Messages.getString(\"PasswordPolicyPreferences.EasyToRead\")); //$NON-NLS-1$\n\t\tbtnUseEaseToRead.setSelection(preferenceStore.getBoolean(USE_EASY_TO_READ));\n\n\t\tbtnUseHexOnly = new Button(composite, SWT.CHECK);\n\t\tbtnUseHexOnly.setEnabled(false);\n\t\tbtnUseHexOnly.setText(Messages.getString(\"PasswordPolicyPreferences.HexOnly\")); //$NON-NLS-1$\n\t\tbtnUseHexOnly.setSelection(preferenceStore.getBoolean(USE_HEX_ONLY));\n\n\t\treturn composite;\n\t}", "private void loadSettings() {\n \tLog.i(\"T4Y-Settings\", \"Load mobile settings\");\n \tmobileSettings = mainApplication.getMobileSettings();\n \t\n \t//update display\n autoSynchronizationCheckBox.setChecked(mobileSettings.isAllowAutoSynchronization());\n autoScanCheckBox.setChecked(mobileSettings.isAllowAutoScan());\n autoSMSNotificationCheckBox.setChecked(mobileSettings.isAllowAutoSMSNotification());\n }", "@Override\r\n public void initialize(URL url, ResourceBundle resourceBundle) {\r\n\r\n /** keeps height and width from looking abnormal on the switch/patch dropdown **/\r\n switchPatch.setCellFactory(new Callback<ListView<String>, ListCell<String>>() {\r\n @Override\r\n public ListCell<String> call(ListView<String> param) {\r\n ListCell cell = new ListCell<String>() {\r\n @Override\r\n public void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n int numItems = getListView().getItems().size();\r\n int height = 175; // set the maximum height of the popup\r\n if (numItems <= 6) height = numItems *27; // set the height of the popup if number of items is equal to or less than 6\r\n getListView().setPrefHeight(height);\r\n getListView().setPrefWidth(200.0);\r\n if (!empty)\r\n setText(item);\r\n else\r\n setText(item);\r\n }\r\n };\r\n return cell;\r\n }\r\n });\r\n\r\n /** keeps height and width from looking abnormal on the filters dropdown **/\r\n filter.setCellFactory(new Callback<ListView<String>, ListCell<String>>() {\r\n @Override\r\n public ListCell<String> call(ListView<String> param) {\r\n ListCell cell = new ListCell<String>() {\r\n @Override\r\n public void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n int numItems = getListView().getItems().size();\r\n int height = 175; // set the maximum height of the popup\r\n if (numItems <= 6) height = numItems *27; // set the height of the popup if number of items is equal to or less than 6\r\n getListView().setPrefHeight(height);\r\n getListView().setPrefWidth(535);\r\n if (!empty)\r\n setText(item);\r\n else\r\n setText(item);\r\n }\r\n };\r\n return cell;\r\n }\r\n });\r\n\r\n /** call textBoxRestrictions() to check for numerical input on text boxes **/\r\n textBoxRestrictions();\r\n\r\n tpo.setText(\"1\");/** set default values for tpo textbox **/\r\n\r\n channel.setText(\"2\");/** set default values for channel textbox **/\r\n\r\n addMainSWInfo();/** Loads Software info upon window initialization **/\r\n addPAModules();/** Loads PA Modules info upon window initialization **/\r\n\r\n mainExciterSW.getSelectionModel().selectFirst();/** Automatically picks first selection for mainExciterSW **/\r\n paModules.getSelectionModel().selectFirst(); /** Automatically picks first selection for paModules **/\r\n\r\n //print out that RF Tool is loading\r\n System.out.println(\"Loading RF Tool...\");\r\n System.out.println(\" \"); //just adding some space for clarity on console print out\r\n\r\n addTX(); // auto-populates transmitter combo box\r\n }", "private void initView() {\n\t\tbtCheck1 = (Button) findViewById(R.id.btCek1);\n\t\ttbChannel4 = (ToggleButton) findViewById(R.id.tbChannel4);\n\t\t//currentIpAddress = setting.getString(\"ip\", \"192.168.64.44\");\n\t\tcurrentIpAddress =\"192.168.64.45\";\n\t}", "private void initializeViewAndControls() {\r\n txtEmail.setText(\"Email - \"+ AppConstants.ADMIN_EMAIL);\r\n txtCustomerCarePhone.setText(\"Customer Care - \"+ AppConstants.CUSTOMER_CARE_NUMBER);\r\n txtTollFreePhone.setText(\"Toll Free - \"+ AppConstants.TOLL_FREE_NUMBER);\r\n }", "private void initTextsI18n()\n {\n // Remember the different indentations to integrate better in different OS's\n String notMacLargeIndentation = (!OSUtil.IS_MAC ? \" \" : \"\");\n String notMacSmallIndentation = (!OSUtil.IS_MAC ? \" \" : \"\");\n String linuxLargeIndentation = (OSUtil.IS_LINUX ? \" \" : \"\");\n String linuxSmallIndentation = (OSUtil.IS_LINUX ? \" \" : \"\");\n \n this.setLocale(Locale.FRANCE);\n // this.setLocale(Locale.UK);\n I18nUtil.getInstance().setLocale(this.getLocale().getLanguage(), this.getLocale().getCountry());\n this.buttonAutoManual.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonAutoManual.Manual\"));\n this.buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause\"));\n this.labelAuthMode.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAuthMode.Auto\"));\n this.labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Launched\"));\n this.labelConnectionState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelConnectionState.Disconnected\"));\n this.labelNotifications.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelNotifications\"));\n this.labelProfile.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelProfile.Color\")));\n this.labelGroupSeparator.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelGroupSeparator.Color\")));\n this.labelConnectionState.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelConnectionState.Color\")));\n this.menuFile.setText(notMacLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile\") + notMacSmallIndentation);\n this.menuProfiles.setText(notMacSmallIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuProfiles\") + notMacSmallIndentation);\n this.menuHelp.setText(notMacSmallIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp\") + notMacSmallIndentation);\n this.menuFile_Parameters.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Parameters\"));\n this.menuFile_Quit.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Quit\"));\n this.menuHelp_Update.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Update\"));\n this.menuHelp_Doc.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Doc\"));\n this.menuHelp_FAQ.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_FAQ\"));\n this.menuHelp_About.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_About\"));\n this.popupMenu_ShowApp.setLabel(linuxSmallIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_ShowApp\"));\n this.popupMenu_PauseStart.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause\"));\n this.popupMenu_Profiles.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Profiles\"));\n this.popupMenu_Logs.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Logs\"));\n this.popupMenu_Parameters.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Parameters\"));\n this.popupMenu_Quit.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Quit\"));\n this.setMenuBarMnemonics();\n }", "private void initializeViews(){\n\n\n if(callType){\n accept_call_btn.setVisibility(ImageButton.VISIBLE);\n deny_call_btn.setVisibility(ImageButton.VISIBLE);\n\n }\n else{\n accept_call_btn.setVisibility(ImageButton.GONE);\n deny_call_btn.setVisibility(ImageButton.VISIBLE);\n caller_name.setText(sipNameOutcome);\n }\n\n }", "protected abstract void setSpecificViewThemes();", "private void showPreferenceSettings() {\n \tfor(PrefKeysE k: PrefKeysE.values()) {\n \t\tString key = k.getKey();\n \t\tboolean isFound = Tt.isPreferencePresent(key);\n \t\tint prtFlags = 0; //don't print from getPreference()\n// \t\tboolean valB;\n// \t\tint valI;\n// \t\tdouble valD;\n \t\tString valFoundStr = \"\";\n \t\tString prefix = String.format(\"%-40s: %-7s: found? %s, default \", key, k.getType().name(), (isFound ? \"Y\" : \"N\"));\n \t\tswitch(k.getType()) {\n \t\tcase BOOLEAN:\n \t\t\tboolean dfltB = k.getDefaultBoolean();\n \t\t\tvalFoundStr += dfltB;\n \t\t\tif(isFound) {\n \t\t\t\tboolean val = Tt.getPreference(k, dfltB, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase INT:\n \t\t\tint dfltI = k.getDefaultInt();\n \t\t\tvalFoundStr += dfltI;\n \t\t\tif(isFound) {\n \t\t\t\tint val = Tt.getPreference(k, dfltI, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase DOUBLE:\n \t\t\tdouble dfltD = k.getDefaultDouble();\n \t\t\tvalFoundStr = String.format(\"% 1.4f\", dfltD);\n \t\t\tif(isFound) {\n \t\t\t\tdouble val = Tt.getPreference(k, dfltD, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += String.format(\", current % 1.4f\", val);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase STRING:\n \t\t\tString dfltS = k.getDefaultString();\n\t\t\t\tvalFoundStr += \"'\" + dfltS + \"'\";\n \t\t\tif(isFound) {\n \t\t\t\tString val = Tt.getPreference(k, dfltS, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current '\" + val + \"'\";\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n\t\t\tP.println(prefix + valFoundStr);\n\n// \t\tif(k.getType().equals(PrefTypeE.BOOLEAN)) \n \t}\n }", "public void updateWidgets() {\n int i;\n if (this.mTransitionHelper.isTransitioning()) {\n this.mTransitionHelper.pendingUpdateWidgets();\n return;\n }\n int i2 = 0;\n int selectedZen = getSelectedZen(0);\n boolean z = true;\n boolean z2 = selectedZen == 1;\n boolean z3 = selectedZen == 2;\n boolean z4 = selectedZen == 3;\n if ((!z2 || this.mPrefs.mConfirmedPriorityIntroduction) && ((!z3 || this.mPrefs.mConfirmedSilenceIntroduction) && (!z4 || this.mPrefs.mConfirmedAlarmIntroduction))) {\n z = false;\n }\n this.mZenButtons.setVisibility(this.mHidden ? 8 : 0);\n this.mZenIntroduction.setVisibility(z ? 0 : 8);\n if (z) {\n if (z2) {\n i = R$string.zen_priority_introduction;\n } else if (z4) {\n i = R$string.zen_alarms_introduction;\n } else if (this.mVoiceCapable) {\n i = R$string.zen_silence_introduction_voice;\n } else {\n i = R$string.zen_silence_introduction;\n }\n this.mConfigurableTexts.add(this.mZenIntroductionMessage, i);\n this.mConfigurableTexts.update();\n this.mZenIntroductionCustomize.setVisibility(z2 ? 0 : 8);\n }\n String computeAlarmWarningText = computeAlarmWarningText(z3);\n TextView textView = this.mZenAlarmWarning;\n if (computeAlarmWarningText == null) {\n i2 = 8;\n }\n textView.setVisibility(i2);\n this.mZenAlarmWarning.setText(computeAlarmWarningText);\n }", "private void setDataAndIcons() {\n isShakeEnable(userPreferences.enableShake());\n\n if (userPreferences.enableTap()) {\n mTextViewCurrentlyEnabledActionText.setText(\"\" + userPreferences.getEmergencyNumber().toUpperCase());\n } else if (userPreferences.enableEmergencyContact()) {\n mTextViewCurrentlyEnabledActionText.setText(getResources().getString(R.string.str_contact).toUpperCase());\n } else {\n mTextViewCurrentlyEnabledActionText.setText(getResources().getString(R.string.str_alert).toUpperCase());\n }\n\n // Record timer\n dateFormat = new SimpleDateFormat(getResources().getString(R.string.str_date_format));\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n timerCounter = null;\n timeCounter = UserPreferences.sharedInstance().recordTime() * 1000;\n\n // Assign location to video camera\n cameraView.setLocation(locationManager);\n\n try {\n MapsInitializer.initialize(getActivity());\n } catch (Exception ex) {\n Crittercism.logHandledException(ex);\n }\n\n mapView = getMapFragment();\n mapView.getMapAsync(this);\n mapView.getView().setVisibility(View.GONE);\n\n mTextViewInfoAboutVideoStreaming.setTypeface(FontUtils.getFontFabricGloberBold());\n mTextViewAuthoritiesAlertedText.setTypeface(FontUtils.getFontFabricGloberBold());\n mTextViewVideoSent.setTypeface(FontUtils.getFontFabricGloberBold());\n mTextViewCurrentlyEnabledActionText.setTypeface(FontUtils.getFontFabricGloberBold());\n mTextViewTapOrShakeText.setTypeface(FontUtils.getFontFabricGloberBold());\n mButtonCancel.setTypeface(FontUtils.getFontFabricGloberBold());\n\n if (googleMap != null) {\n googleMapSetLocationEnabled(googleMap);\n }\n\n if (locationManager == null) {\n locationManager = new FwiLocation(getActivity(), this);\n }\n\n LocalBroadcastManager.getInstance(getActivity()).registerReceiver(broadcastReceiver, new IntentFilter(UserPreferences.class.getName()));\n\n if (userPreferences.enableTorch()) {\n cameraView.torchOn();\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n // Load the preferences from an XML resource\n addPreferencesFromResource(R.xml.preferences);\n\n wifi = (CheckBoxPreference) findPreference(KEY_PREF_UPLOAD_WIFI);\n wifiData = (CheckBoxPreference) findPreference(KEY_PREF_UPLOAD_WIFI_DATA);\n data = (CheckBoxPreference) findPreference(KEY_PREF_UPLOAD_DATA);\n\n wifi.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newVal) {\n final boolean value = (Boolean) newVal;\n if(value) {\n wifiData.setChecked(false);\n data.setChecked(false);\n wifi.setChecked(true);\n }\n return true;\n }\n });\n\n wifiData.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newVal) {\n final boolean value = (Boolean) newVal;\n if(value) {\n wifi.setChecked(false);\n data.setChecked(false);\n wifiData.setChecked(true);\n }\n return true;\n }\n });\n\n data.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newVal) {\n final boolean value = (Boolean) newVal;\n if(value) {\n wifiData.setChecked(false);\n wifi.setChecked(false);\n data.setChecked(true);\n }\n return true;\n }\n });\n\n Preference button = findPreference(KEY_PREF_UPDATE);\n button.setSummary(getString(R.string.current_version) + \" \" + ApplicationController.VERSION);\n\n button.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n UpdateController.getInstance(getActivity()).checkVersion();\n return true;\n }\n });\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState){\r\n\t\tIntent resultIntent = new Intent();\r\n\t\tresultIntent.putExtra(\"changed\", true);\r\n\t\tsetResult(Activity.RESULT_OK, resultIntent);\r\n\t\tsettings = (ApplicationSettings)this.getApplication();\r\n myVib = (Vibrator) this.getSystemService(VIBRATOR_SERVICE);\r\n \r\n \tsetTheme(android.R.style.Theme_Light_NoTitleBar);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.postsettings);\r\n s = (Spinner) findViewById(R.id.spinner1);\r\n SliderDefault = (Spinner) findViewById(R.id.spinner2);\r\n \r\n ArrayAdapter<String> fontSizes = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item);\r\n fontSizes.add(\"12\");\r\n fontSizes.add(\"13\");\r\n fontSizes.add(\"14\");\r\n fontSizes.add(\"15 (Default)\");\r\n fontSizes.add(\"16\");\r\n fontSizes.add(\"17\");\r\n fontSizes.add(\"18\");\r\n fontSizes.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n final SpinnerAdapter spin = fontSizes;\r\n \r\n ArrayAdapter<String> slidingCategories = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item);\r\n slidingCategories.add(\"None (default)\");\r\n slidingCategories.add(\"Bloggers\");\r\n slidingCategories.add(\"Podcasts\");\r\n slidingCategories.add(\"Videos\");\r\n slidingCategories.add(\"Communities\");\r\n slidingCategories.add(\"Companies\");\r\n slidingCategories.add(\"Events\");\r\n slidingCategories.add(\"Jobs\");\r\n slidingCategories.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n final SpinnerAdapter spinSlider = slidingCategories;\r\n \r\n /* \r\n user = (EditText)findViewById(R.id.usr);\r\n password = (EditText)findViewById(R.id.pwd);\r\n ok=(Button)findViewById(R.id.btn_login);\r\n error=(TextView)findViewById(R.id.tv_error);\r\n */\r\n \r\n haptic = (CheckBox) findViewById(R.id.haptic);\r\n haptic.setOnCheckedChangeListener(new OnCheckedChangeListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\r\n\t\t\twriteSettingsToFile();\r\n\t\t\t}\r\n \t\r\n });\r\n /*\r\n ok.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n \tArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();\r\n \tpostParameters.add(new BasicNameValuePair(\"signin_email\", user.getText().toString()));\r\n \tpostParameters.add(new BasicNameValuePair(\"signin_password\", password.getText().toString()));\r\n\r\n \tString response = null;\r\n \ttry {\r\n \t response = CustomHttpClient.executeHttpPost(\"http://www.softwaretestingclub.com/main/authorization/signIn\", postParameters);\r\n \t String res=response.toString();\r\n \t res= res.replaceAll(\"\\\\s+\",\"\");\r\n \t if(res.equals(\"1\"))\r\n \t \terror.setText(\"Correct username or password\");\r\n \t else\r\n \t \terror.setText(\"Incorrect mail or password\");\r\n \t} catch (Exception e) {\r\n \t\tun.setText(e.toString());\r\n \t}\r\n\r\n }\r\n });*/\r\n \r\n s.setAdapter(spin);\r\n s.setOnItemSelectedListener(new OnItemSelectedListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\r\n\t\t\t\twriteSettingsToFile();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t}\r\n \t\r\n });\r\n \r\n SliderDefault.setAdapter(spinSlider);\r\n SliderDefault.setOnItemSelectedListener(new OnItemSelectedListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\r\n\t\t\t\twriteSettingsToFile();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\r\n\t\t\t}\r\n \t\r\n });\r\n \r\n\t\tloadSettingsFromFile();\r\n\r\n\r\n \r\n ImageView logo = (ImageView) findViewById(R.id.imageView2);\r\n logo.setOnClickListener(new OnClickListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tif (settings.getVibrateEnabled()){\r\n\t\t\t\t\tmyVib.vibrate(50);\r\n\t\t\t\t}\r\n\t\t//\t\tIntent i2 = new Intent(PostSettingsActivity.this, DashboardActivity.class);\r\n\t\t//\t\tstartActivity(i2);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n \t\r\n });\r\n \tImageButton home = (ImageButton) findViewById(R.id.home);\r\n\t\thome.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tif (settings.getVibrateEnabled()) {\r\n\t\t\t\t\tmyVib.vibrate(50);\r\n\t\t\t\t}\r\n\t\t\t\tIntent i2 = new Intent(PostSettingsActivity.this, DashboardActivity.class);\r\n\t\t\t\ti2.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(i2);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n\t\tImageButton about = (ImageButton) findViewById(R.id.about);\r\n\t\tabout.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tif (settings.getVibrateEnabled()) {\r\n\t\t\t\t\tmyVib.vibrate(50);\r\n\t\t\t\t}\r\n\t\t\t\tIntent i2 = new Intent(PostSettingsActivity.this, AboutActivity.class);\r\n\t\t\t\tstartActivity(i2);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }", "public void updateFepPropertiesMapFromGUI() {\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().sendResponseVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpSendResponseOrNot));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().authorizationResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpauthorizationResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().financialSalesResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpFinancialSalesResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().financialForceDraftResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpFinancialForceDraftResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().reversalResultVariableName, getSelectedButtonText(btngrpReversalResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().reconciliationResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpReconciliationResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().declineCodeVariablename,\n\t\t\t\tInitializer.getConverter().zeroPadding(txtDeclineCode.getText().replace(\",\", \"\"),\n\t\t\t\t\t\tInitializer.getBitfieldData().bitfieldLength\n\t\t\t\t\t\t\t\t.get(Initializer.getBaseConstants().nameOfbitfield39)));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.put(Initializer.getBaseConstants().approvalAmountFieldName, txtApprovalAmount.getText());\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().isHalfApprovalRequiredVariableName,\n\t\t\t\tString.valueOf(chckbxApproveForHalf.isSelected()));\n\t}", "private void initCVMControl() {\n if(this.cvmControlPanel==null)\n cvmControlPanel = new SetSiteParamsFromWebServicesControlPanel(this, this.imrGuiBean, this.siteGuiBean);\n cvmControlPanel.pack();\n cvmControlPanel.setVisible(true);\n }", "public void onNewPositionSet(){\n\n if(positionSettings == null){ //never set before\n positionSettings = Position.getPositionSettings(getContext());\n sync();\n }\n else{\n positionSettings = Position.getPositionSettings(getContext());\n readAllRelevantMatches(); //read all over with new preferences.\n }\n\n int km = (int) positionSettings.radius/1000;\n message.setText(String.format(getString(R.string.frag_avail_matches_preference_msg), km));\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n public void initGui()\n {\n if (this.propertyList == null || this.needsRefresh)\n {\n this.propertyList = new GuiPropertyList(this, mc);\n this.needsRefresh = false;\n }\n \n int doneWidth = Math.max(mc.fontRenderer.getStringWidth(I18n.format(\"gui.done\")) + 20, 100);\n int undoWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")) + 20;\n int resetWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")) + 20;\n int checkWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.applyGlobally\")) + 13;\n int buttonWidthHalf = (doneWidth + 5 + undoWidth + 5 + resetWidth + 5 + checkWidth) / 2;\n this.buttonList.add(new GuiButtonExt(2000, this.width / 2 - buttonWidthHalf, this.height - 29, doneWidth, 20, I18n.format(\"gui.done\")));\n this.buttonList.add(this.btnDefaultAll = new GuiButtonExt(2001, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5, this.height - 29, resetWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")));\n this.buttonList.add(btnUndoAll = new GuiButtonExt(2002, this.width / 2 - buttonWidthHalf + doneWidth + 5, this.height - 29, undoWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")));\n this.buttonList.add(chkApplyGlobally = new GuiCheckBox(2003, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5 + resetWidth + 5, this.height - 24, I18n.format(\"bspkrs.configgui.applyGlobally\"), false));\n \n this.checkBoxHoverChecker = new HoverChecker(chkApplyGlobally, 800);\n this.propertyList.initGui();\n }", "public final void initializeModifyPhasesView() {\n resetViews();\n modifyPhaseSettingsView.initialize(phasesUI, skin);\n }", "public void setMetricViewFromSavedPreference() {\n switch ( getSavedMetricPreference() ) {\n case SettingsNode.KELVIN:\n Log.d( \"DAYLEN\", \"KELVIN\" );\n mWeatherMetricRGroup.check( R.id.radio_kelvin );\n break;\n case SettingsNode.CELSIUS:\n Log.d( \"DAYLEN\", \"CELSIUS\" );\n mWeatherMetricRGroup.check( R.id.radio_celsius );\n break;\n case SettingsNode.FAHRENHEIT:\n Log.d( \"DAYLEN\", \"FEHREN\" );\n mWeatherMetricRGroup.check( R.id.radio_fahren );\n break;\n default:\n mWeatherMetricRGroup.check( R.id.radio_kelvin );\n }\n }", "private void setupSimplePreferencesScreen() {\n if (!isSimplePreferences(this)) {\n return;\n }\n\n addPreferencesFromResource(R.xml.pref_empty);\n\n addHeader(R.string.pref_header_game);\n addPreferencesFromResource(R.xml.pref_game);\n this.gameModeSettingsPreferenceScreen = getPreferenceScreen();\n\n addHeader(R.string.pref_header_other);\n addPreferencesFromResource(R.xml.pref_other);\n\n Preference key_game_mode_summary = findPreference(getResources().getString(R.string.key_game_mode_summary));\n this.key_game_mode_summary = key_game_mode_summary;\n\n Preference useCodePreference = findPreference(getResources().getString(R.string.key_use_code));\n this.useCodePreference = useCodePreference;\n useCodePreference.setOnPreferenceChangeListener(USE_CODE_PREFERENCE_LISTENER);\n\n Preference customWidthPreference = findPreference(getResources().getString(R.string.key_custom_maze_width));\n customWidthPreference.setSummary(String.valueOf(getCustomMazeWidth()));\n this.customWidthPreference = customWidthPreference;\n customWidthPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n try {\n int width = Math.min(Math.max(Integer.parseInt(value.toString()), getResources().getInteger(R.integer.min_custom_maze_size)), getResources().getInteger(R.integer.max_custom_maze_size));\n synchronized (SettingsActivity.class) {\n SettingsActivity.customMazeWidth = width;\n }\n preference.setSummary(String.valueOf(width));\n } catch (NumberFormatException e) {\n }\n return true;\n }\n });\n Preference customHeightPreference = findPreference(getResources().getString(R.string.key_custom_maze_height));\n customHeightPreference.setSummary(String.valueOf(getCustomMazeHeight()));\n this.customHeightPreference = customHeightPreference;\n customHeightPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n try {\n int height = Math.min(Math.max(Integer.parseInt(value.toString()), getResources().getInteger(R.integer.min_custom_maze_size)), getResources().getInteger(R.integer.max_custom_maze_size));\n synchronized (SettingsActivity.class) {\n SettingsActivity.customMazeHeight = height;\n }\n preference.setSummary(String.valueOf(height));\n } catch (NumberFormatException e) {\n }\n return true;\n }\n });\n Preference customCreatePreference = findPreference(getResources().getString(R.string.key_custom_maze_create));\n this.customCreatePreference = customCreatePreference;\n customCreatePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n Maze2D.GeneratedMaze maze = generateCustomMaze(SettingsActivity.this);\n synchronized (SettingsActivity.class) {\n SettingsActivity.loadSeedMaze = maze;\n }\n if (maze != null) {\n SettingsActivity.this.finish();\n }\n return true;\n }\n });\n Preference customSolvePreference = findPreference(getResources().getString(R.string.key_custom_maze_solve));\n this.customSolvePreference = customSolvePreference;\n customSolvePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n synchronized (SettingsActivity.class) {\n SettingsActivity.showSolution = true;\n }\n SettingsActivity.this.finish();\n return true;\n }\n });\n Preference regularCreatePreference = findPreference(getResources().getString(R.string.key_maze_create));\n this.regularCreatePreference = regularCreatePreference;\n regularCreatePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n if (MainActivity.getGameMode() == GameMode.REGULAR) {\n synchronized (SettingsActivity.class) {\n SettingsActivity.newRegularMaze = true;\n }\n } else {\n synchronized (SettingsActivity.class) {\n SettingsActivity.newFillMaze = true;\n }\n }\n SettingsActivity.this.finish();\n return true;\n }\n });\n\n ListPreference algorithmPreference = (ListPreference) findPreference(getResources().getString(R.string.key_algorithm));\n this.algorithmPreference = algorithmPreference;\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n ListPreference gameModePreference = (ListPreference) findPreference(getResources().getString(R.string.key_game_mode));\n this.gamePreference = gameModePreference;\n bindPreferenceSummaryToValue(gameModePreference);\n String[] names = GameMode.getNames(this);\n gameModePreference.setEntries(names);\n gameModePreference.setEntryValues(names);\n GameMode gameMode = MainActivity.getGameMode();\n if (gameMode != null) {\n gameModePreference.setValueIndex(gameMode.getID());\n }\n\n bindPreferenceSummaryToValue(algorithmPreference);\n names = MazeAlgorithm.getNames(this, true);\n algorithmPreference.setEntries(names);\n algorithmPreference.setEntryValues(names);\n MazeAlgorithm algorithm = MainActivity.getAlgorithm();\n if (algorithm != null) {\n algorithmPreference.setDefaultValue(algorithm.getLocalName(this));\n }\n\n SwitchPreference showTracerPreference = (SwitchPreference) findPreference(getResources().getString(R.string.key_show_tracer));\n showTracerPreference.setOnPreferenceChangeListener(TOGGLE_TRACER_PREFERENCE_LISTENER);\n showTracerPreference.setDefaultValue(MainActivity.toggleTracer());\n\n SwitchPreference squareCellsPreference = (SwitchPreference) findPreference(getResources().getString(R.string.key_square_cells));\n squareCellsPreference.setOnPreferenceChangeListener(SQUARE_CELLS_PREFERENCE_LISTENER);\n squareCellsPreference.setDefaultValue(MainActivity.squareCells());\n\n Preference recalibratePreference = findPreference(getResources().getString(R.string.key_recalibrate));\n recalibratePreference.setOnPreferenceClickListener(RECALIBRATE_PREFERENCE_LISTENER);\n\n Preference defaultTiltPreference = findPreference(getResources().getString(R.string.key_default_tilt));\n defaultTiltPreference.setOnPreferenceClickListener(DEFAULT_TILT_PREFERENCE_LISTENER);\n\n prepareGameModeGUI(MainActivity.getGameMode());\n }", "protected void setupPerspectiveSettings() {\n if (m_settings.getSettings(m_ownerApp.getApplicationID()) != null\n && m_settings.getSettings(m_ownerApp.getApplicationID()).size() > 1) {\n Map<Settings.SettingKey, Object> appSettings =\n m_settings.getSettings(m_ownerApp.getApplicationID());\n SingleSettingsEditor appEditor = new SingleSettingsEditor(appSettings);\n m_settingsTabs.addTab(\"General\", appEditor);\n m_perspectiveEditors.add(appEditor);\n }\n\n // main perspective\n Perspective mainPers = m_ownerApp.getMainPerspective();\n String mainTitle = mainPers.getPerspectiveTitle();\n String mainID = mainPers.getPerspectiveID();\n SingleSettingsEditor mainEditor =\n new SingleSettingsEditor(m_settings.getSettings(mainID));\n m_settingsTabs.addTab(mainTitle, mainEditor);\n m_perspectiveEditors.add(mainEditor);\n\n List<Perspective> availablePerspectives =\n m_ownerApp.getPerspectiveManager().getLoadedPerspectives();\n List<String> availablePerspectivesIDs = new ArrayList<String>();\n List<String> availablePerspectiveTitles = new ArrayList<String>();\n for (int i = 0; i < availablePerspectives.size(); i++) {\n Perspective p = availablePerspectives.get(i);\n availablePerspectivesIDs.add(p.getPerspectiveID());\n availablePerspectiveTitles.add(p.getPerspectiveTitle());\n }\n\n Set<String> settingsIDs = m_settings.getSettingsIDs();\n for (String settingID : settingsIDs) {\n if (availablePerspectivesIDs.contains(settingID)) {\n int indexOfP = availablePerspectivesIDs.indexOf(settingID);\n\n // make a tab for this one\n Map<Settings.SettingKey, Object> settingsForID =\n m_settings.getSettings(settingID);\n if (settingsForID != null && settingsForID.size() > 0) {\n SingleSettingsEditor perpEditor =\n new SingleSettingsEditor(settingsForID);\n m_settingsTabs.addTab(availablePerspectiveTitles.get(indexOfP),\n perpEditor);\n m_perspectiveEditors.add(perpEditor);\n }\n }\n }\n }", "public final void updateGUIFromPrefs() {\n try {\n angleStepSizeSpinner_.setValue(Double.parseDouble(prefs_.get(PrefUtils.ANGLESTEPSIZE, \"0.0\")));\n startAngleField_.setText(prefs_.get(PrefUtils.STARTANGLE, \"\"));\n doubleZeroCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.DOUBLEZERO, \"\")));\n saveImagesCheckBox_.setSelected(Boolean.parseBoolean(prefs_.get(PrefUtils.ACQSAVEIMAGES, \"\")));\n acqdirRootField_.setText(prefs_.get(PrefUtils.ACQDIRROOT, \"\"));\n acqnamePrefixField_.setText(prefs_.get(PrefUtils.ACQNAMEPREFIX, \"\"));\n String channelGroup = core_.getChannelGroup();\n prefs_.put(PrefUtils.CHANNEL, channelGroup + \": \" + core_.getCurrentConfig(channelGroup));\n coeff3Field_.setText(PrefUtils.parseCal(3, prefs_, gui_));\n coeff2Field_.setText(PrefUtils.parseCal(2, prefs_, gui_));\n coeff1Field_.setText(PrefUtils.parseCal(1, prefs_, gui_));\n coeff0Field_.setText(PrefUtils.parseCal(0, prefs_, gui_));\n channelField_.setText(prefs_.get(PrefUtils.CHANNEL,\"\"));\n } catch (Exception ex) {\n Logger.getLogger(AcquisitionPanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void setupUsernameAndFullNameTextView() {\n usernameTextView.setText(prismUser.getUsername());\n userFullNameText.setText(prismUser.getFullName());\n }", "private void customizeUI(ViewHolder holder) {\n if (!holder.alreadyCustomized) {\n holder.alreadyCustomized = true;\n\n // changes TextColor\n holder.dayTV.setTextColor(userUIPreferences.secondaryColor);\n holder.titleTV.setTextColor(userUIPreferences.secondaryColor);\n\n // changes background and text color depending whether theme is dark\n switch (userUIPreferences.theme) {\n case \"Onyx P\":\n case \"Onyx B\":\n holder.cardView.setBackground(userUIPreferences.darkThemeSelectorShader);\n holder.monthTV.setTextColor(userUIPreferences.textColorForDarkThemes);\n holder.summaryTV.setTextColor(userUIPreferences.textColorForDarkThemes);\n holder.menuTV.setTextColor(userUIPreferences.textColorForDarkThemes);\n holder.timeTV.setTextColor(userUIPreferences.textColorForDarkThemes);\n holder.favTV.setTextColor(userUIPreferences.textColorForDarkThemes);\n break;\n default:\n holder.menuTV.setTextColor(userUIPreferences.primaryColor);\n holder.favTV.setTextColor(userUIPreferences.primaryColor);\n break;\n }\n\n // changes text size and number of lines according to user preference\n holder.summaryTV.setMaxLines(userUIPreferences.numLines);\n holder.summaryTV.setMinLines(userUIPreferences.numLines);\n\n // changes text size\n holder.summaryTV.setTextSize(userUIPreferences.textSize);\n holder.dayTV.setTextSize(userUIPreferences.largeTextSize);\n holder.monthTV.setTextSize(userUIPreferences.textSize);\n holder.titleTV.setTextSize(userUIPreferences.mediumTextSize);\n holder.timeTV.setTextSize(userUIPreferences.textSize);\n\n // changes font if applicable\n if (userUIPreferences.userSelectedFontTF != null) {\n holder.summaryTV.setTypeface(userUIPreferences.userSelectedFontTF);\n holder.monthTV.setTypeface(userUIPreferences.userSelectedFontTF);\n holder.titleTV.setTypeface(userUIPreferences.userSelectedFontTF);\n holder.dayTV.setTypeface(userUIPreferences.userSelectedFontTF);\n holder.timeTV.setTypeface(userUIPreferences.userSelectedFontTF);\n }\n\n\n }\n\n }", "private void initControlUI() {\n typeAdapter = new SpinnerSimpleAdapter(self, android.R.layout.simple_spinner_item, self.getResources().getStringArray(R.array.arr_feedback_type));\n spnType.setAdapter(typeAdapter);\n }", "protected void updatePreferences() {\n boolean theme = PreferenceManager.getDefaultSharedPreferences(this).getBoolean(getString(R.string.prefTheme), false);\n\n if (theme) {\n\n // Set to light mode.\n AppCompatDelegate.setDefaultNightMode(\n AppCompatDelegate.MODE_NIGHT_NO);\n } else {\n\n // Set to dark mode.\n AppCompatDelegate.setDefaultNightMode(\n AppCompatDelegate.MODE_NIGHT_YES);\n }\n }", "public void setVisibilityWidget()\n {\n if (SettingsSpotifyActivity.getSwitchCineStatus() == 1) {\n CinemaL.setVisibility(View.VISIBLE);\n cinemaStatus = 1;\n } else {\n CinemaL.setVisibility(View.GONE);\n cinemaStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchWeatherStatus() == 1) {\n WeatherL.setVisibility(View.VISIBLE);\n weatherStatus = 1;\n } else {\n WeatherL.setVisibility(View.GONE);\n weatherStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchfacebookStatus() == 1) {\n FacebookL.setVisibility(View.VISIBLE);\n facebookStatus = 1;\n } else {\n FacebookL.setVisibility(View.GONE);\n facebookStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchPaypalStatus() == 1) {\n PaypalL.setVisibility(View.VISIBLE);\n paypalStatus = 1;\n } else {\n PaypalL.setVisibility(View.GONE);\n paypalStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchImgurStatus() == 1) {\n ImgurL.setVisibility(View.VISIBLE);\n ImgurStatus = 1;\n } else {\n ImgurL.setVisibility(View.GONE);\n ImgurStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchSpotifyStatus() == 1) {\n SpotifyL.setVisibility(View.VISIBLE);\n SpotifyStatus = 1;\n } else {\n SpotifyL.setVisibility(View.GONE);\n SpotifyStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchSpotifySUserStatus() == 1) {\n SpotifySUserStatus = 1;\n } else {\n SpotifySUserStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchSpotifySMusicStatus() == 1) {\n SpotifySMusicStatus = 1;\n } else {\n SpotifySMusicStatus = 0;\n }\n if (SettingsSpotifyActivity.getSwitchSpotifyPlaylistStatus() == 1) {\n SpotifyPlaylistStatus = 1;\n } else {\n SpotifyPlaylistStatus = 0;\n }\n }", "void setCryptProviderType(org.openxmlformats.schemas.presentationml.x2006.main.STCryptProv.Enum cryptProviderType);", "private void populateInterfaceElements() {\n usernameTextView.setTypeface(Default.sourceSansProBold);\n userFullNameText.setTypeface(Default.sourceSansProLight);\n userFollowButton.setTypeface(Default.sourceSansProLight);\n\n setupUserProfilePicImageView();\n setupUsernameAndFullNameTextView();\n setupUserFollowButton();\n setupUserRelativeLayout();\n }", "@Override\n protected void registerVisuals() {\n super.registerVisuals();\n Map visualPartMap = this.getViewer().getVisualPartMap();\n visualPartMap.put(getFigure().getCheckBox(), this);\n visualPartMap.put(getFigure().getLabel(), this);\n }", "@Override\n protected void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n mPhone = PhoneFactory.getDefaultPhone();\n \n addPreferencesFromResource(R.xml.call_feature_setting);\n \n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n \n // get buttons\n PreferenceScreen prefSet = getPreferenceScreen();\n mSubMenuVoicemailSettings = (EditPhoneNumberPreference)findPreference(BUTTON_VOICEMAIL_KEY);\n if (mSubMenuVoicemailSettings != null) {\n mSubMenuVoicemailSettings.setParentActivity(this, VOICEMAIL_PREF_ID, this);\n mSubMenuVoicemailSettings.setDialogOnClosedListener(this);\n mSubMenuVoicemailSettings.setDialogTitle(R.string.voicemail_settings_number_label);\n }\n \n mButtonDTMF = (ListPreference) findPreference(BUTTON_DTMF_KEY);\n mButtonAutoRetry = (CheckBoxPreference) findPreference(BUTTON_RETRY_KEY);\n mButtonHAC = (CheckBoxPreference) findPreference(BUTTON_HAC_KEY);\n mButtonTTY = (ListPreference) findPreference(BUTTON_TTY_KEY);\n mVoicemailProviders = (ListPreference) findPreference(BUTTON_VOICEMAIL_PROVIDER_KEY);\n if (mVoicemailProviders != null) {\n mVoicemailProviders.setOnPreferenceChangeListener(this);\n mVoicemailSettings = (PreferenceScreen)findPreference(BUTTON_VOICEMAIL_SETTING_KEY);\n \n initVoiceMailProviders();\n }\n if (getResources().getBoolean(R.bool.dtmf_type_enabled)) {\n mButtonDTMF.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonDTMF);\n mButtonDTMF = null;\n }\n \n if (getResources().getBoolean(R.bool.auto_retry_enabled)) {\n mButtonAutoRetry.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonAutoRetry);\n mButtonAutoRetry = null;\n }\n \n if (getResources().getBoolean(R.bool.hac_enabled)) {\n mButtonHAC.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonHAC);\n mButtonHAC = null;\n }\n \n if (getResources().getBoolean(R.bool.tty_enabled)) {\n mButtonTTY.setOnPreferenceChangeListener(this);\n ttyHandler = new TTYHandler();\n } else {\n prefSet.removePreference(mButtonTTY);\n mButtonTTY = null;\n }\n \n if (!getResources().getBoolean(R.bool.world_phone)) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_CDMA_OPTIONS));\n prefSet.removePreference(prefSet.findPreference(BUTTON_GSM_UMTS_OPTIONS));\n \n if (mPhone.getPhoneName().equals(\"CDMA\")) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_FDN_KEY));\n addPreferencesFromResource(R.xml.cdma_call_options);\n } else {\n addPreferencesFromResource(R.xml.gsm_umts_call_options);\n }\n }\n \n // create intent to bring up contact list\n mContactListIntent = new Intent(Intent.ACTION_GET_CONTENT);\n mContactListIntent.setType(android.provider.Contacts.Phones.CONTENT_ITEM_TYPE);\n \n // check the intent that started this activity and pop up the voicemail\n // dialog if we've been asked to.\n // If we have at least one non default VM provider registered then bring up\n // the selection for the VM provider, otherwise bring up a VM number dialog.\n // We only bring up the dialog the first time we are called (not after orientation change)\n if (icicle == null) {\n if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL) &&\n mVoicemailProviders != null) {\n if (mVMProvidersData.size() > 1) {\n simulatePreferenceClick(mVoicemailProviders);\n } else {\n mSubMenuVoicemailSettings.showPhoneNumberDialog();\n }\n }\n }\n updateVoiceNumberField();\n }", "public synchronized void setProvider(FontProvider fontProvider) {\n/* 136 */ this.fontInfoByName = createFontInfoByName(fontProvider.getFontInfo());\n/* 137 */ this.fontProvider = fontProvider;\n/* */ }", "public void updateSettings(){\n\n // load in configuration variables\n layout = plugin.getConfig().getString(\"layout\");\n enabled = plugin.getConfig().getBoolean(\"enabled\");\n minTemp = plugin.getConfig().getInt(\"min-temperature\");\n maxTemp = plugin.getConfig().getInt(\"max-temperature\");\n peakTime = plugin.getConfig().getInt(\"peak-time\");\n tickrate = plugin.getConfig().getLong(\"tickrate\");\n worldName = plugin.getConfig().getString(\"world-name\");\n\n }", "private void loadPreferences() {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n boolean lm = sp.getBoolean(getString(R.string.live_match), true);\n boolean ls = sp.getBoolean(getString(R.string.live_score), true);\n\n if(lm) live_match.setChecked(true);\n else live_match.setChecked(false);\n\n if(ls) live_score.setChecked(true);\n else live_score.setChecked(false);\n }", "public void initView() {\n this.f4854a = (ValueSettingItemView) findViewById(R.id.performanceEnhanceSettingItem);\n this.f4854a.setOnClickListener(this);\n this.f4855b = (CheckBoxSettingItemView) findViewById(R.id.performanceOptimizationSettingItem);\n this.f4855b.setOnCheckedChangeListener(this);\n this.f4856c = (CheckBoxSettingItemView) findViewById(R.id.networkSettingItem);\n this.f4856c.setOnCheckedChangeListener(this);\n this.f4857d = (ValueSettingItemView) findViewById(R.id.memorySettingItem);\n this.f4857d.setOnClickListener(this);\n this.e = findViewById(R.id.xunyouSettingCategory);\n this.f = (CheckBoxSettingItemView) findViewById(R.id.xunyouSettingItem);\n this.f.setOnCheckedChangeListener(this);\n this.g = (CheckBoxSettingItemView) findViewById(R.id.xyWifiSettingItem);\n this.g.setOnCheckedChangeListener(this);\n com.miui.gamebooster.c.a.a((Context) this.mActivity);\n this.h = ((SettingsActivity) this.mActivity).n();\n if (this.h == 0) {\n this.f4855b.setVisibility(8);\n }\n (C0388t.n() ? this.f4856c : this.f4854a).setVisibility(8);\n g();\n }", "public void onResume() {\n super.onResume();\n Log.i(tag, \"onResume\");\n handlePing();\n if (ControlWidget.getPreferenceInt(getApplicationContext(), \"redirect_widget_settings\") == 1) {\n Log.i(tag, \"redirect_widget_settings 1, redirect to widget settings\");\n ControlWidget.setPreferenceInt(getApplicationContext(), \"redirect_widget_settings\", 0);\n attemptToJumpToWidgetSettings();\n }\n }", "interface SettingsContract {\r\n\r\n interface View extends BaseView<SettingsContract.Presenter> {\r\n\r\n /**\r\n * Returns the context.\r\n *\r\n * @return context.\r\n */\r\n Context getContext();\r\n\r\n /**\r\n * Shows loading message.\r\n */\r\n void showLoadingMsg();\r\n\r\n /**\r\n * Shows data generated successfully message.\r\n */\r\n void showDataGeneratedMsg();\r\n\r\n /**\r\n * Shows data deleted successfully message.\r\n */\r\n void showDataDeletedMsg();\r\n }\r\n\r\n\r\n interface Presenter extends BasePresenter {\r\n\r\n /**\r\n * Attaches a listener that performs the specified action when the preference is clicked.\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceClickListener(Preference preference);\r\n\r\n /**\r\n * Attaches a listener so the summary is always updated with the preference value.\r\n * Also fires the listener once, to initialize the summary (so it shows up before the value\r\n * is changed).\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceSummaryToValue(Preference preference);\r\n\r\n }\r\n}", "private void handleProviderSelected() {\n \t\tint index = fProviderCombo.getSelectionIndex() - 1;\n \t\tif (index >= 0) {\n \t\t\tfProviderStack.topControl = fProviderControls.get(index);\n \t\t\tfSelectedProvider = fComboIndexToDescriptorMap.get(index);\n \t\t} else {\n \t\t\tfProviderStack.topControl = null;\n \t\t\tfSelectedProvider = null;\n \t\t}\n \t\tfProviderArea.layout();\n \t\tif (fSelectedProvider != null) {\n \t\t\tMBSCustomPageManager.addPageProperty(REMOTE_SYNC_WIZARD_PAGE_ID, SERVICE_PROVIDER_PROPERTY,\n \t\t\t\t\tfSelectedProvider.getParticipant());\n \t\t} else {\n \t\t\tMBSCustomPageManager.addPageProperty(REMOTE_SYNC_WIZARD_PAGE_ID, SERVICE_PROVIDER_PROPERTY, null);\n \t\t}\n \t}", "void setSettings(ControlsSettings settings);", "public void applyI18n(){\n if (lastLocale != null && \n lastLocale == I18n.getCurrentLocale()) {\n return;\n }\n lastLocale = I18n.getCurrentLocale();\n \n strHelpLabel= I18n.getString(\"label.help1\")+ version;\n strHelpLabel+=I18n.getString(\"label.help2\");\n strHelpLabel+=I18n.getString(\"label.help3\");\n strHelpLabel+=I18n.getString(\"label.help4\");\n strHelpLabel+=I18n.getString(\"label.help5\");\n strHelpLabel+=I18n.getString(\"label.help6\");\n strHelpLabel+=I18n.getString(\"label.help7\");\n strHelpLabel+=I18n.getString(\"label.help8\");\n helpLabel.setText(strHelpLabel);\n }", "protected void installDefaults() {\n spinner.setLayout(createLayout());\n LookAndFeel.installBorder(spinner, \"Spinner.border\");\n LookAndFeel.installColorsAndFont(spinner, \"Spinner.background\", \"Spinner.foreground\", \"Spinner.font\"); }", "private void setLanguageForApp(){\n String lang = sharedPreferences.getString(EXTRA_PREF_LANG,\"en\");\n\n Locale locale = new Locale(lang);\n Resources resources = getResources();\n Configuration configuration = resources.getConfiguration();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n configuration.setLocale(locale);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n getApplicationContext().createConfigurationContext(configuration);\n } else {\n resources.updateConfiguration(configuration,displayMetrics);\n }\n getApplicationContext().getResources().updateConfiguration(configuration, getApplicationContext().getResources().getDisplayMetrics());\n }", "@Override\r\n protected void setupViews(Bundle bundle) {\n initPersonalInfo();\r\n }", "public void setProperties(ProviderPropertiesUnbundled properties) {\n synchronized (mBinder) {\n mProperties = properties.getProviderProperties();\n }\n\n ILocationProviderManager manager = mManager;\n if (manager != null) {\n try {\n manager.onSetProperties(mProperties);\n } catch (RemoteException | RuntimeException e) {\n Log.w(mTag, e);\n }\n }\n }", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "public void configure(T aView) { aView.setText(\"CheckBox\"); }", "protected void setCheckedBoxes() {\n checkBoxIfInPreference(findViewById(R.id.concordiaShuttle));\n checkBoxIfInPreference(findViewById(R.id.elevators));\n checkBoxIfInPreference(findViewById(R.id.escalators));\n checkBoxIfInPreference(findViewById(R.id.stairs));\n checkBoxIfInPreference(findViewById(R.id.accessibilityInfo));\n checkBoxIfInPreference(findViewById(R.id.stepFreeTrips));\n }", "private void init(){\n mPhoneNumber = \"\";\n mSelectedCountry = Utils.getDefaultCountry(this);\n mPresenter = new PhoneSignInSignUpPresenter();\n mPresenter.attachView(this);\n }", "protected void applyGridViewListeners() {\r\n\t\t/* Apply OnItemClickListener to show the country + \"saved\" in the quickinfo. */\r\n\t\tthis.mcountryListView.setOnItemClickListener(new OnItemClickListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(final AdapterView<?> arg0, final View v, final int position, final long arg3) {\r\n\t\t\t\tif(v != null){\r\n\t\t\t\t\tfinal Country nat = ((CountryAdapter)SettingsDirectionLanguage.this.mcountryListView.getAdapter()).getItem(position);\r\n\t\t\t\t\t/* First make the Country-Name appear in the quick-info. */\r\n\t\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(nat.NAMERESID) + \" \"\r\n\t\t\t\t\t\t\t+ SettingsDirectionLanguage.this.getText(R.string.tv_settings_directionslanguage_quickinfo_saved_appendix));\r\n\r\n\t\t\t\t\tfinal DirectionsLanguage[] dirLangs = nat.getDrivingDiectionsLanguages();\r\n\t\t\t\t\tif(dirLangs == null || dirLangs.length == 0) {\r\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"No languages for \");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(dirLangs.length == 1){\r\n\t\t\t\t\t\tPreferences.saveDrivingDirectionsLanguage(SettingsDirectionLanguage.this, dirLangs[0]);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t/* Show dialog. */\r\n\t\t\t\t\t\tSettingsDirectionLanguage.this.mNationalityToSelectDialectFrom = nat;\r\n\t\t\t\t\t\tshowDialog(DIALOG_SELECT_DIALECT);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/* Apply OnItemSelectedListener to show Country-Name in TextView. */\r\n\t\tthis.mcountryListView.setOnItemSelectedListener(new OnItemSelectedListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(final AdapterView<?> parent, final View v, final int position, final long id) {\r\n\t\t\t\tif(v != null){\r\n\t\t\t\t\tfinal Country selNation = ((CountryAdapter)SettingsDirectionLanguage.this.mcountryListView.getAdapter()).getItem(position);\r\n\t\t\t\t\tif(selNation.equals(Preferences.getDrivingDirectionsLanguage(SettingsDirectionLanguage.this))) {\r\n\t\t\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(selNation.NAMERESID) + \" \" + getString(R.string.tv_settings_directionslanguage_quickinfo_current_appendix));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(selNation.NAMERESID));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(final AdapterView<?> arg0) {\r\n\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(Preferences.getDrivingDirectionsLanguage(SettingsDirectionLanguage.this).NAMERESID)\r\n\t\t\t\t\t\t+ \" \" + getString(R.string.tv_settings_directionslanguage_quickinfo_current_appendix));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void onProviderEnabled(String provider) {\n mensaje1.setText(\"GPS Activado\");\n }", "public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } else if (preference == mButtonTTY) {\n handleTTYChange(preference, objValue);\n } else if (preference == mVoicemailProviders) {\n updateVMPreferenceWidgets((String)objValue);\n \n // If the user switches to a voice mail provider and we have a\n // number stored for it we will automatically change the phone's\n // voice mail number to the stored one.\n // Otherwise we will bring up provider's config UI.\n \n final String providerVMNumber = loadNumberForVoiceMailProvider(\n (String)objValue);\n \n if (providerVMNumber == null) {\n // Force the user into a configuration of the chosen provider\n simulatePreferenceClick(mVoicemailSettings);\n } else {\n saveVoiceMailNumber(providerVMNumber);\n }\n }\n // always let the preference setting proceed.\n return true;\n }", "private void readPreferences()\n {\n\n \tCheckBox myNotifyRing\t= (CheckBox) findViewById(R.id.CheckBoxNotifyRing);\n \tCheckBox myNotifyCharge\t= (CheckBox) findViewById(R.id.CheckBoxNotifyCharge);\n \tCheckBox myNotifySMS\t= (CheckBox) findViewById(R.id.CheckBoxNotifySMS);\n \tCheckBox myNotifyMail\t= (CheckBox) findViewById(R.id.CheckBoxNotifyMail);\n \tCheckBox myNotifyIM\t\t= (CheckBox) findViewById(R.id.CheckBoxNotifyIM);\n\n \tCheckBox myVibrateRing\t= (CheckBox) findViewById(R.id.CheckBoxVibrateRing);\n \tCheckBox myVibrateSMS\t= (CheckBox) findViewById(R.id.CheckBoxVibrateSMS);\n \tCheckBox myVibrateMail\t= (CheckBox) findViewById(R.id.CheckBoxVibrateMail);\n \tCheckBox myVibrateIM\t= (CheckBox) findViewById(R.id.CheckBoxVibrateIM);\n\n \tCheckBox mySoundRing\t= (CheckBox) findViewById(R.id.CheckBoxSoundRing);\n \tCheckBox mySoundSMS\t\t= (CheckBox) findViewById(R.id.CheckBoxSoundSMS);\n \tCheckBox mySoundMail\t= (CheckBox) findViewById(R.id.CheckBoxSoundMail);\n \tCheckBox mySoundIM\t\t= (CheckBox) findViewById(R.id.CheckBoxSoundIM);\n \t\n \tCheckBox myVibrateOff\t= (CheckBox) findViewById(R.id.CheckBoxVibrationOff);\n \tCheckBox mySoundOff\t= (CheckBox) findViewById(R.id.CheckBoxSoundOff);\n \t\n \tSpinner mySpinnerRing \t= (Spinner) findViewById(R.id.SpinnerRing);\n \tSpinner mySpinnerCharge = (Spinner) findViewById(R.id.SpinnerCharge);\n \tSpinner mySpinnerSMS \t= (Spinner) findViewById(R.id.SpinnerSMS);\n \tSpinner mySpinnerMail \t= (Spinner) findViewById(R.id.SpinnerMail);\n \tSpinner mySpinnerIM \t= (Spinner) findViewById(R.id.SpinnerIM);\n \tSpinner mySpinnerSleep \t= (Spinner) findViewById(R.id.SpinnerSleep);\n \t\n \tSpinner mySpinnerVFrom \t= (Spinner) findViewById(R.id.SpinnerVibrationOffFrom);\n \tSpinner mySpinnerVTo \t= (Spinner) findViewById(R.id.SpinnerVibrationOffTo);\n \tSpinner mySpinnerSFrom \t= (Spinner) findViewById(R.id.SpinnerSoundOffFrom);\n \tSpinner mySpinnerSTo \t= (Spinner) findViewById(R.id.SpinnerSoundOffTo);\n\n \t\n myNotifyRing.setChecked(m_myPrefs.getNotifyRing());\n myNotifyCharge.setChecked(m_myPrefs.getNotifyCharge());\n myNotifySMS.setChecked(m_myPrefs.getNotifySMS());\n myNotifyMail.setChecked(m_myPrefs.getNotifyMail());\n myNotifyIM.setChecked(m_myPrefs.getNotifyIM());\n \n myVibrateRing.setChecked(m_myPrefs.getVibrateRing());\n myVibrateSMS.setChecked(m_myPrefs.getVibrateSMS());\n myVibrateMail.setChecked(m_myPrefs.getVibrateMail());\n myVibrateIM.setChecked(m_myPrefs.getVibrateIM());\n\n mySoundRing.setChecked(m_myPrefs.getPlaySoundRing());\n mySoundSMS.setChecked(m_myPrefs.getPlaySoundSMS());\n mySoundMail.setChecked(m_myPrefs.getPlaySoundMail());\n mySoundIM.setChecked(m_myPrefs.getPlaySoundIM());\n\n mySpinnerRing.setSelection(m_myPrefs.getEffectRing());\n mySpinnerCharge.setSelection(m_myPrefs.getEffectCharge());\n mySpinnerSMS.setSelection(m_myPrefs.getEffectSMS());\n mySpinnerMail.setSelection(m_myPrefs.getEffectMail());\n mySpinnerIM.setSelection(m_myPrefs.getEffectIM());\n mySpinnerSleep.setSelection(m_myPrefs.getEffectSleep());\n \n // sounds\n m_strUriRing \t= m_myPrefs.getSoundRing();\t \n m_strUriSMS \t= m_myPrefs.getSoundSMS();\n m_strUriIM \t\t= m_myPrefs.getSoundIM();\n m_strUriMail\t= m_myPrefs.getSoundMail();\n \n // silence options\n myVibrateOff.setChecked(m_myPrefs.getVibrateOff());\n mySoundOff.setChecked(m_myPrefs.getSoundOff());\n \n mySpinnerVFrom.setSelection(m_myPrefs.getVibrateOffTimespan().getFromHours());\n mySpinnerVTo.setSelection(m_myPrefs.getVibrateOffTimespan().getToHours());\n mySpinnerSFrom.setSelection(m_myPrefs.getSoundOffTimespan().getFromHours());\n mySpinnerSTo.setSelection(m_myPrefs.getSoundOffTimespan().getToHours());\n\n }", "private void infereProteinsChanged() {\n boolean enabled = checkInferProteins.isSelected();\n\n filtersProteinInference.setEnabled(enabled);\n comboAvailableBaseScores.setEnabled(enabled);\n filtersProteinLevel.setEnabled(enabled);\n\n Enumeration<AbstractButton> btns = radioGrpInferenceMethod.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpProteinScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpPSMsForScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n }", "protected abstract void setupMvpView();", "void setupPresenter() {\n mPresenter = new leaguePresenter(this);\n ScheduleList.getInstance().setPresenter(mPresenter);\n }", "public void setGui()\n\t{\n\t\tdisplay = new Display();\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setText(\"Sensor Configurator\");\n\t\t// create a new GridLayout with 3 columns of same size\n\t\tGridLayout layout = new GridLayout(3, false);\n\t\tshell.setLayout(layout);\n\n\t\tsetTrayIcon();\n\n\t\tGroup groupLeft = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupLeft.setLayout(new GridLayout());\n\t\tgroupLeft.setText(\"Customer Group\");\n\n\t\tlistLabel = new Label(groupLeft, SWT.NONE);\n\t\tlistLabel.setText(\"List of Customers\");\n\t\tlistLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tcustomerList = new List(groupLeft, SWT.BORDER | SWT.V_SCROLL);\n\t\tGridData gridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 220;\n\t\tgridData.widthHint = 150;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerList.setLayoutData(gridData);\n\t\tcustomerList.select(0);\n\t\t// customerList.showSelection();\n\n\t\t// Combo selection\n\t\tpriorityCombo = new Combo(groupLeft, SWT.READ_ONLY);\n\t\tpriorityCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 1, 1));\n\t\tpriorityCombo.setItems(new String[] {\"Filter by Priority\", \"HIGH\", \"MEDIUM\", \"LOW\"});\n\t\tpriorityCombo.select(0);\n\n\t\t// updateButton\n\t\tupdateButton = new Button(groupLeft, SWT.PUSH);\n\t\tupdateButton.setText(\"Update List\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tupdateButton.setLayoutData(gridData);\n\n\t\t// center group\n\t\tGroup groupCenter = new Group(shell, SWT.SHADOW_OUT);\n\t\tGridLayout groupLayout = new GridLayout(2, false);\n\t\tgroupCenter.setLayout(groupLayout);\n\t\tgroupCenter.setText(\"Measurement group\");\n\n\t\tcustomerLabel = new Label(groupCenter, SWT.NONE);\n\t\tcustomerLabel.setText(\"Customer Info\");\n\t\tcustomerLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\t// Measurement Label\n\t\tmeasLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasLabel.setText(\"Measurement Info\");\n\t\tmeasLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false, 1, 1));\n\n\t\t// customerText\n\t\tcustomerText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerText.setLayoutData(gridData);\n\n\t\t// Measurement Text\n\t\tmeasureText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasureText.setLayoutData(gridData);\n\n\t\t// Comment Label\n\t\tcommentLabel = new Label(groupCenter, SWT.NONE);\n\t\tcommentLabel.setText(\"Comment Here!\");\n\t\tcommentLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Measurement Task Label\n\t\tmeasTaskLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasTaskLabel.setText(\"Measurement Tasks!\");\n\t\tmeasTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Comment Text\n\t\tcommentText = new StyledText(groupCenter, SWT.BORDER | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcommentText.setLayoutData(gridData);\n\n\t\t// Measurement Task Text\n\t\tmeasurTaskText = new StyledText(groupCenter, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasurTaskText.setLayoutData(gridData);\n\n\t\t// Electrode selection\n\t\telectrodeCombo = new Combo(groupCenter, SWT.READ_ONLY);\n\t\telectrodeCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 2, 1));\n\t\telectrodeCombo.setItems(new String[] {\"Electrode\", \"Simple\", \"Test\", \"New\"});\n\t\telectrodeCombo.select(0);\n\n\t\t// right group\n\t\tGroup groupRight = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupRight.setLayout(new GridLayout());\n\t\tgroupRight.setText(\"Sensor group\");\n\n\t\tsensorLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorLabel.setText(\"Sensor Info\");\n\t\tsensorLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tsensorText = new StyledText(groupRight, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.heightHint = 140;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorText.setLayoutData(gridData);\n\n\t\t// sensor Task label\n\t\tsensorTaskLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorTaskLabel.setText(\"Sensor Tasks\");\n\t\tsensorTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\tsensorTaskText = new StyledText(groupRight, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorTaskText.setLayoutData(gridData);\n\n\t\t// configButton\n\t\tconfigButton = new Button(groupRight, SWT.PUSH);\n\t\tconfigButton.setText(\"Start Configure\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tconfigButton.setLayoutData(gridData);\n\n\t\tstatusBar = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.SINGLE);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.verticalSpan = 1;\n\t\tstatusBar.setLayoutData(gridData);\n\n\t}", "@Override\n\tprotected void setupWidgets() {\n\t\tmHeaderText = (TextView) findViewById(R.id.textViewHeader);\n\t\tmBrandText = (TextView) findViewById(R.id.textViewBrand);\n\t\tmModelText = (TextView) findViewById(R.id.textViewModel);\n\t\tmColorText = (TextView) findViewById(R.id.textViewColor);\n\t\tmSeatsText = (TextView) findViewById(R.id.textViewSeats);\n\t\tmPlateText = (TextView) findViewById(R.id.textViewPlate);\n\t\tmFuelText = (TextView) findViewById(R.id.textViewFuel);\n\t\tmConsumptionText = (TextView) findViewById(R.id.textViewConsumption);\n\t}", "public void setViews(){\n mtvNome.setText(name);\n mTvUsername.setText(username);\n }", "public final void initializeNewPhasesView() {\n resetViews();\n newPhaseSettingsView.initialize(phasesUI, skin);\n }", "private synchronized void loadProvider() {\n\t\tif (provider != null) {\n\t\t\t// Prevents loading by two thread in parallel\n\t\t\treturn;\n\t\t}\n\t\tfinal IExtensionRegistry xRegistry = Platform.getExtensionRegistry();\n\t\tfinal IExtensionPoint xPoint = xRegistry\n\t\t\t\t.getExtensionPoint(PROVIDERS_ID);\n\t\tfor (IConfigurationElement element : xPoint.getConfigurationElements()) {\n\t\t\ttry {\n\t\t\t\tfinal String id = element.getAttribute(\"id\");\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tlog(null, \"Only one extension provider allowed. Provider\"\n\t\t\t\t\t\t\t+ id + \" ignored\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tprovider = (IFormulaExtensionProvider) element\n\t\t\t\t\t\t\t.createExecutableExtension(\"class\");\n\t\t\t\t}\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"Registered provider extension \" + id);\n\t\t\t} catch (CoreException e) {\n\t\t\t\tlog(e, \"while loading extension provider\");\n\t\t\t}\n\t\t}\n\t}", "private void updatePreferenceIcon() {\n int alarmVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);\n if (mPreference != null) {\n mPreference.showIcon(alarmVolume == 0 ?R.drawable.ic_audio_alarm_mute : R.drawable.ic_audio_alarm);\n }\n }" ]
[ "0.6219001", "0.5614852", "0.5239478", "0.5096269", "0.4977755", "0.49659532", "0.49597114", "0.4955132", "0.49345115", "0.49217203", "0.4898295", "0.4879353", "0.4867325", "0.48598337", "0.48460418", "0.48057404", "0.47762764", "0.4773439", "0.47683054", "0.47617817", "0.47480026", "0.47463393", "0.47286215", "0.47274995", "0.47271737", "0.47221792", "0.4720232", "0.47132936", "0.47103024", "0.47087592", "0.4691331", "0.46899632", "0.4687014", "0.4685848", "0.4677637", "0.46668798", "0.4666474", "0.4660416", "0.46568546", "0.46409634", "0.46350577", "0.4622561", "0.4619067", "0.46122718", "0.4605303", "0.4601415", "0.45995563", "0.4589011", "0.45866966", "0.45817316", "0.45801562", "0.45799989", "0.4557061", "0.4552156", "0.454876", "0.4543121", "0.45368433", "0.45361337", "0.4531927", "0.45276615", "0.452644", "0.45130527", "0.4509047", "0.45071697", "0.4504846", "0.44998485", "0.44969153", "0.44872323", "0.44794822", "0.44794065", "0.44785747", "0.447438", "0.44634545", "0.4454327", "0.44530863", "0.44513643", "0.44476283", "0.44443753", "0.44392493", "0.4438043", "0.44348675", "0.44311735", "0.442984", "0.44291994", "0.44259495", "0.44245973", "0.44233653", "0.44208542", "0.44186383", "0.4418413", "0.44107533", "0.44104707", "0.44077113", "0.44051343", "0.44046208", "0.4403697", "0.44013682", "0.44002947", "0.4399299", "0.43979326" ]
0.7577832
0
Enumerates existing VM providers and puts their data into the list and populates the preference list objects with their names. In case we are called with ACTION_ADD_VOICEMAIL intent the intent may have an extra string called IGNORE_PROVIDER_EXTRA with "package.activityName" of the provider which should be hidden when we bring up the list of possible VM providers to choose. This allows a provider which is being disabled (e.g. GV user logging out) to force the user to pick some other provider.
private void initVoiceMailProviders() { String providerToIgnore = null; if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) { providerToIgnore = getIntent().getStringExtra(IGNORE_PROVIDER_EXTRA); } mVMProvidersData.clear(); // Stick the default element which is always there final String myCarrier = getString(R.string.voicemail_default); mVMProvidersData.put("", new VoiceMailProvider(myCarrier, null)); // Enumerate providers PackageManager pm = getPackageManager(); Intent intent = new Intent(); intent.setAction(ACTION_CONFIGURE_VOICEMAIL); List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0); int len = resolveInfos.size() + 1; // +1 for the default choice we will insert. // Go through the list of discovered providers populating the data map // skip the provider we were instructed to ignore if there was one for (int i = 0; i < resolveInfos.size(); i++) { final ResolveInfo ri= resolveInfos.get(i); final ActivityInfo currentActivityInfo = ri.activityInfo; final String key = makeKeyForActivity(currentActivityInfo); if (key.equals(providerToIgnore)) { len--; continue; } final String nameForDisplay = ri.loadLabel(pm).toString(); Intent providerIntent = new Intent(); providerIntent.setAction(ACTION_CONFIGURE_VOICEMAIL); providerIntent.setClassName(currentActivityInfo.packageName, currentActivityInfo.name); mVMProvidersData.put( key, new VoiceMailProvider(nameForDisplay, providerIntent)); } // Now we know which providers to display - create entries and values array for // the list preference String [] entries = new String [len]; String [] values = new String [len]; entries[0] = myCarrier; values[0] = ""; int entryIdx = 1; for (int i = 0; i < resolveInfos.size(); i++) { final String key = makeKeyForActivity(resolveInfos.get(i).activityInfo); if (!mVMProvidersData.containsKey(key)) { continue; } entries[entryIdx] = mVMProvidersData.get(key).name; values[entryIdx] = key; entryIdx++; } mVoicemailProviders.setEntries(entries); mVoicemailProviders.setEntryValues(values); updateVMPreferenceWidgets(mVoicemailProviders.getValue()); mPerProviderSavedVMNumbers = this.getApplicationContext().getSharedPreferences( VM_NUMBERS_SHARED_PREFERENCES_NAME, MODE_PRIVATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateProviderList()\n {\n synchronized(activeProvidersByName) {\n if(ModuleManager.getInstance() != null) {\n List<ModuleURN> providerUrns = ModuleManager.getInstance().getProviders();\n for(ModuleURN providerUrn : providerUrns) {\n String providerName = providerUrn.providerName();\n if(providerUrn.providerType().equals(MDATA) && !providerName.equals(MarketDataCoreModuleFactory.IDENTIFIER) && !activeProvidersByName.containsKey(providerName)) {\n List<ModuleURN> instanceUrns = ModuleManager.getInstance().getModuleInstances(providerUrn);\n if(!instanceUrns.isEmpty()) {\n ModuleURN instanceUrn = instanceUrns.get(0);\n ModuleInfo info = ModuleManager.getInstance().getModuleInfo(instanceUrn);\n if(info.getState() == ModuleState.STARTED) {\n ModuleProvider provider = new ModuleProvider(providerName,\n AbstractMarketDataModule.getFeedForProviderName(providerName));\n SLF4JLoggerProxy.debug(this,\n \"Creating market data provider proxy for {}\",\n providerName);\n addProvider(provider);\n }\n }\n }\n }\n }\n }\n }", "private void populateAvailableProviders() {\n allAvailableProviders = new HashSet<Provider>();\n\n DataType dataType = DataType.valueOfIgnoreCase(this.dataType);\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n ProviderType providerType = provider.getProviderType(dataType);\n if (providerType != null) {\n allAvailableProviders.add(provider);\n }\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the list of providers.\", e);\n }\n }", "public abstract List getProviders();", "private void updateVMPreferenceWidgets(String currentProviderSetting) {\n final String key = currentProviderSetting;\n final VoiceMailProvider provider = mVMProvidersData.get(key);\n \n /* This is the case when we are coming up on a freshly wiped phone and there is no\n persisted value for the list preference mVoicemailProviders.\n In this case we want to show the UI asking the user to select a voicemail provider as\n opposed to silently falling back to default one. */\n if (provider == null) {\n mVoicemailProviders.setSummary(getString(R.string.sum_voicemail_choose_provider));\n mVoicemailSettings.setSummary(\"\");\n mVoicemailSettings.setEnabled(false);\n mVoicemailSettings.setIntent(null);\n } else {\n final String providerName = provider.name;\n mVoicemailProviders.setSummary(providerName);\n mVoicemailSettings.setSummary(getApplicationContext().getString(\n R.string.voicemail_settings_for, providerName));\n mVoicemailSettings.setEnabled(true);\n mVoicemailSettings.setIntent(provider.intent);\n }\n }", "private List<AuthUI.IdpConfig> getProvider() {\n List<AuthUI.IdpConfig> providers = Arrays.asList(\n new AuthUI.IdpConfig.FacebookBuilder().setPermissions(Arrays.asList(\"email\")).build(),\n new AuthUI.IdpConfig.GoogleBuilder().build(),\n new AuthUI.IdpConfig.TwitterBuilder().build());\n\n return providers;\n }", "@NonNull\n @SuppressWarnings(\"MixedMutabilityReturnType\")\n public static List<AdvertisingIdProviderInfo> getAdvertisingIdProviders(\n @NonNull Context context) {\n PackageManager packageManager = context.getPackageManager();\n List<ServiceInfo> serviceInfos =\n AdvertisingIdUtils.getAdvertisingIdProviderServices(packageManager);\n if (serviceInfos.isEmpty()) {\n return Collections.emptyList();\n }\n\n Map<String, String> activityMap = getOpenSettingsActivities(packageManager);\n ServiceInfo highestPriorityServiceInfo =\n AdvertisingIdUtils.selectServiceByPriority(serviceInfos, packageManager);\n\n List<AdvertisingIdProviderInfo> providerInfos = new ArrayList<>();\n for (ServiceInfo serviceInfo : serviceInfos) {\n String packageName = serviceInfo.packageName;\n\n AdvertisingIdProviderInfo.Builder builder =\n AdvertisingIdProviderInfo.builder()\n .setPackageName(packageName)\n .setHighestPriority(serviceInfo == highestPriorityServiceInfo);\n String activityName = activityMap.get(packageName);\n if (activityName != null) {\n builder.setSettingsIntent(\n new Intent(OPEN_SETTINGS_ACTION).setClassName(packageName, activityName));\n }\n providerInfos.add(builder.build());\n }\n return providerInfos;\n }", "@Override\n public void onProviderInstalled() {\n }", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t Toast.makeText(this, \"Enabled new provider \" + provider, Toast.LENGTH_SHORT).show();\n\t\t\n\t}", "@Override\n public void onProviderEnabled(String provider) {\n }", "public void onProviderEnabled(String provider) {}", "public void onProviderEnabled(String provider) {\n\n }", "public void onProviderEnabled(String provider) {\n\t }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "public ArrayList<String> DFGetProviderList() {\n return DFGetAllProvidersOf(\"\");\n }", "@Override\r\n public void onProviderEnabled(String provider) {\n }", "public void onProviderEnabled(String provider) {\n\n\n\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "private Collection<MarketDataProvider> getActiveMarketDataProviders()\n {\n populateProviderList();\n return providersByPriority;\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "@Override\r\n\t\t\tpublic void onProviderEnabled(String provider) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onProviderEnabled(String provider) {\n\r\n\t\t\t}", "private void getAllProviders() {\r\n InfoService.Util.getService().getAllProviders(new MethodCallback<List<CabProviderBean>>() {\r\n\r\n @Override public void onFailure(Method method, Throwable exception) {\r\n viewProviderTable.setText(6, 0, \"Error could not connect to load data\" + exception);\r\n\r\n }\r\n\r\n @Override public void onSuccess(Method method, List<CabProviderBean> response) {\r\n\r\n updateDeleteTable(response);\r\n }\r\n\r\n });\r\n }", "@Override\n public void onProviderDisabled(String provider) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\t\n\t\t\t}", "public void onProviderEnabled(String provider) {\n // ignore\n }", "public List<String> getProviders(Criteria criteria, boolean enabledOnly){\n\t\tList<String> providers = new ArrayList<String>();\n\t\tproviders.add(GPS_PROVIDER);\n\t\treturn providers;\n\t}", "public void onProviderEnabled(String provider) {\n }", "public void onProviderEnabled(String provider) {\n }", "@Override\r\n\tpublic List<SessionObject> getExistingProviders(SessionObject needer, List<SessionObject> existingProviders, ModelObject rule) throws EngineException {\r\n\t\t// Get property name and permitted values\r\n\t\tString propertyName = (String) rule.getPropertyValue(RULE_PROPERTY_NAME);\r\n\t\tList<?> permittedValues = rule.getListPropertyValue(RULE_PROPERTY_PERMITTED_VALUES);\r\n\t\t\r\n\t\t// If not fully specified, skip filtering\r\n\t\tif (propertyName.length() == 0 || permittedValues.size() == 0) {\r\n\t\t\treturn existingProviders;\r\n\t\t}\r\n\t\t\r\n\t\t// Check for parent provider flag\r\n\t\tboolean useParent = ((Boolean) rule.getPropertyValue(RULE_PROPERTY_ON_PARENT)).booleanValue();\r\n\t\tList<SessionObject> filteredProviders = new ArrayList<SessionObject>();\r\n\t\t\r\n\t\tfor(SessionObject existingProvider : existingProviders) {\r\n\t\t\t// Get appropriate provider property value from candidate\r\n\t\t\tObject value = useParent ? existingProvider.getParentObject().getPropertyValue(propertyName) : existingProvider.getPropertyValue(propertyName);\r\n\t\t\t\r\n\t\t\t// Compare candidate value against permitted values to determine validity\r\n\t\t\tif (permittedValues.contains(value)) {\r\n\t\t\t\tfilteredProviders.add(existingProvider);\t\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Return filtered provider list\r\n\t\treturn filteredProviders;\r\n\t}", "@Override\n \tpublic void onProviderEnabled(String provider) {\n \n \t}", "@Override\r\n\tpublic void onProviderEnabled(String provider) {\n\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t\n\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t\n\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t\n\t}", "@Override\r\n public void onProviderEnabled(String provider) {\n\r\n }", "public void onProviderEnabled(String provider)\n {\n }", "default ListBoxModel doFillPromoterClassItems() {\r\n ListBoxModel promoterModel = new ListBoxModel();\r\n for (Promotor promotor : Jenkins.getInstance()\r\n .getExtensionList(Promotor.class)) {\r\n promoterModel.add(promotor.getDescriptor().getDisplayName(), promotor\r\n .getClass().getCanonicalName());\r\n }\r\n\r\n return promoterModel;\r\n }", "@Override\npublic void onProviderEnabled(String provider) {\n\n}", "@Override\n \t\tpublic void onProviderEnabled(String provider) {\n \t\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\t}", "public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t Toast.makeText(this, \"Disabled provider \" + provider, Toast.LENGTH_SHORT).show();\n\t\t\n\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}", "@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}", "@Override\r\n\tpublic List<ModelObject> getNewProviders(SessionObject needer, List<ModelObject> newProviders, ModelObject rule) throws EngineException {\r\n\t\t// Get property name and permitted values\r\n\t\tString propertyName = (String) rule.getPropertyValue(RULE_PROPERTY_NAME);\r\n\t\tList<?> permittedValues = rule.getListPropertyValue(RULE_PROPERTY_PERMITTED_VALUES);\r\n\t\t\r\n\t\t// If not fully specified, skip filtering\r\n\t\tif (propertyName.length() == 0 || permittedValues.size() == 0) {\r\n\t\t\treturn newProviders;\r\n\t\t}\r\n\t\t\r\n\t\t// Check for parent provider flag\r\n\t\tboolean useParent = ((Boolean) rule.getPropertyValue(RULE_PROPERTY_ON_PARENT)).booleanValue();\r\n\t\tList<ModelObject> filteredProviders = new ArrayList<ModelObject>();\r\n\t\t\r\n\t\tfor(ModelObject newProvider : newProviders) {\r\n\t\t\t// Check provider parent if appropriate\r\n\t\t\tif (useParent) {\r\n\t\t\t\t// Compare candidate value against permitted values to determine validity\r\n\t\t\t\tObject value = newProvider.getPropertyValue(propertyName); \r\n\t\t\t\tif (permittedValues.contains(value)) {\r\n\t\t\t\t\tfilteredProviders.add(newProvider);\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Else check child providers (any child satisfying the comparison is sufficient)\r\n\t\t\telse {\r\n\t\t\t\tList<?> childProviderIds = newProvider.getListPropertyValue(Constants.PROVIDER_LIST);\r\n\t\t\t\tfor(Object childProviderId : childProviderIds) {\r\n\t\t\t\t\tModelObject childProvider = needer.getSession().getKnowledgeBase().getModelObject(childProviderId);\r\n\t\t\t\t\tObject value = childProvider.getPropertyValue(propertyName); \r\n\t\t\t\t\t// Compare candidate child provider value against permitted values to determine validity\r\n\t\t\t\t\tif (permittedValues.contains(value)) {\r\n\t\t\t\t\t\tfilteredProviders.add(newProvider);\t\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Return filtered provider list\r\n\t\treturn filteredProviders;\r\n\t}", "@Override\n \t\tpublic void onProviderEnabled(String provider) {\n \t\t\t\n \t\t}", "public void setProvider(String value) { _provider = value; }", "private synchronized void loadProvider() {\n\t\tif (provider != null) {\n\t\t\t// Prevents loading by two thread in parallel\n\t\t\treturn;\n\t\t}\n\t\tfinal IExtensionRegistry xRegistry = Platform.getExtensionRegistry();\n\t\tfinal IExtensionPoint xPoint = xRegistry\n\t\t\t\t.getExtensionPoint(PROVIDERS_ID);\n\t\tfor (IConfigurationElement element : xPoint.getConfigurationElements()) {\n\t\t\ttry {\n\t\t\t\tfinal String id = element.getAttribute(\"id\");\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tlog(null, \"Only one extension provider allowed. Provider\"\n\t\t\t\t\t\t\t+ id + \" ignored\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tprovider = (IFormulaExtensionProvider) element\n\t\t\t\t\t\t\t.createExecutableExtension(\"class\");\n\t\t\t\t}\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"Registered provider extension \" + id);\n\t\t\t} catch (CoreException e) {\n\t\t\t\tlog(e, \"while loading extension provider\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\r\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t\n\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onProviderEnabled(String provider)\n\t{\n\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n onProviderInstallerNotAvailable();\n }", "@Override\n\t public void onProviderEnabled(String provider)\n\t {\n\t \n\t }", "@Override\n\t\t\t\tpublic void onProviderEnabled(String provider)\n\t\t\t\t\t{\n\n\t\t\t\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\n\t\t}", "@Override\r\n\t\tpublic void onProviderEnabled(String provider)\r\n\t\t{\n\t\t\t\r\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t\t}", "private void fillPluginList() {\n\t\tlesSitesPlugin = new ArrayList<HashMap<String, String>>();\n\t\tcategories = new ArrayList<String>();\n\t\tPackageManager packageManager = getPackageManager();\n\t\tIntent baseIntent = new Intent(ACTION_PICK_PLUGIN);\n\t\tbaseIntent.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION);\n\t\tList<ResolveInfo> list = packageManager.queryIntentServices(baseIntent, PackageManager.GET_RESOLVED_FILTER);\n\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\tResolveInfo info = list.get(i);\n\t\t\tServiceInfo sinfo = info.serviceInfo;\n\t\t\t IntentFilter filter = info.filter;\n\t\t\tNotification.log(tag, \"taille de la liste de Plugin: \" + i + 1 + \"; sinfo: \" + sinfo);\n\t\t\tif (sinfo != null) {\n\t\t\t\t HashMap<String, String> item = new HashMap<String, String>();\n\t\t\t\t item.put(KEY_PKG, sinfo.packageName); // nom du package\n//\t\t\t\t item.put(KEY_SERVICENAME, StringLt.lastSegment(sinfo.name, '.')); // nom du plugin\n\t\t\t\t item.put(KEY_SERVICENAME, sinfo.name);\n\t\t\t\t String firstCategory = null;\n\t\t\t\t if (filter != null) {\n\t\t\t\t StringBuilder actions = new StringBuilder();\n\t\t\t\t for (Iterator<String> actionIterator = filter.actionsIterator(); actionIterator.hasNext();) {\n\t\t\t\t String action = actionIterator.next();\n\t\t\t\t if (actions.length() > 0)\n\t\t\t\t actions.append(\",\");\n\t\t\t\t actions.append(action);\n\t\t\t\t }\n\t\t\t\t StringBuilder categories = new StringBuilder();\n\t\t\t\t for (Iterator<String> categoryIterator = filter.categoriesIterator(); categoryIterator.hasNext();) {\n\t\t\t\t String category = categoryIterator.next();\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = category;\n\t\t\t\t if (categories.length() > 0)\n\t\t\t\t categories.append(\",\");\n\t\t\t\t categories.append(category);\n\t\t\t\t }\n\t\t\t\t// item.put(KEY_ACTIONS, new\n\t\t\t\t// String(StringLt.lastSegment(actions.toString(), '.')));\n\t\t\t\t// item.put(KEY_CATEGORIES, new\n\t\t\t\t// String(StringLt.lastSegment(categories.toString(),\n\t\t\t\t// '.')));\n\t\t\t\t item.put(KEY_ACTIONS, new String(actions));\n\t\t\t\t item.put(KEY_CATEGORIES, new String(categories));\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t item.put(KEY_ACTIONS, \"<null>\");\n\t\t\t\t item.put(KEY_CATEGORIES, \"<null>\");\n\t\t\t\t }\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = \"\";\n\t\t\t\t categories.add(firstCategory);\n\t\t\t\t lesSitesPlugin.add(item);\n\t\t\t\t// lesSitesPlugin.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t\tlesSites.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t}\n\t\t}\n\t}", "public void onProviderEnabled(String provider) {\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t}", "public void onProviderEnabled(String provider) {\n\n\t\t\t\t}", "public static List<String> getProviderExist() {\n\t\tList<String> providerExist = new ArrayList<String>();\n\t\ttry {\n\t\t\t// load provider found previous\n\t\t\tString providerFound = Utils.getValueFromConfig(Utils.KEY_PROVIDER_FOUND);\n\t\t\tString[] providerFoundArr = providerFound == null ? null : providerFound.split(\",\");\n\t\t\tif (providerFoundArr != null && providerFoundArr.length > 0)\n\t\t\t{\n\t\t\t\tfor (String provider : providerFoundArr) {\n\t\t\t\t\tString providerPath = IsFileExistInSystem(provider);\n\t\t\t\t\tif (null != providerPath) {\n\t\t\t\t\t\tproviderExist.add(providerPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// load a properties file\n\t\t\tString providerList = Utils.getValueFromConfig(Utils.KEY_PROVIDER_LIST);\n\t\t\t// get from string\n\t\t\tString[] providerArr = providerList.split(\",\");\n\t\t\tfor (String provider : providerArr) {\n\t\t\t\tif (providerFoundArr != null && !Arrays.asList(providerFoundArr).contains(provider))\n\t\t\t\t{\n\t\t\t\t\tString providerPath = IsFileExistInSystem(provider);\n\t\t\t\t\tif (null != providerPath && !providerExist.contains(providerPath)) {\n\t\t\t\t\t\tproviderExist.add(providerPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t// get from system\n\t\t\tList<String> listOnSystem = GetDriverOnSystem();\n\t\t\tfor (String path : listOnSystem) {\n\t\t\t\tif (!providerExist.contains(path)) {\n\t\t\t\t\tproviderExist.add(path);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tLOG.write(\"CryptoTokenHelper\", e.getMessage());\n\t\t}\n\t\treturn providerExist;\n\t}", "@Override\n public void onProviderEnabled(String arg0) {\n\n }", "public void onProviderEnabled(String provider) {\n Log.i(getResources().getString(R.string.app_name), \"provider enabled : \" + provider);\n }", "public void onProviderDisabled(String provider) {\n Log.i(getResources().getString(R.string.app_name), \"provider disabled : \" + provider);\n }", "private void _loadProvidersLocked() {\n if (GpsLocationProvider.isSupported()) {\n // Create a gps location provider\n mGpsLocationProvider = new GpsLocationProvider(mContext);\n LocationProviderImpl.addProvider(mGpsLocationProvider);\n }\n\n // Load fake providers if real providers are not available\n File f = new File(LocationManager.PROVIDER_DIR);\n if (f.isDirectory()) {\n File[] subdirs = f.listFiles();\n for (int i = 0; i < subdirs.length; i++) {\n if (!subdirs[i].isDirectory()) {\n continue;\n }\n\n String name = subdirs[i].getName();\n\n if (LOCAL_LOGV) {\n Log.v(TAG, \"Found dir \" + subdirs[i].getAbsolutePath());\n Log.v(TAG, \"name = \" + name);\n }\n\n // Don't create a fake provider if a real provider exists\n if (LocationProviderImpl.getProvider(name) == null) {\n LocationProviderImpl provider = null;\n try {\n File classFile = new File(subdirs[i], \"class\");\n // Look for a 'class' file\n provider = LocationProviderImpl.loadFromClass(classFile);\n\n // Look for an 'kml', 'nmea', or 'track' file\n if (provider == null) {\n // Load properties from 'properties' file, if present\n File propertiesFile = new File(subdirs[i], \"properties\");\n\n if (propertiesFile.exists()) {\n provider = new TrackProvider(name);\n ((TrackProvider)provider).readProperties(propertiesFile);\n\n File kmlFile = new File(subdirs[i], \"kml\");\n if (kmlFile.exists()) {\n ((TrackProvider) provider).readKml(kmlFile);\n } else {\n File nmeaFile = new File(subdirs[i], \"nmea\");\n if (nmeaFile.exists()) {\n ((TrackProvider) provider).readNmea(name, nmeaFile);\n } else {\n File trackFile = new File(subdirs[i], \"track\");\n if (trackFile.exists()) {\n ((TrackProvider) provider).readTrack(trackFile);\n }\n }\n }\n }\n }\n if (provider != null) {\n LocationProviderImpl.addProvider(provider);\n }\n // Grab the initial location of a TrackProvider and\n // store it as the last known location for that provider\n if (provider instanceof TrackProvider) {\n TrackProvider tp = (TrackProvider) provider;\n mLastKnownLocation.put(tp.getName(), tp.getInitialLocation());\n }\n } catch (Exception e) {\n Log.e(TAG, \"Exception loading provder \" + name, e);\n }\n }\n }\n }\n\n updateProvidersLocked();\n }", "@Override\n public void onProviderInstallFailed(int errorCode, Intent intent) {\n }", "@Override\n public void onProviderEnabled(String s) {\n }", "@Override\n public void onProviderEnabled(String s) {\n }", "static List<ProviderInfo> convertInstancesToProviders(List<Instance> allInstances) {\n List<ProviderInfo> providerInfos = new ArrayList<ProviderInfo>();\n if (CommonUtils.isEmpty(allInstances)) {\n return providerInfos;\n }\n\n for (Instance instance : allInstances) {\n String url = convertInstanceToUrl(instance);\n ProviderInfo providerInfo = ProviderHelper.toProviderInfo(url);\n providerInfos.add(providerInfo);\n }\n return providerInfos;\n }", "@Override\r\n\tpublic void onProviderEnabled(String arg0) {\n\r\n\t}", "@Override\n\t\t\tpublic void onProviderEnabled(String arg0) {\n\t\t\t}", "@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}", "public void onProviderDisabled(String provider) {\n\n\n\n }" ]
[ "0.63908386", "0.58927584", "0.5664489", "0.5516027", "0.5413342", "0.53188634", "0.52967906", "0.5287292", "0.5267376", "0.52613103", "0.5244314", "0.523932", "0.52323735", "0.52323735", "0.52323735", "0.52323735", "0.52323735", "0.52277637", "0.52262145", "0.52200514", "0.5208626", "0.5208626", "0.5208626", "0.5208626", "0.52011555", "0.5199272", "0.5199272", "0.5199272", "0.51770055", "0.51770055", "0.51767075", "0.51767075", "0.51718885", "0.51621616", "0.51496774", "0.5147287", "0.5130719", "0.51239455", "0.51239455", "0.5118647", "0.51105535", "0.5106602", "0.5105453", "0.5105453", "0.5105453", "0.5105001", "0.50993204", "0.5098883", "0.5094883", "0.50948495", "0.50935274", "0.5089803", "0.5089803", "0.5089803", "0.5081093", "0.50715053", "0.50715053", "0.50715053", "0.50715053", "0.50636375", "0.5056059", "0.5055708", "0.5054505", "0.5054256", "0.50524664", "0.5048064", "0.5048064", "0.5048064", "0.5048064", "0.5048064", "0.5048064", "0.5048064", "0.5048064", "0.504037", "0.5031551", "0.5030968", "0.50193477", "0.5008115", "0.5008115", "0.4987823", "0.49842778", "0.49796495", "0.4972169", "0.4972169", "0.49671122", "0.4965974", "0.49572405", "0.49558446", "0.49330825", "0.49247253", "0.49201354", "0.49153095", "0.49153095", "0.4895775", "0.48742244", "0.48705354", "0.4860575", "0.4860575", "0.4860575", "0.48431042" ]
0.7384767
0
Simulates user clicking on a passed preference. Usually needed when the preference is a dialog preference and we want to invoke a dialog for this preference programmatically. TODO(iliat): figure out if there is a cleaner way to cause preference dlg to come up
private void simulatePreferenceClick(Preference preference) { // Go through settings until we find our setting // and then simulate a click on it to bring up the dialog final ListAdapter adapter = getPreferenceScreen().getRootAdapter(); for (int idx = 0; idx < adapter.getCount(); idx++) { if (adapter.getItem(idx) == preference) { getPreferenceScreen().onItemClick(this.getListView(), null, idx, adapter.getItemId(idx)); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean onPreferenceClick(Preference preference) {\n \t \n \t Dialog dialog = onCreateDialogSingleChoice();\n \t dialog.show();\n \t \n \t \n\t\t\t\t\t\treturn true;\n \n }", "@Override\n\tpublic boolean onPreferenceClick(Preference arg0) {\n\t\tfireBCastSubScreen();\n\t\treturn true;\n\n\t}", "@Override\n\t\t\tpublic boolean onPreferenceClick(Preference arg0) {\n\n\t\t\t\tbuy(SKU_VITAMIN);\n\t\t\t\treturn true;\n\t\t\t}", "public boolean onPreferenceClick(Preference preference) {\n String url = \"https://github.com/ilayaraja97/ManageAccounts\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n return true;\n }", "public boolean onPreferenceClick(Preference preference) {\n final Dialog d = new Dialog(getActivity());\n //d.setTitle(R.string.import_dialog_title);\n d.setContentView(R.layout.dialog_guide);\n d.setTitle(\"Import guide\");\n Button dialog_guide_ok_btn = (Button) d.findViewById(R.id.dialog_guide_ok_btn);\n dialog_guide_ok_btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n d.dismiss();\n }\n });\n d.show();\n\n return true;\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n if (clickTimes >= SHOW_HIDDEN_CLICK_COUNT) {\n Intent intent = new Intent(getActivity(), HiddenActivity.class);\n startActivity(intent);\n clickTimes = 1;\n return false;\n }\n clickTimes++;\n return false;\n }", "void bindPreferenceClickListener(Preference preference);", "public void onDialogClosed(EditPhoneNumberPreference preference, int buttonClicked) {\n if (DBG) log(\"onPreferenceClick: request preference click on dialog close.\");\n \n if (preference instanceof EditPhoneNumberPreference) {\n EditPhoneNumberPreference epn = preference;\n \n if (epn == mSubMenuVoicemailSettings) {\n handleVMBtnClickRequest();\n }\n }\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n final Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);\n // This will setup the Home and Search affordance\n intent.putExtra(\":settings:show_fragment_as_subsetting\", true);\n mPrefActivity.startActivity(intent);\n return true;\n }", "@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n if (preference == mSubMenuVoicemailSettings) {\n return true;\n } else if (preference == mButtonDTMF) {\n return true;\n } else if (preference == mButtonTTY) {\n return true;\n } else if (preference == mButtonAutoRetry) {\n android.provider.Settings.System.putInt(mPhone.getContext().getContentResolver(),\n android.provider.Settings.System.CALL_AUTO_RETRY,\n mButtonAutoRetry.isChecked() ? 1 : 0);\n return true;\n } else if (preference == mButtonHAC) {\n int hac = mButtonHAC.isChecked() ? 1 : 0;\n // Update HAC value in Settings database\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.HEARING_AID, hac);\n \n // Update HAC Value in AudioManager\n mAudioManager.setParameter(HAC_KEY, hac != 0 ? HAC_VAL_ON : HAC_VAL_OFF);\n return true;\n } else if (preference == mVoicemailSettings) {\n if (preference.getIntent() != null) {\n this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);\n } else {\n updateVoiceNumberField();\n }\n return true;\n }\n return false;\n }", "public boolean onPreferenceClick(final Preference preference) {\n SimpleFileDialog FolderChooseDialog = new SimpleFileDialog(getActivity(), SimpleFileDialog.FolderChooseWrite,\n new SimpleFileDialog.SimpleFileDialogListener() {\n @Override\n public void onChosenDir(String chosenDir) {\n // The code in this function will be executed when the dialog OK button is pushed\n ((EditTextPreference)preference).setText(chosenDir);\n try {\n SettingsActivity.createWorkingDir(getActivity(), new File(chosenDir));\n } catch (Exception ex) {\n Toast.makeText(getActivity(), ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n AvnLog.i(Constants.LOGPRFX, \"select work directory \" + chosenDir);\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n FolderChooseDialog.Default_File_Name=\"avnav\";\n FolderChooseDialog.dialogTitle=getString(R.string.selectWorkDir);\n FolderChooseDialog.newFolderNameText=getString(R.string.newFolderName);\n FolderChooseDialog.newFolderText=getString(R.string.createFolder);\n FolderChooseDialog.chooseFile_or_Dir(myPref.getText());\n return true;\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(context, Preferences.class));\n }", "public boolean onPreferenceClick(final Preference preference) {\n SimpleFileDialog FolderChooseDialog = new SimpleFileDialog(getActivity(), SimpleFileDialog.FolderChoose,\n new SimpleFileDialog.SimpleFileDialogListener() {\n @Override\n public void onChosenDir(String chosenDir) {\n // The code in this function will be executed when the dialog OK button is pushed\n ((EditTextPreference)preference).setText(chosenDir);\n AvnLog.i(Constants.LOGPRFX, \"select chart directory \" + chosenDir);\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n FolderChooseDialog.Default_File_Name=\"avnav\";\n FolderChooseDialog.dialogTitle=getString(R.string.selectChartDir);\n FolderChooseDialog.newFolderNameText=getString(R.string.newFolderName);\n FolderChooseDialog.newFolderText=getString(R.string.createFolder);\n FolderChooseDialog.chooseFile_or_Dir(myChartPref.getText());\n return true;\n }", "@Override\n public boolean onPreferenceTreeClick(Preference preference) {\n\n String key = preference.getKey();\n\n if (key != null && key.equals(getString(R.string.settings_activity_elo_values))) {\n Intent startEloValuesActivity = new Intent(getActivity(), EloValuesActivity.class);\n startActivity(startEloValuesActivity);\n return true;\n\n }\n\n return super.onPreferenceTreeClick(preference);\n }", "@Override\r\n\tpublic boolean onPreferenceClick(Preference preference) {\n\t\tif(preference==facebooklog)\t\r\n\t\t{\r\n\t\t\tif(facebooklog.isChecked())\r\n\t\t\t{\r\n\t\t\t\t AlertDialog.Builder dg = new Builder(getActivity());\r\n \t\t\t\t dg.setMessage(\"Are you sure to log out FaceBook?\");\r\n \t\t\t\t dg.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\r\n \t\t\t\t\t @Override\r\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n \t\t\t\t\t\tfacebooklog.setChecked(false);\r\n \t\t\t\t\t\tmcallback.onReturnFromPreFragment(1);\r\n \t\t\t\t\t}\r\n \t\t\t\t })\r\n \t\t\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\r\n \t\t\t\t \t@Override\r\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n \t\t\t\t\t\t// TODO Auto-generated method stub\r\n \t\t\t\t\t}\r\n \t\t\t\t })\r\n \t\t\t\t .show();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{ mcallback.onReturnFromPreFragment(2);\r\n\t\t\t\tfacebooklog.setChecked(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean onPreferenceClick(Preference preference) {\n Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI);\n startActivityForResult(contactPickerIntent,\n CONTACT_PICKER_RESULT);\n return true;\n }", "@SuppressLint(\"InflateParams\")\n private void showGoToSettingsDialog() {\n View view = LayoutInflater.from(activity).inflate(R.layout.go_to_setting, null, false);\n TextView message = (TextView) view.findViewById(R.id.fingerprint_required);\n TextView description = (TextView) view.findViewById(R.id.go_to_setting_description);\n message.setText((String) call.argument(\"fingerprintRequired\"));\n description.setText((String) call.argument(\"goToSettingDescription\"));\n Context context = new ContextThemeWrapper(activity, R.style.AlertDialogCustom);\n OnClickListener goToSettingHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n activity.startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));\n }\n };\n OnClickListener cancelHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n }\n };\n new AlertDialog.Builder(context).setView(view)\n .setPositiveButton((String) call.argument(\"goToSetting\"), goToSettingHandler)\n .setNegativeButton((String) call.argument(CANCEL_BUTTON), cancelHandler).setCancelable(false).show();\n }", "@Override\n public void onDisplayPreferenceDialog(Preference preference) {\n final PreferenceDialogFragmentCompat f;\n if (preference instanceof ListPreference) {\n f = ListPreferenceDialogFragmentCompat.newInstance(preference.getKey());\n } else {\n throw new IllegalArgumentException(\"Unsupported DialogPreference type\");\n }\n showDialog(f);\n }", "@Override public void onClick(DialogInterface dialog, int which) {\n AppUtils.launchAppDetailsSettings();\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(R.string.settings_transfer_title);\n\n final EditText input = new EditText(getContext());\n input.setFilters(new InputFilter[]{ new InputFilter.LengthFilter(5)});\n\n input.setInputType(InputType.TYPE_CLASS_NUMBER);\n builder.setView(input);\n\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Future<Boolean> permitFuture = service.submit(new WebAPI.PermitTransferTask(input.getText().toString()));\n\n try {\n Boolean permit = permitFuture.get();\n\n if (permit != null && permit) {\n // Successfully transferred, delete data\n deleteAllData(getContext());\n }\n\n } catch (InterruptedException | ExecutionException e) {\n Log.e(getClass().getName(), e.getMessage(), e);\n }\n }\n });\n builder.setNegativeButton(\"Cancel\", null);\n builder.create().show();\n\n return true;\n }", "@Override\n\tpublic void onPreferenceClick(long simid) {\n\t\t\n\t\tBundle extras = new Bundle();\n\t\textras.putLong(GeminiUtils.EXTRA_SIMID, simid);\n\t\tstartFragment(this, SimInfoEditor.class.getCanonicalName(), -1, extras, R.string.gemini_sim_info_title);\n\t\tXlog.i(TAG, \"startFragment \"+ SimInfoEditor.class.getCanonicalName());\n\t}", "public void onClick(DialogInterface dialog, int which) {\n manualSuit = which;\n }", "public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } else if (preference == mButtonTTY) {\n handleTTYChange(preference, objValue);\n } else if (preference == mVoicemailProviders) {\n updateVMPreferenceWidgets((String)objValue);\n \n // If the user switches to a voice mail provider and we have a\n // number stored for it we will automatically change the phone's\n // voice mail number to the stored one.\n // Otherwise we will bring up provider's config UI.\n \n final String providerVMNumber = loadNumberForVoiceMailProvider(\n (String)objValue);\n \n if (providerVMNumber == null) {\n // Force the user into a configuration of the chosen provider\n simulatePreferenceClick(mVoicemailSettings);\n } else {\n saveVoiceMailNumber(providerVMNumber);\n }\n }\n // always let the preference setting proceed.\n return true;\n }", "public void onLaunchPreferenceActivitySelected(Context context);", "void openChooser(Property<String> pathProperty);", "@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\tSharedPreferences.Editor edit = mPreferences.edit();\n \t\t\t\t\tint i;\n \t\t\t\t\tfor (i = 0; i < mMainPage.getTopicBtns().size(); i++) {\n \t\t\t\t\t\tif (mMainPage.getTopicBtns().get(i).isSelected()) break;\n \t\t\t\t\t}\n \t\t\t\t\tedit.putInt(CONFIG_TOPICCHOICE, i);\n \t\t\t\t\tedit.commit();\n \t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n \t\t\t\t}", "@Override\n public void onClick(View view) {\n Intent goToPantry = new Intent(VegUser.this, ListPantry.class);\n startActivity(goToPantry); //needs to go to pantry so preference activity refreshes\n }", "@FXML\n void launcherButtonOnAction() {\n openParamDialog();\n }", "@Override\r\n\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\tswitch (which) {\r\n\t\t\tcase Dialog.BUTTON_POSITIVE:\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.setAction(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setData(Uri\r\n\t\t\t\t\t\t.parse(\"https://play.google.com/store/apps/details?id=com.evilcorp.dev.trafficstop\"));\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\tEditor ed2 = sdPref.edit();\r\n\t\t\t\ted2.putBoolean(\"never\", true);\r\n\t\t\t\ted2.commit();\r\n\t\t\t\tbreak;\r\n\t\t\tcase Dialog.BUTTON_NEGATIVE:\r\n\t\t\t\tEditor ed = sdPref.edit();\r\n\t\t\t\ted.putBoolean(\"later\", true);\r\n\t\t\t\ted.commit();\r\n\t\t\t\tbreak;\r\n\t\t\tcase Dialog.BUTTON_NEUTRAL:\r\n\t\t\t\tEditor ed1 = sdPref.edit();\r\n\t\t\t\ted1.putBoolean(\"never\", true);\r\n\t\t\t\ted1.commit();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "@Override\n @Deprecated\n public boolean onPreferenceTreeClick(\n AuroraPreferenceScreen preferenceScreen, AuroraPreference preference) {\n\n if (UPDATE_SETTINGS_KEY.equals(preference.getKey())) {\n Intent lInt = new Intent(this, UpdateSettingsPreferenceActivity.class);\n startActivity(lInt);\n } else if (WIFI_DOWNLOAD_KEY.equals(preference.getKey())) {\n\n } else if (NONE_DOWNLOAD_KEY.equals(preference.getKey())) {\n\n }\n\n return super.onPreferenceTreeClick(preferenceScreen, preference);\n }", "@Override\n public void onClick(View v) {\n SettingDialog.show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowSettingDialog();\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tString provider = sessionData.configedProviders[which];\n\t\t\t\t\t\tsessionData.setProvider(provider);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sessionData.currentProvider.getProviderRequiresInput() || (sessionData.returningProvider != null && provider.equals(sessionData.returningProvider.getName()))) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//TODO: myUserLandingController\n\t\t\t\t\t\t\t\n\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\tIntent intent = new Intent(context, JRWebViewActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"provider\", provider);\n\t\t\t\t\t\t\t((Activity) context).startActivityForResult(intent, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void handlePreferences() {\n displayPrefs ();\n }", "public void onClick(DialogInterface dialog, int id) {\n Intent prefScreen = new Intent(TempMeasure.this, Preferences.class);\n startActivityForResult(prefScreen, 0);\n }", "public void onClick(DialogInterface dialog, int id) {\n\t gotoPreferences(getString(R.string.PREFERENCE_server));\n\t }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n Intent shortcutIntent = new Intent(getActivity(), VendorActivity.class);\n shortcutIntent.putExtra(\"vendor_id\", vendorDetailsObject.vendorId);\n// SharedPreferences example = getActivity().getSharedPreferences(\"USER\", 0);\n// SharedPreferences.Editor editor = example.edit();\n// editor.putString(\"latitude\", Home.lat+\"\");\n// editor.putString(\"longitude\", Home.longi+\"\");\n// editor.apply();\n MainApplication.getInstance().data.userMain.latitude = MainApplication.getInstance().location.getLatitude() + \"\";\n MainApplication.getInstance().data.userMain.longitude = MainApplication.getInstance().location.getLongitude() + \"\";\n MainApplication.getInstance().data.userMain.saveUserDataLocally();\n\n shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n Intent addIntent = new Intent();\n\n ImageView image = VendorActivity.logoView;\n Bitmap bitmap = ((BitmapDrawable) image.getDrawable()).getBitmap();\n\n\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, vendorDetailsObject.name);\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON, bitmap);\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);\n addIntent.setAction(\"com.android.launcher.action.INSTALL_SHORTCUT\");\n getActivity().sendBroadcast(addIntent);\n Toast.makeText(getActivity(), \"Pinned To Home Screen\", Toast.LENGTH_SHORT).show();\n return true;\n }", "public void triggerPopup();", "public void onClick(DialogInterface dialog, int choice) {\n }", "public boolean onPreferenceClick(Preference preference) {\n\t\tif (!_expanded) {\n\t\t\tgetPreferenceScreen().addPreference(_advancedSettingsCategory);\n\t\t\t_expanded = true;\n\t\t\t_advancedSettingsPreference.expand(true);\n\t\t} else {\n\t\t\tgetPreferenceScreen().removePreference(_advancedSettingsCategory);\n\t\t\t_expanded = false;\n\t\t\t_advancedSettingsPreference.expand(false);\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n }", "public boolean onPreferenceClick(Preference preference) {\n ExportImport.importDb(getActivity());\n Toast.makeText(getActivity(), \"Restored from Downloads folder\", Toast.LENGTH_SHORT).show();\n return true;\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\t\t\t\t\teditor.putInt(\n\t\t\t\t\t\t\t\t\t\tMobileGuard.SHOW_LOCATION_WHICHSTYLE,\n\t\t\t\t\t\t\t\t\t\twhich);\n\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t }", "@Override\n\t\t\tpublic boolean onPreferenceClick(Preference preference) {\n\t\t\t\ttry {\n\t\t\t\t\tFile dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n\t\t\t\t\tdir.mkdirs();\n\n\t\t\t\t\tInputStream openInputStream = activity.getResources().openRawResource(htmlRawId);\n\t\t\t\t\tFile file = new File(dir, AppUtils.getApplicationId() + \"_url_samples.html\");\n\t\t\t\t\tFileUtils.copyStream(openInputStream, file);\n\t\t\t\t\topenInputStream.close();\n\n\t\t\t\t\tExternalAppsUtils.openOnBrowser(file);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new UnexpectedException(e);\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n prefs.edit().putBoolean(\"prefs_shown_star_tip\", true).apply();\n //Using apply (instead of commit), because we don't want to stall the UI-thread.\n //apply will make the change in memory, and then save it to persistent story\n //on a background thread.\n }", "@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n return false;\n }", "@SuppressLint(\"RestrictedApi\")\n private void onGameSettingClicked() {\n PopupMenu popup = new PopupMenu(this, this.mGameSetting);\n popup.getMenuInflater().inflate(R.menu.game_setting_menu, popup.getMenu());\n\n popup.setOnMenuItemClickListener(item -> {\n switch (item.getItemId()){\n case R.id.game_setting_sync:\n Toast.makeText(this, \"Game sync successfully \", Toast.LENGTH_SHORT).show();\n break;\n case R.id.game_setting_add_players:\n Intent intent = new Intent(this, Players.class);\n startActivity(intent);\n break;\n case R.id.game_signIn:\n Toast.makeText(this, \"Sign in successfully ! \", Toast.LENGTH_SHORT).show();\n break;\n }\n\n return true;\n });\n\n MenuPopupHelper menuHelper = new MenuPopupHelper(this, (MenuBuilder) popup.getMenu(), this.mGameSetting);\n menuHelper.setForceShowIcon(true);\n menuHelper.show();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int paramInt) {\n Intent intent = new Intent(Settings.ACTION_SETTINGS);\n context.startActivity(intent);\n }", "@Override\n public boolean onPreferenceTreeClick(Preference preference) {\n \n boolean result = true; \n LOG(\"onPreferenceTreeClick() chageState = \" + chageState);\n chageState = true;\n\n return result;\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}", "private void preferences() {\n\tstartActivity (new Intent(getApplicationContext(), PushPreferencesActivity.class));\n}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t_context.startActivity(new Intent(\n\t\t\t\t\t\t\t\tSettings.ACTION_WIRELESS_SETTINGS));\n\t\t\t\t\t}", "void setPreference(String user, String preferenceName, String value) throws OntimizeJEERuntimeException;", "@Override\n\t\t\tpublic void onClickedPopup(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent i = new Intent(SettingOptionActivity.this, SettingCriteriaActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\n }", "@Override\r\n\tpublic boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,\r\n\t\t\t\tPreference preference) {\n\t\tif(preference == categoryedit)\r\n\t\t{\r\n\t\t\tIntent i=new Intent();\r\n\t\t\ti.setClass(getActivity(),CategoryEdit.class);\r\n\t\t\tstartActivityForResult(i,1);\r\n\t\t\tgetActivity().overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);\r\n\t\t}\r\n\t\treturn super.onPreferenceTreeClick(preferenceScreen, preference);\r\n\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t}", "public void onClick(View v) {\n \t \tSharedPreferences prefs = PreferenceManager\n \t \t\t .getDefaultSharedPreferences(SectionListActivity.this);\n \t \t\t \n \t \t\t String username = prefs.getString(\"username\", \"Shadow\");\n \t \n \t \tAlertDialog.Builder dlgAlert = new AlertDialog.Builder(context);\n\n \t \t\tdlgAlert.setMessage(R.string.about_shadow);\n \t \t\tdlgAlert.setTitle(\"Hey there \"+username +\"!\");\n \t \t\tdlgAlert.setPositiveButton(\"Go to the ROM's thread\", new DialogInterface.OnClickListener() {\n \t \t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t \t\t\t\tIntent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"\"));\n \t \t\t\t\tstartActivity(browserIntent);\n \t \t\t\t}\n \t \t\t});\n \t \t\tdlgAlert.setCancelable(true);\n \t \t\tdlgAlert.create().show();\n \t }", "public void click() {\n\t\tif(toggles) {\n\t\t\tvalue = (value == 0) ? 1 : 0;\t// flip toggle value\n\t\t}\n\t\tupdateStore();\n\t\tif(delegate != null) delegate.uiButtonClicked(this);\t// deprecated\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t}", "public void showPreferences(View view) {\n Intent intent = new Intent(this, Preferences.class);\n startActivity(intent);\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\t\t}", "public boolean onPreferenceClick(Preference preference) {\n ExportImport.export(getActivity());\n Toast.makeText(getActivity(), \"Backup created in Downloads folder\", Toast.LENGTH_SHORT).show();\n return true;\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\t}", "public void clickOnAccountSettingLink() {\r\n\t\tprint(\"Click on Account Setting Link\");\r\n\t\tlocator = Locator.MyTrader.Account_Setting.value;\r\n\t\tclickOn(locator);\r\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t}", "@Test(priority = 11)\n\tpublic void clickVehiclePreferences() throws Exception {\n\t\t\n\t\tdriver = DashboardPage.vehiclePreferences(driver);\n\t\t\n\t\t//ExcelUtils.setCellData(\"PASS\", 11, 1);\n\t}", "@Override\r\n\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t}", "@Override\r\n\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t}", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t\t\t\t\t}", "public void clickYes ();", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\t \t }", "public void onClick(DialogInterface dialog, int which) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t}", "private void showPreference(){\r\n if(userPreferencesForm == null) {\r\n userPreferencesForm = new UserPreferencesForm(mdiForm,true);\r\n }\r\n userPreferencesForm.loadUserPreferences(mdiForm.getUserId());\r\n userPreferencesForm.setUserName(mdiForm.getUserName());\r\n userPreferencesForm.display();\r\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface paramDialogInterface, int paramInt) {\n\t\t\t\t\tIntent myIntent = new Intent( Settings.ACTION_SECURITY_SETTINGS );\r\n context.startActivity(myIntent);\r\n \r\n Constants.IS_FROM_GPSLOCATION=true;\r\n //checkForProviders(mLocationManager);\r\n //to check once more for providers\r\n //getGPSLocation(context);\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\r\n\t\t\t\t}" ]
[ "0.74704564", "0.7013847", "0.68250895", "0.6730628", "0.6663854", "0.66384995", "0.6508442", "0.62585044", "0.6256941", "0.6222588", "0.618622", "0.6131373", "0.61091465", "0.6106653", "0.60845196", "0.6077613", "0.60126495", "0.60025257", "0.5978553", "0.5977848", "0.5971406", "0.5943256", "0.59372485", "0.583502", "0.579263", "0.57743454", "0.57190007", "0.5715157", "0.569527", "0.56905437", "0.56815207", "0.5674196", "0.5666594", "0.56617016", "0.56514996", "0.56205034", "0.56192684", "0.56032896", "0.5588655", "0.55856895", "0.5558", "0.5525812", "0.5519926", "0.55051595", "0.5502928", "0.5493658", "0.5489764", "0.54864347", "0.5472722", "0.54386544", "0.54318225", "0.54185176", "0.54106975", "0.54090685", "0.5391982", "0.5390333", "0.53853285", "0.53739095", "0.536823", "0.5367453", "0.5367453", "0.536271", "0.53600377", "0.5357587", "0.5357587", "0.5357587", "0.53562427", "0.5345208", "0.53357327", "0.5333879", "0.5333877", "0.5330347", "0.5325995", "0.53232247", "0.5320217", "0.5320217", "0.53201485", "0.53185", "0.53179264", "0.5317813", "0.5317664", "0.5317664", "0.5313348", "0.5310234", "0.5310234", "0.5310234", "0.5310234", "0.5310234", "0.5310234", "0.5310234", "0.53083193", "0.53080815", "0.5306521", "0.530504", "0.53045845", "0.5303688", "0.5299919", "0.5295089", "0.5295089", "0.5295089" ]
0.79720795
0
Saves the new VM number associating it with the currently selected provider if the number is different than the one already stored for this provider. Later on this number will be used when the user switches a provider.
private void maybeSaveNumberForVoicemailProvider(String newVMNumber) { if (mVoicemailProviders == null) { return; } final String key = mVoicemailProviders.getValue(); final String curNumber = loadNumberForVoiceMailProvider(key); if (newVMNumber.equals(curNumber)) { return; } mPerProviderSavedVMNumbers.edit().putString(key, newVMNumber).commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveVoiceMailNumber(String newVMNumber) {\n if (newVMNumber == null) {\n newVMNumber = \"\";\n }\n \n //throw a warning if they are the same.\n if (newVMNumber.equals(mOldVmNumber)) {\n showVMDialog(MSG_VM_NOCHANGE);\n return;\n }\n \n maybeSaveNumberForVoicemailProvider(newVMNumber);\n // otherwise, set it.\n if (DBG) log(\"save voicemail #: \" + newVMNumber);\n mPhone.setVoiceMailNumber(\n mPhone.getVoiceMailAlphaTag().toString(),\n newVMNumber,\n Message.obtain(mSetOptionComplete, EVENT_VOICEMAIL_CHANGED));\n }", "private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }", "public void persist(final int num) {\n myPref.remove(myName + CLASSTYPE);\n\n myName = String.valueOf(num);\n\n myPref.put(myName + CLASSTYPE, getClass().getSimpleName());\n// System.out.println(\"saved: \" + myName + getClass().getSimpleName() + \" to: \" + myPref.absolutePath());\n\n extraPersist();\n }", "@Override\r\n\tpublic Provider saveProvider(Provider provider) {\n\t\treturn providerRepository.save(provider);\r\n\t}", "public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }", "@Override\n\tpublic double saveNumber()\n\t{\n\t\treturn num;\n\t}", "@Override\r\n\tpublic Provider editProvider(Provider provider) {\n\t\treturn providerRepository.save(provider);\r\n\t}", "private String loadNumberForVoiceMailProvider(String key) {\n return mPerProviderSavedVMNumbers.getString(key, null);\n }", "public static void saveSerialNo(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_SERIAL_NO, type);\n editor.apply();\n }", "public void registriereNummer (int nr) {\n this.nr = nr;\n }", "public static void saveMobileNo(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_MOBILE_NUMBER, type);\n editor.apply();\n }", "private void checkAndUpdateUserPrefNumber() {\n if (TextUtils.isEmpty(mUserMobilePhone) && !mUserMobilePhone.equals(mNumberEditText.getText().toString())) {\n mSharedPreferences\n .edit()\n .putString(PREF_USER_MOBILE_PHONE, mNumberEditText.getText().toString())\n .apply();\n }\n }", "@Override\n\tpublic Integer saveOrUpdate(HqProvinceOrder prov) {\n\t\treturn hpDao.save(prov).getId();\n\t}", "public void backup_StudentNumber(int number){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.STUDENT_NUMBER_FILE, Context.MODE_PRIVATE));\n outputStreamWriter.write(number+\",\");\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }", "@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }", "@Override\n\tpublic void useSavedNumber(double num)\n\t{\n\t\tString[] options = {\"Solubility - before\", \"Solubility - after\", \"Pressure - before\", \"Pressure - after\"};\n\t\tString result = (String)JOptionPane.showInputDialog(panel, \"Choose where to use the number.\", \"Choose number\", JOptionPane.PLAIN_MESSAGE, null, \n\t\t\t\toptions, options[0]);\n\t\tif(result == null) return;\n\t\tif(result.equals(options[0])) solubility.setBeforeValue(num);\n\t\telse if(result.equals(options[1])) solubility.setAfterValue(num);\n\t\telse if(result.equals(options[2])) pressure.setBeforeValue(num);\n\t\telse pressure.setAfterValue(num);\n\t}", "public static void saveVoterId(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_VOTER_ID, type);\n editor.apply();\n }", "public void setProviderId(String value) { _providerId = value; }", "public static void SetNewNumber () {\n number = (int)(Math.random() * 9.1);\r\n\r\n // PROMPT THE USER\r\n System.out.println(\"A new number has been chosen.\");\r\n System.out.println();\r\n\r\n // SAVED ME WHEN DEBUGGING\r\n // System.out.println(number);\r\n }", "public int getNewNumber() {\r\n int num;\r\n num=unusedLockers.get(0);\r\n unusedLockers.remove(0);\r\n return num;\r\n }", "public void setNumber(String newValue);", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "public void assignIDtoVM(){\n\t\tint count = 0;\n\t\tfor(VirtualMachine aux : vms)\n\t\t\taux.setId(id + Integer.toString(count++));\n\t}", "public static void addSaveCounter5(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter5 = prefs.getInt(saveCounter5, 0);\n SaveCounter5 = SaveCounter5 + SaveInc;\n prefs.edit().putInt(saveCounter5, SaveCounter5).commit();\n\n }", "@Override\n\tpublic boolean addofferNum(int proId) {\n\t\tboolean b = false;\n\t\tTProject pro = tprojectmapper.selectByPrimaryKey(proId);\n\t\tpro.setOfferNum((Integer.parseInt(pro.getOfferNum())+1)+\"\");\n\t\tif(tprojectmapper.updateByPrimaryKey(pro)==1){\n\t\t\tb = true;\n\t\t}\n\t\treturn b;\n\t}", "public static void saveAdminMobileNo(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_ADMIN_MOBILE_NUMBER, type);\n editor.apply();\n }", "public void save(View view){\n String name = editTextname.getText().toString();\n String host = editTexthost.getText().toString();\n if(name !=null && name.length()>0 && host != null && host.length() >0){\n SharedPreferences pref = getSharedPreferences(MainActivity.MY_PREFS_NAME,MODE_PRIVATE);\n int size = pref.getInt(\"size\", 0);\n SharedPreferences.Editor e = pref.edit();\n e.putString(\"name_\" + size, name);\n e.putString(\"hostPort_\" + size, host);\n e.putInt(\"size\", size + 1);\n e.commit();\n\n finish();\n }\n }", "public void save(){\n DatabaseReference dbRef = DatabaseHelper.getDb().getReference().child(DatabaseVars.VouchersTable.VOUCHER_TABLE).child(getVoucherID());\n\n dbRef.setValue(this);\n }", "public static void addSaveCounter4(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter4 = prefs.getInt(saveCounter4, 0);\n SaveCounter4 = SaveCounter4 + SaveInc;\n prefs.edit().putInt(saveCounter4, SaveCounter4).commit();\n\n }", "void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}", "@Transaction()\n public Number createNumber(final Context ctx, final String key, final int number) {\n ChaincodeStub stub = ctx.getStub();\n\n String numberState = stub.getStringState(key);\n if (!numberState.isEmpty()) {\n String errorMessage = String.format(\"Number %s already exists\", key);\n System.out.println(errorMessage);\n throw new ChaincodeException(errorMessage, Errors.NUM_ALREADY_EXISTS.toString());\n }\n\n Number num = new Number(number);\n numberState = genson.serialize(num);\n stub.putStringState(key, numberState);\n\n return num;\n }", "public static void addSaveCounter6(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter6 = prefs.getInt(saveCounter6, 0);\n SaveCounter6 = SaveCounter6 + SaveInc;\n prefs.edit().putInt(saveCounter6, SaveCounter6).commit();\n\n }", "public void _saveWithNumVerification(SQLiteDatabase db) throws IllegalArgumentException, IllegalAccessException, SQLException {\n\t\tEntityUser user = (EntityUser) Database.getObjectByToken(db, \"ENTITYUSER\", token, EntityUser.class);\n\t\tif (user != null && user.num_captacion > this.num_captacion)\n\t\t\tthis.num_captacion = user.num_captacion;\n\t\tif (user != null && user.num_incidencia > this.num_incidencia)\n\t\t\tthis.num_incidencia = user.num_incidencia;\n\t\tif (user != null && user.num_inventario > this.num_inventario)\n\t\t\tthis.num_inventario = user.num_inventario;\n\t\tif (user != null && user.num_mov_almacen > this.num_mov_almacen)\n\t\t\tthis.num_mov_almacen = user.num_mov_almacen;\n\t\t\n\t\t_save(db);\n\t\t\n\t\t\n\t}", "public static void SaveCounter5(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter5, SaveCounter5).commit();\n\n }", "public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }", "public void setCar_number( java.lang.String newValue ) {\n __setCache(\"car_number\", newValue);\n }", "public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }", "public void writeEncounterNumPreferences(long encounterNum){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=mSharedPreference.edit();\n editor.putLong(mContext.getString(R.string.encounter),encounterNum);\n editor.commit();\n}", "public void onClick(View v) {\n\n if ((mPinEditText.getText().toString().length() >= 3 &&\n mPinEditText.getText().toString().length() <= 10) &&\n mConfirmEditText.getText().toString().length() != 0 &&\n mOldPinEditText.getText().toString().length() != 0 &&\n mNameEditText.getText().toString().trim().length() != 0) {\n\n if (Integer.parseInt(mOldPinEditText.getText().toString()) == Integer.parseInt(sharedInfo.getString(\"personpin\", null))) {\n if (Integer.parseInt(mPinEditText.getText().toString()) == Integer.parseInt(mConfirmEditText.getText().toString())) {\n\n editor.putString(\"personname\", mNameEditText.getText().toString().trim());\n editor.putString(\"personpin\", mPinEditText.getText().toString());\n\n editor.apply();\n\n showToast(R.string.information_updated);\n finish();\n\n } else {\n showToast(R.string.mismatched_pin);\n }\n } else {\n showToast(R.string.old_pin_mismatched);\n }\n } else {\n showToast(R.string.invalid_information);\n }\n }", "private synchronized int getNewLSN() throws IOException {\n File file = new File(LSN_FILE_NAME);\n int lsn = 0;\n\n if (file.exists()) {\n FileReader freader = new FileReader(file);\n BufferedReader breader = new BufferedReader(freader);\n\n String stringlsn = breader.readLine();\n lsn = Integer.parseInt(stringlsn);\n\n breader.close();\n } else {\n file.createNewFile();\n }\n\n FileWriter writer = new FileWriter(LSN_FILE_NAME);\n writer.write(Integer.toString(lsn + 1));\n writer.close();\n\n return lsn;\n }", "public void setStorageplace( int newValue ) {\n __setCache(\"storageplace\", new Integer(newValue));\n }", "public boolean storePokemon(Pokemon pokemon, int boxNum) {\r\n\t\tif (pokemonBoxes.get(boxNum).isFull()) {\r\n\t\t\tSystem.out.println(\"Box \" + boxNum + \" is full!\");\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tpokemonBoxes.get(boxNum).getPokemons().add(pokemon);\r\n\t\t\tSystem.out.println(pokemon.getPokemonName().getName() + \" has been sent to box \" + boxNum);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public void setStorageplace(int newStorageplace) {\n\tstorageplace = newStorageplace;\n}", "public void setCurrentPlayerPokemon(int newID)\r\n {\r\n currentPlayerPokemon = newID;\r\n }", "private void saveInstrument() {\n String instrument = mInstrument.getText().toString().trim();\n String brand = mBrand.getText().toString().trim();\n String serial = mSerial.getText().toString().trim();\n int quantity = mQuantity.getValue();\n String priceString = mPrice.getText().toString().trim();\n if(TextUtils.isEmpty(instrument) && TextUtils.isEmpty(brand) && TextUtils.isEmpty(serial) &&\n TextUtils.isEmpty(priceString) && quantity == 0){\n return;\n }\n float price = 0;\n if(!TextUtils.isEmpty(priceString)){\n price = Float.parseFloat(priceString);\n }\n //Retrieve selected supplier from Spinner\n String suppName = mSpinner.getSelectedItem().toString();\n //A query request to get the id of the selected supplier\n String [] projection = {SupplierEntry._ID, SupplierEntry.COLUMN_NAME};\n String selection = SupplierEntry.COLUMN_NAME + \"=?\";\n String [] selectionArgs = {suppName};\n Cursor cursor = getContentResolver().query(SupplierEntry.CONTENT_SUPPLIER_URI, projection, selection, selectionArgs, null);\n int idSupplier = 0;\n try {\n int idColumnIndex = cursor.getColumnIndex(SupplierEntry._ID);\n //move the cursor to the 0th position, before you start extracting out column values from it\n if (cursor.moveToFirst()) {\n idSupplier = cursor.getInt(idColumnIndex);\n }\n }finally {\n cursor.close();\n }\n ContentValues values = new ContentValues();\n values.put(InstrumentEntry.COLUMN_NAME, instrument);\n values.put(InstrumentEntry.COLUMN_BRAND, brand);\n values.put(InstrumentEntry.COLUMN_SERIAL, serial);\n values.put(InstrumentEntry.COLUMN_PRICE, price);\n values.put(InstrumentEntry.COLUMN_NB, quantity);\n values.put(InstrumentEntry.COLUMN_SUPPLIER_ID, idSupplier);\n Uri uri = getContentResolver().insert(InstrumentEntry.CONTENT_INSTRUMENT_URI, values);\n if(uri != null){\n Toast.makeText(this, \"Instrument successfully inserted\", Toast.LENGTH_SHORT);\n }else\n Toast.makeText(this, \"Instrument insertion failed\", Toast.LENGTH_SHORT);\n }", "private void setNumber(final int pos, final String number) {\n\t\tif (pos < 0 || pos >= this.objects.size()) {\n\t\t\tPreferences.this.objects.add(number);\n\t\t} else {\n\t\t\tPreferences.this.objects.set(pos, number);\n\t\t}\n\t\tPreferences.this.adapter.notifyDataSetChanged();\n\t}", "@Test\n public void testInsuredPayerProviderNumber() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setProviderNumber,\n RdaFissPayer::getProviderNumber,\n RdaFissPayer.Fields.providerNumber,\n 13);\n }", "public void setProvProcessId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/prov_process_id\",v);\n\t\t_ProvProcessId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "@Override\n public void onPause() {\n SharedPreferences.Editor editor = savedValues.edit();\n editor.putInt(\"num1\", num1);\n editor.putInt(\"num2\", num2);\n editor.commit();\n\n super.onPause();\n }", "private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }", "public void updatePhoneNumber(String newPhoneNum)\r\n {\r\n phoneNum = newPhoneNum;\r\n }", "Provider updateProvider(Provider prov) throws RepoxException;", "Provider updateProvider(Provider prov) throws RepoxException;", "@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }", "private void saveMeetup() {\n if (!binding.infoField.getText().toString().isEmpty()) {\n PassNewInfo mHost = (PassNewInfo) this.getTargetFragment();\n mHost.passMeetupInformation(type.toLowerCase(), binding.infoField.getText().toString());\n }\n dismiss();\n }", "public static void addSaveCounter1(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter1 = prefs.getInt(saveCounter1, 0);\n SaveCounter1 = SaveCounter1 + SaveInc;\n prefs.edit().putInt(saveCounter1, SaveCounter1).commit();\n\n }", "public void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;", "public void SetImportedNumbet(String pNumber) {\r\n if (editTextCounter == txtAddFnFBl.getId()) {\r\n txtAddFnFBl.setText(pNumber);\r\n btnAddFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtAddSFnFBl.getId()) {\r\n txtAddSFnFBl.setText(pNumber);\r\n btnAddSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtDeleteFnfBl.getId()) {\r\n txtDeleteFnfBl.setText(pNumber);\r\n btnDeleteFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfOldBl.getId()) {\r\n txtChangeFnfOldBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfNewBl.getId()) {\r\n txtChangeFnfNewBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfOldBl.getId()) {\r\n txtChangeSFnfOldBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfNewBl.getId()) {\r\n txtChangeSFnfNewBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n }\r\n }", "int getVmNum();", "public static void SaveCounter4(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter4, SaveCounter4).commit();\n\n }", "public static void newAttempt() {\n\t\tString lastSaveName = (String)(lastSaveSelectorModel.getSelectedItem());\n\t\tint colonIndex = lastSaveName.indexOf(':');\n\t\tif (confirm(\"Create a new attempt of \" + lastSaveName.substring(colonIndex + 2) + \"?\", \"Confirm New Attempt\")) {\n\t\t\tint abbreviationIndex = lastSaveName.indexOf('-') + 1;\n\t\t\tString abbreviation = lettersAbbreviationAt(lastSaveName, abbreviationIndex);\n\t\t\t//insert it with the next number up\n\t\t\tint newSaveIndex = skipChildren(lastSaveSelector.getSelectedIndex() + 1, abbreviationIndex - 2);\n\t\t\tlastSaveSelectorModel.insertElementAt(\n\t\t\t\tlastSaveName.replace(\n\t\t\t\t\tlastSaveName.substring(abbreviationIndex + abbreviation.length(), colonIndex),\n\t\t\t\t\tString.valueOf(nextAvailableAbbreviationNum(abbreviation))),\n\t\t\t\tnewSaveIndex);\n\t\t\tlastSaveSelector.setSelectedIndex(newSaveIndex);\n\t\t\tmainWindow.pack();\n\t\t\tneedsSaving = true;\n\t\t}\n\t}", "private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }", "public static void addSaveCounter2(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter2 = prefs.getInt(saveCounter2, 0);\n SaveCounter2 = SaveCounter2 + SaveInc;\n prefs.edit().putInt(saveCounter2, SaveCounter2).commit();\n\n }", "public static void addSaveCounter3(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter3 = prefs.getInt(saveCounter3, 0);\n SaveCounter3 = SaveCounter3 + SaveInc;\n prefs.edit().putInt(saveCounter3, SaveCounter3).commit();\n\n }", "private void updateVoiceNumberField() {\n if (mSubMenuVoicemailSettings == null) {\n return;\n }\n \n mOldVmNumber = mPhone.getVoiceMailNumber();\n if (mOldVmNumber == null) {\n mOldVmNumber = \"\";\n }\n mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber);\n final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber :\n getString(R.string.voicemail_number_not_set);\n mSubMenuVoicemailSettings.setSummary(summary);\n }", "public void setProvider(String value) { _provider = value; }", "public void setMemshipNumber(int value) {\n this.memshipNumber = value;\n }", "public void save() {\n SharedPreferences settings = activity.getSharedPreferences(\"Preferences\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putLong(\"bestDistance\", values.bestDistance);\n\n // Commit the edits!\n editor.commit();\n\n }", "public void setRecord2(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record2\", value);\n editor.commit();\n }", "public void setNumber(int number)\n {\n Number = number;\n }", "public static void SaveCounter6(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter6, SaveCounter6).commit();\n\n }", "public void saveUpdatedVersion(int versionNo) {\n editor.putInt(UPDATED_VERSION, versionNo).apply();\n }", "public void setPersistSvcPortNum(String portNumStr) {\n persistSvcPort = Integer.parseInt(portNumStr);\n }", "public static void savePaguthiID(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.PAGUTHI_ID, type);\n editor.apply();\n }", "public static void saveIncInt(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveInc, SaveInc).commit();\n\n }", "void setCryptProviderTypeExt(long cryptProviderTypeExt);", "public void saveDriverId(String name) {\n editor.putString(KEY_DRIVERID, name);\n\n // Login Date\n //editor.putString(KEY_DATE, date);\n\n // commit changes\n editor.commit();\n }", "public void writeToSharedPreference(int value){\n SharedPreferences sharedPreferences = getActivity().getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(\"NUMBER OF ITEMS\",value);\n editor.commit();\n\n }", "public void current_num() {\n\t\tcourse_current_num=Integer.toString(list.size());\n\t\t}", "public void saveExisting() {\r\n Part modifiedPart = null;\r\n for (Part part : Inventory.getAllParts()) {\r\n if (Integer.parseInt(iDfield.getText()) == part.getId()) {\r\n modifiedPart = part;\r\n }\r\n }\r\n if (modifiedPart instanceof Outsourced && inHouseSelected) {\r\n replacePart(modifiedPart);\r\n\r\n } else if (modifiedPart instanceof InHouse && !inHouseSelected) {\r\n replacePart(modifiedPart);\r\n } else {\r\n modifiedPart.setName(nameField.getText());\r\n modifiedPart.setStock(Integer.parseInt(invField.getText()));\r\n modifiedPart.setPrice(Double.parseDouble(priceField.getText()));\r\n modifiedPart.setMax(Integer.parseInt(maxField.getText()));\r\n modifiedPart.setMin(Integer.parseInt(minField.getText()));\r\n if (inHouseSelected) {\r\n ((InHouse) modifiedPart).setMachineId(Integer.parseInt(machineOrCompanyField.getText()));\r\n } else {\r\n ((Outsourced) modifiedPart).setCompanyName(machineOrCompanyField.getText());\r\n }\r\n\r\n Inventory.updatePart(Inventory.getAllParts().indexOf(modifiedPart), modifiedPart);\r\n }\r\n\r\n }", "void setProvider(modelProvidersI IDProvider);", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "public void setTelephoneNumber(String newNumber)\r\n\t{\r\n\t\ttelephoneNumber = newNumber;\r\n\t}", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public void setCardNo(int cardNumber);", "public void customerSell(int number) {\n \tthis.refresh(-number);\n availableNumber += number;\n }", "private void savePhone() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String brandString = mBrandEditText.getText().toString().trim();\n String modelString = mModelEditText.getText().toString().trim();\n String storageSizeString = mStorageSizeEditText.getText().toString().trim();\n String quantityString = mQuantityEditText.getText().toString().trim();\n String priceString = mPriceEditText.getText().toString().trim();\n\n // Check if this is supposed to be a new pet\n // and check for user validation\n if (TextUtils.isEmpty(brandString) || TextUtils.isEmpty(modelString)\n || priceString.equalsIgnoreCase(\"\") || quantityString.equalsIgnoreCase(\"\")\n || storageSizeString.equalsIgnoreCase(\"\")) {\n // Since no fields were modified, we can return early without creating a new inventory.\n // No need to create ContentValues and no need to do any ContentProvider operations.\n Toast.makeText(getApplicationContext(),\"Please fill in all input values\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n int price = 0;\n if(!priceString.equalsIgnoreCase(\"\")) {\n price = Integer.valueOf(priceString);\n }\n int quantity = 0;\n if(!quantityString.equalsIgnoreCase(\"\")) {\n quantity = Integer.valueOf(priceString);\n }\n int storageSize = 0;\n if(!storageSizeString.equalsIgnoreCase(\"\")) {\n storageSize = Integer.valueOf(priceString);\n }\n\n if(mProductPhoto.getDrawable() == null) {\n Toast.makeText(this,\"You must upload an image.\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Bitmap imageBitMap = ((BitmapDrawable)mProductPhoto.getDrawable()).getBitmap();\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n imageBitMap.compress(Bitmap.CompressFormat.PNG, 100, bos);\n byte[] imageByteArray = bos.toByteArray();\n\n // Create a ContentValues object where column names are the keys,\n // and Phone attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(PhoneEntry.COLUMN_PHONE_BRAND, brandString);\n values.put(PhoneEntry.COLUMN_PHONE_MODEL, modelString);\n values.put(PhoneEntry.COLUMN_PHONE_PRICE, price);\n values.put(PhoneEntry.COLUMN_PHONE_QUANTITY, quantity);\n values.put(PhoneEntry.COLUMN_PHONE_MEMORY, storageSize);\n values.put(PhoneEntry.COLUMN_PHONE_COLOUR, mColour);\n values.put(PhoneEntry.COLUMN_PHONE_PICTURE,imageByteArray);\n\n // Determine if this is a new or existing pet by checking if mCurrentPhoneUri is null or not\n if (mCurrentPhoneUri == null) {\n // This is a NEW pet, so insert a new pet into the provider,\n // returning the content URI for the new pet.\n Uri newUri = getContentResolver().insert(PhoneEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_phone_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_phone_successful),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n // Otherwise this is an EXISTING pet, so update the pet with content URI: mCurrentPetUri\n // and pass in the new ContentValues. Pass in null for the selection and selection args\n // because mCurrentPetUri will already identify the correct row in the database that\n // we want to modify.\n int rowsAffected = getContentResolver().update(mCurrentPhoneUri, values, null, null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_phone_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_update_phone_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "public void updatedNumber(String key, Number val) {}", "@Id\n\t@Column(name = \"provider_id\")\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\tpublic java.lang.Integer getProviderId() {\n\t\treturn providerId;\n\t}", "public void SaveKOT(View v) {\r\n\r\n if ((ownerPos.equals(\"\") || ownerPos.equals(\"0\"))) {\r\n MsgBox.Show(getString(R.string.invalid_attempt), getString(R.string.empty_owner_pos_message));\r\n return;\r\n }\r\n\r\n iPrintKOTStatus = 1;\r\n int i = SaveKOT();\r\n Log.d(\"Billing Activity\", \"SaveKOT : Status = \"+i );\r\n if(i>0)\r\n {\r\n btnPayBill.setEnabled(true);\r\n btnPrintBill.setEnabled(true);\r\n }\r\n else\r\n {\r\n btnPayBill.setEnabled(false);\r\n btnPrintBill.setEnabled(false);\r\n }\r\n //PrintKOT();\r\n }", "private void saveInfoHelper(){\n\n if(!isAnyEmpty()) {\n boolean firstSave = (prefs.getString(\"email\", null) == null);\n //store first name\n editor.putString(\"fname\", fname.getText().toString());\n // store last name\n editor.putString(\"lname\", lname.getText().toString());\n // store email\n editor.putString(\"email\", email.getText().toString());\n // store password\n editor.putString(\"password\", password.getText().toString());\n // store currency\n editor.putInt(\"curr\", spinner_curr.getSelectedItemPosition());\n // store stock\n editor.putInt(\"stock\", spinner_stock.getSelectedItemPosition());\n // store date\n editor.putString(\"date\", new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(Calendar.getInstance().getTime()));\n\n editor.putString(\"token\", \"\");\n\n editor.commit();\n\n Toast.makeText(this, R.string.data_saved, Toast.LENGTH_SHORT).show();\n\n loadInfo(); //to show new data immediately without refreshing the page\n\n requestToken();\n\n if(firstSave){\n finish();\n }\n\n }else{\n Toast.makeText(this, R.string.data_empty, Toast.LENGTH_SHORT).show();\n }\n\n }", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "public void SaveMethod(String Num){\n Save1[c] = Num;\n String tmp = Save1[0];\n for(int n = 1;n<=c;n++){\n tmp = tmp + Save1[n];\n }\n TFCalcBox.setText(tmp);\n AfterEqual = 0;\n c = c + 1;\n }", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "public synchronized void setAmendmentNumber(final InternationalString newValue) {\n checkWritePermission();\n amendmentNumber = newValue;\n }", "public static void SaveCounter1(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n prefs.edit().putInt(saveCounter1, SaveCounter1).commit();\n\n }", "public void setOidnew(Integer oidnew) {\n this.oidnew = oidnew;\n }", "public void setInitKey_storageplace( int newValue ) {\n this.initKey_storageplace = (newValue);\n }", "public void saveInqNO(String name) {\n editor.putString(KEY_INQNO, name);\n\n // Login Date\n //editor.putString(KEY_DATE, date);\n\n // commit changes\n editor.commit();\n }", "@Override\n public void onAmountChange(View view, int amount) {\n item.num = amount;\n }" ]
[ "0.6300408", "0.55279887", "0.5378244", "0.5372128", "0.5350751", "0.5339868", "0.5265347", "0.5225953", "0.52020407", "0.5191017", "0.5094371", "0.50806284", "0.5049786", "0.50274765", "0.49878597", "0.49820295", "0.4980197", "0.49743098", "0.49447334", "0.49339902", "0.49304497", "0.4916275", "0.490343", "0.4900365", "0.48772815", "0.48698878", "0.4847905", "0.48004776", "0.47629043", "0.47455508", "0.47402993", "0.47089627", "0.47026616", "0.4687734", "0.46805656", "0.4672517", "0.4667255", "0.46649775", "0.4652755", "0.46453643", "0.4644636", "0.4634965", "0.46344694", "0.46318388", "0.46268126", "0.46256", "0.46237725", "0.46192965", "0.4618168", "0.46165216", "0.46052355", "0.46042496", "0.46042496", "0.46036375", "0.4597675", "0.45925438", "0.45805785", "0.45755595", "0.45743316", "0.45667621", "0.45637593", "0.4561042", "0.45609123", "0.45594013", "0.45578265", "0.455341", "0.45485666", "0.45405373", "0.453923", "0.45290038", "0.45201454", "0.45078596", "0.4502876", "0.44981414", "0.4489067", "0.4488799", "0.44858968", "0.44858676", "0.44823536", "0.44794723", "0.4478396", "0.44768006", "0.4475316", "0.44727087", "0.44720083", "0.44714558", "0.44701612", "0.445878", "0.4455858", "0.44517803", "0.44472578", "0.4444489", "0.44422725", "0.4436579", "0.44278404", "0.4416151", "0.44105077", "0.4407364", "0.4406356", "0.44050997" ]
0.808057
0
Returns a voice mail number previously stored for the currently selected voice mail provider. If none is stored returns null. If the user switches to a voice mail provider and we have a number stored for it we will automatically change the phone's voice mail number to the stored one. Otherwise we will bring up provider's config UI.
private String loadNumberForVoiceMailProvider(String key) { return mPerProviderSavedVMNumbers.getString(key, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String onGetDefaultNumber(EditPhoneNumberPreference preference) {\n if (preference == mSubMenuVoicemailSettings) {\n // update the voicemail number field, which takes care of the\n // mSubMenuVoicemailSettings itself, so we should return null.\n if (DBG) log(\"updating default for voicemail dialog\");\n updateVoiceNumberField();\n return null;\n }\n \n String vmDisplay = mPhone.getVoiceMailNumber();\n if (TextUtils.isEmpty(vmDisplay)) {\n // if there is no voicemail number, we just return null to\n // indicate no contribution.\n return null;\n }\n \n // Return the voicemail number prepended with \"VM: \"\n if (DBG) log(\"updating default for call forwarding dialogs\");\n return getString(R.string.voicemail_abbreviated) + \" \" + vmDisplay;\n }", "private void updateVoiceNumberField() {\n if (mSubMenuVoicemailSettings == null) {\n return;\n }\n \n mOldVmNumber = mPhone.getVoiceMailNumber();\n if (mOldVmNumber == null) {\n mOldVmNumber = \"\";\n }\n mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber);\n final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber :\n getString(R.string.voicemail_number_not_set);\n mSubMenuVoicemailSettings.setSummary(summary);\n }", "private void saveVoiceMailNumber(String newVMNumber) {\n if (newVMNumber == null) {\n newVMNumber = \"\";\n }\n \n //throw a warning if they are the same.\n if (newVMNumber.equals(mOldVmNumber)) {\n showVMDialog(MSG_VM_NOCHANGE);\n return;\n }\n \n maybeSaveNumberForVoicemailProvider(newVMNumber);\n // otherwise, set it.\n if (DBG) log(\"save voicemail #: \" + newVMNumber);\n mPhone.setVoiceMailNumber(\n mPhone.getVoiceMailAlphaTag().toString(),\n newVMNumber,\n Message.obtain(mSetOptionComplete, EVENT_VOICEMAIL_CHANGED));\n }", "public String getMailNo() {\n return mailNo;\n }", "public java.lang.String getContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "private void initVoiceMailProviders() {\n String providerToIgnore = null;\n if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL)) {\n providerToIgnore = getIntent().getStringExtra(IGNORE_PROVIDER_EXTRA);\n }\n \n mVMProvidersData.clear();\n \n // Stick the default element which is always there\n final String myCarrier = getString(R.string.voicemail_default);\n mVMProvidersData.put(\"\", new VoiceMailProvider(myCarrier, null));\n \n // Enumerate providers\n PackageManager pm = getPackageManager();\n Intent intent = new Intent();\n intent.setAction(ACTION_CONFIGURE_VOICEMAIL);\n List<ResolveInfo> resolveInfos = pm.queryIntentActivities(intent, 0);\n int len = resolveInfos.size() + 1; // +1 for the default choice we will insert.\n \n // Go through the list of discovered providers populating the data map\n // skip the provider we were instructed to ignore if there was one\n for (int i = 0; i < resolveInfos.size(); i++) {\n final ResolveInfo ri= resolveInfos.get(i);\n final ActivityInfo currentActivityInfo = ri.activityInfo;\n final String key = makeKeyForActivity(currentActivityInfo);\n if (key.equals(providerToIgnore)) {\n len--;\n continue;\n }\n final String nameForDisplay = ri.loadLabel(pm).toString();\n Intent providerIntent = new Intent();\n providerIntent.setAction(ACTION_CONFIGURE_VOICEMAIL);\n providerIntent.setClassName(currentActivityInfo.packageName,\n currentActivityInfo.name);\n mVMProvidersData.put(\n key,\n new VoiceMailProvider(nameForDisplay, providerIntent));\n \n }\n \n // Now we know which providers to display - create entries and values array for\n // the list preference\n String [] entries = new String [len];\n String [] values = new String [len];\n entries[0] = myCarrier;\n values[0] = \"\";\n int entryIdx = 1;\n for (int i = 0; i < resolveInfos.size(); i++) {\n final String key = makeKeyForActivity(resolveInfos.get(i).activityInfo);\n if (!mVMProvidersData.containsKey(key)) {\n continue;\n }\n entries[entryIdx] = mVMProvidersData.get(key).name;\n values[entryIdx] = key;\n entryIdx++;\n }\n \n mVoicemailProviders.setEntries(entries);\n mVoicemailProviders.setEntryValues(values);\n \n updateVMPreferenceWidgets(mVoicemailProviders.getValue());\n \n mPerProviderSavedVMNumbers =\n this.getApplicationContext().getSharedPreferences(\n VM_NUMBERS_SHARED_PREFERENCES_NAME, MODE_PRIVATE);\n }", "private String getMyPhoneNO() {\n String mPhoneNumber;\n TelephonyManager tMgr = (TelephonyManager) this.getActivity().getSystemService(Context\n .TELEPHONY_SERVICE);\n mPhoneNumber = tMgr.getLine1Number();\n if(mPhoneNumber == null)\n mPhoneNumber = \"+NoNotFound\";\n return mPhoneNumber;\n }", "@ApiModelProperty(value = \"User's Voice Mail. Effect: Written to the user's CfgAgentLogin.userProperties.TServer.gvm_mailbox \")\n public Integer getVoiceMail() {\n return voiceMail;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // there are cases where the contact picker may end up sending us more than one\n // request. We want to ignore the request if we're not in the correct state.\n if (requestCode == VOICEMAIL_PROVIDER_CFG_ID) {\n if (resultCode != RESULT_OK) {\n if (DBG) log(\"onActivityResult: vm provider cfg result not OK.\");\n return;\n }\n if (data == null) {\n if (DBG) log(\"onActivityResult: vm provider cfg result has no data\");\n return;\n }\n String vmNum = data.getStringExtra(VM_NUMBER_EXTRA);\n if (vmNum == null) {\n if (DBG) log(\"onActivityResult: vm provider cfg result has no vmnum\");\n return;\n }\n saveVoiceMailNumber(vmNum);\n return;\n }\n \n if (resultCode != RESULT_OK) {\n if (DBG) log(\"onActivityResult: contact picker result not OK.\");\n return;\n }\n \n Cursor cursor = getContentResolver().query(data.getData(),\n NUM_PROJECTION, null, null, null);\n if ((cursor == null) || (!cursor.moveToFirst())) {\n if (DBG) log(\"onActivityResult: bad contact data, no results found.\");\n return;\n }\n \n switch (requestCode) {\n case VOICEMAIL_PREF_ID:\n mSubMenuVoicemailSettings.onPickActivityResult(cursor.getString(0));\n break;\n default:\n // TODO: may need exception here.\n }\n }", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "int getTelecommutePreferenceValue();", "public String getPhone(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, PHONE);\n\t}", "public String getPhone(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, PHONE);\n\t}", "public int getMailbox ()\n {\n return mailbox;\n }", "@Override\n public String getphoneNumber() {\n return ((EditText)findViewById(R.id.phoneNumberUserPage)).getText().toString().trim();\n }", "public String getSenderPhoneNumber();", "public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}", "public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}", "public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}", "private void maybeSaveNumberForVoicemailProvider(String newVMNumber) {\n if (mVoicemailProviders == null) {\n return;\n }\n final String key = mVoicemailProviders.getValue();\n final String curNumber = loadNumberForVoiceMailProvider(key);\n if (newVMNumber.equals(curNumber)) {\n return;\n }\n mPerProviderSavedVMNumbers.edit().putString(key,\n newVMNumber).commit();\n }", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "public String getMyPhoneNumber() {\n return ((TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE))\n .getLine1Number();\n }", "public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }", "@Override\n public void setVoiceMailNumber(String alphaTag, String voiceNumber,\n Message onComplete) {\n }", "private String getPlayerMail() {\n EditText mail = (EditText) findViewById(R.id.mail_edittext_view);\n return mail.getText().toString();\n }", "private String getSavedEmail(){\n return new PrefManager(this).getEmail();\n }", "String getPlayerMail() {\r\n EditText editText = (EditText) findViewById(R.id.mail_edit_text_view);\r\n return editText.getText().toString();\r\n }", "public String getReportphone() {\n return reportphone;\n }", "public java.lang.String getInternalphone() {\n\treturn internalphone;\n}", "public String getPhone()\n\t{\n\t\treturn getPhone( getSession().getSessionContext() );\n\t}", "public String getPhone()\n\t{\n\t\treturn getPhone( getSession().getSessionContext() );\n\t}", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "public String getMailId() {\n\t\treturn mailId;\n\t}", "int getPreferredSmsSubscription();", "public org.erdc.cobie.cobielite.core.CobieTextSimpleType xgetContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.erdc.cobie.cobielite.core.CobieTextSimpleType target = null;\r\n target = (org.erdc.cobie.cobielite.core.CobieTextSimpleType)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n return target;\r\n }\r\n }", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Long getHome_phone();", "public int getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public com.google.protobuf.StringValue getPhoneNumber() {\n if (phoneNumberBuilder_ == null) {\n return phoneNumber_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : phoneNumber_;\n } else {\n return phoneNumberBuilder_.getMessage();\n }\n }", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getEmail() {\n\n String dataField = null;\n sharedPreference_login = new SharedPreference_Login(activity);\n if (sharedPreference_login.IsSaved()) {\n dataField = sharedPreference_login.email();\n }\n\n\n return dataField;\n }", "public String getPhoneNum()\r\n {\r\n return phoneNum;\r\n }", "public String getPrefContactId() {\n return getContact().getUid();\n }", "public String getmailID() {\n\t\treturn _mailID;\n\t}", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n phoneNumber_ = s;\n return s;\n }\n }", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n phoneNumber_ = s;\n return s;\n }\n }", "public java.lang.String getReceiverPhone() {\r\n return receiverPhone;\r\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getE164PhoneNumber() {\n return mCurrentPhoneNumber == null ? null : PhoneNumberUtils.getE164format(mCurrentPhoneNumber);\n }", "public String getSMemPhone() {\n return sMemPhone;\n }", "@java.lang.Override\n public com.google.protobuf.StringValue getPhoneNumber() {\n return phoneNumber_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : phoneNumber_;\n }", "java.lang.String getUserPhone();", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "public String getUserphone() {\n return userphone;\n }", "private String getPrimaryNumber(long _id) {\n String primaryNumber = null;\n try {\n Cursor cursor = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.TYPE},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID +\" = \"+ _id, // We need to add more selection for phone type\n null,\n null);\n if(cursor != null) {\n while(cursor.moveToNext()){\n switch(cursor.getInt(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE))){\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_OTHER :\n }\n if(primaryNumber != null)\n break;\n }\n }\n } catch (Exception e) {\n Log.i(\"test\", \"Exception \" + e.toString());\n } finally {\n if(cursor != null) {\n cursor.deactivate();\n cursor.close();\n }\n }\n return primaryNumber;\n }", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public java.lang.String getSMSNotifyPhone() {\n return SMSNotifyPhone;\n }", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public String getConsigneeMobile() {\n return consigneeMobile;\n }", "public synchronized String getTelephoneNumber()\r\n {\r\n return telephoneNumber;\r\n }", "public static String m570b(Context context) {\r\n if (context == null) {\r\n return null;\r\n }\r\n try {\r\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\r\n return telephonyManager != null ? telephonyManager.getSubscriberId() : null;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public String getMailbox() {\r\n\t\treturn mailbox;\r\n\t}", "public String getSpPhoneNumber() {\r\n return spPhoneNumber;\r\n }", "java.lang.String getPhonenumber();", "int getPhone();", "public String getReceiverPhone() {\n return receiverPhone;\n }", "public cb.Careerbuilder.Company.PhoneNumber getPhone(int index) {\n if (phoneBuilder_ == null) {\n return phone_.get(index);\n } else {\n return phoneBuilder_.getMessage(index);\n }\n }", "public java.lang.String getContactNo() {\r\n return contactNo;\r\n }", "java.lang.String getPhone();", "public void setMailNo(String mailNo) {\n this.mailNo = mailNo;\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public static void saveMobileNo(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_MOBILE_NUMBER, type);\n editor.apply();\n }", "public String getCurrentCellid() {\n String cellidString = null;\n if (this.mTelephonyManager != null) {\n CellLocation mCellLocation = this.mTelephonyManager.getCellLocation();\n if (mCellLocation != null) {\n int type;\n if (mCellLocation instanceof CdmaCellLocation) {\n type = 1;\n Log.e(MessageUtil.TAG, \"getCurrentCellid type type = PHONE_TYPE_CDMA\");\n } else if (mCellLocation instanceof GsmCellLocation) {\n type = 2;\n Log.e(MessageUtil.TAG, \"getCurrentCellid type type = PHONE_TYPE_GSM\");\n } else {\n type = 0;\n }\n int cellid;\n switch (type) {\n case 1:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is PHONE_TYPE_CDMA\");\n CdmaCellLocation cdmaCellLocation = (CdmaCellLocation) mCellLocation;\n if (cdmaCellLocation != null) {\n int systemid = cdmaCellLocation.getSystemId();\n int networkid = cdmaCellLocation.getNetworkId();\n cellid = cdmaCellLocation.getBaseStationId();\n if (systemid >= 0 && networkid >= 0 && cellid >= 0) {\n cellidString = Integer.toString(systemid) + Integer.toString(networkid) + Integer.toString(cellid);\n Log.e(MessageUtil.TAG, \"getCurrentCellid PHONE_TYPE_CDMA cellidString = \" + cellidString);\n break;\n }\n return null;\n }\n break;\n case 2:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is PHONE_TYPE_GSM\");\n GsmCellLocation gsmCellLocation = (GsmCellLocation) mCellLocation;\n if (gsmCellLocation != null) {\n String plmn = this.mTelephonyManager.getNetworkOperator();\n cellid = gsmCellLocation.getCid();\n if (plmn != null && cellid >= 0) {\n cellidString = plmn + Integer.toString(cellid);\n Log.e(MessageUtil.TAG, \"getCurrentCellid PHONE_TYPE_GSM cellidString = \" + cellidString);\n break;\n }\n return null;\n }\n break;\n default:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is error\");\n break;\n }\n }\n return null;\n }\n Log.e(MessageUtil.TAG, \"getCurrentCellid mTelephonyManager == null\");\n return cellidString;\n }", "public String getPhoneNumber(int n) {\r\n\t\tif(phone.size()>n && n>=0)\r\n\t\t\treturn phone.get(n);\r\n\t\telse\r\n\t\t\treturn null;\t\t\r\n\t}", "String getEmail(int type);", "public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}", "public String inputPhoneNumber() {\n String phoneNumber = editTextPhoneNumber.getText().toString();\n return phoneNumber;\n }", "public String getPhoneNumber() {\r\n return number;\r\n }", "public int getPhoneNuber() {\r\n return phoneNuber;\r\n }", "public PhoneNumber getNumber(Person key) {\n\t\tBookEntry entry = getEntry(key);\n\t\tif (entry != null) {\n\t\t\treturn entry.getNumber(); //Returns the phoneNumber from the entry\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getSenderHomePhone() {\r\n return senderHomePhone;\r\n }", "public String getPhoneNumber() throws NullPointerException {\n\n\t\tString phoneNumber = user.getPhoneNumber();\n\t\tif (phoneNumber == null || phoneNumber.isEmpty()) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\treturn Utils.formatPhoneNumber(phoneNumber);\n\t}", "public String getReceivePhone() {\n return receivePhone;\n }", "public String getPhoneNumber() {\n\t\treturn this.phoneNumber;\n\t}", "public String getPhoneNumber()\n\t{\n\t\treturn this._phoneNumber;\n\t}", "public String getNumber(String name){\r\n return theContacts.get(name).getNumber();\r\n }", "public String getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public String getPhoneNumberString() {\n return mPhoneNumberString;\n }", "public java.lang.String getPhone_number() {\n return phone_number;\n }", "java.lang.String getAccountNumber();", "public String getUserPhone() {\r\n return userPhone;\r\n }", "String getPhone(int type);", "public void getNumberOnBlacklist() {\n\t\t\n\t\tString[] projection = new String[] {\n\t\t\t\tContactsContract.Contacts.DISPLAY_NAME,\n\t\t\t\tContactsContract.Data.SEND_TO_VOICEMAIL,\n\t\t\t\tContactsContract.Data._ID\n\t\t};\n\t\tString where = ContactsContract.Contacts.SEND_TO_VOICEMAIL;\n\t\tString sortOrder = ContactsContract.Contacts.DISPLAY_NAME + \" ASC\";\n\t\tContentResolver cr = getContentResolver();\n\t\tCursor c = cr.query(ContactsContract.Contacts.CONTENT_URI, projection, where, null, sortOrder);\n\t\t\n\t\tnumberOnBlacklist = c.getCount();\n\t}", "private String getRandomContactPhoneNumber() {\n \t\treturn contactPhoneNumbers.get(randy.nextInt(contactPhoneNumbers.size()));\n \t}", "public synchronized String getMail()\r\n {\r\n return mail;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }" ]
[ "0.6959151", "0.6137913", "0.609555", "0.607137", "0.6002048", "0.58632207", "0.5845116", "0.58093375", "0.57443297", "0.56458795", "0.5620884", "0.55841404", "0.55841404", "0.5579339", "0.55652416", "0.5563517", "0.553125", "0.5529915", "0.55246454", "0.54857695", "0.54521924", "0.54521924", "0.54521924", "0.54270554", "0.5404049", "0.54007673", "0.5386465", "0.53404284", "0.53352636", "0.5322241", "0.52962655", "0.5290497", "0.5290497", "0.5279251", "0.52741385", "0.52634954", "0.5261859", "0.5259489", "0.5257705", "0.52563757", "0.5254024", "0.5252348", "0.5249475", "0.5248492", "0.5244482", "0.5231629", "0.5214527", "0.52042896", "0.5191175", "0.51908576", "0.51908576", "0.51908576", "0.51775956", "0.5177541", "0.51653016", "0.51562554", "0.5145021", "0.51388234", "0.5136899", "0.5126182", "0.51253647", "0.5124943", "0.51249266", "0.51052165", "0.51048636", "0.51021284", "0.50993305", "0.50977564", "0.5095018", "0.50916797", "0.50872886", "0.50865847", "0.5079694", "0.50736016", "0.5069115", "0.5066156", "0.5059862", "0.50590557", "0.5054964", "0.50516546", "0.5045748", "0.5040104", "0.50302166", "0.50258607", "0.5024996", "0.5023477", "0.5020904", "0.50194883", "0.5013647", "0.5005144", "0.5001613", "0.49900854", "0.49898598", "0.49896306", "0.49866986", "0.49825627", "0.49767846", "0.49752977", "0.4960928", "0.49577734" ]
0.69835335
0
finally block always executes in this block you should manage resources for example, close file or close http connection
public static int doSomething() { try { return 1; } catch (Exception e) { return 2; } finally { // never use return in finally block // method will always return 9 return 9; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeResourceInFinally() {\n FileInputStream inputStream = null;\n try {\n File file = new File(\"./tmp.txt\");\n inputStream = new FileInputStream(file);\n\n // use the inputStream to read a file\n\n } catch (FileNotFoundException e) {\n log.error(String.valueOf(e));\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n log.error(String.valueOf(e));\n }\n }\n }\n }", "@Override\n public void cleanup() throws Exception {\n outputStream.close();\n }", "@Override\n\tpublic void closeAndCleanupAllData() throws Exception {\n\t\tclose();\n\t}", "public static void closeResources() {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (inputStreamReader != null) {\n inputStreamReader.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (reader != null) {\n reader.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (outputStream != null) {\n outputStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (outputStreamWriter != null) {\n outputStreamWriter.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }", "protected void cleanup() {\n try {\n if (_in != null) {\n _in.close();\n _in = null;\n }\n if (_out != null) {\n _out.close();\n _out = null;\n }\n if (_socket != null) {\n _socket.close();\n _socket = null;\n }\n } catch (java.io.IOException e) {\n }\n }", "@Override\r\n\tpublic void doFinally() throws Exception\r\n\t{\n\t\t\r\n\t}", "private void cleanUp() {\n System.out.println(\"ConnectionHandler: ... cleaning up and exiting ...\");\n try {\n br.close();\n is.close();\n conn.close();\n log.close();\n } catch (IOException ioe) {\n System.err.println(\"ConnectionHandler:cleanup: \" + ioe.getMessage());\n }\n }", "@Override\n public void cleanup() {\n if (this.inputStream != null) {\n try {\n this.inputStream.close();\n }\n catch (IOException var1_1) {}\n }\n this.defaultFetcher.cleanup();\n }", "private void close()\n {\n try\n {\n if (outputStream != null)\n {\n outputStream.close();\n }\n } catch (Exception e)\n {\n\n }\n try\n {\n if (inputStream != null)\n {\n inputStream.close();\n }\n } catch (Exception e)\n {\n\n }\n try\n {\n if (socket != null)\n {\n socket.close();\n }\n } catch (Exception e)\n {\n\n }\n }", "protected void finalize() {\n\t\tclose();\n\t}", "void closeFiles() {\n try {\n inputFile.close();\n debugFile.close();\n reportFile.close();\n workFile.close();\n stnFile.close();\n } catch(Exception e) {}\n }", "void doFinally();", "protected void finalize() {\n close();\n }", "private void cleanup() {\n if (mPosterBytes != null) {\n try {\n mPosterBytes.close();\n } catch (IOException ignored) {\n // Ignored.\n } finally {\n mPosterBytes = null;\n }\n }\n }", "@Override\n\t\tpublic void close() throws Exception {\n\t\t}", "@Override\r\n\tprotected void doClose() throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void close() throws Exception {\n\t\t\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\t\n\t\t\tout.close();\n\t\t\tdos.close();\n\t\t\ts.close();\n\t\t\tToast.makeText(getApplicationContext(), \"final closed\", Toast.LENGTH_LONG).show();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tToast.makeText(getApplicationContext(), \"error\", Toast.LENGTH_LONG).show();\n\t\t}\n\t\tfinish();\n\t}", "@Override\r\n\tpublic void close() throws Exception {\n\r\n\t}", "public void finalize() {\r\n byteBuffer2 = null;\r\n byteBuffer4 = null;\r\n byteBuffer8 = null;\r\n progressBar = null;\r\n tagBuffer = null;\r\n\r\n if (raFile != null) {\r\n\r\n try {\r\n raFile.close();\r\n } catch (final IOException ioe) {\r\n // Do nothing\r\n }\r\n }\r\n\r\n raFile = null;\r\n }", "@Override\n public void close() throws Exception {\n }", "void close() throws Exception;", "void close() throws Exception;", "@Override\n public void close() throws Exception {\n }", "public void close() {\n\t\t\r\n\t}", "private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\n catch(Exception e) {\r\n \r\n };\r\n try \r\n {\r\n if(socket != null) socket.close();\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n }", "private static void close() {\n try {\n if (songResultSet != null) {\n songResultSet.close();\n }\n if (artistResultSet != null) {\n artistResultSet.close();\n }\n if (albumResultSet != null) {\n albumResultSet.close();\n }\n if (genreResultSet != null) {\n genreResultSet.close();\n }\n\n if (songStatement != null) {\n songStatement.close();\n }\n\n if (albumStatement != null) {\n albumStatement.close();\n }\n\n if (artistStatement != null) {\n artistStatement.close();\n }\n if (genreStatement != null) {\n genreStatement.close();\n }\n\n if (conn != null) {\n conn.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public synchronized void close() {}", "public void close() {}", "private void close() {\n/* */ try {\n/* 253 */ if (this.dataReader != null) {\n/* 254 */ this.dataReader.close();\n/* 255 */ this.dataReader = null;\n/* */ } \n/* 257 */ } catch (SQLException e) {\n/* 258 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ try {\n/* 261 */ if (this.pstmt != null) {\n/* 262 */ this.pstmt.close();\n/* 263 */ this.pstmt = null;\n/* */ } \n/* 265 */ } catch (SQLException e) {\n/* 266 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ }", "@Override\n void close() throws Exception;", "@SuppressWarnings(\"unused\")\n\t\t\tprivate void dispose() {\n\t\t\t\t\n\t\t\t}", "public void close() {\n\t\t}", "protected abstract void cleanup() throws IOException;", "void close() throws Exception;", "public void cleanup() {\r\n }", "@Override\r\n\tprotected void finalize() throws Throwable {\n\t\tclose();\r\n\t\tsuper.finalize();\r\n\t}", "public void cleanup(){\n try{\n if (this._connection != null){\n this._connection.close ();\n }//end if\n }catch (SQLException e){\n // ignored.\n }//end try\n }", "@Override\n\tpublic void finalize() throws TrippiException {\n close();\n }", "public void closeSourse()\r\n/* 44: */ {\r\n/* 45: */ try\r\n/* 46: */ {\r\n/* 47: 41 */ if (this.rs != null)\r\n/* 48: */ {\r\n/* 49: 42 */ this.rs.close();\r\n/* 50: 43 */ this.rs = null;\r\n/* 51: */ }\r\n/* 52: 45 */ if (this.ps != null)\r\n/* 53: */ {\r\n/* 54: 46 */ this.ps.close();\r\n/* 55: 47 */ this.ps = null;\r\n/* 56: */ }\r\n/* 57: 49 */ if (this.ct != null)\r\n/* 58: */ {\r\n/* 59: 50 */ this.ct.close();\r\n/* 60: 51 */ this.ct = null;\r\n/* 61: */ }\r\n/* 62: */ }\r\n/* 63: */ catch (SQLException e)\r\n/* 64: */ {\r\n/* 65: 55 */ e.printStackTrace();\r\n/* 66: */ }\r\n/* 67: */ }", "private void close(){\n try {\n socket.close();\n objOut.close();\n line.close();\n audioInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void cleanup() {\n \n }", "@Override\n public void cleanup() {\n \n }", "public void close()\n\t\t{\n\t\t}", "protected void cleanupOnClose() {\n\t}", "public void cleanup() {\n\t}", "public void destroyAllResource() {\r\n\t\ttry {\r\n\t\t\tif(outrs != null){\r\n\t\t\t\toutrs.close();\r\n\t\t\t\toutrs=null;\r\n\t\t\t}\r\n\t\t\tif(outstmt != null ){\r\n\t\t\t\toutstmt.close();\r\n\t\t\t\toutstmt=null;\r\n\t\t\t} \r\n\t\t\tif (dbConnection != null){\r\n\t\t\t\tdbConnection.close();\r\n\t\t\t\tdbConnection=null;\r\n\t\t\t} \r\n\t\t}catch (SQLException ex) {\r\n\t\t}\r\n\t}", "public void close() {\r\n\t}", "void cleanUp() throws IOException;", "@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}", "public void close() {\n finalize0();\n }", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void finalize() throws Throwable {\n close();\n }", "public void close() throws Exception{\r\n\tout.close();\r\n}", "public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }", "@Override\n public void releaseResources() {\n if (cluster != null) {\n cluster.close();\n }\n if (cpds != null) {\n cpds.close();\n }\n }", "@Override\n\t\tpublic void close() {\n\t\t\t\n\t\t}", "private void close() {\n try {\n if (reader != null) {\n this.reader.close();\n }\n if (writer != null) {\n this.writer.close();\n }\n }\n catch (IOException e) {\n log.error(e);\n log.debug(Constants.STREAM_IS_CLOSED);\n }\n }", "public void cleanup() {\n }", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "public void close() {\t\t\n\t}", "public void cleanup();", "public void close() {\n\t}", "public void close() {\n\n\t}", "public void close() {\n\n\t}" ]
[ "0.75181", "0.75170225", "0.74526745", "0.7433636", "0.7332739", "0.7262743", "0.7242504", "0.71888924", "0.7168373", "0.7157413", "0.7128367", "0.7068818", "0.7057202", "0.7047404", "0.7008907", "0.69987243", "0.6986849", "0.6979665", "0.6946594", "0.6941065", "0.6937923", "0.69352454", "0.69352454", "0.69339037", "0.69306684", "0.6923937", "0.6909775", "0.69065356", "0.68880415", "0.6879131", "0.6868023", "0.6858711", "0.6842737", "0.6838944", "0.683479", "0.6831225", "0.68274796", "0.68246925", "0.68242687", "0.6822827", "0.68206406", "0.6804221", "0.6804221", "0.6800556", "0.67952234", "0.6770783", "0.6764538", "0.6754217", "0.67503786", "0.674913", "0.6748332", "0.6739752", "0.6739752", "0.6739752", "0.6738875", "0.6737511", "0.67309326", "0.6729211", "0.67286474", "0.672652", "0.6724117", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67158586", "0.67127514", "0.6706558", "0.6704144", "0.6692652", "0.6692652" ]
0.0
-1
Create custom dialog object
@Override public void onClick(View arg0) { final Dialog dialog = new Dialog(SpinnerAcitivity.this); // Include dialog.xml file dialog.setContentView(R.layout.dialog); // Set dialog title //dialog.setTitle("Custom Dialog"); // set values for custom dialog components - text, image and button TextView text = (TextView) dialog.findViewById(R.id.textDialog); // text.setText("Thank you for yor response!"); ImageView image = (ImageView) dialog.findViewById(R.id.imageDialog); // image.setImageResource(R.drawable.icon); dialog.show(); Button declineButton = (Button) dialog.findViewById(R.id.declineButton); // if decline button is clicked, close the custom dialog declineButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // Close dialog dialog.dismiss(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Dialog createDialog(DialogDescriptor descriptor);", "protected abstract JDialog createDialog();", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "public StandardDialog() {\n super();\n init();\n }", "public Dialog() {\n\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public abstract void initDialog();", "private void initDialog() {\n }", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }", "private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n switch (id) {\n case CHOOSE_METHOD_DIALOG:\n return chooseActionContextMenu.createMenu(this.getString(R.string.choose_action_title));\n case ABOUT_DIALOG:\n dialog = createAboutDialog();\n break;\n default:\n dialog = null;\n break;\n }\n return dialog;\n }", "@Override\n\tprotected Dialog onCreateDialog(int id)\n\t{\n\t\tsuper.onCreateDialog(id);\n\t\treturn visitor.instantiateDialog(id);\n\t}", "public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }", "private Dialogs () {\r\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }", "public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "public CustomDialog(String title) {\n\t\tsuper();\n\t\tsetTitle(title);\n\t\tinit();\n\t}", "public interface DialogFactory {\n MessageDialog createMessageDialog();\n ListDialog createListDialog();\n SingleChoiceDialog createSingleChoiceDialog();\n MultiChoiceDialog createMultiChoiceDialog();\n}", "public DialogManager() {\n }", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public FiltroGirosDialog() {\n \n }", "public Dialog createAddPersonDialog(String title, String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getMyAcitivty());\n builder.setTitle(title);\n builder.setMessage(msg);\n\n // Use an EditText view to get user input.\n final EditText input = new EditText(getMyAcitivty());\n input.setText(\"\");\n builder.setView(input);\n\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n String value = input.getText().toString();\n Log.d(TAG, \"user input: \" + value);\n inputDialogResult = value;\n launchTrainingActivity();\n// AlertDialog dg =\n// SelectServerAlertDialog.createDialog(\n// getContext(),\n// \"Pick a Server\",\n// getAllIps(),\n// launchTrainingActivityAction,\n// cancelAction,\n// true);\n// dg.show();\n }\n });\n builder.setNegativeButton(\"Cancel\", SelectServerAlertDialog.cancelAction);\n return builder.create();\n }", "public CustomDialog(Dialog owner, String title) {\n\t\tsuper(owner, title);\n\t\tinit();\n\t}", "public Dialog(String text) {\n initComponents( text);\n }", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public interface ICustomDialog<T> extends IDialog<T>{\r\n /**\r\n * 设置dialog背景色\r\n * @param color\r\n * @return\r\n */\r\n T setBackgroundColor(int color);\r\n\r\n /**\r\n * 设置dialog背景图片\r\n * @param resid\r\n * @return\r\n */\r\n T setBackgroundResource(int resid);\r\n\r\n /**\r\n * 设置标题栏高度\r\n * @param height\r\n * @return\r\n */\r\n T setTitleHeight(int height);\r\n\r\n /**\r\n * 设置底部按钮高度\r\n * @param height\r\n * @return\r\n */\r\n T setBottomHeight(int height);\r\n\r\n /**\r\n * 设置副标题文字\r\n * @param summaryTitle\r\n * @return\r\n */\r\n T setSummaryTitle(String summaryTitle);\r\n\r\n /**\r\n * 设置副标题文字\r\n * @param titleId\r\n * @return\r\n */\r\n T setSummaryTitle(int titleId);\r\n\r\n /**\r\n * 设置标题文字颜色\r\n * @param color\r\n * @return\r\n */\r\n T setTitleColor(int color);\r\n\r\n /**\r\n * 设置标题文字大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setTitleSize(float textSize);\r\n\r\n /**\r\n * 设置内容文字颜色\r\n * @param color\r\n * @return\r\n */\r\n T setMessageColor(int color);\r\n\r\n /**\r\n * 设置内容文字大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setMessageSize(float textSize);\r\n\r\n /**\r\n * 设置内容文字Gravity\r\n * @param gravity\r\n * @return\r\n */\r\n T setMessageGravity(int gravity);\r\n\r\n /**\r\n * 设置PositiveButton\r\n * @param text\r\n * @param l\r\n * @return\r\n */\r\n T setPositiveButton(String text, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置PositiveButton, 附加按钮背景\r\n * @param text\r\n * @param bgResId\r\n * @param l\r\n * @return\r\n */\r\n T setPositiveButton(String text, int bgResId, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置PositiveButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setPositiveButtonTextColor(int color);\r\n\r\n /**\r\n * 设置PositiveButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setPositiveButtonTextColor(ColorStateList color);\r\n\r\n /**\r\n * 设置PositiveButton文本大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setPositiveButtonTextSize(float textSize);\r\n\r\n /**\r\n * 设置NegativeButton\r\n * @param text\r\n * @param l\r\n * @return\r\n */\r\n T setNegativeButton(String text, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置NegativeButton,附加按钮背景\r\n * @param text\r\n * @param bgResId\r\n * @param l\r\n * @return\r\n */\r\n T setNegativeButton(String text, int bgResId, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置NegativeButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setNegativeButtonTextColor(int color);\r\n\r\n /**\r\n * 设置NegativeButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setNegativeButtonTextColor(ColorStateList color);\r\n\r\n /**\r\n * 设置NegativeButton文本大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setNegativeButtonTextSize(float textSize);\r\n\r\n /**\r\n * 设置contentView ,且默认的LayoutParams是\r\n * LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)\r\n *\r\n * @param contentView\r\n * @return\r\n */\r\n T setCustomContent(View contentView);\r\n\r\n /**\r\n * 设置contentView\r\n *\r\n * @param contentView\r\n * @return\r\n */\r\n T setCustomContent(View contentView, ViewGroup.LayoutParams layoutParams);\r\n\r\n /**\r\n * 按指定的大小展示dialog\r\n * @param width\r\n * @param height\r\n */\r\n T show(int width, int height);\r\n\r\n /**\r\n * contentview 点击事件的处理\r\n * @param view\r\n */\r\n void contentClick(View view);\r\n}", "public void addRelationshipDialog() { new RelationshipDialog(); }", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "private void openCreateAccountDialog()\n {\n testDialog();\n\n }", "public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n\t return mDialog;\r\n\t }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "private JDialog getPomocDialog() {\n\t\tif (pomocDialog == null) {\n\t\t\tpomocDialog = new JDialog(getHlavneOkno());\n\t\t\tpomocDialog.setSize(new Dimension(460, 180));\n\t\t\tpomocDialog.setMinimumSize(new Dimension(400, 150));\n\t\t\tpomocDialog.setPreferredSize(new Dimension(480, 220));\n\t\t\tpomocDialog.setLocation(new Point(200, 100));\n\t\t\tpomocDialog.setContentPane(getJContentPane());\n\t\t}\n\t\treturn pomocDialog;\n\t}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "@Override\n\t\tpublic final Dialog onCreateDialog(final Bundle savedInstanceState) {\n\t\t\tint title = getArguments().getInt(\"title\");\n\n\t\t\treturn new AlertDialog.Builder(getActivity())\n\t\t\t\t\t.setIcon(R.drawable.alert_dialog_icon)\n\t\t\t\t\t.setTitle(title)\n\t\t\t\t\t.setPositiveButton(R.string.alert_dialog_ok,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\tfinal DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tfinal int whichButton) {\n\t\t\t\t\t\t\t\t\t((AddingActivity) getActivity())\n\t\t\t\t\t\t\t\t\t\t\t.doPositiveClick();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t.setNegativeButton(R.string.alert_dialog_cancel,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\tfinal DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tfinal int whichButton) {\n\t\t\t\t\t\t\t\t\t((AddingActivity) getActivity())\n\t\t\t\t\t\t\t\t\t\t\t.doNegativeClick();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}).create();\n\t\t}", "public PaySuccessDialog create() {\r\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n View layout = inflater.inflate(R.layout.paysucdialog, null);\r\n final PaySuccessDialog dialog = new PaySuccessDialog(context,R.style.Dialog);\r\n ImageView img_success = (ImageView)layout.findViewById(R.id.img_success);\r\n img_success.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t});\r\n \r\n dialog.setContentView(layout);\r\n return dialog;\r\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n String title;\n String message;\n String value;\n \n Units units = new Units(Settings.KEY_UNITS);\n \t\n \tswitch (id) {\n \tcase DIALOG_CONFIRM_ODOMETER_LOW_ID:\n \t\ttitle = getString(R.string.title_confirm_odometer);\n \t\tmessage = getString(R.string.message_confirm_odometer);\n \t\tvalue = Integer.toString(current_odometer);\n \t\tmessage = String.format(message,value);\n \tdialog = ConfirmationDialog.create(this,this,id,title,message);\n \tbreak;\n \t\n \tcase DIALOG_CONFIRM_GALLONS_HIGH_ID:\n \t\ttitle = getString(R.string.title_confirm_gallons);\n \t\ttitle = String.format(title,units.getLiquidVolumeLabel());\n \t\tmessage = getString(R.string.message_confirm_gallons);\n \t\tvalue = String.format(App.getLocale(),\"%.1f %s\", \n \t\t\t\ttank_size, units.getLiquidVolumeLabelLowerCase());\n \t\tmessage = String.format(message,value);\n \tdialog = ConfirmationDialog.create(this,this,id,title,message);\n \tbreak;\n \t\n \t}\n \treturn dialog;\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "protected Dialog onCreateDialog(int id) {\n if (id == 1) {\n AlertDialog.Builder adb = new AlertDialog.Builder(this);\n // заголовок\n adb.setTitle(\"PIN Removed\");\n // сообщение\n adb.setMessage(\"There will be no PIN entry screen when Application starts up.\");\n // иконка\n adb.setIcon(android.R.drawable.ic_dialog_info);\n adb.setNeutralButton(\"Ok\", myClickListener);\n // создаем диалог\n return adb.create();\n }\n return super.onCreateDialog(id);\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private Dialog recreateDialog() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(OptionActivity.this);\n builder.setMessage(\"Do you want to change your profile?\")\n .setPositiveButton(\"Yah!\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(OptionActivity.this, amountscreen.class);\n startActivity(intent);\n }\n })\n .setNegativeButton(\"Nope\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_sale_item_dialog);\n\n return dialog;\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "public CustomDialog(Activity context, String mensaje, String parteVerde){\n dialog = new Dialog(context);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_sucees);\n TextView tvMensError = dialog.findViewById(R.id.tvMensSucces);\n tvMensError.setText(Html.fromHtml(mensaje + \"<font color='#072146'>\" + parteVerde + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar);\n tvAceptar.setOnClickListener(v -> {\n dialog.dismiss();\n });\n }", "@Override\r\n\t protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.message);\r\n\t messageText=(EditText)screenDialog.findViewById(R.id.messagetext1);\r\n\t send=(Button)screenDialog.findViewById(R.id.button1);\r\n\t send.setOnClickListener(sendmessage);\r\n\t cancel=(Button)screenDialog.findViewById(R.id.button2);\r\n\t cancel.setOnClickListener(cancelmessage);\r\n\t }\r\n\t return screenDialog;\r\n\t }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n \r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n builder.setTitle(\"New Wallet\");\r\n \r\n\t final View view = inflater.inflate(R.layout.new_wallet_dialog, null);\r\n\t \r\n\t final EditText name = (EditText) view.findViewById(R.id.newWallet_text);\r\n\t \r\n builder.setPositiveButton(R.string.confirmRecord, new DialogInterface.OnClickListener() {\r\n \r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.comfirmPressed(name.getText().toString());\t\r\n \t\t}\r\n });\r\n builder.setNegativeButton(R.string.cancelRecord, new DialogInterface.OnClickListener() {\r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.cancelPressed();\r\n \t\t}\r\n \t});\r\n // Create the AlertDialog object and return it\r\n return builder.create();\r\n }", "protected Dialog onCreateDialog(int id) {\r\n switch(id) {\r\n case PROGRESS_DIALOG:\r\n progressDialog = new ProgressDialog(Suggestions.this);\r\n progressDialog.setMessage(\"Loading. Please wait.\");\r\n progressThread = new ProgressThread(handler);\r\n progressThread.start();\r\n return progressDialog;\r\n default:\r\n return null;\r\n }\r\n }", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Done entering class?\")\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent tmp = new Intent(getContext(), course_info.class);\n startActivity(tmp);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public ReorganizeDialog() { }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n this.setCancelable(true);\n\n //NB! Må settes av kaller:\n Bundle bundle = this.getArguments();\n this.dialogTitle = bundle.getString(\"dialogTitle\");\n this.dialogText = bundle.getString(\"dialogText\");\n this.yesButtonText = bundle.getString(\"yesButtonText\");\n this.noButtonText = bundle.getString(\"noButtonText\");\n this.callback_id = bundle.getInt(\"callback_id\");\n int icon_drawable = bundle.getInt(\"icon_drawable\");\n\n //Bruker en styla dialog (se styles.xml):\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this.getActivity(), R.style.AlertDialogCustom));\n builder.setTitle(this.dialogTitle);\n builder.setIcon(icon_drawable);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.fragment_yesno_dialog, null);\n\n TextView tvDialogText = (TextView) view.findViewById(R.id.tvDialogText);\n tvDialogText.setText(dialogText);\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n builder.setView(view)\n // Add action buttons\n .setPositiveButton(yesButtonText, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //Lagre at tipset er sett...\n mListener.onDialogPositiveClick(YesNoDialog.this, callback_id);\n }\n })\n .setNegativeButton(noButtonText, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogNegativeClick(YesNoDialog.this, callback_id);\n }\n });\n\n //Opprett og vis dialogen:\n Dialog dialog = builder.create();\n return dialog;\n }", "public void AboutDialog() {\r\n final Dialog dialog = new Dialog(this); // Context, this, etc.\r\n dialog.setContentView(R.layout.about_dialog);\r\n dialog.setTitle(R.string.dialog_title);\r\n\r\n Button dialogButton = (Button) dialog.findViewById(R.id.dialog_cancel);\r\n // if button is clicked, close the custom dialog\r\n dialogButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n }\r\n });\r\n\r\n\r\n dialog.show();\r\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n //setting the message and the title of dialog\n builder.setTitle(R.string.dialog_title)\n .setMessage(R.string.dialog_message)\n .setPositiveButton(android.R.string.yes, (dialog, which) -> {\n getActivity().finish();\n })\n .setOnCancelListener(dialog -> getActivity().finish());\n\n //creating and returning the dialog\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Do you want to play a game with \"+getArguments().getString(\"name\")+\"?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n acceptGame(getContext());\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n declineGame(getContext());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public CustomDialog(Frame owner, String title) {\n\t\tsuper(owner, title);\n\t\tinit();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_student_feedback_dialog);\n\n return dialog;\n }", "void generar_dialog_preguntas();", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"REGISTRO PODA\");\n builder.setMessage(\"USUARIO O CONTRASEÑA INCORRECTA\");\n final AlertDialog.Builder ok = builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // You don't have to do anything here if you just want it dismissed when clicked\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "protected Dialog onCreateDialog(int id) {\n\t\n\t// Arg value corresponds to showDialog(0)\n\t\tif (id != 0)\n\t\t\treturn null;\n\t\tmyProgressDialog = new ProgressDialog(this); \n\t\tmyProgressDialog.setMessage(\"Loading ...\"); \n\t\tmyProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); \n\t\tmyProgressDialog.setCancelable(false);\n\t\treturn myProgressDialog ;\n\t}", "public DialogUtil create() {\n \t//\n \t LayoutInflater inflater = LayoutInflater.from(CurrentActivityContext.getInstance().getCurrentContext());\n \n // instantiate the dialog with the custom Theme\n final DialogUtil dialog = new DialogUtil(context, R.style.Dialog);\n \n View layout = inflater.inflate(R.layout.dialog_layout, null);\n \n // set the content and title message\n ((TextView) layout.findViewById(R.id.dialog_title_txt)).setText(title);\n ((TextView) layout.findViewById(R.id.dialog_message_txt)).setText(message);\n \n //set the button text\n if(negativeButtonText != null) {\n \t((TextView) layout.findViewById(R.id.dialog_cancel_txt)).setText(negativeButtonText);\n \tif(negativeButtonClickListener == null){\n \tnegativeButtonClickListener = new OnClickListener() {\n \t\t\t\t\t\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\t\tdialog.dismiss();\n \t\t\t\t\t\tdialog = null;\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\tlayout.findViewById(R.id.dialog_cancel_txt).setOnClickListener(new View.OnClickListener(){\n\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}\n \t\n });\n }else{\n \t layout.findViewById(R.id.dialog_cancel_txt).setOnClickListener(new View.OnClickListener(){\n\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}\n \t\n });\n \t \n \t //\n \t if(dialog != null) dialog.dismiss();\n }\n }else{\n \tlayout.findViewById(R.id.dialog_cancel_txt).setVisibility(View.GONE);\n// \tlayout.findViewById(R.id.dialog_confirm_txt).setBackgroundResource(R.drawable.dialog_single_gray_btn_bg);\n }\n \n //\n if(positiveButtonText != null) ((TextView) layout.findViewById(R.id.dialog_confirm_txt)).setText(positiveButtonText);\n \n \n //cancel button\n \n \n //confirm button\n layout.findViewById(R.id.dialog_confirm_txt).setOnClickListener(new View.OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tpositiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n\t\t\t\t\t\n\t\t\t\t\tif(dialog != null)\tdialog.dismiss();\n\t\t\t\t}\n \t\n });\n \n dialog.setContentView(layout);\n return dialog;\n }", "public MyDialog(){\n\t\t\n\t\tsuper();\n\t\t\n\t\tthis.getContentPane().setBackground(Color.GRAY);\n//\t\tthis.setLayout(new GridLayout(0,1));\n//\t\tthis.setLayout(new FlowLayout());\n//\t\tthis.setBackground(new Color(250, 240, 230));\n//\t\tcomp.setSize(icon.getIconWidth(),icon.getIconHeight());\n//\t\tcomp.setLocation(0, 0);\n//\t\tcomp.setOpaque(false);\n//\t\tthis.add(comp);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(device.getName())\n \t\t.setTitle(R.string.bt_exchange_dialog_title)\n .setPositiveButton(R.string.bt_exchange_dialog_positive_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n \t //Add BT Device Activity\n \t performBTKeyExchange(device);\n }\n })\n .setNegativeButton(R.string.bt_exchange_dialog_negative_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n \t dismiss();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n //set new View to the builder and create the Dialog\n Dialog dialog = builder.setView(new View(getActivity())).create();\n\n //get WindowManager.LayoutParams, copy attributes from Dialog to LayoutParams and override them with MATCH_PARENT\n WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();\n layoutParams.copyFrom(dialog.getWindow().getAttributes());\n layoutParams.width = WindowManager.LayoutParams.WRAP_CONTENT;\n layoutParams.height = WindowManager.LayoutParams.WRAP_CONTENT;\n //show the Dialog before setting new LayoutParams to the Dialog\n dialog.show();\n dialog.getWindow().setAttributes(layoutParams);\n\n return dialog;\n }", "private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n protected Dialog onCreateDialog(int id) {\n switch (id) {\n // create a new TimePickerDialog with values you want to show\n case TIME_DIALOG_ID:\n return new TimePickerDialog(this, mTimeSetListener, mHour, mMinute, false);\n }\n return null;\n }", "protected void createDialogSize ()\n {\n }", "public void openDialogCreateVisual(){\n DataHeader[] tabHeader = dataset.getListDataHeaderDouble(true);\n TypeVisualization[] tabVis = getListTypeVisualization(tabHeader.length);\n DataHeader[] tabHeaderLabel = dataset.getListDataHeaderDouble(false);\n CreateDataVisualDialog dialog = new CreateDataVisualDialog(this, tabVis, tabHeader, tabHeaderLabel);\n dialog.setVisible(true);\n }", "protected Dialog onCreateDialog (int id) {\n\t\tif (!this.hasWindowFocus())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tdismissDialog (DIALOG_CREATE);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tdismissDialog (DIALOG_SUBMIT);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tAlertDialog.Builder bld = new AlertDialog.Builder(this);\r\n\t\tswitch (id){\r\n\t\tcase DIALOG_CREATE: \r\n\t\t{bld.setMessage(\"More than one call needs to be reported. Your most recent call is first.\").setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\r\n\t\t{\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\tdialog.dismiss();\r\n\t\t}\r\n\t\t}).setTitle(\"New Record\");\r\n\t\tbreak;\r\n\t\t}\r\n\t\tcase DIALOG_SUBMIT:\r\n\t\t{\r\n\t\t\tbld.setMessage(\"Please submit your previous call record now.\").setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\r\n\t\t\t{\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}\r\n\t\t\t}).setTitle(\"Older Record\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t}\r\n\t\treturn bld.create();\r\n\t}", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n\r\n\t\t// Set up the layout inflater\r\n\t\tLayoutInflater inflater = getActivity().getLayoutInflater();\r\n\r\n\t\t// Set the title, message and layout of the dialog box\r\n\t\tbuilder.setView(inflater.inflate(R.layout.dialog_box_layout, null))\r\n\t\t\t\t.setTitle(R.string.dialog_title);\r\n\r\n\t\t// User accepts the thing in the dialog box\r\n\t\tbuilder.setPositiveButton(R.string.dialog_accpet,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(),\r\n\t\t\t\t\t\t\t\t\"Thank you for your kiss ^.^\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t// User cancels the thing in the dialog box\r\n\t\tbuilder.setNegativeButton(R.string.dialog_cancel,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(), \"Refuse my kiss??? >.<\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\treturn builder.create(); // return the AlertDialog object\r\n\t}", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case DATE_DIALOG_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener,\r\n pYear, pMonth, pDay);\r\n\t\tcase DATE_DIALOG1_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener1,\r\n pYear, pMonth, pDay);\r\n }\r\n return null;\r\n }", "private void showCustomDialog() {\n final Dialog dialog = new Dialog(getContext());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); //before\n // Include dialog.xml file\n dialog.setContentView(R.layout.success_dialog);\n TextView btn_home = dialog.findViewById(R.id.btn_home);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n btn_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n // Set dialog title\n\n dialog.show();\n }", "@Override\n\n public Dialog onCreateDialog (Bundle savedInstanceState){\n Bundle messages = getArguments();\n Context context = getActivity();\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n if(messages != null) {\n //Add the arguments. Supply a default in case the wrong key was used, or only one was set.\n builder.setTitle(messages.getString(TITLE_ID, \"Error\"));\n builder.setMessage(messages.getString(MESSAGE_ID, \"There was an error.\"));\n }\n else {\n //Supply default text if no arguments were set.\n builder.setTitle(\"Error\");\n builder.setMessage(\"There was an error.\");\n }\n\n AlertDialog dialog = builder.create();\n return dialog;\n }", "@SuppressLint(\"InflateParams\")\n @Override @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n builder.setTitle(R.string.settings_manual_input_dialog_title)\n .setView(inflater.inflate(R.layout.dialog_settings_manual_input, null))\n .setPositiveButton(R.string.settings_manual_input_dialog_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Send the positive button event back to the host activity\n\n String tokenName = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_name)).getText().toString();\n String token = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_value)).getText().toString();\n String issuerUrl = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_url)).getText().toString();\n mListener.onSettingsManualInputDialogOkClick(tokenName, token, issuerUrl);\n }\n })\n .setNegativeButton(R.string.settings_manual_input_dialog_cancel, null);\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n protected Dialog onCreateDialog(int id) {\n return MenuView.onCreateDialog(this, id);\n }", "Dialog createDialog(int id) {\n // First we treat the color picker\n if (id >= DIALOG_MASK_COLORS) {\n int icp = id - DIALOG_MASK_COLORS;\n String title = getResources().getStringArray(R.array.items_colors)[icp];\n ColoredPart cp = ColoredPart.values()[icp];\n\n // We can embed our nice color picker view into a regular dialog.\n // For that we use the provided factory method.\n return ColorPickerView.createDialog(this, title, cp.color, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n cp.color = which;\n bmView.invalidate();\n }\n });\n }\n\n // Now we treat all the cases which can easily be built as an AlertDialog.\n // For readability throughout the many cases we don't use chaining.\n AlertDialog.Builder b = new AlertDialog.Builder(this);\n\n switch (id) {\n case DIALOG_LEVEL:\n b.setTitle(R.string.menu_level);\n b.setSingleChoiceItems(R.array.items_level, bmView.level - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.newGame(which + 1);\n }\n });\n break;\n\n case DIALOG_SIZE:\n b.setTitle(R.string.menu_size);\n b.setSingleChoiceItems(R.array.items_size, bmView.size - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.initField(which + 1);\n bmView.newGame(0);\n }\n });\n break;\n\n case DIALOG_LIVES:\n b.setTitle(R.string.menu_lives);\n // We use an array adapter in order to be able to relate the selected\n // value to its list position. NOTE: For unclear reasons, passing this\n // adapter even with an additional text view layout id to the builder\n // does not give the same layout as passing the resource id directly.\n // So, we do use the resource id again for that purpose in the call\n // to setSingleChoiceItems.\n final ArrayAdapter<CharSequence> a =\n ArrayAdapter.createFromResource(this, R.array.items_lives, android.R.layout.select_dialog_singlechoice);\n int liv = bmView.getLives();\n int pos = (liv == 0) ? a.getCount() - 1 : a.getPosition(Integer.toString(liv));\n b.setSingleChoiceItems(R.array.items_lives, pos, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n // First check for infinity choice, then for all other possible choices\n if (which == a.getCount() - 1)\n bmView.setLives(0);\n else\n try {\n bmView.setLives(Integer.parseInt(String.valueOf(a.getItem(which))));\n } catch (Exception e) {\n // Do nothing\n Log.e(LOG_TAG, e.getLocalizedMessage(), e);\n }\n }\n });\n break;\n\n case DIALOG_COLORS:\n b.setTitle(R.string.menu_colors);\n b.setItems(R.array.items_colors, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n if (which == ColoredPart.values().length) {\n // Reset colors\n ColoredPart.resetAll();\n bmView.invalidate();\n } else {\n // Call color picker dialog\n doDialog(which + DIALOG_MASK_COLORS);\n }\n }\n });\n break;\n\n case DIALOG_BACKGROUND:\n b.setTitle(R.string.menu_background);\n b.setSingleChoiceItems(R.array.items_background, bmView.background, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.background = which;\n bmView.invalidate();\n }\n });\n break;\n\n case DIALOG_SOUND:\n b.setTitle(R.string.menu_sound);\n // Special treatment for eventually using only a subset of the menu items\n String[] menuIts = new String[NUM_ITEMS_SOUND];\n boolean[] menuSts = new boolean[NUM_ITEMS_SOUND];\n System.arraycopy(\n getResources().getStringArray(R.array.items_settings),\n 0, menuIts, 0, NUM_ITEMS_SOUND);\n System.arraycopy(\n new boolean[]{bmView.isHapticFeedbackEnabled(), bmView.isSoundEffectsEnabled(), musicPlayer.isMusicEnabled},\n 0, menuSts, 0, NUM_ITEMS_SOUND);\n b.setMultiChoiceItems(menuIts, menuSts, (dialog, which, isChecked) -> {\n switch (which) {\n case 0:\n bmView.setHapticFeedbackEnabled(isChecked);\n break;\n\n case 1:\n bmView.setSoundEffectsEnabled(isChecked);\n setVolumeControlStream();\n break;\n\n case 2:\n musicPlayer.toggle(isChecked);\n setVolumeControlStream();\n break;\n\n default:\n dialog.dismiss();\n }\n });\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_CENTER:\n b.setTitle(R.string.menu_center);\n b.setSingleChoiceItems(R.array.items_center, centerDialogs ? 0 : 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n centerDialogs = (which == 0);\n }\n });\n break;\n\n case DIALOG_MIDI:\n b.setTitle(R.string.title_midi);\n b.setMessage(R.string.text_midi);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_ABOUT:\n b.setTitle(R.string.menu_about);\n b.setMessage(R.string.text_about);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_HELP:\n default:\n b.setTitle(R.string.menu_help);\n b.setMessage(R.string.text_help);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n }\n\n return b.create();\n }", "@Nullable\n @Override\n protected Dialog onCreateDialog(int id, Bundle args) {\n if (id == 101) {\n return new DatePickerDialog(this,\n myDateListener1, year, month, day);\n }else{\n if (id == 102){\n return new DatePickerDialog(this,\n myDateListener2, year, month, day);\n }}\n return null;\n }", "public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"Stalemate!\";\n if(getArguments().getBoolean(\"check\"))\n {\n mess = \"Checkmate! \"+getArguments().getString(\"team\")+\" wins\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.d(TAG, \"Ok\");\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public CustomDialog(Activity context, String monto, String mensaje1, String mensaje2, String mensaje3, String mensaje4, String aprobacion, String typeMoney, Runnable aceptar){\n dialog = new Dialog(context, android.R.style.Theme_Black_NoTitleBar_Fullscreen);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_pago_realizado);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n AutoResizeTextView tvMonto = dialog.findViewById(R.id.importeEntero);\n\n tvMonto.setText(\"$ \"+monto+\" \"+ typeMoney);\n\n TextView tvAprobacion = dialog.findViewById(R.id.tvAprob);\n tvAprobacion.setText(\"No. de Aprobación: \"+aprobacion);\n\n TextView tvMensaje = dialog.findViewById(R.id.tvMensaje);\n\n //tvMensaje.setText(Html.fromHtml(mensaje1 + \"<br><font color='#0abaee'>\" + mensaje2 + \"</font><br>\" + mensaje3 + \"<font color='#0abaee'>\" + mensaje4 + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar2);\n tvAceptar.setOnClickListener(v -> {\n context.runOnUiThread(aceptar);\n dialog.dismiss();\n });\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }" ]
[ "0.82134604", "0.7788263", "0.7758855", "0.7721132", "0.732142", "0.73060775", "0.7247635", "0.71571946", "0.7095091", "0.7044119", "0.70069313", "0.69929796", "0.6951587", "0.6950426", "0.6914303", "0.6881337", "0.6860331", "0.68313944", "0.68199784", "0.6818976", "0.6813182", "0.67876285", "0.6769809", "0.6767906", "0.67565566", "0.67477715", "0.6724482", "0.6718315", "0.67039096", "0.6689382", "0.6685399", "0.6675709", "0.667384", "0.6671631", "0.6664204", "0.66496503", "0.6639566", "0.66217864", "0.6614518", "0.6592305", "0.65870196", "0.6571041", "0.6570159", "0.6565652", "0.65641993", "0.6561473", "0.655983", "0.655954", "0.655476", "0.6554316", "0.65535617", "0.6551523", "0.65429235", "0.65354896", "0.65335226", "0.65332603", "0.65077174", "0.65054256", "0.6476668", "0.647546", "0.6462043", "0.6445407", "0.64452845", "0.6443044", "0.64164144", "0.6413169", "0.6409032", "0.64069927", "0.6406177", "0.64055246", "0.64055246", "0.6391954", "0.6390292", "0.63902235", "0.6385741", "0.63841724", "0.6383529", "0.6381097", "0.63736534", "0.63648015", "0.6363695", "0.6353543", "0.63533074", "0.63533074", "0.63533074", "0.63533074", "0.63533074", "0.63533074", "0.6347921", "0.6346669", "0.6342704", "0.6334534", "0.63314813", "0.63193524", "0.63105714", "0.6302115", "0.63004667", "0.63001215", "0.62984145", "0.62973106", "0.629639" ]
0.0
-1
Performing action onItemSelected and onNothing selected
@Override public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id) { Toast.makeText(getApplicationContext(),country[position] , Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onItemSelected();", "void onItemSelected();", "public void onItemSelected(int id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(int position);", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "public void onItemSelected(Long id);", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "void onItemSelected(Bundle args);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n public void onItemSelected(View view, int position) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\treceive();\r\n\t\t\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent2, View view2, int position2, long id2) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent3, View view3, int position3, long id3) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent5, View view5, int position5, long id5) {\n }", "public void onItemSelected(AdapterView<?> parent, View v, \n\t int pos, long id) {\n\t }", "void onItemSelected(int index, T item) throws RemoteException;", "@Override\n public void onItemSelected(AdapterView<?> parent4, View view4, int position4, long id4) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mHoldTypeSelection) {\n setActionSpinner(false, position);\n }\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tint tag = (Integer) v.getTag();\n\t\t\t// false代表着进入到细节操作!\n\t\t\tmListener.onItemSelected(tag, false);\n\t\t}", "public void onItemSelected(String studentSelected);", "@Override\n public void onItemSelected(OurPlace place) {\n\n Log.i(LOG_TAG, \"YES!\");\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n actionType = String.valueOf(actionTypeSpiner\n .getSelectedItem());\n if (actionType == \"Upload\"\n || actionType.equals(\"Upload\")) {\n viewLay.setVisibility(View.GONE);\n action = true;\n fileNameTxt.setVisibility(View.GONE);\n doOpen();\n } else if (actionType == \"View\"\n || actionType.equals(\"View\")) {\n action = false;\n fileNameTxt.setVisibility(View.GONE);\n submitTxt.setEnabled(true);\n }\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tlaboutTypeSelected= arg0.getItemAtPosition(arg2).toString();\r\n\t\t\t\tif(arg2!=0){\r\n\t\t\t\tToast.makeText(act, \"Selected:\"+laboutTypeSelected, Toast.LENGTH_LONG).show();\r\n\t\t\t\t\r\n\t\t\t\tLabourDetailsTask detailsTask=new LabourDetailsTask();\r\n\t\t\t\tdetailsTask.execute(laboutTypeSelected);\r\n\t\t\t\t}\r\n\t\t\t}", "public void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tActivityGroupMedicine.group.parent.trackEvent(\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicine,\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicineChangeType);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDBNameAndID obj = (DBNameAndID) spMedicine.getSelectedItem();\n\t\t\t\ttvUnit.setText(\"\" + obj.getNameTwo());\n\t\t\t\t// we cant close this cursor obj becaus when we do we wont see\n\t\t\t\t// our text in our spinner anymore!\n\t\t\t}", "public void onItemSelected(String summary, String poster);", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\r\n\t\t// Action to be taken after selecting a spinner item\r\n\t\treturn false;\r\n\t}", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n userType = (int) arg3;\n /* 将mySpinner 显示*/\n arg0.setVisibility(View.VISIBLE);\n }", "@Override\n public void onClick(View v) {\n if (fragment instanceof ItemListFragment)\n ((ItemListFragment) fragment).onItemSelected(position, AppConstants.AMMUNATION_SELECTED);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if(appCompatActivity instanceof MainActivity){\n if (AppConstant.DEBUG) Log.d(new Object() { }.getClass().getEnclosingClass()+\">\",\"action is mainactivity\");\n ((MainActivity)appCompatActivity).loadReportsData();\n // ((MainActivity)appCompatActivity).removeMenuItem();\n }\n\n onItemSelectedAction(parent, position, appCompatActivity);\n if (appCompatActivity instanceof IListenToItemSelected) {\n ((IListenToItemSelected) appCompatActivity).itemSelectedListenCustom(parent);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n //beaconselected.setText(item);\n\n // Showing selected spinner item\n if(!item.equals(\"select a beacon\")){\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n x++;\n beaconManager.stopRanging(beaconRegion);\n t=0;\n //Toast.makeText(this, \"Search stopped\", Toast.LENGTH_SHORT).show();\n }\n\n\n\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id){\n\t\t\t\tLog.v(LOG_TAG, \"Maze generation algorithm selection: \" + spinner.getSelectedItem().toString());\n\t\t\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tindex1=arg2;\n\t\t\t\ttype0 = spn1.get(arg2).getType_id();\n\t\t\t\ttype_name = spn1.get(arg2).getType_name();\n\t\t\t\tHttpRequest(1, APIURL.CHECK.ADDARTICLE1, spn1.get(arg2)\n\t\t\t\t\t\t.getType_id(), \"\");\n\t\t\t\tspn3.clear();\n\t\t\t\tspinnerAdapter3.setList(spn3);\n\t\t\t\tspinnerAdapter3.notifyDataSetChanged();\n\t\t\t\tspn4.clear();\n\t\t\t\tspinnerAdapter4.setList(spn4);\n\t\t\t\tspinnerAdapter4.notifyDataSetChanged();\n\t\t\t\tspn5.clear();\n\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "public void onItemSelected(MovieModel movieModel);", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tfood.setText(null);\n\t\t\t\tautotext_fill();\n\t\t\t\t\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "protected void onSelect() {\n\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tif (arg2 != 0) {\n\t\t\t\t\tindex22=arg2;\n\t\t\t\t\ttype2 = spn3.get(arg2).getType_id();\n\t\t\t\t\ttype_name2 = spn3.get(arg2).getType_name();\n\t\t\t\t\tHttpRequest(2, APIURL.CHECK.ADDARTICLE2, \"\", spn3.get(arg2)\n\t\t\t\t\t\t\t.getType_id());\n\n\t\t\t\t\tspn5.clear();\n\t\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t\t} else {\n\t\t\t\t\ttype2 = \"\";\n\t\t\t\t\ttype_name2 = \"\";\n\t\t\t\t}\n\t\t\t}", "public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n if (position == 0){\n loaddata();\n }\n else if (position == 1){\n sortbyevent();\n }\n else if (position == 2){\n sortbyorganization();\n }\n else {\n String text = parent.getItemAtPosition(position).toString();\n Toast.makeText(parent.getContext(), text, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tif (arg2 != 0) {\n\t\t\t\t\tindex2=arg2;\n\t\t\t\t\ttype1 = spn2.get(arg2).getType_id();\n\t\t\t\t\ttype_name1 = spn2.get(arg2).getType_name();\n\t\t\t\t\tHttpRequest1(APIURL.CHECK.ADDARTICLE1, spn2.get(arg2)\n\t\t\t\t\t\t\t.getType_id());\n\t\t\t\t\tspn4.clear();\n\t\t\t\t\tspinnerAdapter4.setList(spn4);\n\t\t\t\t\tspinnerAdapter4.notifyDataSetChanged();\n\t\t\t\t\tspn5.clear();\n\t\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t\t} else {\n\t\t\t\t\ttype1 = \"\";\n\t\t\t\t\ttype_name1 = \"\";\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void onNothingSelected() {\n\n\t}", "@Override\n\tpublic void onNothingSelected() {\n\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tif (arg2 != 0) {\n\t\t\t\t\tindex3=arg2;\n\t\t\t\t\ttype3 = spn4.get(arg2).getType_id();\n\t\t\t\t\ttype_name3 = spn4.get(arg2).getType_name();\n\t\t\t\t\tHttpRequest2(APIURL.CHECK.ADDARTICLE3, spn4.get(arg2)\n\t\t\t\t\t\t\t.getType_id());\n\t\t\t\t} else {\n\t\t\t\t\ttype3 = \"\";\n\t\t\t\t\ttype_name3 = \"\";\n\t\t\t\t}\n\t\t\t}", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n if(parent.getId()==R.id.Branch_Spinner)\n mNotification.setBranch((String)parent.getItemAtPosition(pos));\n\n if(parent.getId()==R.id.Year_Spinner)\n mNotification.setYear((String)parent.getItemAtPosition(pos));\n\n if(parent.getId()==R.id.Section_Spinner)\n mNotification.setSection((String)parent.getItemAtPosition(pos));\n\n\n\n\n\n\n }", "public void onNothingSelected(AdapterView<?> parent) {\n // Toast.makeText(getApplicationContext(), \"nada en el spinner\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (isSetUp) {\n setSound.startButtonNoise(MemoryThemeActivity.this);\n }\n else {\n isSetUp = true;\n }\n changeImage(position);\n }", "public void onSelectionChanged();", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tif (arg2 == 0) {\n\t\t\t\t\tarticle_model.setVisibility(View.VISIBLE);\n\t\t\t\t\tmodels = \"\";\n\t\t\t\t} else {\n\t\t\t\t\tindex4=arg2;\n\t\t\t\t\tarticle_model.setVisibility(View.GONE);\n\t\t\t\t\tarticle_model.setText(\"\");\n\t\t\t\t\tmodels = spn5.get(arg2).getType_name();\n\t\t\t\t}\n\t\t\t}", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n if (arg2 != 0) {\n //Actual work\n DataHandler.getInstance().setID(arg2);\n if (!h7 && ((BluetoothDevice) pairedDevices.toArray()[DataHandler.getInstance().getID() - 1]).getName().contains(\"H7\") && DataHandler.getInstance().getReader() == null) {\n\n Log.i(\"Main Activity\", \"Starting h7\");\n DataHandler.getInstance().setH7(new H7ConnectThread((BluetoothDevice) pairedDevices.toArray()[DataHandler.getInstance().getID() - 1], this));\n h7 = true;\n } else if (!normal && DataHandler.getInstance().getH7() == null) {\n\n Log.i(\"Main Activity\", \"Starting normal\");\n DataHandler.getInstance().setReader(new ConnectThread((BluetoothDevice) pairedDevices.toArray()[arg2 - 1], this));\n DataHandler.getInstance().getReader().start();\n normal = true;\n }\n menuBool = true;\n\n }\n\n }", "@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t}", "public void onItemSelected(AdapterView<?> parent, View view, int position, long id)\r\n {\n State st = (State)mGender.getSelectedItem();\r\n\r\n // Show it via a toast\r\n toastState( \"onItemSelected\", st );\r\n }", "@Override\n public void onRecorridoActualItemSelected(Task task) {\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n if (syrupM1.getSelectedItemPosition() < 1 || syrupA2.getSelectedItemPosition() < 1 || syrupN4.getSelectedItemPosition() < 1) {\n syrupM1.setSelection(syrupE3.getSelectedItemPosition());\n syrupA2.setSelection(syrupE3.getSelectedItemPosition());\n syrupN4.setSelection(syrupE3.getSelectedItemPosition());\n }\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3)\r\n\t\t\t{\n\r\n\t\t\t\tswitch (arg2)\r\n\t\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tareaid = \"07\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tareaid = \"23\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> adapter, View view,\n int position, long id) {\n chefRegCountry = countryList.get(position);\n countryid = countryId.get(position);\n\n if(!countryid.equalsIgnoreCase(\"-1\"))\n doStateList(countryid);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n if (syrupA2.getSelectedItemPosition() < 1 || syrupE3.getSelectedItemPosition() < 1 || syrupN4.getSelectedItemPosition() < 1) {\n syrupA2.setSelection(syrupM1.getSelectedItemPosition());\n syrupE3.setSelection(syrupM1.getSelectedItemPosition());\n syrupN4.setSelection(syrupM1.getSelectedItemPosition());\n }\n\n }", "public void addListenerOnSpinnerItemSelection() {\n spinner1.setOnItemSelectedListener(new CustomOnItemSelectedListener());\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n if (syrupM1.getSelectedItemPosition() < 1 || syrupE3.getSelectedItemPosition() < 1 || syrupN4.getSelectedItemPosition() < 1) {\n syrupM1.setSelection(syrupA2.getSelectedItemPosition());\n syrupE3.setSelection(syrupA2.getSelectedItemPosition());\n syrupN4.setSelection(syrupA2.getSelectedItemPosition());\n }\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View paramView, int arg2, long arg3) {\n\t\t\t\tmItemListCurPosition = arg2;\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tfocusView.initFocusView(paramView, false, 0);\n\t\t\t\t}\n\t\t\t\tfocusView.moveTo(paramView);\n\t\t\t\tif (mTextView != null) {\n\t\t\t\t\tmTextView.setTextColor(mContext.getResources().getColor(R.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tif (mTextViewSetting != null) {\n\t\t\t\t\tmTextViewSetting.setTextColor(mContext.getResources().getColor(\n\t\t\t\t\t\t\tR.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tmTextView = (TextView) paramView.findViewById(R.id.item_name);\n\t\t\t\tmTextViewSetting = (TextView) paramView.findViewById(R.id.item_setting);\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tisFirstInit = false;\n\t\t\t\t\tmTextColorChangeFlag = true;\n\t\t\t\t\tlistTextColorSet();\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onClick(Uri uri) {\n callback.onItemSelected(uri);\n\n }", "@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ((CallbackToActivity)getActivity()).onItemSelected(mTopTracks, position);\n\n }", "@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> p1)\n\t\t\t\t{\n\t\t\t\t}" ]
[ "0.8546972", "0.8546972", "0.818427", "0.8079545", "0.8079545", "0.8079545", "0.8079545", "0.8079545", "0.80601186", "0.80189794", "0.7992259", "0.79391134", "0.79391134", "0.79265434", "0.79078954", "0.79078954", "0.79022163", "0.7901009", "0.7901009", "0.78792834", "0.7868911", "0.78664607", "0.7850082", "0.78424364", "0.7832703", "0.78233975", "0.78042996", "0.78042996", "0.78042996", "0.7793254", "0.7788395", "0.776633", "0.77346253", "0.77335066", "0.7712221", "0.7683288", "0.75899047", "0.75890404", "0.7572987", "0.75549483", "0.7518665", "0.7468323", "0.73533475", "0.7352849", "0.73492146", "0.7311048", "0.72308815", "0.72072524", "0.71955174", "0.71900374", "0.7153129", "0.71299547", "0.7099114", "0.709555", "0.7093112", "0.70595086", "0.7025659", "0.7025633", "0.69998115", "0.69854754", "0.69709545", "0.6970748", "0.69687873", "0.69624054", "0.6958095", "0.69522196", "0.69479614", "0.69311905", "0.6918398", "0.69112754", "0.69051427", "0.68676454", "0.6861861", "0.68586093", "0.68580323", "0.68532187", "0.6852537", "0.68462986", "0.68462986", "0.6844041", "0.68420726", "0.6838794", "0.68387544", "0.68320936", "0.6819171", "0.6813438", "0.6813417", "0.68119115", "0.6807526", "0.68036157", "0.6802125", "0.67977506", "0.6789172", "0.6789172", "0.6789172", "0.6789172", "0.6789172", "0.6789172", "0.6783949", "0.67788", "0.677748" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> arg0) { }
{ "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
This method helps user to track their order User can only track their own order
TrackingOrderDetails trackingOrderDetails(String username, int order_id, String role);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void acceptOrder() {\n buttonAcceptOrder.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n order.setDriver(ParseUser.getCurrentUser());\n order.saveInBackground();\n Log.i(TAG, \"driver!!: \" + order.getDriver().getUsername());\n ParseUser.getCurrentUser().put(KEY_HAS_ORDER, true);\n ParseUser.getCurrentUser().saveInBackground();\n\n finish();\n }\n });\n }", "public void seeOrder(Order order) {\n if (getCurrentOrder() == null) {\n order.setSeen(true);\n takeOrder(order);\n getRestaurant().getOrderSystem().seenOrder(order);\n EventLogger.log(\"Order #\" + order.getOrderNum() + \" has been seen by chef \" + this.getName());\n }\n }", "Order setAsInCharge(Order order, User user);", "private boolean checkIdentity(Order otherOrder) {\n\t\treturn getId() != otherOrder.getId();\n\t}", "private boolean userHasOrder(LogicFacade logic, User user) throws LegoCustomException {\r\n ArrayList<HouseOrder> orders = logic.getAllOrdersByUser(user.getId());\r\n boolean hasOrder = false;\r\n for (HouseOrder houseOrder : orders) {\r\n hasOrder = (houseOrder.getUserID() == user.getId());\r\n }\r\n return hasOrder;\r\n }", "public void placeSingleTaskOrder(User user, SingleTaskOrder order);", "boolean checkOrderNotAcceptedYet(int idOrder);", "Order setSentStatus(Order order, User user);", "@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}", "@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}", "@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}", "public void setUserOrder(User userOrder) {\n this.userOrder = userOrder;\n }", "public void setOrder(Order order){\n this.order = order;\n }", "@Override\n public void cancel(Order order) {\n Optional<OrderEntity> orderEntity = orderRepository.findById(order.getId());\n\n if(orderEntity.isPresent()){\n orderEntity.get().setOrder_state(\"CANCELLED\");\n orderRepository.save(orderEntity.get());\n }\n }", "@Override\n\tpublic boolean PlaceOrder(Order order) {\n\t\treturn false;\n\t}", "private void fireOrderValidityCheck() {\n ordersDatabaseReference.child(eventUid).child(order.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists() && (dataSnapshot.getValue() != null)) {\n order = dataSnapshot.getValue(Order.class);\n\n // We check if by the time the user finished entering his details the order has become invalid\n // If so, we send him back to main activity\n if (order.getStatusAsEnum() == DataUtils.OrderStatus.CANCELLED) {\n progressDialog.dismiss();\n onOrderExpired();\n }\n // Otherwise continue the order process\n else {\n fireCreditCardTokenCreation();\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {}\n });\n }", "public void saveOrder(Order order) {\n Client client = clientService.findBySecurityNumber(order.getClient().getSecurityNumber());\n Product product = productService.findByBarcode(order.getProduct().getBarcode());\n order.setClient(client);\n order.setProduct(product);\n if (isClientPresent(order) && isProductPresent(order)) {\n do {\n currencies = parseCurrencies();\n } while (currencies.isEmpty());\n\n generateTransactionDate(order);\n\n// Client client = ClientServiceImpl.getClientRepresentationMap().get(order.getClient());\n// Product product = ProductServiceImpl.getProductRepresentationMap().get(order.getProduct());\n convertPrice(order);\n orders.add(order);\n orderedClients.add(client);\n orderedProducts.add(product);\n }\n }", "public void setOrder(List<Order> order) {\n this.order = order;\n }", "public void save_order_without_payment(String advert, String userWhoGive,String userWhoGet,Date date,Date start, Date finish,Float price);", "@Override\n\tpublic DBObject trackOrder(String orderID) {\n\t\treturn null;\n\t}", "public abstract void saveOrder(Order order);", "private void sendOrderMessage(OrderEntity orderEntity) {\n\t\tOrderEntity cur = getCurrentOrder(orderEntity.getOrderId());\n\t\tif(!\"Y\".equals(cur.getSendStatus())) {\n\t\t\t\n\t\t\t//TODO send order by e-mail or other channels\n\t\t\t\n\t\t\tcur.setSendStatus(\"Y\");\n\t\t\tsaveOrder(cur);\n\t\t}\n\t\t\n\t}", "Order setInvoiceApprovedStatus(Order order, User user);", "boolean isOrderCertain();", "Order sendNotificationNewOrder(Order order);", "public void setOrder(String Order) {\n this.Order = Order;\n }", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "Order setInvoicePaidStatus(Order order, User user);", "void paymentOrder(long orderId);", "private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }", "public void approveOrderBySystemUser(String orderId) {\n String approvePath = mgmtOrdersPath + orderId + \"/approve\";\n sendRequest(putResponseType, systemUserAuthToken(), approvePath, allResult, statusCode200);\n }", "public boolean addTicket(Ticket order)\n\t{\n\t\ttickets.push(order);\n\t\t\n\t\treturn true;\n\t\t\n\t}", "@Override\n public void cancel(Order order) {\n logger.info(\"Cancelling Order: \" + order.toString());\n boolean exists = registeredOrders.contains(order);\n if(exists){\n registeredOrders.remove(order);\n logger.info(\"Order successfully cancelled\");\n }\n else{\n logger.info(\"Invalid Order input\");\n }\n }", "@Override\r\n\tpublic void PassOrder(Order order) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tem.persist(order);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic String checkOrder(String userId, List<String> placeIds) {\n\r\n\t\treturn null;\r\n\t}", "boolean hasOrderId();", "boolean hasOrderId();", "private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }", "@Override\n\tpublic void CancelOrder(Order order) {\n\t\t\n\t}", "@Override\n\tpublic boolean doCreate(Orders vo) throws Exception\n\t{\n\t\treturn false;\n\t}", "public Boolean dealWith(Order otherOrder) {\n\t\treturn checkIdentity(otherOrder) && checkVolume(otherOrder) && checkPrice(otherOrder);\n\t}", "public void changeOrderStatus(Order order){\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference();\n //Update order\n databaseReference.child(\"orders\").child(order.getKey()).setValue(order);\n //Update order of the user\n databaseReference.child(\"users\").child(order.getUserID()).child(\"orders\").child(order.getKey()).setValue(order);\n //If changing order status finished ok, we will finish this activity with success result code\n Intent returnIntent = new Intent();\n setResult(ORDER_STATUS_CHANGED,returnIntent);\n finish();\n }", "void rejectNewOrders();", "@Override\n\tpublic void filterNurseOrder(Integer userId, List<PatientOrder> patientOrder) {\n\n\t}", "@Override\r\n\tpublic boolean addOrder(Order order) {\n\t\treturn orderDaoImpl.addOrder(order);\r\n\t}", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }", "public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }", "public static JSONObject trackOrder(String userMailId, String mobileno) throws JSONException{\n\t\tJSONArray orderTrackArray = new JSONArray();\n\t\tJSONObject orderTrack = new JSONObject();\n\t\tboolean isGuestUser = false, isRegisteredUser = false;\n\t\t/*******************For regular order ********************************************/\t\n\t\t/*if(userMailId!=null && (mobileno==null || mobileno.trim().length()==0)){*/\n\t\tif(mobileno.trim().length()==0){\n\t\t\tSystem.out.println(\"Guest users try to track the order...\");\n\t\t\tisGuestUser = true;\n\t\t}else{\n\t\t\tSystem.out.println(\"Registered users try to track the order...\");\n\t\t\tisRegisteredUser = true;\n\t\t}\n\t\ttry {\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\t/******SQL BLOCK FROM HERE*************/\n\t\t\tSQL:{\n\t\t\t\tPreparedStatement preparedStatement = null;\n\t\t\t\tResultSet resultSet = null;\n\t\t\t\tString sqlGuest = \"SELECT * from vw_track_order where user_mail_id = ? and (order_date=current_date OR delivery_date=current_date)\";\n\t\t\t\tString sqlRegistered = \"SELECT * from vw_track_order where contact_number = ? and (order_date=current_date OR delivery_date=current_date)\";\n\t\t\t\t/* \"select \" \n \t\t\t \t\t\t\t+\" foud.city,\"\n \t\t\t \t\t\t\t+\" foud.flat_no,\"\n \t\t\t \t\t\t\t+\" foud.street_name,\"\n \t\t\t \t\t\t\t+\" foud.pincode,\"\n \t\t\t \t\t\t\t+\" foud.landmark,\"\n \t\t\t\t\t\t\t+\" foud.pincode,\"\n \t\t\t \t\t\t\t+\" fo.order_no,\"\n \t\t\t \t\t\t\t+\" fo.order_id,\"\n \t\t\t \t\t\t\t+\" fos.order_status_name,\"\n \t\t\t \t\t\t\t+\" fo.meal_type,\"\n \t\t\t \t\t\t\t+\" fo.time_slot,\"\n \t\t\t \t\t\t\t+\" foud.delivery_zone,\"\n \t\t\t \t\t\t\t+\" foud.delivery_address,\"\n \t\t\t \t\t\t\t+\" foud.instruction,\"\n \t\t\t \t\t\t\t+\" fo.order_date::date\"\n \t\t\t \t\t\t\t+\" from fapp_orders fo,fapp_order_user_details foud,\"\n \t\t\t \t\t\t\t+\" fapp_order_status fos \"\n \t\t\t \t\t\t\t+\" where \"\n \t\t\t \t\t\t\t+\" fo.user_mail_id =?\"\n \t\t\t \t\t\t\t+\" AND \"\n \t\t\t \t\t\t\t+\" fo.order_id = foud.order_id\"\n \t\t\t \t\t\t\t+\" AND fo.order_status_id = fos.order_status_id\";*/\n\n\n\t\t\t\ttry {\n\t\t\t\t\tif(isGuestUser){\n\t\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlGuest);\n\t\t\t\t\t\tpreparedStatement.setString(1, userMailId);\n\t\t\t\t\t}\n\t\t\t\t\tif(isRegisteredUser){\n\t\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlRegistered);\n\t\t\t\t\t\tpreparedStatement.setString(1, mobileno);\n\t\t\t\t\t}\n\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject orders = new JSONObject();\n\t\t\t\t\t\tDouble payamount = resultSet.getDouble(\"final_price\");\n\t\t\t\t\t\tif(payamount!=null){\n\t\t\t\t\t\t\torders.put(\"payamount\", payamount.toString());\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\torders.put(\"payamount\", \"0.0\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\torders.put(\"pincode\", resultSet.getString(\"pincode\"));\n\t\t\t\t\t\torders.put(\"orderid\", resultSet.getInt(\"order_id\"));\n\t\t\t\t\t\torders.put(\"orderno\", resultSet.getString(\"order_no\"));\n\t\t\t\t\t\tif( resultSet.getString(\"meal_type\")!=null){\n\t\t\t\t\t\t\torders.put(\"mealtype\", resultSet.getString(\"meal_type\"));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\torders.put(\"mealtype\", \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( resultSet.getString(\"time_slot\")!=null){\n\t\t\t\t\t\t\torders.put(\"timeslot\", resultSet.getString(\"time_slot\"));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\torders.put(\"timeslot\", \" \");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif( resultSet.getString(\"delivery_address\")!=null){\n\t\t\t\t\t\t\torders.put(\"deliveryaddress\", resultSet.getString(\"delivery_address\"));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\torders.put(\"deliveryaddress\", \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(resultSet.getString(\"driver_name\")!=null){\n\t\t\t\t\t\t\torders.put(\"drivername\", resultSet.getString(\"driver_name\"));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\torders.put(\"drivername\", \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(resultSet.getString(\"driver_number\")!=null){\n\t\t\t\t\t\t\torders.put(\"drivernumber\", resultSet.getString(\"driver_number\"));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\torders.put(\"drivernumber\", \" \");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\torders.put(\"orderstatus\", resultSet.getString(\"order_status_name\"));\n\t\t\t\t\t\torders.put(\"startdate\", \" \");\n\t\t\t\t\t\torders.put(\"enddate\", \" \");\n\t\t\t\t\t\tString orderDate=\"\",reformattedOrderDate=\"\",deliveryDate=\"\",reformattedDeliveryDate=\"\";\n\t\t\t\t\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\t\torderDate = resultSet.getString(\"order_date\");\n\t\t\t\t\t\tif(resultSet.getString(\"delivery_date\")!=null){\n\t\t\t\t\t\t\tdeliveryDate = resultSet.getString(\"delivery_date\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdeliveryDate = orderDate;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treformattedOrderDate = myFormat.format(fromUser.parse(orderDate));\n\t\t\t\t\t\t\treformattedDeliveryDate = myFormat.format(fromUser.parse(deliveryDate));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\torders.put(\"orderdate\", reformattedOrderDate);\n\t\t\t\t\t\torders.put(\"deliverydate\", reformattedDeliveryDate);\n\n\t\t\t\t\t\torders.put(\"itemdetails\", getitemdetails(orders.getString(\"orderno\")));\n\n\n\t\t\t\t\t\torderTrackArray.put(orders);\n\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t/******SQL BLOCK ENDS HERE*************/\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\t/*System.out.println(\"Total numbers of Orders for guest user is::->\"+orderTrackArray.length());\n\n \torderTrack.put(\"ordertrack\", orderTrackArray);\n \treturn orderTrack;*/\n\t\t/*\t}*/\n\t\tSystem.out.println(\"Total numbers of Orders for guest user is::->\"+orderTrackArray.length());\n\n\t\torderTrack.put(\"ordertrack\", orderTrackArray);\n\t\treturn orderTrack;\n\t\t/****For Both **********************************************************//*\n \telse{\n \t\tSystem.out.println(\"Logged in users order track code...\");\n\n \t\ttry {\n \t\t\tConnection connection = DBConnection.createConnection();\n \t\t\tSQL:{\n \t\t\t\tPreparedStatement preparedStatement = null;\n \t\t\t\tResultSet resultSet = null;\n \t\t\t\tString sql = \"select * from vw_all_orders where user_mail_id = ? AND contact_number = ?\" ;\n \t\t\t\tString sql = \"select * from vw_all_orders where user_mail_id = ? OR contact_number = ?\" ;\n \t\t\t\ttry {\n\t\t\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\t\t\tpreparedStatement.setString(1, userMailId);\n\t\t\t\t\t\tpreparedStatement.setString(2, mobileno);\n\t\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\t\t\tJSONObject orders = new JSONObject();\n\t\t\t\t\t\t\t//orders.put(\"city\", resultSet.getString(\"city\"));\n\t\t\t\t\t\t\t//orders.put(\"flatno\", resultSet.getString(\"flat_no\"));\n\t\t\t\t\t\t\t//orders.put(\"streetname\", resultSet.getString(\"street_name\"));\n\t\t\t\t\t\t\t//orders.put(\"landmark\", resultSet.getString(\"landmark\"));\n\n\t\t\t\t\t\t\torders.put(\"pincode\", resultSet.getString(\"pincode\"));\n\n\t\t\t\t\t\t\torders.put(\"orderid\", resultSet.getInt(\"order_id\"));\n\t\t\t\t\t\t\torders.put(\"orderno\", resultSet.getString(\"order_no\"));\n\t\t\t\t\t\t\tif( resultSet.getString(\"meal_type\")!=null){\n\t\t\t\t\t\t\t\torders.put(\"mealtype\", resultSet.getString(\"meal_type\"));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"mealtype\", \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif( resultSet.getString(\"time_slot\")!=null){\n\t\t\t\t\t\t\t\torders.put(\"timeslot\", resultSet.getString(\"time_slot\"));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"timeslot\", \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString startdate=\"\",enddate=\"\",orderDate = \"\",reformattedStartDate = \"\",reformattedEndDate = \"\",reformattedOrderDate = \"\";\n\t\t\t\t\t\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\t\t\tif(resultSet.getString(\"start_date\")==null){\n\t\t\t\t\t\t\t\tstartdate = null;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tstartdate = resultSet.getString(\"start_date\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(resultSet.getString(\"end_date\")==null){\n\t\t\t\t\t\t\t\tenddate = null;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tenddate = resultSet.getString(\"end_date\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\torderDate = resultSet.getString(\"order_date\");\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treformattedOrderDate = myFormat.format(fromUser.parse(orderDate));\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\torders.put(\"orderdate\", reformattedOrderDate);\n\n\n\t\t\t\t\t\t\tif(startdate!=null && enddate!=null){\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t reformattedStartDate = myFormat.format(fromUser.parse(startdate));\n\t\t\t\t\t\t\t\t reformattedEndDate= myFormat.format(fromUser.parse(enddate));\n\t\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(startdate!=null){\n\t\t\t\t\t\t\t\torders.put(\"startdate\", reformattedStartDate);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"startdate\", \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(enddate!=null){\n\t\t\t\t\t\t\t\torders.put(\"enddate\", reformattedEndDate);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"enddate\", \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//orders.put(\"orderdate\", resultSet.getString(\"order_date\"));\n\t\t\t\t\t\t\tif( resultSet.getString(\"delivery_zone\")!=null){\n\t\t\t\t\t\t\t\torders.put(\"deliveryzone\", resultSet.getString(\"delivery_zone\"));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"deliveryzone\", \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif( resultSet.getString(\"delivery_address\")!=null){\n\t\t\t\t\t\t\t\torders.put(\"deliveryaddress\", resultSet.getString(\"delivery_address\"));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"deliveryaddress\", \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif( resultSet.getString(\"instruction\")!=null){\n\t\t\t\t\t\t\t\torders.put(\"instruction\", resultSet.getString(\"instruction\"));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"instruction\", \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif( resultSet.getString(\"order_status_name\")!= null){\n\t\t\t\t\t\t\t\torders.put(\"orderstatus\", resultSet.getString(\"order_status_name\"));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"orderstatus\", \" \" );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif( orders.getString(\"orderno\").startsWith(\"REG\") ){\n\t\t\t\t\t\t\t\torders.put(\"itemdetails\", getitemdetails(orders.getString(\"orderno\")));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\torders.put(\"itemdetails\", getMealTypeDetails(orders.getString(\"orderno\")));\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\torderTrackArray.put(orders);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t}\n \t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\n \t\tSystem.out.println(\"Total numbers of Orders for logged in user is::->\"+orderTrackArray.length());\n \t\torderTrack.put(\"ordertrack\", orderTrackArray);\n \treturn orderTrack;\n \t}*/\n\n\t}", "public void addPendingOrder(Order order) {\n\t\tmOrders.add(order);\n\t}", "public void cancelOrder() {\n order.clear();\n }", "Order requireById(Long orderId);", "@Override\n\tpublic boolean addOrder(OrderDO orderDO) {\n\t\treturn false;\n\t}", "boolean canUseBonus(int order);", "Order placeNewOrder(Order order, Project project, User user);", "UserOrder save(UserOrder order);", "public void submit(OrderInternal order_, OrderManagementContext orderManagementContext_);", "private void submitOrder(HttpServletRequest request, HttpServletResponse response) {\n User authUser = (User) request.getSession().getAttribute(REQUEST_USER.toString());\n OrderDAO orderDao = (OrderDAO) DAOFactory.getFactory(DB_MYSQL).createOrderDAO();\n Order myOrder = new Order(0, authUser.getId(), order, 0, 0);\n Integer orderNumber = orderDao.insert(myOrder);\n orderDishList = orderDao.fillOrderDishList(order);\n request.getSession().setAttribute(REQUEST_ORDER_NUMBER.toString(), orderNumber);\n request.setAttribute(REQUEST_DISH_LIST.toString(), orderDishList);\n\n }", "public void addOrder(Order order) {\n orders.add(order);\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "static void addOrder(orders orders) {\n }", "@Override\n public void sure(OrderDetail orderDetail) {\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "void rejectOrder(String orderId);", "private Order getOrder()\n {\n return orderController.getOrder(getOrderNumber());\n }", "public void create(Order order) {\n order_dao.create(order);\n }", "@Override\n\tpublic void addOrder(Order order) {\n\t\t\n\t em.getTransaction().begin();\n\t\t\tem.persist(order);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t\temf.close();\n\t \n\t}", "boolean checkForUnfinishedOrders (int userId) throws ServiceException;", "private void checkToMyOrder() {\n toolbar.setTitle(R.string.my_order);\n MyOrderFragment myOrderFragment = new MyOrderFragment();\n displaySelectedFragment(myOrderFragment);\n }", "public void payForOrder(){\n\t\tcurrentOrder.setDate(new Date()); // setting date to current\n\t\t\n\t\t//Checking if tendered money is enough to pay for the order.\n\t\tfor(;;){\n\t\t\tJOptionPane.showMessageDialog(this.getParent(), new CheckoutPanel(currentOrder), \"\", JOptionPane.PLAIN_MESSAGE);\n\t\t\tif(currentOrder.getTendered().compareTo(currentOrder.getSubtotal())==-1){\n\t\t\t\tJOptionPane.showMessageDialog(this.getParent(), \"Not enough money tendered\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//Setting order number.\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tString str = df.format(currentOrder.getDate());\n\t\tString number = Integer.toString(till.getOrders().size()+1) +\"/\"+str;\n\t\tcurrentOrder.setNumber(number);\n\t\t\n\t\t//Setting customer name.\n\t\tcurrentOrder.setCustomerName(custNameField.getText());\n\t\t\n\t\t//Adding current order to orders list.\n\t\ttill.getOrders().add(currentOrder); \n\t\t\n\t\t//Displays the receipt.\n\t\tJOptionPane.showMessageDialog(this.getParent(), new ReceiptPanel(currentOrder), \"Receipt\", \n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\n\t\t//Resets OrderPanel.\n\t\tthis.resetOrder();\n\t}", "public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }", "public void findAllMyOrders() {\n log.info(\"OrdersBean : findAllMyOrders\");\n FacesContext context = FacesContext.getCurrentInstance();\n\n ordersEntities = ordersServices.findAllByIdUsersAndStatusIsValidateOrCanceled(usersBean.getUsersEntity().getId());\n if (ordersEntities.isEmpty()) {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, JsfUtils.returnMessage(getLocale(), \"fxs.modalContractsOrder.listOrderEmpty\"), null));\n } else {\n deadlineLeasing();\n }\n }", "public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }", "public String getOrderID() {return orderID;}", "Order removeSentStatus(Order order, User user);", "@PostMapping(\"/order/add\")\n String addOrder(@RequestBody OrderDto orderDto) {\n Order order = new Order();\n order.setAmount(orderDto.getAmount());\n\n\n Optional<User> user = userRepository.findById(orderDto.getUserId());\n if (user.isPresent()) {\n order.setUser(user.get());\n orderRepository.save(order);\n }\n return \"success\";\n }", "void setOrder(Order order);", "public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}", "public void setOrderId(String orderId) {\n this.orderId = orderId;\n }", "public void setOrder(final Integer order) {\n this.order = order;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Order)) {\n return false;\n }\n Order other = (Order) object;\n if ((this.orderID == null && other.orderID != null) || (this.orderID != null && !this.orderID.equals(other.orderID))) {\n return false;\n }\n return true;\n }", "public void startOrder() {\r\n this.o= new Order();\r\n }", "public APIResponse placeOrder(@NotNull Order order){\n try {\n validateOrder(order);\n \n order.getItems().addAll(\n orderItemRepository.saveAll(order.getItems())\n );\n orderRepository.save( order );\n return APIResponse.builder()\n .success( true)\n .data( true )\n .error( null )\n .build();\n }catch (Exception exception){\n\n log.error(exception.getMessage());\n return APIResponse.builder()\n .success( true)\n .data( false )\n .error( exception.getMessage() )\n .build();\n }\n }", "public void placeOrder(TradeOrder order) {\r\n\t\tString msg = \"New order: \";\r\n\t\tif (order.isBuy()) {\r\n\t\t\tbuy.add(order);\r\n\t\t\tmsg += \"Buy \";\r\n\r\n\t\t}\r\n\r\n\t\tif (order.isSell()) {\r\n\t\t\tsell.add(order);\r\n\t\t\tmsg += \"Sell \";\r\n\t\t}\r\n\r\n\t\tmsg += this.getSymbol() + \" (\" + this.getName() + \")\";\r\n\t\tmsg += \"\\n\" + order.getShares() + \" shares at \";\r\n\r\n\t\tif (order.isLimit())\r\n\t\t\tmsg += money.format(order.getPrice());\r\n\t\telse\r\n\t\t\tmsg += \"market\";\r\n\t\tdayVolume += order.getShares();\r\n\t\torder.getTrader().receiveMessage(msg);\r\n\t\t\r\n\t}", "public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }", "static orders getOrder(String uid) {\n return null;\n }", "@Override\n public void addOrder(Order o) {\n orders.add(o);\n }", "@Override\n\tpublic boolean cancelOrder(String orderID) {\n\t\treturn true;\n\t}", "String registerOrder(int userId, int quantity, int pricePerUnit, OrderType orderType);", "private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }", "public void submitOrder(BeverageOrder order);", "public void create(Order order) {\n\t\torderDao.create(order);\n\t}", "boolean isOrderable();", "public void setOrderNo(Short orderNo) {\n this.orderNo = orderNo;\n }", "public void setOrderStatus(Boolean orderStatus) {\n this.orderStatus = orderStatus;\n }", "public Order(int _orderId){\n this.orderId = _orderId;\n }", "public void setOrder(int order) {\n\t\tthis.order = order;\n\t}", "@Override\n public void addOrder(Order order) throws PersistenceException{\n Order newOrder = orders.put(order.getOrderNumber(), order);\n write(order.getOrderDate());\n }" ]
[ "0.6356461", "0.61161155", "0.60171366", "0.59470975", "0.5912857", "0.58886456", "0.58674693", "0.5833084", "0.5811288", "0.5811288", "0.5811288", "0.5750376", "0.5748684", "0.57470065", "0.5739097", "0.573056", "0.572947", "0.57112354", "0.5618667", "0.5614085", "0.558423", "0.5565224", "0.5561197", "0.5558846", "0.5532775", "0.5530657", "0.5529449", "0.55182314", "0.55121386", "0.5506126", "0.54834044", "0.5474574", "0.5458185", "0.5456049", "0.5448418", "0.54414827", "0.54414827", "0.5436299", "0.54349816", "0.5420447", "0.54002786", "0.5379374", "0.53756493", "0.5366152", "0.53516597", "0.53473777", "0.53473777", "0.53460324", "0.53460324", "0.53453666", "0.5338928", "0.5331999", "0.53314376", "0.53306043", "0.53247035", "0.5316705", "0.5315724", "0.5315065", "0.5312095", "0.53109765", "0.53059435", "0.5286553", "0.52738565", "0.5273715", "0.5273715", "0.52721834", "0.52709013", "0.52669424", "0.5260004", "0.52566993", "0.52538687", "0.5249114", "0.5248834", "0.52485967", "0.52469295", "0.52436334", "0.5242455", "0.5239987", "0.5233704", "0.52289516", "0.5228548", "0.5226168", "0.5222519", "0.5218065", "0.5210454", "0.5201789", "0.51999944", "0.5199002", "0.51880187", "0.518414", "0.51809675", "0.5175331", "0.51689565", "0.51664865", "0.51635575", "0.51630557", "0.5159953", "0.51579845", "0.5157504", "0.5152509" ]
0.62320054
1
TODO Autogenerated method stub
@Override public void onReceive(Context context, Intent intent) { mContext = context; if(intent.getAction().equals(serviceRecieved)){ Toast.makeText(logActivity, "BroadCasting Recieved", Toast.LENGTH_LONG).show(); dialogBoxgenerator(); } }
{ "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
Creates new form Bifurcator
public Bifurcator() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "@RequestMapping(\"/upload\")\n public String formNewGif(Model model) {\n if (!model.containsAttribute(\"gif\")) {\n model.addAttribute(\"gif\", new Gif());\n }\n model.addAttribute(\"categories\", categoryService.findAll());\n model.addAttribute(\"action\", \"/gifs\");\n model.addAttribute(\"heading\", \"Upload Gif\");\n model.addAttribute(\"submit\", \"Upload\");\n return \"gif/form\";\n }", "public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}", "public FormInserir() {\n initComponents();\n }", "private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public MechanicForm() {\n initComponents();\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "@GetMapping(path = {\"/form\", \"/form/\"})\n public String getGifUploadForm(Model model) {\n val form = new GifForm();\n val categories = categoryService.findAllCategories();\n\n if (!model.containsAttribute(\"gif\")) {\n model.addAttribute(\"gif\", form);\n }\n\n model.addAttribute(\"categories\", categories);\n model.addAttribute(\"action\", \"/gifs\");\n model.addAttribute(\"method\", \"post\");\n model.addAttribute(\"heading\", \"Upload\");\n model.addAttribute(\"button\", \"Add\");\n\n if (categories.size() == 0) {\n val message = \"You need to add a Category first!\";\n val flash = new FlashMessage(message, Status.FAILURE);\n\n model.addAttribute(\"flash\", flash);\n }\n\n return \"gif/form\";\n }", "public frm_tutor_subida_prueba() {\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public InvoiceCreate() {\n initComponents();\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }", "public FGlavna() {\n initComponents();\n pripremiFormu();\n }", "public Patient_Generate_Bill_Receptionist() {\n initComponents();\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public TransferOfFundsForm() {\n super();\n }", "public void addNewBenificiary() {\n\t\t\tsetColBankCode(null);\n\t\t\tsetCardNumber(null);\n\t\t\tsetPopulatedDebitCardNumber(null);\n\t\t\tsetApprovalNumberCard(null);\n\t\t\tsetRemitamount(null);\n\t\t\tsetColAuthorizedby(null);\n\t\t\tsetColpassword(null);\n\t\t\tsetApprovalNumber(null);\n\t\t\tsetBooAuthozed(false);\n\t\t\tbankMasterList.clear();\n\t\t\tlocalbankList.clear();// From View V_EX_CBNK\n\t\t\tlstDebitCard.clear();\n\n\t\t\t// to fetch All Banks from View\n\t\t\t//getLocalBankListforIndicatorFromView();\n\t\t\tlocalbankList = generalService.getLocalBankListFromView(session.getCountryId());\n\n\t\t\tList<BigDecimal> duplicateCheck = new ArrayList<BigDecimal>();\n\t\t\tList<ViewBankDetails> lstofBank = new ArrayList<ViewBankDetails>();\n\t\t\tif (localbankList.size() != 0) {\n\t\t\t\tfor (ViewBankDetails lstBank : localbankList) {\n\t\t\t\t\tif (!duplicateCheck.contains(lstBank.getChequeBankId())) {\n\t\t\t\t\t\tduplicateCheck.add(lstBank.getChequeBankId());\n\t\t\t\t\t\tlstofBank.add(lstBank);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetBankMasterList(lstofBank);\n\t\t\tsetBooRenderSingleDebit(true);\n\t\t\tsetBooRenderMulDebit(false);\n\t\t}", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}", "public LibrosFormBean() {\r\n libr = new ConjuntoLibro();\r\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "CounselorBiographyTemp create(CounselorBiographyTemp entity);", "public Formulario() {\n initComponents();\n }", "public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "public form_for_bd() {\n initComponents();\n }", "public FrmCrearFotoEmpresa() {\n initComponents();\n }", "@HandlesEvent(\"createBiobank\")\n @RolesAllowed({\"administrator\", \"developer\"})\n public Resolution createBiobank() {\n return new ForwardResolution(CreateActionBean.class);\n }", "public SurferForm(Surfer surfer) {\n\t\tsuper(\"Surfer\");\n\n\t\tthis.surfer = surfer;\n\n\t\tstartComponents();\n\t}", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "public AddForensicsForm()\r\n\t{\r\n\t\t//sets the layout to border layout as the default layout for a jpanel is flow.\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\t\r\n\t\t//creates the number format that stops letters being entered into certain textfields\r\n\t\tnumForm = NumberFormat.getIntegerInstance();\r\n\t\tnumForm.setGroupingUsed(false);\r\n\t\tnumForm.setMinimumIntegerDigits(0);\r\n\t\t\r\n\t\t/* Creates the form panel that will hold all the labels and text fields for the form.\r\n\t\t * It is given a grid layout so that each row will be a different section of the form e.g \r\n\t\t * what case it is a part of then on the next line the ID number of the forensic file etc.*/\r\n\t\tform = new JPanel();\r\n\t\tform.setLayout(new GridLayout(0,2,5,5));\r\n\t\tform.setBorder(new CompoundBorder(new EmptyBorder(5,5,5,5), new CompoundBorder(new EtchedBorder(), new EmptyBorder(5,5,5,5))));\r\n\t\t\r\n\t\t/* this is the label and textfield that is used to link the forensic file to the case, this has to be\r\n\t\t * done manually as new forensic files could be added for older cases as well as newer and there is no\r\n\t\t * way to predetermine what case the file is for. */\r\n\t\tevidenceLabel = new JLabel(\"Forensic File for case: \");\r\n\t\tevidenceID = new JFormattedTextField(numForm);\r\n\t\tform.add(evidenceLabel);\r\n\t\tform.add(evidenceID);\r\n\t\t\r\n\t\t/* This is the label and text field that holds the information for the ID of the forensics file\r\n\t\t * as this is unique and assigned automatically the field is set to uneditable by default\r\n\t\t * the assignID method in the forensic class is used to assign a unique ID to the forensic file*/\r\n\t\tforensicLabel = new JLabel(\"Forensics ID: \");\r\n\t\tforensicID = new JFormattedTextField();\r\n\t\tforensicID.setEditable(false);\r\n\t\tf1.assignID();\r\n\t\tforensicID.setText(String.valueOf(f1.getForensicID()));\r\n\t\tform.add(forensicLabel);\r\n\t\tform.add(forensicID);\r\n\t\t\r\n\t\t/* This is the label and combobox for biological evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tbioLabel = new JLabel(\"Presence of Biological Evidence:\");\r\n\t\tbioBox = new JComboBox(confirmation);\r\n\t\tform.add(bioLabel);\r\n\t\tform.add(bioBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for print evidence e.g finger prints and toe prints, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tprintsLabel = new JLabel(\"Presence of Finger Prints:\");\r\n\t\tprintsBox = new JComboBox(confirmation);\r\n\t\tform.add(printsLabel);\r\n\t\tform.add(printsBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for Track evidence e.g boot and tire, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttracksLabel = new JLabel(\"Presence of Vehicle/Foot Tracks:\");\r\n\t\ttracksBox = new JComboBox(confirmation);\r\n\t\tform.add(tracksLabel);\r\n\t\tform.add(tracksBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for digital evidence e.g phones and tablets, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tdigitalLabel = new JLabel(\"Presence of Digital Evidence: \");\r\n\t\tdigitalBox = new JComboBox(confirmation);\r\n\t\tform.add(digitalLabel);\r\n\t\tform.add(digitalBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for tool mark evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttoolMarkLabel = new JLabel(\"Presence of tool marks\");\r\n\t\ttoolMarkBox = new JComboBox(confirmation);\r\n\t\tform.add(toolMarkLabel);\r\n\t\tform.add(toolMarkBox);\r\n\t\t\t\t\r\n\t\t/* This is the label and combobox for narcotic evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tnarcoticLabel = new JLabel(\"Presence of Narcotics: \");\r\n\t\tnarcoticBox = new JComboBox(confirmation);\r\n\t\tform.add(narcoticLabel);\r\n\t\tform.add(narcoticBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for firearm evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tfirearmLabel = new JLabel(\"Presence of Firearms: \");\r\n\t\tfirearmBox = new JComboBox(confirmation);\r\n\t\tform.add(firearmLabel);\r\n\t\tform.add(firearmBox);\r\n\t\t\r\n\t\t/* these are the buttons to cancel and sumbit and the panel that holds them\r\n\t\t * Submit uses the inner class listener to perform a function\r\n\t\t * and the cancel button is used by the window handler class to\r\n\t\t * return to the previous menu*/\r\n\t\tbuttons = new JPanel();\r\n\t\tsubmit = new JButton(\"Submit\");\r\n\t\tsubmit.addActionListener(this);\r\n\t\tcancel = new JButton(\"Cancel\");\r\n\t\tbuttons.add(submit);\r\n\t\tbuttons.add(cancel);\r\n\t\t\r\n\t\t//this is the container that holds both the button and form panel.\r\n\t\tcontainer = new JPanel();\r\n\t\tcontainer.setLayout(new GridLayout(0,1));\r\n\t\tcontainer.setBorder(new EmptyBorder(200, 0, 0, 0));\r\n\t\tcontainer.add(form);\r\n\t\tcontainer.add(buttons);\r\n\t\t\r\n\t\t//adds the container to the main panel.\r\n\t\tadd(container, BorderLayout.CENTER);\r\n\t}", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public StorageForm() {\n}", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }", "public BtxDetailsKcFormDefinition() {\n super();\n }", "private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }", "private void btnFarmaciasActionPerformed(java.awt.event.ActionEvent evt) {\n ControlaInstancia(objF);\n\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "public FrmAbmAfiliado() {\n initComponents();\n }", "public JfrmAdviserSignUp() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n setTitle(\"MARKETING DIGITAL\");\n setIconImage(new ImageIcon(getClass().getResource(\"/imagenes/icono.png\")).getImage());\n ((JPanel)getContentPane()).setOpaque(false);\n ImageIcon uno=new ImageIcon(this.getClass().getResource(\"/imagenes/fondo3.jpg\"));\n JLabel fondo= new JLabel();\n fondo.setIcon(uno);\n getLayeredPane().add(fondo,JLayeredPane.FRAME_CONTENT_LAYER);\n fondo.setBounds(0,0,uno.getIconWidth(),uno.getIconHeight());\n }", "public FormCompra() {\n initComponents();\n }", "public MusiqueFiducial(){\n\t\tinitialisation();\n\t}", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "private JButton getBBuscar() {\r\n if (bBuscar == null) {\r\n bBuscar = new JButton();\r\n bBuscar.setBounds(new Rectangle(340, 20, 20, 20));\r\n bBuscar.setText(\"...\");\r\n bBuscar.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent e) {\r\n buscarGrupo();\r\n }\r\n });\r\n }\r\n return bBuscar;\r\n }", "public GestioneProfiliFW(Form form) {\r\n\t\tthis.form = form;\r\n\t\tpagefirst = (RepeaterAction)form.getChild(\"pagefirst\");\t\r\n\t\tpageprev = (RepeaterAction)form.getChild(\"pageprev\");\t\r\n\t\tpagenext = (RepeaterAction)form.getChild(\"pagenext\");\t\r\n\t\tpagelast = (RepeaterAction)form.getChild(\"pagelast\");\t\r\n\t\ttopage = (Field)form.getChild(\"topage\");\t\r\n\t\tpagecustom = (RepeaterAction)form.getChild(\"pagecustom\");\t\r\n\t\tsortnatural = (RepeaterAction)form.getChild(\"sortnatural\");\t\r\n\t\tremoveprofilo= (RepeaterAction)form.getChild(\"removeprofilo\");\t\r\n\t\taddprofilo = (RepeaterAction)form.getChild(\"addprofilo\");\t\r\n\t\tprofili = new ProfiliRepeaterWrapper((Repeater)form.getChild(\"profili\"));\r\n\t\tprofiliaction = (Action)form.getChild(\"profiliaction\");\r\n }", "public FiltroGirosDialog() {\n \n }", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public Register_beneficiary() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }", "public FundsVolunteerCreate(AppState appState) {\n initComponents();\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n btCancelar.setVisible(false);\n btSave.setVisible(false);\n btnRemove.setVisible(false);\n btnSaveEdit.setVisible(false);\n enableFields(false);\n this.appState = appState;\n }", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "public FRMCadastrarFornecedor() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public UserForm(){ }", "public frmAddIncidencias() {\n initComponents();\n }", "public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnulacion\");\n initComponents();\n }", "public JF_Inscripcion() {\n initComponents();\n }", "private void createFAB() {\r\n fab = findViewById(R.id.fabEditTask);\r\n fab.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n goIntoEditMode();\r\n }\r\n });\r\n }", "public Formas() {\n initComponents();\n setIconImage(new ImageIcon(this.getClass().getResource(\"/Imagen/capsule.png\")).getImage());\n }", "public NovaContaFisica() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public FrCadFabricante() {\n initComponents();\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "public abstract void addSelectorForm();", "public FRM_Estudiantes() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "private void callForm(boolean isIncome) {\n\t\t\n\t\t/* we load the form fxml*/\n\t\tFXMLLoader loader = new FXMLLoader(\n\t\t\t\tgetClass().getResource(\"/gui/view/formTransaction.fxml\"));\n\t\t\n\t\t/*Create a instance of the controller of bank account form*/\n\t\tController_formTransaction controller = new Controller_formTransaction(\n\t\t\t\tthis, isIncome, null);\n\t\t\n\t\t/*Sets the controller associated with the root object*/\n\t\tloader.setController(controller);\n\t\t\n\t\tpaneForm.setVisible(true);\n\t\tpaneForm.setMouseTransparent(false);\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tAnchorPane pane = loader.load();\n\t\t\tpaneForm.getChildren().add(pane);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "public frmacceso() {\n initComponents();\n }", "@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n if(result.hasErrors()) {\n StringBuilder message = new StringBuilder();\n for(FieldError error: result.getFieldErrors()) {\n message.append(error.getField()).append(\" - \").append(error.getRejectedValue()).append(\"\\n\");\n }\n ModelAndView modelAndView = (ModelAndView)newAuction();\n modelAndView.addObject(\"message\", message);\n modelAndView.addObject(\"form\", form);\n return modelAndView;\n }\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n UserAuthentication userAuth = UserAuthentication.select(UserAuthentication.class, \"SELECT * FROM user_authentication WHERE username=#1#\", username);\n AuctionWrapper wrapper = new AuctionWrapper();\n wrapper.setDemandResourceId(form.getDemandedResourceId());\n wrapper.setDemandAmount(form.getDemandedAmount());\n wrapper.setOfferResourceId(form.getOfferedResourceId());\n wrapper.setOfferAmount(form.getOfferedAmount());\n wrapper.setSellerId(userAuth.getPlayerId());\n auctionRestTemplate.post(auctionURL + \"/new\", wrapper, String.class);\n return new RedirectView(\"/player/trading\");\n }", "public CreateProfile() {\n initComponents();\n }", "private JButton getBGuardar() {\r\n if (bGuardar == null) {\r\n bGuardar = new JButton();\r\n bGuardar.setBounds(new Rectangle(10, 200, 100, 30));\r\n bGuardar.setText(\"Guardar\");\r\n bGuardar.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent e) {\r\n guardarGrupo(); \r\n }\r\n });\r\n }\r\n return bGuardar;\r\n }", "public FrmBusquedas() {\n initComponents();\n jButton3.setVisible(true);\n Dimension desktopSize = VistaPrincipal.jDesktopPane1.getSize();\n Dimension jInternalFrameSize = this.getSize();\n this.setLocation((desktopSize.width - jInternalFrameSize.width) / 2, 4);\n\n ((DesktopConFondo) fonbusqueda).setImagen(\"onda.jpg\");\n\n }", "public Ventaform() {\n initComponents();\n }", "public GUI_Crear_Funcionario() {\r\n initComponents();\r\n lbl1.setVisible(false);\r\n lbl2.setVisible(false);\r\n lbl3.setVisible(false);\r\n lbl4.setVisible(false);\r\n lbl5.setVisible(false);\r\n lbl6.setVisible(false);\r\n lbl7.setVisible(false);\r\n lbl8.setVisible(false);\r\n lbl9.setVisible(false);\r\n lbl10.setVisible(false);\r\n groupSexoBtn.add(rBtn1);\r\n groupSexoBtn.add(rBtn2);\r\n cargarImagen(jdp4,foto1);\r\n ocultarBarraTitulo();\r\n \r\n }", "@Override\n public ExtensionResult dogetFormcuti(ExtensionRequest extensionRequest) {\n\n Map<String, String> output = new HashMap<>();\n String formId = appProperties.getFormIdCuti();\n FormBuilder formBuilder = new FormBuilder(formId);\n ButtonTemplate button = new ButtonTemplate();\n button.setTitle(\"Form Cuti\");\n button.setSubTitle(\"Form Cuti\");\n button.setPictureLink(Image_cuti);\n button.setPicturePath(Image_cuti);\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(\"Isi Form\");\n bookAction.setValue(formBuilder.build());\n// bookAction.setValue(appProperties.getShortenFormCuti());\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n\n output.put(OUTPUT, buttonBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "public FormDataBuku() { //method FormDataBuku dengan hak akses publik\n initComponents(); //adalah method yang di generate oleh netbeans secara default. Kemudian juga terlihat ada method getter dan setter untuk variabel userList\n }", "public FrmFactura() {\n initComponents();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "Compuesta createCompuesta();", "public FamilyBudget() {\n initComponents();\n }", "public JFcotiza() {\n initComponents();\n }", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "public FrmInsertar() {\n initComponents();\n }", "public BuscaMedicamento() {\n initComponents();\n }", "public BuscarProvedor() {\n initComponents();\n }" ]
[ "0.63686305", "0.5978615", "0.5778936", "0.5771151", "0.5768073", "0.5751261", "0.57157815", "0.56660813", "0.55858445", "0.5582635", "0.557197", "0.55528057", "0.55403954", "0.5517585", "0.54332304", "0.5419483", "0.5354231", "0.5330386", "0.5309376", "0.5286868", "0.52856076", "0.5280886", "0.527772", "0.5267501", "0.52587515", "0.5258155", "0.5256208", "0.52449393", "0.52376086", "0.5216594", "0.52148813", "0.52018666", "0.5198845", "0.5193621", "0.5191821", "0.5189082", "0.51887834", "0.5188084", "0.518112", "0.51793724", "0.5175589", "0.516754", "0.5164814", "0.5156275", "0.5142184", "0.5137582", "0.51282334", "0.51268184", "0.5120848", "0.5119945", "0.51173306", "0.5110441", "0.5104653", "0.51023686", "0.5091019", "0.5083387", "0.5081694", "0.50724345", "0.5070512", "0.5069938", "0.506536", "0.50651884", "0.50523716", "0.5052056", "0.50483185", "0.50450057", "0.5041699", "0.5040871", "0.50362307", "0.5022173", "0.5021114", "0.50206614", "0.50146556", "0.5011962", "0.5008892", "0.50079656", "0.50005186", "0.4994777", "0.4994044", "0.49863875", "0.4984131", "0.49813074", "0.4980568", "0.49802047", "0.4977443", "0.49767876", "0.49767217", "0.49752492", "0.49749577", "0.49731895", "0.49721467", "0.4967584", "0.4966777", "0.49662215", "0.49657348", "0.49656844", "0.49636137", "0.4960566", "0.49577257", "0.4955677" ]
0.65506274
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
private void initComponents() { folder = new File(SRC_FOLDER); fileList = folder.listFiles(); jLabel1 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("please enter the tag to filter on:"); jTextField1.setText("[BIOME:ANY_LAND]"); jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); jButton1.setText("search"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "public Ablak() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73185146", "0.7290127", "0.7290127", "0.7290127", "0.7285798", "0.7247533", "0.7214021", "0.720785", "0.71952385", "0.71891224", "0.7184117", "0.7158779", "0.7147133", "0.70921415", "0.70792264", "0.7055538", "0.6986984", "0.6976409", "0.6955238", "0.69525516", "0.69452786", "0.6942174", "0.69350797", "0.6931285", "0.69274575", "0.69249237", "0.692484", "0.69119686", "0.69100493", "0.6892153", "0.68909484", "0.6889482", "0.6888941", "0.6888229", "0.6882907", "0.68803245", "0.6880302", "0.68765897", "0.68752575", "0.68742317", "0.6870695", "0.6858674", "0.6855753", "0.68551505", "0.6854714", "0.68536323", "0.685189", "0.6851622", "0.6851622", "0.6842649", "0.6836868", "0.6836041", "0.68273747", "0.6827191", "0.6825861", "0.68235105", "0.68233716", "0.6816636", "0.6815192", "0.6808554", "0.68082917", "0.6807161", "0.6807015", "0.6806047", "0.6802219", "0.6794859", "0.67942643", "0.6790891", "0.67889357", "0.6788571", "0.67881185", "0.6787122", "0.6781127", "0.67660034", "0.6764709", "0.67644566", "0.6756192", "0.6754256", "0.6751128", "0.6750562", "0.67440563", "0.6737466", "0.6736424", "0.6734462", "0.67319155", "0.6726047", "0.6725434", "0.6718776", "0.67163", "0.6713416", "0.6712949", "0.67079836", "0.6706704", "0.67045957", "0.66995174", "0.6698836", "0.66984534", "0.669626", "0.6693713", "0.66902465", "0.66899353" ]
0.0
-1
TODO Autogenerated method stub
@Override public IColor getColor(String color) { 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
The Amazon Resource Name (ARN) of the pipeline.
public void setPipelineArn(String pipelineArn) { this.pipelineArn = pipelineArn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineArn() {\n return this.pipelineArn;\n }", "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "@Id\n @Output\n public String getArn() {\n return arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getARN() {\n return this.aRN;\n }", "String getArn();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public String assetName() {\n return assetName;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public String getNodeARN() {\n return this.nodeARN;\n }", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public String getName() {\n return aao.getName();\n }", "java.lang.String getExecutionStageName();", "public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }", "public final String aoy() {\n return this.label;\n }", "public String getTypeArn() {\n return this.typeArn;\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getAeName() {\n\t\treturn name;\n\t}", "String getPipelineId();", "String getStageName();", "public String getAnalyzerArn() {\n return this.analyzerArn;\n }", "public String roleName() {\n return this.roleName;\n }", "public String getTargetArn() {\n return targetArn;\n }", "private String getRoleArn(String accout, String role){\n\t\treturn \"arn:aws:iam::\"+accout+\":role/\"+role;\n\t}", "@ApiModelProperty(value = \"The name of the resource or array element.\")\n @JsonProperty(\"Name\")\n public String getName() {\n return name;\n }", "public String getPolicyArn() {\n return this.policyArn;\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "@Nonnull\n\tpublic String getSequenceName() {\n\t\treturn _sequenceName;\n\t}", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String getEngineArn() {\n return this.engineArn;\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "public String getRoleArn() {\n return roleArn;\n }", "@Override\n public String getName() {\n return this.role.getName();\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getStageName() {\n return stageName;\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getSourceArn() {\n return this.sourceArn;\n }", "public final String getName() {\n return this.name;\n }", "public String getName() {\n\t\treturn NAME;\n\t}", "public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }", "public String getName() {\n return NAME;\n }", "public final String getName() {\n\t\treturn this.name;\n\t}", "public String getName() {\r\n\t\treturn NAME;\r\n\t}", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getARN() != null)\n sb.append(\"ARN: \").append(getARN()).append(\",\");\n if (getExcludedRules() != null)\n sb.append(\"ExcludedRules: \").append(getExcludedRules()).append(\",\");\n if (getRuleActionOverrides() != null)\n sb.append(\"RuleActionOverrides: \").append(getRuleActionOverrides());\n sb.append(\"}\");\n return sb.toString();\n }", "public final String name() {\n\t\treturn name;\n\t}", "public String getPlatformApplicationArn() {\n return platformApplicationArn;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Process Model Similarity Metric Based on Firing Sequences Collection\";\n\t}", "public String getRolelabel() {\n return rolelabel;\n }", "public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }", "@Nonnull String getName();", "@Basic @Raw\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "@ApiModelProperty(value = \"String containing the application name, such as \\\"iPlanetAMWebAgentService\\\", or \\\"mypolicyset\\\"\")\n public String getApplicationName() {\n return applicationName;\n }", "public String getName() {\n\n\t\treturn name;\n\t}", "public String getName() {\n\n\t\treturn name;\n\t}", "public String getName() {\n return name + \"\";\n }", "public final String name() {\n return name;\n }", "public String getName() {\n return name.get();\n }", "@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}", "public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }", "public String getName() {\n\n return this.name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public String getAName()\n\t{\n\t\treturn aName;\n\t}", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "public String getRoleName() {\n return this.roleName;\n }", "public String getRoleName() {\n return this.roleName;\n }", "public String getGatewayARN() {\n return gatewayARN;\n }", "public String GetName() {\n\t\treturn this.name;\n\t}", "public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn NAME;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "@Basic @Immutable\n\tpublic String getName() {\n\t\treturn name;\n\t}", "public final String getName() {\n return name;\n }", "public String getCertificateArn() {\n return this.certificateArn;\n }", "public String getName()\n {\n return (this.name);\n }", "public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }", "public String getName() {\n return (this.name);\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getName()\n {\n return NAME;\n }", "@Override\n public String getName() {\n return seqName;\n }" ]
[ "0.6983177", "0.62372386", "0.61557615", "0.6141931", "0.6141931", "0.6141931", "0.6141931", "0.60426223", "0.5990907", "0.59689915", "0.55886257", "0.5506444", "0.5446852", "0.5446852", "0.5446852", "0.5346395", "0.5336407", "0.532889", "0.5237029", "0.523352", "0.52294356", "0.5213903", "0.5193102", "0.5150068", "0.51482993", "0.5120048", "0.51136976", "0.5076882", "0.5075787", "0.5068135", "0.504673", "0.50445884", "0.50420225", "0.50404114", "0.50400656", "0.5037615", "0.5035507", "0.50113165", "0.50109625", "0.5003222", "0.50031435", "0.49893013", "0.49821025", "0.49614298", "0.49594146", "0.49549", "0.4930055", "0.492146", "0.49201894", "0.4915455", "0.49151018", "0.49060166", "0.48962048", "0.48927966", "0.48927966", "0.48927966", "0.48927966", "0.48916936", "0.48858526", "0.48847547", "0.48838145", "0.48820564", "0.4879311", "0.48748037", "0.48671767", "0.48652866", "0.4851384", "0.4851384", "0.48461452", "0.48460194", "0.48442984", "0.48320657", "0.48307633", "0.48303896", "0.4829315", "0.4829315", "0.4829315", "0.4829315", "0.4829315", "0.48248056", "0.48216227", "0.4820624", "0.4820624", "0.48193887", "0.4818123", "0.48170668", "0.4816037", "0.4816037", "0.4816037", "0.48134878", "0.4813381", "0.4811515", "0.48098853", "0.4808743", "0.48078012", "0.4805412", "0.48051226", "0.48027587", "0.48026797", "0.4802412" ]
0.4834039
71